[go: up one dir, main page]

CN103312829A - Heterogeneous network communication method and device - Google Patents

Heterogeneous network communication method and device Download PDF

Info

Publication number
CN103312829A
CN103312829A CN2012100687715A CN201210068771A CN103312829A CN 103312829 A CN103312829 A CN 103312829A CN 2012100687715 A CN2012100687715 A CN 2012100687715A CN 201210068771 A CN201210068771 A CN 201210068771A CN 103312829 A CN103312829 A CN 103312829A
Authority
CN
China
Prior art keywords
network
node
address
virtual
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012100687715A
Other languages
Chinese (zh)
Inventor
刘玮
牛亚文
陈宇
奚加荣
张勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN2012100687715A priority Critical patent/CN103312829A/en
Publication of CN103312829A publication Critical patent/CN103312829A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种异构网络通信方法和装置,网关设备预先在第一网络中设置与第二网络中节点对应的虚拟节点,记录真实地址与虚拟地址的对应关系,并将设置的虚拟节点的信息配置到第一网络中的节点上,该信息包括虚拟地址,该方法包括:所述网关设备接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点在第一网络中的虚拟地址;所述网关设备根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址;所述网关设备根据确定出的真实地址按照第二网络的协议重新封装所述报文,并转发所述报文到第二网络。采用本发明,可以实现在异构网络之间进行数据转发的过程中无需应用层的处理。

Figure 201210068771

The invention discloses a heterogeneous network communication method and device. A gateway device pre-sets a virtual node corresponding to a node in the second network in the first network, records the corresponding relationship between the real address and the virtual address, and stores the set virtual node The information configured on the node in the first network, the information includes a virtual address, the method includes: the gateway device receives a message sent by the node in the first network, and the destination address of the message is the node in the second network The virtual address in the first network; the gateway device determines the real address corresponding to the destination address of the message according to the corresponding relationship between the real address and the virtual address of the node in the second network; the gateway device determines the real address corresponding to the destination address of the message according to the determined The real address re-encapsulates the packet according to the protocol of the second network, and forwards the packet to the second network. By adopting the invention, it can be realized that the processing of the application layer is not required in the process of data forwarding between heterogeneous networks.

Figure 201210068771

Description

一种异构网络通信方法和装置A heterogeneous network communication method and device

技术领域 technical field

本发明涉及网络技术领域,特别是涉及一种异构网络通信方法和装置。The present invention relates to the field of network technology, in particular to a heterogeneous network communication method and device.

背景技术 Background technique

传感器网络是由许多在空间上分布的自动装置组成的一种计算机网络,这些装置使用传感器分别监控不同位置的物理或环境状况(比如温度、声音、振动、压力、运动或污染物等)。A sensor network is a computer network composed of many spatially distributed automatic devices that use sensors to monitor physical or environmental conditions (such as temperature, sound, vibration, pressure, motion or pollutants, etc.) at different locations.

传感器网络连接一个小范围空间区域的网络节点,并采集相关信息、接受远端的控制等。为了实现与远端服务器之间的数据交互,需要通过网关与其它网络进行连接,实现远程通信。而传感器网络多数采用私有的、基于非IP的网络技术,而与之相连的其它网络则多采用基于IP的网络技术。因此,如图1所示,传感器网络网关主要是通过其内部集成的传感器网络通信模块和其它网络通信模块,分别接收来自两个异构网络的报文,并在应用层解析得到报文中的数据后对数据进行相应的处理,以获取报文的目的地址,再对报文进行封装转发。The sensor network connects network nodes in a small space area, collects relevant information, and accepts remote control. In order to realize the data interaction with the remote server, it needs to connect with other networks through the gateway to realize remote communication. Most sensor networks use private, non-IP-based network technologies, while other networks connected to them mostly use IP-based network technologies. Therefore, as shown in Figure 1, the sensor network gateway mainly receives the messages from the two heterogeneous networks through its internal integrated sensor network communication module and other network communication modules, and analyzes the information in the message at the application layer. After the data is processed, the data is processed accordingly to obtain the destination address of the message, and then the message is encapsulated and forwarded.

在实现本发明的过程中,发明人发现现有技术至少存在如下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:

现有技术中,传感器网络网关必须要将异构网络中的数据解析到应用层,由应用层实现对数据的解析、处理、转发。通过应用层实现报文的转发,处理过程过于复杂,效率低下。而且,由于传感器网络应用众多,每个应用的逻辑、数据的格式并不相同,必须针对每种应用开发不同的传感器网络网关,因此,采用现有技术很难做到传感器网络网关的标准化。In the prior art, the sensor network gateway must parse the data in the heterogeneous network to the application layer, and the application layer implements the parsing, processing, and forwarding of the data. The packet forwarding is realized through the application layer, the processing process is too complicated and the efficiency is low. Moreover, due to the numerous sensor network applications, the logic and data formats of each application are different, and different sensor network gateways must be developed for each application. Therefore, it is difficult to standardize sensor network gateways using existing technologies.

发明内容 Contents of the invention

本发明实施例的目的在于提供一种异构网络通信的方法和装置,以实现在数据转发的过程中无需应用层的处理,为此,本发明实施例采用如下技术方案:The purpose of the embodiments of the present invention is to provide a method and device for heterogeneous network communication, so that no application layer processing is required in the process of data forwarding. Therefore, the embodiments of the present invention adopt the following technical solutions:

一种异构网络通信方法,网关设备预先在第一网络中设置与第二网络中节点对应的虚拟节点,记录节点在第二网络中的真实地址与在第一网络中的虚拟地址的对应关系,并将设置的虚拟节点的信息配置到第一网络中的节点上,该信息包括虚拟地址,该方法包括:A heterogeneous network communication method, the gateway device pre-sets virtual nodes corresponding to nodes in the second network in the first network, and records the corresponding relationship between the real address of the node in the second network and the virtual address in the first network , and configuring the set virtual node information on the nodes in the first network, the information includes a virtual address, the method includes:

所述网关设备接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点的虚拟地址;The gateway device receives a message sent by a node in the first network, and the destination address of the message is a virtual address of a node in the second network;

所述网关设备根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址;The gateway device determines the real address corresponding to the destination address of the message according to the corresponding relationship between the real address and the virtual address of the node in the second network;

所述网关设备根据确定出的真实地址按照第二网络的协议重新封装所述报文,并转发所述报文到第二网络。The gateway device re-encapsulates the message according to the protocol of the second network according to the determined real address, and forwards the message to the second network.

一种网关设备,包括:A gateway device, comprising:

