一种外交互虚拟局域网网络通信方法 本发明涉及一种外交互虚拟局域网网络通信方法, 属于网络通信领域。 传统的通信系统中, 人们的通信模型是对称的, 信息的往返传输都是在一 个物理介质上实现。 例如, 人们打电话时, 发送的话音和接收的话音都在一条 电话线上传输二双向卫星系统中, 数据的及送和接收也都是通过卫星信道实 现。 为了降低系统的成本, 很多新的通信方式出现了, 如单向的卫星通信系统 和单向的有线电视系统。 但是, 纯粹的单向通信用户只能被动地接收信息, 它 无法解决用户之间交互信息的需求。 例如, 用户 A 想査阅用户日图书馆的资料 就无法实现。 采用局域网的通信方式可满足网上用户之间交换信息的需求, 局 域网是一个采用广播和介质共享的网络, 其本质特征是, 用户发送的局域网数 据包可以被网络上的任何用户接收。 但是, 这个接收是有一定条件的, 接收设 备的物理地址必须和数据包的目标地址一致才可以接收。 对于一些特定的系 统, 例如支持广播的单向通信系统, 如单向卫星系统或者是单向有线电视系统, 用户根本就不能发送数据, 因此并不能构成局域网。 另外, 对于一些不支持广 播的系统, 例如电话拨号上网, 虽然支持双向通信, 但不支持广播协说, 也无 法实现局域网。 The present invention relates to a network communication method for an external interactive virtual local area network, and belongs to the field of network communication. In traditional communication systems, people's communication models are symmetrical, and round-trip transmission of information is implemented on a physical medium. For example, when people make a call, both the transmitted and received voices are transmitted on a telephone line in a two-way satellite system, and data is transmitted and received through satellite channels. In order to reduce the cost of the system, many new communication methods have appeared, such as one-way satellite communication systems and one-way cable television systems. However, purely one-way communication users can only receive information passively, and it cannot solve the need for information exchange between users. For example, user A cannot access the materials of the user's day library. Local area network communication can meet the needs of information exchange between online users. A local area network is a network that uses broadcasting and media sharing. Its essential feature is that the local area network data packets sent by users can be received by any user on the network. However, there are certain conditions for this reception. The physical address of the receiving device must be the same as the destination address of the data packet before it can be received. For some specific systems, such as one-way communication systems that support broadcasting, such as one-way satellite systems or one-way cable television systems, users cannot send data at all, and therefore cannot form a local area network. In addition, for some systems that do not support broadcasting, such as telephone dial-up access to the Internet, although two-way communication is supported, it does not support broadcasting agreement, and it is not possible to implement a local area network.
为解决上述问题, 本发明的目的是在未实现局域网的、 或单向通信系统中 提供一种简便的双向通信方法, 即外交互虚拟局域网网络通信方法, 它使得主 站与用户端之间在一个无法直接实现局域网的介质上构造局域网, 从而简化网 络结构, 支持局域网的所有协议。 In order to solve the above problems, an object of the present invention is to provide a simple two-way communication method in a non-localized or unidirectional communication system, that is, a method of externally interacting virtual local area network communication. A medium on which a local area network cannot be directly implemented, thereby simplifying the network structure and supporting all protocols of the local area network.
为实现本发明目的, 本发明提出了一种外交互虚拟局域网网络通信方法, 在主站与用户端之间传播数据, 其方法如下: In order to achieve the purpose of the present invention, the present invention proposes a method for externally interacting virtual local area network communication to propagate data between a master station and a user terminal. The method is as follows:
在主站和用户端之间设定一个单向物理或逻辑通道为一个虚拟局域网; 在主站和用户端之间另设定一个双向物理或逻辑通道为外交互网络; 当外交互网络为一局域网时, 用户端通过外交互网络传输标准的局域网物 理帧和物理地址广播帧; 并且主站在虚拟局域网上根据用户端物理地址发送标 准的局域网物理帧; Set a one-way physical or logical channel between the master station and the user terminal as a virtual local area network; set up a two-way physical or logical channel between the master station and the user terminal as an external interaction network; when the external interaction network is a In the local area network, the user terminal transmits standard local area network physical frames and physical address broadcast frames through the external interactive network; and the master station sends standard local area network physical frames on the virtual local area network according to the user terminal physical address;
当外交互网络为广域网或因特网时, 若用户端为一单机, 用户端通过外交 互网络将本站的 IP地址和物理地址打成 IP包的形式传送给主站局域网上指定 替换页(细1则第 26条)
的某台机器(一般为发端机)形成 IP 物理地址对照表; 若用户端为一局域网时, 用户端某台微机将整个局域网内所有微机的物理地址和 IP地址打成 IP包的形 式传送给主站局域网上指定的某台机器(一般为发端机)形成 IP 物理地址对照 表。 When the external interactive network is a wide area network or the Internet, if the client is a stand-alone machine, the client sends the IP address and physical address of the site through the external interactive network into an IP packet to the designated replacement page (Detail 1 Rule 26) A certain machine (usually the originating machine) forms an IP physical address comparison table; if the client is a local area network, a microcomputer on the client side sends the physical addresses and IP addresses of all microcomputers in the entire LAN into an IP packet and sends it to the form of an IP packet. A specific machine (usually the originating machine) specified on the LAN of the master station forms the IP physical address comparison table.
采用本发明方法, 主站与用户端之间数据通信步骤如下: With the method of the present invention, the data communication steps between the master station and the user terminal are as follows:
主站在虚拟局域网上根据用户端物理地址(如: MAC 地址、 ID 号等接收设 备特有地址)向用户端发送局域网物理帧; 用户端接收局域网物理帧: The master station sends the physical LAN frame to the client based on the physical address of the client (such as MAC address, ID number, and other unique addresses of the receiving device). The client receives the physical frame of the LAN:
当主站与用户端之间设定的外交互网络为局域网时, 在用户端数据接收设 备上安装发送软件仿真和转换程序, 将反馈的数据以局域网物理帧的形式通过 外交互网络发送至主站方; 并且在主站数据发送设备和其它设备上安装接收软 件仿真和转换程序, 模拟接收设备, 用以接收该外交互网络的回传数据: When the external interaction network set between the master station and the client is a local area network, a sending software simulation and conversion program is installed on the user-side data receiving device, and the feedback data is sent to the host through the external interaction network in the form of a physical frame on the LAN. The station side; and installing a receiving software simulation and conversion program on the main station data transmitting equipment and other equipment, and simulating the receiving equipment to receive the return data of the external interaction network:
当主站与用户端之间设定的外交互网络为广域网或因特网时, 在用户端数 据接收设备上安装发送软件仿真和转换程序, 将反馈的数据打成 IP 包的形式 通过外交互网络发送至主站方; 并且在主站数据发送设备和其它设备上安装接 收软件仿真和转换程序, 模拟接收设备, 用以接收该外交互网络的回传 IP包。 When the external interaction network set between the master station and the client is a wide area network or the Internet, install sending software simulation and conversion programs on the user-side data receiving equipment, and send the feedback data into the form of IP packets and send it through the external interaction network. To the master station side; and installing a receiving software simulation and conversion program on the master station data sending device and other devices to simulate the receiving device to receive the return IP packets of the external interaction network.
本发明的原理就是利用外交互技术, 将数据的收发分割到两个信道上, 利 用一个单向物理或逻辑信道下行接收, 另设定一个双向物理或逻辑信道上行发 送; 在一个不支持局域网的系统中安装软件仿真和转换程序、 并通过外交互网 络信道传递局域网物理帧或 IP包, 以构造一个虚拟的局域网。 现结合附图对本发明做进一步他说明: The principle of the present invention is to use external interaction technology to divide data transmission and reception into two channels, use a one-way physical or logical channel for downlink reception, and set a two-way physical or logical channel for uplink transmission. A software simulation and conversion program is installed in the system, and a local area network physical frame or an IP packet is transmitted through an external interactive network channel to construct a virtual local area network. The invention will be further described with reference to the drawings:
附图 1为本发明方法原理示意图; Figure 1 is a schematic diagram of the method of the present invention;
附图 2为主站发送数据流程示意图; Figure 2 is a schematic diagram of the process of sending data to the master station;
附图 3为用户端接收数据流程示意图; Figure 3 is a schematic diagram of the process of receiving data by the client;
附图 4 为卫星通信系统应用外交互虚拟局域网方法进行网络通信的示意 图。 Figure 4 is a schematic diagram of satellite communication system using external interactive virtual local area network method for network communication.
附图 5为单向卫星通信系统外交互虚拟局域网网络数据流程示意图。 Figure 5 is a schematic diagram of the data flow of the interactive local area network outside the one-way satellite communication system.
附图 6为用户端为一局域网时, 本发明方法原理示意图。 如图 1所示, 外交互虚拟局域网网络通信方法由下列步骤实现的: 在主站(1)和用户端(2)之间设定一个单向物理或逻辑通道为一个虚拟局域 替换页(2细则第 26条)
在主站(1)和用户端(2)之间设定另一个双向物理或逻辑通道为外交互网络FIG. 6 is a schematic diagram of the method of the present invention when the user terminal is a local area network. As shown in FIG. 1, the external interactive virtual local area network communication method is implemented by the following steps: A unidirectional physical or logical channel is set between the master station (1) and the user terminal (2) as a virtual local area replacement page ( 2 Article 26) Set another two-way physical or logical channel between the master station (1) and the client (2) as the external interaction network
(3); (3);
用户端通过外交互网络(5)传输标准的局域网物理帧和物理地址广播帧或 IP包。 The user terminal transmits standard LAN physical frames and physical address broadcast frames or IP packets through the external interaction network (5).
主站(1)在虚拟局域网(4)上根据用户端物理地址发送标准的局域网物理 帧; The master station (1) sends standard LAN physical frames on the virtual local area network (4) according to the physical address of the client;
上述的虚拟局域网(4)可以是单向卫星通信系统、 单向有线电视系统等中 的信道。 上述的外交互网络(3)可以一个局域网, 也可以是一个广域网或是一 个标准的因特网等双向外接网络构成。 外交互网络(3)在主站(1)和用户端(2) 对应安装有外交互网发送器(8)和外交互网接收器(7)。 外交互网发送器和外交 互网接收器可以是网卡, 也可以是调制解调器 (MODEM)等网络设备。 The above-mentioned virtual local area network (4) may be a channel in a one-way satellite communication system, a one-way cable television system, or the like. The above-mentioned external interaction network (3) may be a local area network, a wide area network, or a standard two-way external network such as the Internet. The external interactive network (3) is provided with a foreign interactive network transmitter (8) and a foreign interactive network receiver (7) correspondingly installed at the master station (1) and the client (2). The SIP sender and diplomatic SIP receiver can be network cards or network equipment such as modems.
如图 2、 图 3 所示, 为主站(1)和用户端(2)发送数据和接收数据流程示意 图。 主站(1)发送数据流程大体是这样的: 来自其它网络通道和外交互网络的 数据进入主站软件仿真和转换程序, 先检査是否包含局域网物理帧或 IP 包的 数据, 如是物理帧数据, 送到 "判断该物理帧是否应该发送? " 如不是, 进一 步检査接收到的 IP 包是否合法, 如不合法, 丢弃该数据包。 如合法, 则该 IP 包进入到 "发送软件仿真模块", "转换为物理帧数据", "判断该物理帧是否可 以发送?", 可以发送, 则主站(1)在虚拟局域网(4)上根据用户端物理地址(如: MAC 地址、 ID 号等接收设备特有地址)向用户端发送局域网物理帧, 送到 "单 向通信设备" 上发送, 如否, 则丢弃该物理帧数据。 用户端接收数据流程大体 是这样: 用户端发送应答数据和其它数据, 在用户端(2)数据接收设备(10)上 安装发送软件仿真和转换程序, "判断外交互网是局域网还是广域网", 如是局 域网, 则 "按局域网物理帧格式打包" 后通过 "外交互网络" 送至主站方, 如 是广域网或因特网, 则 "按 IP 包格式打包" 后通过 "外交互网络" 送至主站 方。 As shown in Figures 2 and 3, it is a schematic diagram of the process of sending and receiving data for the master station (1) and the client (2). The process of sending data from the master station (1) is roughly as follows: Data from other network channels and external interactive networks enter the software simulation and conversion program of the master station, and first check whether it contains data of the physical frame or IP packet of the local area network, such as physical frame data. , Send to "Judge whether the physical frame should be sent?" If not, further check whether the received IP packet is legal, if not, discard the data packet. If it is legal, the IP packet enters the "send software simulation module", "converts to physical frame data", "determines whether the physical frame can be sent?", If it can be sent, the master station (1) is in the virtual local area network (4) According to the physical address of the client (such as MAC address, ID number and other unique address of the receiving device), the physical frame of the local area network is sent to the client and sent to the "unidirectional communication device". If not, the physical frame data is discarded. The process of receiving data by the client is roughly as follows: The client sends response data and other data, installs a software simulation and conversion program on the client (2) data receiving device (10), "determines whether the external interactive network is a local area network or a wide area network" If it is a local area network, it will be "packed according to the physical frame format of the local area network" and then sent to the master station through the "interactive interactive network". .
如图 4所示, 为单向卫星通信系统应用外交互虚拟局域网方法进行网络通 信的示意图。 As shown in Figure 4, it is a schematic diagram of network communication using the external interactive virtual local area network method for a one-way satellite communication system.
图 5 所示, 为该单向卫星通信系统应用外交互虚拟局域网网络数据流程示 意图, 其数据传输步骤如下: Figure 5 shows a schematic diagram of the external interactive virtual local area network data flow of the one-way satellite communication system. The data transmission steps are as follows:
主站(1)按照局域网标准在虚拟局域网(4)上向用户端发送局域网物理帧。 替换页 则第 26条)
即将应用程序的数据通过 TCP / UDP模块和 IP模块转换为 IP包后送到单向数 据发送设备(9)上, 单向数据发送设备(9)将 IP 数据打包为局域网物理帧后经 发送口发送到虚拟局域网(11)的单向物理信道 (4)上; The master station (1) sends the LAN physical frame to the user end on the virtual local area network (4) according to the local area network standard. (Replacement Article 26) That is, the application data is converted into IP packets through the TCP / UDP module and the IP module and sent to the one-way data sending device (9). The one-way data sending device (9) packs the IP data into a physical frame of the local area network and sends it through the sending port. Sent to the unidirectional physical channel (4) of the virtual local area network (11);
用户端(2)接收该局域网物理帧数据; The user terminal (2) receives the physical frame data of the local area network;
在用户端(2)数据接收设备(10)上安装发送软件仿真和转换程序, 用户端 发送数据时, 用户端应用程序相应通过 TCP / UDP模块和 IP模块将发送数据打 包为 IP 包后送到该用户端单向数据接收设备(10)上, 判断外交互网是局域网 还是广域网, 如是局域网, 单向数据接收设备(10)中安装的软件仿真和转换程 序将数据转换为局域网物理帧、 并重新加上 TCP / IP 的数据头通过外交互网络 (3)发送到主站的外交互网接收器上; 如是广域网或因特网, 单向数据接收设 备(10)直接将 IP 包按 TCP/IP 格式发送到外交互网(3)上, 并传送到外交互网 接收器上。 The sending software emulation and conversion program is installed on the data receiving device (10) on the client (2). When the client sends data, the client application sends the data to an IP packet through the TCP / UDP module and the IP module. The user-side unidirectional data receiving device (10) determines whether the external interactive network is a local area network or a wide area network. If it is a local area network, software simulation and conversion programs installed in the unidirectional data receiving device (10) convert the data into physical frames of the local area network, and The TCP / IP data header is added to the external interactive network receiver of the master station through the external interactive network (3); if it is a WAN or the Internet, the one-way data receiving device (10) directly converts the IP packet into the TCP / IP format Sent to the external interaction network (3), and transmitted to the receiver of the external interaction network.
在主站数据发送设备(9)上安装接收软件仿真和转换程序, 模拟接收设备, 用以接收上述局域网物理帧或 IP 包; 主站接收数据时, 主站(1)的外交互接收 器确认这个数据是局域网物理帧或 IP 包后, 将其传输给单向数据发送设备中 的软件仿真和转换程序, 经过其 IP层 I TCP层到达主站应用程序。 Install the receiving software simulation and conversion program on the master station data transmitting device (9) to simulate the receiving device to receive the above-mentioned LAN physical frame or IP packet; when the master station receives the data, the external interactive receiver of the master station (1) confirms This data is a LAN physical frame or IP packet, which is transmitted to the software emulation and conversion program in the unidirectional data sending device, and then reaches the master application program through its IP layer and TCP layer.
虚拟局域网物理帧的发送是通过虚拟局域网(4)实现的, 而其是接收通过 外交互网络(3)实现。 The sending of the physical frame of the virtual local area network is realized through the virtual local area network (4), and the receiving is realized through the external interactive network (3).
附图 6 为用户端为一局域网时, 本发明方法原理示意图。 若用户端为一局 域网时,用户端某台微机将整个局域网内所有微机的物理地址和 IP地址打成 IP 包的形式传送给主站局域网上指定的某台机器(一般为发端机)形成 IP 物理地 址对照表。 FIG. 6 is a schematic diagram of the method of the present invention when the client is a local area network. If the client is a local area network, a microcomputer on the client side sends the physical addresses and IP addresses of all the microcomputers in the entire LAN into an IP packet and sends it to a specified machine (usually the originating machine) on the host LAN to form an IP Physical address comparison table.
本发明突破了传统局域网对实际通信介质的各种限制, 从而打破了传统通 信系统中单向方式和双向方式相互孤立的格局, 将两者有机地结合在一起, 实 现资源共享; 本发明改造了现有的单向网络, 使之成为完整的外交互网络, 方 便地解决各种非外交互系统的互通网络问题, 可应用在单向卫星通信网络和单 向有线电视网络上, 也可应用在双向通信网络上; 本发明全面透明地支持多种 局域网协议, 支持各种局域网的应用软件。 The invention breaks through the various limitations of the traditional local area network on the actual communication medium, thereby breaking the pattern of one-way and two-way isolation in the traditional communication system, combining the two organically to achieve resource sharing; the invention transforms The existing one-way network makes it a complete external interaction network, which conveniently solves the interworking network problems of various non-interactive interactive systems. It can be applied to one-way satellite communication networks and one-way cable television networks, and it can also be used in On a two-way communication network, the present invention fully and transparently supports a variety of local area network protocols, and supports various local area network application software.
替换页
则第 26条)
Replace page Rule 26 )