设置模块,用于在第一网络中设置与第二网络中节点对应的虚拟节点,记录节点在第二网络中的真实地址与在第一网络中的虚拟地址的对应关系,并将设置的虚拟节点的信息配置到第一网络中的节点上;The setting module is used to set a virtual node corresponding to a node in the second network in the first network, record the corresponding relationship between the real address of the node in the second network and the virtual address in the first network, and set the virtual node The information of the node is configured on the node in the first network;

接收模块,用于接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点的虚拟地址;A receiving module, configured to receive a message sent by a node in the first network, where the destination address of the message is the virtual address of the node in the second network;

确定模块,用于根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址;A determining module, configured to determine the real address corresponding to the destination address of the message according to the corresponding relationship between the real address and the virtual address of the node in the second network;

转发模块,用于根据确定出的真实地址按照第二网络的协议重新封装所述报文,并转发所述报文到第二网络。A forwarding module, configured to repackage the message according to the protocol of the second network according to the determined real address, and forward the message to the second network.

本发明的上述实施例,网关设备接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点的虚拟地址,根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址,并根据确定出的真实地址按照第二网络的协议重新封装所述报文,然后转发所述报文到第二网络,从而可以实现在异构网络之间进行数据转发的过程中无需应用层的处理。In the above embodiment of the present invention, the gateway device receives the message sent by the node in the first network, the destination address of the message is the virtual address of the node in the second network, according to the real address and the virtual address of the node in the second network Corresponding relationship, determine the real address corresponding to the destination address of the message, and repackage the message according to the protocol of the second network according to the determined real address, and then forward the message to the second network, so as to realize In the process of data forwarding between heterogeneous networks, no application layer processing is required.

附图说明 Description of drawings

图1为现有技术中传感器网络网关的原理示意图;FIG. 1 is a schematic diagram of the principle of a sensor network gateway in the prior art;

图2为本发明实施例提供异构网络通信方法中初始设置流程的示意图;FIG. 2 is a schematic diagram of an initial setting process in a heterogeneous network communication method provided by an embodiment of the present invention;

图3为本发明实施例提供异构网络通信方法的流程示意图之一;FIG. 3 is one of the schematic flow diagrams of a heterogeneous network communication method provided by an embodiment of the present invention;

图4为本发明实施例提供异构网络通信方法的网络架构示意图;FIG. 4 is a schematic diagram of a network architecture providing a heterogeneous network communication method according to an embodiment of the present invention;

图5为本发明实施例提供异构网络通信方法的流程示意图之二;FIG. 5 is the second schematic flow diagram of a heterogeneous network communication method provided by an embodiment of the present invention;

图6为本发明实施例提供异构网络通信方法的流程示意图之三;FIG. 6 is a third schematic flow diagram of a heterogeneous network communication method provided by an embodiment of the present invention;

图7为本发明实施例提供异构网络通信方法的流程示意图之四;FIG. 7 is a fourth schematic flowchart of a heterogeneous network communication method provided by an embodiment of the present invention;

图8为本发明实施例提供的网关设备的结构示意图。FIG. 8 is a schematic structural diagram of a gateway device provided by an embodiment of the present invention.

具体实施方式 Detailed ways

下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整的描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Apparently, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

实施例一Embodiment one

本发明实施例提供了一种异构网络通信的方法,可以应用在异构网络中不同网络之间的边缘网关设备上。The embodiment of the present invention provides a heterogeneous network communication method, which can be applied to edge gateway devices between different networks in the heterogeneous network.

在本发明实施例中,异构网络在进行通信之前,网关设备可以预先在第一网络中设置与第二网络中节点对应的虚拟节点,记录节点在第二网络中的真实地址与在第一网络中的虚拟地址的对应关系,然后,将设置的虚拟节点的信息配置到第一网络中的节点上,该信息包括虚拟地址。其中,具有不同的网络协议的第一网络和第二网络共同构成异构网络,在下述具体的实施例中,第一网络可以是传感器网络,第二网络可以是IP网络,或者,第一网络是IP网络,第二网络是传感器网络;此处的节点,是网络中进行通信的基本网元;真实地址是节点的地址,虚拟地址是网关设备为第二网络中节点对应的虚拟节点分配的第一网络中的地址。如图2所示,具体的虚拟化(设置虚拟节点)和记录地址对应关系的过程可以包括以下步骤。In the embodiment of the present invention, before the heterogeneous network communicates, the gateway device can pre-set a virtual node corresponding to a node in the second network in the first network, and record the real address of the node in the second network and the node in the first network. The corresponding relationship of the virtual addresses in the network, and then configure the set virtual node information on the nodes in the first network, where the information includes the virtual addresses. Wherein, the first network and the second network having different network protocols jointly constitute a heterogeneous network. In the following specific embodiments, the first network may be a sensor network, and the second network may be an IP network, or the first network It is an IP network, and the second network is a sensor network; the node here is the basic network element for communication in the network; the real address is the address of the node, and the virtual address is allocated by the gateway device to the virtual node corresponding to the node in the second network An address in the first network. As shown in FIG. 2 , the specific process of virtualization (setting virtual nodes) and recording address correspondence may include the following steps.

步骤201,网关设备获取第二网络中需要与第一网络进行通信的节点的信息,该信息包括该节点在第二网络中的真实地址。In step 201, the gateway device obtains information about a node in the second network that needs to communicate with the first network, and the information includes the real address of the node in the second network.

在第二网络中,可以设置所有的节点都需要和第一网络中的节点进行通信,也可以设置只有部分的节点需要和第一网络中的节点进行通信。例如,传感器网络与IP网络的通信,IP网络中只有对传感器网络上报的信息进行相关处理的节点,才需要与传感器网络进行通信。所以,网关设备只需获取第二网络中这些需要和第一网络中的节点进行通信的节点的相关信息,如地址信息(真实地址)、节点类型信息(如统计平台、报警平台等)、节点标识信息等。In the second network, it may be set that all nodes need to communicate with nodes in the first network, or it may be set that only some nodes need to communicate with nodes in the first network. For example, in the communication between the sensor network and the IP network, only the nodes in the IP network that process the information reported by the sensor network need to communicate with the sensor network. Therefore, the gateway device only needs to obtain the relevant information of the nodes in the second network that need to communicate with the nodes in the first network, such as address information (real address), node type information (such as statistics platform, alarm platform, etc.), node identification information, etc.

步骤202,网关设备根据获取的信息,在第一网络中设置与获取到的第二网络中各节点对应的虚拟节点,并为各虚拟节点分配虚拟地址。In step 202, the gateway device sets virtual nodes in the first network corresponding to the obtained nodes in the second network according to the obtained information, and assigns virtual addresses to the virtual nodes.

具体的,网关设备可以根据获取到的第二网络中节点的信息,在第一网络中建立对应的虚拟节点,设置该虚拟节点的相关信息,如虚拟地址、节点类型、节点职能、节点标识、路由信息(将目的地址为该虚拟节点的虚拟地址的报文路由到网关设备)等,并根据第一网络的协议将建立的虚拟节点加入到第一网络中。Specifically, the gateway device can establish a corresponding virtual node in the first network according to the acquired information of the nodes in the second network, and set related information of the virtual node, such as virtual address, node type, node function, node ID, Routing information (routing the message whose destination address is the virtual address of the virtual node to the gateway device), etc., and adding the established virtual node to the first network according to the protocol of the first network.

进一步的,可以将设置的虚拟节点的信息配置到第一网络中的节点上。具体的,可以通过人工设置的方式将虚拟节点的信息配置到第一网络中的节点上。另外,可以由网关设备将设置的各虚拟节点的信息通知给第一网络中的各节点(具体可以是需要与第二网络进行通信的各节点),该信息可以包括虚拟地址,还可以包括节点类型、节点职能、节点标识等,另外还可以包括该虚拟节点的路由信息,该路由信息可以将目的地址为该虚拟节点的虚拟地址的报文路由到网关设备。虚拟节点的节点职能信息可以是,产生某种类型的信息时则发送到该虚拟节点,例如,IP网络中的报警平台对应的传感器网络中的虚拟节点为虚拟节点1,在虚拟节点1的信息中记录,产生报警信息时则向虚拟节点1发送。Further, the set virtual node information may be configured on nodes in the first network. Specifically, the information of the virtual node may be configured on the nodes in the first network through manual setting. In addition, the gateway device can notify each node in the first network (specifically, each node that needs to communicate with the second network) of the set virtual node information. The information can include the virtual address, and can also include the node Type, node function, node identifier, etc., may also include routing information of the virtual node, and the routing information may route packets whose destination address is the virtual address of the virtual node to the gateway device. The node function information of a virtual node can be sent to the virtual node when a certain type of information is generated, for example, the virtual node in the sensor network corresponding to the alarm platform in the IP network is virtual node 1, and the information in virtual node 1 Recorded in the center, when an alarm message is generated, it is sent to virtual node 1.

步骤203,网关设备记录获取到的第二网络中各节点的真实地址与虚拟地址的对应关系。具体的,可以建立地址对应关系表,用于记录各节点的真实地址和对应的虚拟地址。In step 203, the gateway device records the acquired correspondence between the real address and the virtual address of each node in the second network. Specifically, an address correspondence table may be established to record the real addresses and corresponding virtual addresses of each node.

如图3所示,为本发明实施例提供的异构网络通信过程的流程示意图,包括:As shown in FIG. 3, it is a schematic flowchart of a heterogeneous network communication process provided by an embodiment of the present invention, including:

步骤301,网关设备接收第一网络中节点发送的报文,报文的目的地址为第二网络中节点的虚拟地址。In step 301, the gateway device receives a message sent by a node in the first network, and the destination address of the message is the virtual address of the node in the second network.

经过了上述虚拟节点的设置过程后,当第一网络中的节点需要向第二网络中的节点发送报文时,其只会向相应的虚拟节点发送报文,发送的目的地址是第二网络中节点对应的虚拟地址(此虚拟地址是第一网络协议下的地址)。该报文经过第一网络路由到网关设备。After the above virtual node setting process, when a node in the first network needs to send a message to a node in the second network, it will only send a message to the corresponding virtual node, and the destination address is the second network The virtual address corresponding to the middle node (this virtual address is an address under the first network protocol). The message is routed to the gateway device through the first network.

网关设备接收第一网络中节点发送的报文,并根据第一网络的协议对报文进行解封装,获取报文的目的地址。The gateway device receives the message sent by the node in the first network, and decapsulates the message according to the protocol of the first network to obtain the destination address of the message.

步骤302,网关设备根据第二网络中节点的真实地址与虚拟地址的对应关系,确定报文的目的地址对应的真实地址,即确定此报文目标虚拟节点对应的第二网络中节点(报文发送的实际目标节点)的真实地址(此真实地址是第二网络协议下的地址)。Step 302, the gateway device determines the real address corresponding to the destination address of the message according to the correspondence between the real address and the virtual address of the node in the second network, that is, determines the node in the second network corresponding to the target virtual node of the message (the message The real address of the actual target node) (this real address is the address under the second network protocol).

步骤303,网关设备根据确定出的真实地址按照第二网络的协议重新封装所述报文,并转发所述报文。Step 303, the gateway device repackages the packet according to the determined real address according to the protocol of the second network, and forwards the packet.

具体的,网关设备将确定出的真实地址作为报文的目的地址,按照第二网络的协议重新封装报文,并将封装后的报文经过第二网络路由到该真实地址,即将报文路由到报文发送的实际目标节点。Specifically, the gateway device uses the determined real address as the destination address of the message, repackages the message according to the protocol of the second network, and routes the encapsulated message to the real address through the second network, that is, the message is routed to the actual destination node where the message is sent.

本发明实施例中,网关设备接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点的虚拟地址,根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址,并根据确定出的真实地址按照第二网络的协议重新封装所述报文,然后转发所述报文到第二网络,从而可以实现在异构网络之间进行数据转发的过程中无需应用层的处理。In the embodiment of the present invention, the gateway device receives the message sent by the node in the first network, the destination address of the message is the virtual address of the node in the second network, according to the correspondence between the real address and the virtual address of the node in the second network relationship, determine the real address corresponding to the destination address of the message, and repackage the message according to the protocol of the second network according to the determined real address, and then forward the message to the second network, so that the No application layer processing is required during data forwarding between heterogeneous networks.

实施例二Embodiment two

本发明实施例提供了一种异构网络通信的方法,可以应用在异构网络边缘网关设备上。The embodiment of the present invention provides a heterogeneous network communication method, which can be applied to a heterogeneous network edge gateway device.

在本发明实施例中,异构网络在进行通信之前,网关设备可以预先在第一网络中设置与第二网络中节点对应的虚拟节点,记录节点在第二网络中的真实地址与在第一网络中的虚拟地址的对应关系,然后,将设置的虚拟节点的信息配置到第一网络中的节点上,该信息包括虚拟地址;并预先在第二网络中设置与第一网络中节点对应的虚拟节点,记录节点在第一网络中的真实地址与在第二网络中的虚拟地址的对应关系,也可以将设置的虚拟节点的信息配置到第二网络中的节点上,该信息包括虚拟地址。由节点和虚拟节点组成的网络架构图可以如图4所示。In the embodiment of the present invention, before the heterogeneous network communicates, the gateway device can pre-set a virtual node corresponding to a node in the second network in the first network, and record the real address of the node in the second network and the node in the first network. The corresponding relationship of the virtual addresses in the network, and then configure the set virtual node information on the nodes in the first network, the information includes virtual addresses; and pre-set in the second network corresponding to the nodes in the first network Virtual node, record the corresponding relationship between the real address of the node in the first network and the virtual address in the second network, and also configure the information of the set virtual node to the node in the second network, the information includes the virtual address . A network architecture diagram composed of nodes and virtual nodes may be shown in FIG. 4 .

本发明实施例中,不但在第一网络中设置与第二网络中节点对应的虚拟节点,还在第二网络中设置与第一网络中节点对应的虚拟节点。而在第二网络中设置与第一网络中节点对应的虚拟节点的过程,与在第一网络中设置与第二网络中节点对应的虚拟节点的具体过程相同,可以参照实施例一中的具体内容,在此不做累述。In the embodiment of the present invention, not only virtual nodes corresponding to nodes in the second network are set in the first network, but virtual nodes corresponding to nodes in the first network are also set in the second network. The process of setting virtual nodes corresponding to nodes in the first network in the second network is the same as the specific process of setting virtual nodes corresponding to nodes in the second network in the first network. The content is not repeated here.

如图5所示,为本发明实施例提供的异构网络通信过程的流程示意图,包括:As shown in FIG. 5, it is a schematic flowchart of a heterogeneous network communication process provided by an embodiment of the present invention, including:

步骤501,网关设备接收第一网络中节点发送的报文,报文的目的地址为第二网络中节点的虚拟地址。Step 501, the gateway device receives a message sent by a node in the first network, and the destination address of the message is the virtual address of the node in the second network.

当第一网络中的节点需要向第二网络中的节点发送报文时,其可以将自身的真实地址作为报文的源地址,将目标虚拟节点的虚拟地址作为目的地址,根据第一网络的协议对数据进行封装得到相应的报文,并将该报文经过第一网络路由到网关设备。When a node in the first network needs to send a message to a node in the second network, it can use its own real address as the source address of the message and the virtual address of the target virtual node as the destination address. The protocol encapsulates the data to obtain a corresponding message, and routes the message to the gateway device through the first network.

网关设备接收第一网络中节点发送的报文,并根据第一网络的协议对报文进行解封装,获取报文的源地址和目的地址,其中,源地址为该第一网络中节点的真实地址,目的地址为该第二网络中节点的虚拟地址。The gateway device receives the message sent by the node in the first network, and decapsulates the message according to the protocol of the first network, and obtains the source address and destination address of the message, wherein the source address is the real address of the node in the first network. Address, where the destination address is the virtual address of the node in the second network.

步骤502,网关设备根据第二网络中节点的真实地址与虚拟地址的对应关系,确定报文的目的地址对应的真实地址;并根据第一网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的源地址对应的虚拟地址。Step 502, the gateway device determines the real address corresponding to the destination address of the message according to the correspondence between the real address and the virtual address of the node in the second network; and determines the corresponding relationship between the real address and the virtual address of the node in the first network A virtual address corresponding to the source address of the packet.

步骤503,网关设备将该第一网络中节点的虚拟地址作为所述报文的源地址(第二网络协议下的地址),将该第二网络中节点的真实地址作为报文的目的地址(第二网络协议下的地址),按照第二网络的协议重新封装所述报文,并根据该源地址和该目的地址对报文进行转发。Step 503, the gateway device uses the virtual address of the node in the first network as the source address of the message (the address under the second network protocol), and uses the real address of the node in the second network as the destination address of the message ( address under the second network protocol), repackage the message according to the protocol of the second network, and forward the message according to the source address and the destination address.

具体的,网关设备根据第二网络的协议,并根据此源地址和目的地址,对报文中的数据重新进行封装后,向第二网络中转发。报文在解封装之前,源地址和目的地址分别是第一网络中节点的真实地址和第二网络中节点的虚拟地址,此均为第一网络协议下的地址;而在重新封装后,新的源地址和目的地址分别是该第一网络中节点的虚拟地址和该第二网络中节点的真实地址,此均为第二网络协议下的地址。Specifically, the gateway device re-encapsulates the data in the message according to the protocol of the second network and according to the source address and destination address, and then forwards it to the second network. Before the message is decapsulated, the source address and destination address are the real address of the node in the first network and the virtual address of the node in the second network respectively, which are addresses under the first network protocol; after re-encapsulation, the new The source address and the destination address are respectively the virtual address of the node in the first network and the real address of the node in the second network, both of which are addresses under the second network protocol.

本发明实施例中,网关设备接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点的虚拟地址,根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址,并根据确定出的真实地址按照第二网络的协议重新封装所述报文,然后转发所述报文到第二网络,从而可以实现在异构网络之间进行数据转发的过程中无需应用层的处理。In the embodiment of the present invention, the gateway device receives the message sent by the node in the first network, the destination address of the message is the virtual address of the node in the second network, according to the correspondence between the real address and the virtual address of the node in the second network relationship, determine the real address corresponding to the destination address of the message, and repackage the message according to the protocol of the second network according to the determined real address, and then forward the message to the second network, so that the No application layer processing is required during data forwarding between heterogeneous networks.

本发明上述实施例一、二只是以第一网络和第二网络为例,对本发明实施例提供的异构网络通信方法进行阐述。需要指出的是,根据以上的方法,在两个以上的网络构成的异构网络中,可以实现其中任意网络之间的相互通信,而且各网络之间的通信可以在同一个标准化的网关设备上完成,例如,某网关设备依据本发明上述实施例提供的方法,既可以实现第一网络和第二网络的通信,又可以实现第二网络和第三网络的通信,还可以实现第一网络和第四网络的通信。在此标准化的网关设备上,只需对需要进行通信的网络进行相应的虚拟化和记录虚拟地址与真实地址对应关系的过程,便可进行相应网络的通信。The first and second embodiments of the present invention just use the first network and the second network as examples to describe the heterogeneous network communication method provided by the embodiments of the present invention. It should be pointed out that, according to the above method, in a heterogeneous network composed of two or more networks, the mutual communication between any of the networks can be realized, and the communication between the networks can be on the same standardized gateway device Complete, for example, according to the method provided by the above-mentioned embodiments of the present invention, a certain gateway device can not only realize the communication between the first network and the second network, but also realize the communication between the second network and the third network, and can also realize the communication between the first network and the third network. Fourth Network Communications. On this standardized gateway device, only the corresponding virtualization of the network that needs to communicate and the process of recording the corresponding relationship between the virtual address and the real address can be carried out, and the communication of the corresponding network can be carried out.

下面将结合具体的传感器网络与IP网络通信的应用场景,对本发明实施例提供的异构网络通信方法进行进一步阐述。The heterogeneous network communication method provided by the embodiment of the present invention will be further described below in combination with a specific application scenario of communication between a sensor network and an IP network.

实施例三Embodiment three

在温度传感网络的应用中,温度传感网络中设置有多个传感节点进行温度测量,传感节点将测量到的温度上报给汇聚节点,当汇聚节点判定某传感节点上报的温度超标时,则向IP网络中的报警平台(报警平台在IP网络中的地址为地址A)进行报警。In the application of temperature sensor network, multiple sensor nodes are set in the temperature sensor network for temperature measurement, and the sensor nodes report the measured temperature to the sink node. When the sink node determines that the temperature reported by a sensor node exceeds the standard , then send an alarm to the alarm platform in the IP network (the address of the alarm platform in the IP network is address A).

传感器网络网关(传感器网络与IP网络的边界网关)可以在温度传感网络中建立报警平台的虚拟节点,设置此虚拟节点的职能为传感节点进行温度超标上报的目标节点,为此虚拟节点分配虚拟地址(地址A’),并记录报警平台的真实地址(地址A)与虚拟地址(地址A’)的对应关系。虚拟节点建立完成后,传感器网络网关可以将这个虚拟节点的相关信息通知给温度传感网络中的各汇聚节点,通知内容可以包括:该虚拟节点的地址为地址A’,且该虚拟节点为传感节点温度超标时进行报警的目标节点,以及该虚拟节点的路由信息(将目标为该虚拟节点的报文路由到传感器网络网关)。The sensor network gateway (the border gateway between the sensor network and the IP network) can establish a virtual node of the alarm platform in the temperature sensing network, and set the function of this virtual node as the target node for the sensor node to report the temperature exceeding the standard. virtual address (address A'), and record the corresponding relationship between the real address (address A) and the virtual address (address A') of the alarm platform. After the virtual node is established, the sensor network gateway can notify the relevant information of the virtual node to each converging node in the temperature sensor network. The content of the notification can include: the address of the virtual node is address A', and the virtual node is The target node that gives an alarm when the temperature of the sensing node exceeds the standard, and the routing information of the virtual node (routing the message targeted at the virtual node to the sensor network gateway).

当某汇聚节点(汇聚节点1)判定接收到的某传感节点上报的温度超过温度阈值时,则进行如图6所示的报警流程,包括:When a sink node (sink node 1) determines that the temperature reported by a sensor node received exceeds the temperature threshold, the alarm process shown in Figure 6 is performed, including:

步骤601,汇聚节点1向地址A’发送携带报警信息的报文。In step 601, the aggregation node 1 sends a message carrying alarm information to address A'.

步骤602,该报文经过温度传感网络被路由到传感器网络网关。Step 602, the message is routed to the sensor network gateway through the temperature sensor network.

步骤603,传感器网络网关接收该报文,并对报文进行解封装,获取其目的地址为地址A’。Step 603, the sensor network gateway receives the message, decapsulates the message, and obtains its destination address as address A'.

步骤604,传感器网络网关根据其记录的IP网络中节点真实地址与其在温度传感网络中的虚拟地址的对应关系,确定地址A’对应的真实地址为地址A,即报警平台的在IP网络中的地址。Step 604, the sensor network gateway determines that the real address corresponding to address A' is address A according to the corresponding relationship between the real address of the node in the IP network recorded by it and its virtual address in the temperature sensor network, that is, the address of the alarm platform in the IP network the address of.

步骤605,传感器网络网关根据IP网络协议将此携带报警信息的报文重新封装,通过IP网络发送到地址A。Step 605, the sensor network gateway repackages the message carrying the alarm information according to the IP network protocol, and sends it to address A through the IP network.

步骤606,报警平台接收此携带报警信息的报文,并进行相应的报警处理。例如,向预设的移动终端发送短信报警。Step 606, the alarm platform receives the message carrying the alarm information, and performs corresponding alarm processing. For example, send a short message alarm to a preset mobile terminal.

本发明实施例中,网关设备接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点的虚拟地址,根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址,并根据确定出的真实地址按照第二网络的协议重新封装所述报文,然后转发所述报文到第二网络,从而可以实现在异构网络之间进行数据转发的过程中无需应用层的处理。In the embodiment of the present invention, the gateway device receives the message sent by the node in the first network, the destination address of the message is the virtual address of the node in the second network, according to the correspondence between the real address and the virtual address of the node in the second network relationship, determine the real address corresponding to the destination address of the message, and repackage the message according to the protocol of the second network according to the determined real address, and then forward the message to the second network, so that the No application layer processing is required during data forwarding between heterogeneous networks.

实施例四Embodiment four

在温度传感网络中,可以在IP网络中设置管理平台,管理员通过管理平台可以对温度传感网络中的各节点进行控制。In the temperature sensing network, a management platform can be set in the IP network, and the administrator can control each node in the temperature sensing network through the management platform.

传感器网络网关可以在IP网络中建立各汇聚节点的虚拟节点,设置虚拟节点的职能为信息汇聚,并为这些虚拟节点分配虚拟地址,并记录汇聚节点的虚拟地址与真实地址的对应关系。传感器网络网关还可以在温度传感网络中建立管理平台的虚拟节点,设置虚拟节点的职能为信息管理,并为该虚拟节点分配虚拟地址,并记录管理平台的虚拟地址与真实地址的对应关系。The sensor network gateway can establish virtual nodes of each aggregation node in the IP network, set the function of the virtual nodes as information aggregation, assign virtual addresses to these virtual nodes, and record the correspondence between the virtual addresses of the aggregation nodes and the real addresses. The sensor network gateway can also establish a virtual node of the management platform in the temperature sensor network, set the function of the virtual node as information management, assign a virtual address to the virtual node, and record the corresponding relationship between the virtual address and the real address of the management platform.

上述虚拟节点建立完成后,传感器网络网关可以将汇聚节点的虚拟节点的相关信息(包括虚拟地址)通知给IP网络,并将管理平台的虚拟节点的相关信息(包括虚拟地址)通知给温度传感网络。After the above-mentioned virtual nodes are established, the sensor network gateway can notify the IP network of the relevant information (including virtual addresses) of the virtual nodes of the sink node, and notify the relevant information (including virtual addresses) of the virtual nodes of the management platform to the temperature sensor network.

当管理员需要通过管理平台了解到某传感节点(传感节点a)处的温度信息时,则可以进行如图7所示的温度信息获取流程,包括:When the administrator needs to know the temperature information at a certain sensing node (sensing node a) through the management platform, the temperature information acquisition process as shown in Figure 7 can be performed, including:

步骤701,管理平台(真实地址为地址B)向汇聚节点1的虚拟节点(虚拟地址为地址1’)发送报文,报文中携带上报传感节点a温度信息的通知。在传感器网络网关通知的汇聚节点的虚拟节点的相关信息中,可以包括:汇聚节点1对传感节点a、传感节点b、传感节点c的温度信息进行汇总。Step 701, the management platform (the real address is address B) sends a message to the virtual node of the sink node 1 (the virtual address is address 1'), and the message carries a notification to report the temperature information of the sensor node a. The relevant information of the virtual node of the sink node notified by the sensor network gateway may include: the sink node 1 summarizes the temperature information of the sensor node a, sensor node b, and sensor node c.

步骤702,该报文经过IP网络被路由到传感器网络网关。Step 702, the message is routed to the sensor network gateway through the IP network.

步骤703,传感器网络网关接收该报文,并对报文进行解封装,获取其目的地址为地址1’,源地址为地址B。Step 703, the sensor network gateway receives the message, and decapsulates the message to obtain the destination address as address 1' and the source address as address B.

步骤704,传感器网络网关根据其记录温度传感网络中节点真实地址与虚拟地址的对应关系,确定地址1’对应的真实地址为地址1;根据IP网络中节点真实地址与虚拟地址的对应关系,确定地址B对应的虚拟地址为地址B’。Step 704, the sensor network gateway determines that the real address corresponding to address 1' is address 1 according to the corresponding relationship between the real address and the virtual address of the node in the recorded temperature sensor network; according to the corresponding relationship between the real address and the virtual address of the node in the IP network, It is determined that the virtual address corresponding to address B is address B'.

步骤705,传感器网络网关将地址1作为目的地址,地址B’作为源地址,根据传感器网络协议对报文进行重新封装,并通过温度传感网络发送到汇聚节点1。Step 705, the sensor network gateway uses address 1 as the destination address and address B' as the source address, repackages the message according to the sensor network protocol, and sends it to the sink node 1 through the temperature sensor network.

步骤706,汇聚节点1接收此报文后,获取传感节点a的温度信息,并上报给管理平台。具体的上报过程与实施例三中的报警过程相类似,在此不做累述。Step 706, after receiving the message, the aggregation node 1 obtains the temperature information of the sensor node a, and reports it to the management platform. The specific reporting process is similar to the alarming process in Embodiment 3, and will not be repeated here.

本发明实施例中,网关设备接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点的虚拟地址,根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址,并根据确定出的真实地址按照第二网络的协议重新封装所述报文,然后转发所述报文到第二网络,从而可以实现在异构网络之间进行数据转发的过程中无需应用层的处理。In the embodiment of the present invention, the gateway device receives the message sent by the node in the first network, the destination address of the message is the virtual address of the node in the second network, according to the correspondence between the real address and the virtual address of the node in the second network relationship, determine the real address corresponding to the destination address of the message, and repackage the message according to the protocol of the second network according to the determined real address, and then forward the message to the second network, so that the No application layer processing is required during data forwarding between heterogeneous networks.

实施例五Embodiment five

基于相同的技术构思,本发明实施例还提供了一种网关设备,可以用作传感器网络网关,如图8所示,该网关设备包括:Based on the same technical concept, the embodiment of the present invention also provides a gateway device that can be used as a sensor network gateway, as shown in Figure 8, the gateway device includes:

设置模块810,用于在第一网络中设置与第二网络中节点对应的虚拟节点,记录节点在第二网络中的真实地址与在第一网络中的虚拟地址的对应关系,并将设置的虚拟节点的信息配置到第一网络中的节点上;A setting module 810, configured to set a virtual node corresponding to a node in the second network in the first network, record the corresponding relationship between the real address of the node in the second network and the virtual address in the first network, and set the The information of the virtual node is configured on the node in the first network;

接收模块820,用于接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点的虚拟地址;A receiving module 820, configured to receive a message sent by a node in the first network, where the destination address of the message is the virtual address of the node in the second network;

确定模块830,用于根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址;A determining module 830, configured to determine the real address corresponding to the destination address of the message according to the corresponding relationship between the real address and the virtual address of the node in the second network;

转发模块840,用于根据确定出的真实地址按照第二网络的协议重新封装所述报文,并转发所述报文到第二网络。The forwarding module 840 is configured to repackage the message according to the protocol of the second network according to the determined real address, and forward the message to the second network.

优选的,preferred,

所述设置模块810,还用于在第二网络中设置与第一网络中节点对应的虚拟节点,并记录节点在第一网络中的真实地址与在第二网络中的虚拟地址的对应关系;The setting module 810 is further configured to set a virtual node corresponding to the node in the first network in the second network, and record the corresponding relationship between the real address of the node in the first network and the virtual address in the second network;

所述确定模块830,还用于根据第一网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的源地址对应的虚拟地址;The determination module 830 is further configured to determine the virtual address corresponding to the source address of the message according to the correspondence between the real address and the virtual address of the node in the first network;

所述转发模块840,具体用于将所述第一网络中节点的虚拟地址作为所述报文的源地址,将所述第二网络中节点的真实地址作为目的地址,按照第二网络的协议重新封装所述报文。The forwarding module 840 is specifically configured to use the virtual address of the node in the first network as the source address of the message, and use the real address of the node in the second network as the destination address, according to the protocol of the second network Re-encapsulate the message.

优选的,所述设置模块810,具体用于:Preferably, the setting module 810 is specifically used for:

获取第二网络中需要与第一网络进行通信的节点的信息,该信息包括真实地址;Obtain information about nodes in the second network that need to communicate with the first network, the information including real addresses;

根据获取的信息,在第一网络中设置与获取到的第二网络中各节点对应的虚拟节点,并为各虚拟节点分配虚拟地址;According to the obtained information, setting virtual nodes corresponding to the obtained nodes in the second network in the first network, and assigning virtual addresses to each virtual node;

记录获取到的第二网络中各节点的真实地址与虚拟地址的对应关系。Record the obtained corresponding relationship between the real address and the virtual address of each node in the second network.

优选的,所述转发模块840,具体用于将确定出的真实地址作为所述报文的目的地址,按照第二网络的协议重新封装所述报文。Preferably, the forwarding module 840 is specifically configured to use the determined real address as the destination address of the message, and re-encapsulate the message according to the protocol of the second network.

优选的,所述第一网络具体为传感器网络,所述第二网络具体为IP网络;或者,所述第一网络具体为IP网络,所述第二网络具体为传感器网络。Preferably, the first network is specifically a sensor network, and the second network is specifically an IP network; or, the first network is specifically an IP network, and the second network is specifically a sensor network.

本发明实施例中,网关设备接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点的虚拟地址,根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址,并根据确定出的真实地址按照第二网络的协议重新封装所述报文,然后转发所述报文到第二网络,从而可以实现在异构网络之间进行数据转发的过程中无需应用层的处理。In the embodiment of the present invention, the gateway device receives the message sent by the node in the first network, the destination address of the message is the virtual address of the node in the second network, according to the correspondence between the real address and the virtual address of the node in the second network relationship, determine the real address corresponding to the destination address of the message, and repackage the message according to the protocol of the second network according to the determined real address, and then forward the message to the second network, so that the No application layer processing is required during data forwarding between heterogeneous networks.

本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description in the embodiment, or can be located in one or more devices different from the embodiment according to corresponding changes. The modules in the above embodiments can be combined into one module, and can also be further split into multiple sub-modules.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端设备(可以是手机,个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a A terminal device (which may be a mobile phone, a personal computer, a server, or a network device, etc.) executes the methods described in various embodiments of the present invention.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (10)

1.一种异构网络通信方法,其特征在于,网关设备预先在第一网络中设置与第二网络中节点对应的虚拟节点,记录节点在第二网络中的真实地址与在第一网络中的虚拟地址的对应关系,并将设置的虚拟节点的信息配置到第一网络中的节点上,该信息包括虚拟地址,该方法包括:1. A heterogeneous network communication method, characterized in that the gateway device pre-sets a virtual node corresponding to a node in the second network in the first network, and records the real address of the node in the second network and the address in the first network The corresponding relationship of the virtual address, and configure the information of the set virtual node to the node in the first network, the information includes the virtual address, the method includes: 所述网关设备接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点的虚拟地址;The gateway device receives a message sent by a node in the first network, and the destination address of the message is a virtual address of a node in the second network; 所述网关设备根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址;The gateway device determines the real address corresponding to the destination address of the message according to the corresponding relationship between the real address and the virtual address of the node in the second network; 所述网关设备根据确定出的真实地址按照第二网络的协议重新封装所述报文,并转发所述报文到第二网络。The gateway device re-encapsulates the message according to the protocol of the second network according to the determined real address, and forwards the message to the second network. 2.如权利要求1所述的方法,其特征在于,还包括:网关设备预先在第二网络中设置与第一网络中节点对应的虚拟节点,并记录节点在第一网络中的真实地址与在第二网络中的虚拟地址的对应关系;2. The method according to claim 1, further comprising: the gateway device pre-sets a virtual node corresponding to a node in the first network in the second network, and records the real address of the node in the first network and the corresponding relationship of virtual addresses in the second network; 所述网关设备接收第一网络中节点发送的报文之后,还包括:所述网关设备根据第一网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的源地址对应的虚拟地址;After the gateway device receives the message sent by the node in the first network, it further includes: the gateway device determines the virtual address corresponding to the source address of the message according to the corresponding relationship between the real address and the virtual address of the node in the first network. address; 所述网关设备根据确定的真实地址按照第二网络的协议重新封装所述报文,具体为:所述网关设备将所述第一网络中节点的虚拟地址作为所述报文的源地址,将所述第二网络中节点的真实地址作为目的地址,按照第二网络的协议重新封装所述报文。The gateway device re-encapsulates the message according to the protocol of the second network according to the determined real address, specifically: the gateway device uses the virtual address of the node in the first network as the source address of the message, and sets The real address of the node in the second network is used as the destination address, and the packet is re-encapsulated according to the protocol of the second network. 3.如权利要求1所述的方法,其特征在于,所述网关设备预先在第一网络中设置与第二网络中节点对应的虚拟节点,记录节点在第二网络中的真实地址与在第一网络中的虚拟地址的对应关系,具体为:3. The method according to claim 1, wherein the gateway device pre-sets a virtual node corresponding to a node in the second network in the first network, and records the real address of the node in the second network and the address in the second network. A corresponding relationship of virtual addresses in the network, specifically: 所述网关设备获取第二网络中需要与第一网络进行通信的节点的信息,该信息包括真实地址;The gateway device acquires information about nodes in the second network that need to communicate with the first network, where the information includes a real address; 所述网关设备根据获取的信息,在第一网络中设置与获取到的第二网络中各节点对应的虚拟节点,并为各虚拟节点分配虚拟地址;The gateway device sets, in the first network, virtual nodes corresponding to the obtained nodes in the second network according to the obtained information, and assigns a virtual address to each virtual node; 所述网关设备记录获取到的第二网络中各节点的真实地址与虚拟地址的对应关系。The gateway device records the obtained corresponding relationship between the real address and the virtual address of each node in the second network. 4.如权利要求1所述的方法,其特征在于,所述网关设备根据确定出的真实地址按照第二网络的协议重新封装所述报文,具体为:4. The method according to claim 1, wherein the gateway device re-encapsulates the message according to the protocol of the second network according to the determined real address, specifically: 所述网关设备将确定出的真实地址作为所述报文的目的地址,按照第二网络的协议重新封装所述报文。The gateway device uses the determined real address as the destination address of the packet, and re-encapsulates the packet according to the protocol of the second network. 5.如权利要求1所述的方法,其特征在于,所述第一网络具体为传感器网络,所述第二网络具体为IP网络;或者,所述第一网络具体为IP网络,所述第二网络具体为传感器网络。5. The method according to claim 1, wherein the first network is specifically a sensor network, and the second network is specifically an IP network; or, the first network is specifically an IP network, and the second network is specifically an IP network. The second network is specifically a sensor network. 6.一种网关设备,其特征在于,包括:6. A gateway device, characterized in that, comprising: 设置模块,用于在第一网络中设置与第二网络中节点对应的虚拟节点,记录节点在第二网络中的真实地址与在第一网络中的虚拟地址的对应关系,并将设置的虚拟节点的信息配置到第一网络中的节点上;The setting module is used to set a virtual node corresponding to a node in the second network in the first network, record the corresponding relationship between the real address of the node in the second network and the virtual address in the first network, and set the virtual node The information of the node is configured on the node in the first network; 接收模块,用于接收第一网络中节点发送的报文,所述报文的目的地址为第二网络中节点的虚拟地址;A receiving module, configured to receive a message sent by a node in the first network, where the destination address of the message is the virtual address of the node in the second network; 确定模块,用于根据第二网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的目的地址对应的真实地址;A determining module, configured to determine the real address corresponding to the destination address of the message according to the corresponding relationship between the real address and the virtual address of the node in the second network; 转发模块,用于根据确定出的真实地址按照第二网络的协议重新封装所述报文,并转发所述报文到第二网络。A forwarding module, configured to repackage the message according to the protocol of the second network according to the determined real address, and forward the message to the second network. 7.如权利要求6所述的网关设备,其特征在于,7. The gateway device according to claim 6, wherein: 所述设置模块,还用于在第二网络中设置与第一网络中节点对应的虚拟节点,并记录节点在第一网络中的真实地址与在第二网络中的虚拟地址的对应关系;The setting module is also used to set a virtual node corresponding to the node in the first network in the second network, and record the corresponding relationship between the real address of the node in the first network and the virtual address in the second network; 所述确定模块,还用于根据第一网络中节点的真实地址与虚拟地址的对应关系,确定所述报文的源地址对应的虚拟地址;The determining module is further configured to determine the virtual address corresponding to the source address of the message according to the corresponding relationship between the real address and the virtual address of the node in the first network; 所述转发模块,具体用于将所述第一网络中节点的虚拟地址作为所述报文的源地址,将所述第二网络中节点的真实地址作为目的地址,按照第二网络的协议重新封装所述报文。The forwarding module is specifically configured to use the virtual address of the node in the first network as the source address of the message, and use the real address of the node in the second network as the destination address, and retransmit the message according to the protocol of the second network. Encapsulate the message. 8.如权利要求6所述的网关设备,其特征在于,所述设置模块,具体用于:8. The gateway device according to claim 6, wherein the setting module is specifically used for: 获取第二网络中需要与第一网络进行通信的节点的信息,该信息包括真实地址;Obtain information about nodes in the second network that need to communicate with the first network, the information including real addresses; 根据获取的信息,在第一网络中设置与获取到的第二网络中各节点对应的虚拟节点,并为各虚拟节点分配虚拟地址;According to the obtained information, setting virtual nodes corresponding to the obtained nodes in the second network in the first network, and assigning virtual addresses to each virtual node; 记录获取到的第二网络中各节点的真实地址与虚拟地址的对应关系。Record the obtained corresponding relationship between the real address and the virtual address of each node in the second network. 9.如权利要求6所述的网关设备,其特征在于,所述转发模块,具体用于将确定出的真实地址作为所述报文的目的地址,按照第二网络的协议重新封装所述报文。9. The gateway device according to claim 6, wherein the forwarding module is specifically configured to use the determined real address as the destination address of the message, and re-encapsulate the message according to the protocol of the second network arts. 10.如权利要求6所述的网关设备,其特征在于,所述第一网络具体为传感器网络,所述第二网络具体为IP网络;或者,所述第一网络具体为IP网络,所述第二网络具体为传感器网络。10. The gateway device according to claim 6, wherein the first network is specifically a sensor network, and the second network is specifically an IP network; or, the first network is specifically an IP network, and the The second network is specifically a sensor network.
CN2012100687715A 2012-03-15 2012-03-15 Heterogeneous network communication method and device Pending CN103312829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100687715A CN103312829A (en) 2012-03-15 2012-03-15 Heterogeneous network communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100687715A CN103312829A (en) 2012-03-15 2012-03-15 Heterogeneous network communication method and device

Publications (1)

Publication Number Publication Date
CN103312829A true CN103312829A (en) 2013-09-18

Family

ID=49137607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100687715A Pending CN103312829A (en) 2012-03-15 2012-03-15 Heterogeneous network communication method and device

Country Status (1)

Country Link
CN (1) CN103312829A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954224A (en) * 2015-06-09 2015-09-30 神州数码(中国)有限公司 Access method and device of IP (internet protocol) devices to sensor network
CN105763622A (en) * 2016-04-06 2016-07-13 株洲中车时代电气股份有限公司 Train formation reconnection method and formation reconnection device
CN113746670A (en) * 2021-08-12 2021-12-03 中国电子科技集团公司电子科学研究院 Cross-domain network management method and device based on network management server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1250997A (en) * 1998-08-17 2000-04-19 三星电子株式会社 Method for transmitting data between networks
CN1404270A (en) * 2001-08-21 2003-03-19 株式会社日立制作所 Information equipment, gate way equipment and control method thereof
CN101150566A (en) * 2006-09-19 2008-03-26 中兴通讯股份有限公司 Device and method for realizing network address translation protocol under isomerous network system
CN101471899A (en) * 2007-12-26 2009-07-01 上海贝尔阿尔卡特股份有限公司 Network data access method, access gateway and system capable of supporting sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1250997A (en) * 1998-08-17 2000-04-19 三星电子株式会社 Method for transmitting data between networks
CN1404270A (en) * 2001-08-21 2003-03-19 株式会社日立制作所 Information equipment, gate way equipment and control method thereof
CN101150566A (en) * 2006-09-19 2008-03-26 中兴通讯股份有限公司 Device and method for realizing network address translation protocol under isomerous network system
CN101471899A (en) * 2007-12-26 2009-07-01 上海贝尔阿尔卡特股份有限公司 Network data access method, access gateway and system capable of supporting sensor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954224A (en) * 2015-06-09 2015-09-30 神州数码(中国)有限公司 Access method and device of IP (internet protocol) devices to sensor network
CN104954224B (en) * 2015-06-09 2019-02-01 神州数码(中国)有限公司 The method and apparatus of IP device access sensor network
CN105763622A (en) * 2016-04-06 2016-07-13 株洲中车时代电气股份有限公司 Train formation reconnection method and formation reconnection device
CN113746670A (en) * 2021-08-12 2021-12-03 中国电子科技集团公司电子科学研究院 Cross-domain network management method and device based on network management server
CN113746670B (en) * 2021-08-12 2023-07-21 中国电子科技集团公司电子科学研究院 Cross-domain network management method and cross-domain network management device based on network management server

Similar Documents

Publication Publication Date Title
EP3958521B1 (en) Method and apparatus for providing service for service flow
CN103905447B (en) Service link selection control method and device
EP3154227A1 (en) Packet transmission method, node, path management server and storage medium
RU2661768C2 (en) Arp processing method, switch device and control module
CN109361606B (en) Message processing system and network equipment
WO2017054576A1 (en) Unicast tunnel building method, apparatus and system
CN104937896B (en) Address resolution protocol message processing method and forwarder and controller
CN103840976B (en) Communication means, light device and the network equipment
CN110999265A (en) Managing network connectivity between cloud computing service endpoints and virtual machines
CN111371634B (en) Communication method, device and system
CN1964282A (en) Remote management system, method and network device
CN104243302A (en) Service routing message processing method and device and network system
CN110380959B (en) Message forwarding method and device
CN107078963A (en) Traceroute in Virtual Extensible LAN
WO2016177145A1 (en) Packet transmission method and device
CN105591971A (en) QoS implementation method and device
CN102984175B (en) A kind of without IP monitoring frontend and a kind of agent apparatus
CN104539902A (en) IPC remote access method and system
CN104205729B (en) Method, device, and system for configuring device in network
CN107294743A (en) A kind of network path detection method, controller and the network equipment
CN105812221B (en) The device and method of data transmission in virtual expansible Local Area Network
CN103312829A (en) Heterogeneous network communication method and device
CN105897542B (en) A tunnel establishment method and video monitoring system
CN107113230B (en) Method, device and system for determining generic routing encapsulation GRE tunnel identifier
CN106453204A (en) Data message processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130918

RJ01 Rejection of invention patent application after publication