WO2013097400A1 - 一种网络设备绑定的方法、通信的方法、装置及系统 - Google Patents

一种网络设备绑定的方法、通信的方法、装置及系统 Download PDF

Info

Publication number
WO2013097400A1
WO2013097400A1 PCT/CN2012/075773 CN2012075773W WO2013097400A1 WO 2013097400 A1 WO2013097400 A1 WO 2013097400A1 CN 2012075773 W CN2012075773 W CN 2012075773W WO 2013097400 A1 WO2013097400 A1 WO 2013097400A1
Authority
WO
WIPO (PCT)
Prior art keywords
gateway
binding
address information
address
entry
Prior art date
Application number
PCT/CN2012/075773
Other languages
English (en)
French (fr)
Inventor
唐厚成
杨晖
邢志浩
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013097400A1 publication Critical patent/WO2013097400A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • H04L12/4625Single bridge functionality, e.g. connection of two networks over a single bridge
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, a method, a device, and a system for binding a network device.
  • Z igBee wireless sensor network technology is a wireless communication technology with close proximity, low complexity, low power consumption, low data rate and cost.
  • ZigBee is a communication protocol based on the IEEE 802. 15. 4 standard and operates in the industrial, scientific, and medical equipment (ISM) radio bands at 868/915 MHz and 2.4 GHz.
  • ZigBee has a transmission range from 10 to 100 meters in radius and supports transmission data rates from 20 to 250Kbps.
  • each ZigBee coordinator supports up to 255 devices, and a ZigBee network can support up to 65535 devices.
  • the Zigbee standard defines the network layer and application layer protocols (collectively referred to as the Zigbee standard or the Zigbee protocol stack) and is primarily used to support applications.
  • the network layer defines methods for joining and leaving the network, and methods for sending messages to the appropriate destination.
  • the network layer is also responsible for finding and maintaining multi-hop paths between nodes, searching and storing neighbor information.
  • the network layer is also responsible for: Initiating and maintaining a network and setting various network parameters; Assigning addresses to network devices and standardizing network address distribution principles.
  • the Zigbee Application Layer includes Application Support Sublayer (APS), Application Framework (AF), Zigbee device management, and application specific objects.
  • APS Application Support Sublayer
  • AF Application Framework
  • Zigbee device management and application specific objects.
  • the application support sublayer provides an interface between the network layer and the application, and maintains the correspondence between the application objects of the two network nodes that create the service.
  • the application support sublayer When a message enters the Zigbee device, the application support sublayer is responsible for forwarding the message to the appropriate application object.
  • Zigbee Device Management is responsible for the management of the overall system.
  • Each application object and the application support sublayer need to correspond to an endpoint, and the endpo int is equivalent to the port number or IP address unique to the application object, and is used to distinguish and identify different application objects.
  • a Zi gBee protocol stack supports 241 endpoints, where endpoint 0 is reserved for ZigBee device objects and endpoints 1-240 are assigned to different application objects.
  • the Z igBee application layer defines a binding mechanism, which establishes a one-way logical connection between the source endpoint or the cluster identifier c lus ter ID and the destination endpoint, which facilitates communication between application objects.
  • node A in the same ZigBee network communicates with node C, and establishes binding between node A and node C through the ZIGBEE APS layer. After binding, node A can know the address and port of node C without knowing it. This feature is especially important for sending APS packets to C, which is clear to the destination node and needs to maintain a one-way long connection (the connection object can be a group of devices).
  • the APS layer allows the ZigBee device to establish a designated destination for frames from a given source endpoint with a given c s ter ID.
  • Each specified target represents a specific endpoint on a particular device, or a multicast group address.
  • the embodiment of the invention provides a method for binding a network device, a method, a device and a system for the communication, and the first device establishes a binding relationship between the first gateway served by the first device and the second device in the service scope of the second gateway. In order to communicate, communication efficiency is improved.
  • the embodiment of the present invention provides a method for binding a network device, where the first device is within the service scope of the first gateway, and the second device is within the service scope of the second gateway, where the An apparatus, the first gateway is a ZIGBEE communication node, the method includes: the first gateway receives a binding request from the first device; and the first gateway establishes the first according to the binding request a first binding entry between the device and the second device; the first binding entry is used to record a correspondence between the first device, the first gateway, the second device, and the second gateway; a gateway sends a binding message to the second gateway according to the binding request, so that the second gateway establishes a second binding between the first device and the second device according to the binding message.
  • the second binding entry is used to record the correspondence between the first device, the first gateway, the second device, and the second gateway.
  • An embodiment of the present invention further provides a method for network device communication, where the first device is in the Within the service scope of the first gateway, the second device is within the service scope of the second gateway, the first device, the first gateway is a ZIGBEE communication node, and the first gateway stores the first binding a first binding entry is used to record a correspondence between the first device, the first gateway, the second device, and the second gateway; the second gateway stores a second binding entry, where The second binding entry is used to record the correspondence between the first device, the first gateway, the second device, and the second gateway; the method for the network device to communicate includes: the first gateway receiving the a data packet of the first device; acquiring, according to the first binding cluster identifier included in the data packet, the second gateway address from the first binding entry; according to the second gateway address, to the second Sending, by the gateway, the data packet, so that the second gateway receives the data packet of the first gateway, and obtains the second information from the second binding entry according to the first binding cluster identifier included in the data packet.
  • the embodiment of the present invention further provides a gateway, where the gateway provides a service for the first device, the gateway, the first device is a ZIGBEE communication node, and the gateway includes: a first receiving unit, configured to receive from the first a binding request of a device, where the first binding unit is configured to establish, according to the binding request, a first binding entry of the first device and the second device; Recording a correspondence between the first device, the gateway, the second device, and the second gateway; the first sending unit, configured to send, according to the binding request, a binding message to the second gateway, to And causing the second gateway to establish a second binding entry of the first device and the second device according to the binding message; the second binding entry is used to record the first device, the gateway Correspondence between the second device and the second gateway.
  • the embodiment of the present invention further provides a gateway, where the gateway provides a service for the second device, where the gateway includes: a second receiving unit, configured to receive a binding message from the first gateway; Establishing a second binding entry of the first device and the second device according to the binding message; the second binding entry is used to record the first device, the first gateway, the second device, Correspondence between the second gateways.
  • the embodiment of the invention further provides a gateway, where the gateway provides a service for the first device,
  • the gateway the first device is a ZIGBEE communication node
  • the gateway includes: a third receiving unit, configured to receive a data packet from the first device; a third address obtaining unit; configured to be included according to the data packet a binding cluster identifier is obtained from the first binding entry to obtain the second gateway address, and a third sending unit is configured to send the data packet to the second gateway, so that the second gateway receives the a data packet of the gateway, acquiring the second device address according to the first binding cluster identifier included in the data packet, and sending the data packet to the second device.
  • the embodiment of the present invention further provides a gateway, where the gateway provides a service for the second device, the gateway includes: a fourth receiving unit, configured to receive a data packet of the first gateway; and a fourth address obtaining unit, Obtaining the second device address according to the first binding cluster identifier included in the data packet, and the fourth sending unit, configured to send the data packet to the second device.
  • the embodiment of the present invention further provides a network system, where the system includes: a first device, a first gateway, a second device, and a second gateway, where: the first device is in the first gateway The first device, the first device is a ZIGBEE communication node, and the first device is configured to send to the first gateway, where the second device is within the service scope of the second gateway.
  • the first gateway receives a binding request from the first device; the first gateway establishes a first binding of the first device and the second device according to the binding request a first binding entry is used to record a correspondence between the first device, the first gateway, the second device, and the second gateway; the first gateway according to the binding request, The second gateway sends a binding message, so that the second gateway establishes a second binding entry of the first device and the second device according to the binding message; Recording the first setting Corresponding relationship between the first gateway, the second device, and the second gateway; the second gateway, configured to receive a binding message from the first gateway, and establish the first device according to the binding message a second binding entry with the second device; the second binding entry is used to record a correspondence between the first device, the first gateway, the second device, and the second gateway; The device is configured to establish a binding relationship with the first device.
  • An embodiment of the present invention further provides a network system, where the system includes: a device, a first gateway, a second device, and a second gateway, where: the first device is within the service scope of the first gateway, and the second device is within the service range of the second gateway, where The first device, the first gateway is a ZIGBEE communication node; the first device is configured to send a data packet to the first gateway; the first gateway is configured to receive a data packet from the first device; The first binding cluster identifier included in the data packet, the second gateway address is obtained from the first binding entry; and the data packet is sent to the second gateway according to the second gateway address; a second gateway, configured to receive a data packet from the first gateway, and obtain the second device address from the second binding entry according to the first binding cluster identifier included in the data packet; The second device sends the data packet; the second device is configured to receive a data packet from the second gateway, and communicate with the first device.
  • the embodiment of the present invention provides a network device binding method, a communication method, a device, and a system, where the first gateway establishes a first binding between the first device and the second device according to the binding request.
  • the first binding entry is used to record a correspondence between the first device, the first gateway, the second device, and the second gateway; and send a binding message to the second gateway, so that the The second gateway establishes a second binding entry of the first device and the second device according to the binding message; the second binding entry is used to record the first device, the first gateway, and the second
  • the correspondence between the device and the second gateway is improved by the first device establishing a binding relationship between the first gateway served by the first gateway and the second device in the service scope of the second gateway. Communication efficiency.
  • FIG. 2 is a schematic diagram of beneficial effects of communication after using the embodiment of the present invention
  • 3 is a schematic diagram of a process of establishing a binding service WSNConnection according to Embodiment 1 of the present invention
  • FIG. 4 is a schematic diagram of a data transmission process after establishing a binding service according to Embodiment 1 of the present invention
  • FIG. 5 is a first embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a data transmission process after the binding service is established in Embodiment 2 of the present invention
  • FIG. 7 is a schematic diagram of a process of establishing a binding service WSNConnection according to Embodiment 3 of the present invention
  • FIG. 8 is a schematic diagram of establishing Embodiment 3 of the present invention
  • FIG. 9 is a schematic diagram of communication according to Embodiment 4 of the present invention.
  • Figure 10 is a schematic diagram of a gateway in Embodiment 5 of the present invention.
  • FIG 11 is a schematic diagram of another gateway in Embodiment 5 of the present invention.
  • Figure 12 is a schematic diagram of a gateway in Embodiment 6 of the present invention.
  • FIG. 13 is a diagram showing another gateway in Embodiment 6 of the present invention.
  • FIG. 14 is a schematic diagram of a network device binding system in Embodiment 7 of the present invention.
  • FIG. 15 is a schematic diagram of another network device binding system in Embodiment 7 of the present invention. detailed description
  • PAN Personal Area Network, personal area network.
  • GW Gateway, the service gateway, which has certain network management capabilities, can maintain network management information (including network topology, node network information, monthly service information, etc.) within its jurisdiction and is responsible for managing ZigBee nodes in the network.
  • a border gateway (such as an IP network) that enters other networks.
  • EP Endpoint, the port in the ZigBee network, corresponding to a logical device, ZigBee network
  • the data packets in the data are all completed through the ports on each device.
  • Binding Binding, ZigBee end-to-end communication mode. After the two ports in the ZigBee network establish a binding relationship, they can communicate by Binding (APS mode 0).
  • Binding Table Maintains the binding mapping relationship after a device. In APS mode 0 communication, you need to query the binding table to obtain the target address and Endpoint address, and send data.
  • C lus ter A property of the binding table that is used to standardize the binding communication specification (ZigBee's Clus ter is a collection of specifications and commands for specification).
  • the gateway is an IP egress device in this network.
  • the Zi gBee node (Node 1) in this WPAN has other ZigBee nodes (Node 2) or this WPAN in the network.
  • node 3 When another Z igBee node (node 3) communicates, we can establish a binding entry Binding Entry to node 1 and node 3 in the APS binding table of node 1, so that node 1 and node 2 or node 3 Communication can be done directly by binding Binding, without carrying the destination address of node 2 and node 3 in the payload, as shown in Figure 1 and Figure 2.
  • the first device establishes a binding relationship with the second device that is served by the second gateway to perform communication, thereby improving communication efficiency.
  • the binding technology involved in the embodiment of the present invention is a binding across a gateway.
  • the specific implementation includes the following embodiments:
  • the source and destination nodes of the binding are exported with two different ZigBee gateways: a) Two Zi gBee gateways are in the same WPAN,
  • Two Zi gBee gateways are in different WPANs (WPAN1, WPAN2).
  • the destination node of Binding is multiple nodes (existing in multiple WPANs respectively).
  • Embodiment 1 of the present invention 1) Initial conditions
  • Node A (first device) needs to have a binding service with Node B (second device), for example, A is a central control room switch, B is an outdoor street light, A needs to establish a binding service with B, and gateway A (first gateway) And the gateway B (second gateway) is in the same ZigBee network, the node A is in the monthly service scope of the gateway A, and the gateway A is the service gateway of the node A (the cylinder is called GW1), and both A and GW1 are ZIGBEE communication nodes. .
  • Gateway B is the serving gateway (GW2) of Node B.
  • Node A needs to establish binding service with Node B (for example, A is the central control room switch, B is an outdoor street light, and A and B cannot directly communicate or directly communicate.
  • the overhead is very large, then A and B negotiate and inform GW1);
  • Node A and Node B belong to different GWs respectively;
  • the binding establishment process includes: the first gateway (Gateway A) receives the binding request from the first device (Node A);
  • the first gateway establishes a first binding entry of the first device and the second device (Node B) according to the binding request; the first binding entry is used to record the first device, the first gateway, the second device, and the first Corresponding relationship between the two gateways (the gateway B); the first gateway sends a binding message to the second gateway according to the binding request, so that the second gateway establishes the second device and the second device according to the binding message.
  • Binding entry; the second binding entry is used to record a correspondence between the first device, the first gateway, the second device, and the second gateway.
  • the second gateway receives the binding message from the first gateway, and establishes a second binding entry of the first device and the second device according to the binding message; the second binding entry is used to record the first device, the first gateway, Correspondence between the second device and the second gateway.
  • the binding request includes: address information of the first device, and address information of the second device;
  • the first binding entry includes: address information of the first device, first gateway address information, and second gateway address information;
  • the first binding cluster identifier is used to identify a binding relationship between the first device and the second device;
  • the binding message includes: Address information, first gateway address information, first gateway address information, address information of the second device, and the first binding cluster identifier;
  • the second binding entry includes: first gateway address information, address information of the first device, address information of the second device, address information of the second gateway, and the first binding cluster identifier.
  • the address information includes: a network address, or a physical address, or a port number, or a subnet identifier.
  • the method further includes: sending, by the second gateway, a binding response message to the first gateway.
  • the second gateway address information and the second device address are all multicast group address information, and are used to implement a multicast group binding relationship between the single first device and the multiple second devices.
  • first gateway address information and the first device address are all multicast group address information, and are used to implement multicast group binding between multiple first devices to a single second device or to implement multiple first Multicast group binding between the device and multiple second devices.
  • the second gateway receiving the binding message from the first gateway includes:
  • the second gateway receives the binding message from the first gateway through the virtual ZIGBEE node and port to implement node communication between different protocols.
  • GW1 first needs to register a new Endpoint (EPA) locally and establish a binding between EPA and EP1:
  • the application layer of GW1 sends a Bind-req command to the APS layer.
  • Binding Entry The format of the Binding Entry is:
  • ⁇ s, e, c ⁇ ⁇ ⁇ a, e ⁇ , ⁇ a, e ⁇ , .. ⁇ , ⁇ a, e ⁇ ⁇ , where s in ⁇ s, e, c ⁇ is the ZigBee address of GW1 (Network Addres s ), e is EPA, c is C lus ter ID; ⁇ ⁇ a, e ⁇ , ⁇ a, e ⁇ , .. ⁇ , ⁇ a, e ⁇ ⁇ can be instantiated as ⁇ node A in this embodiment Address, EP1 ⁇ ,
  • GW1 queries the address of Node B: i.
  • GWs service gateways
  • GW1 initiates a binding establishment command to GW2 CreateConnection. request:
  • the command includes the address of node A, the endpoint number of node A, the address of node B, the endpoint number of node B, and the cluster identifier Cluster1D.
  • GW2 receives the processing of CreateConnection. indication:
  • GW2 first needs to register a new Endpoint (EPB) locally, and establish the binding between EPB and EP2.
  • the establishment method is the same as a).
  • GW2 will locally establish a binding service entry (WSNConnection Entry) that serves the binding between EP1 and EP2, which is described as follows:
  • WSNConnections is a peer-to-peer-based peer entity between ZigBee nodes or between ZigBee nodes and non-ZigBee nodes, and maintains various attributes of the bound connection. These attributes include:
  • a local monthly service port configured to receive data based on the binding in the network, and the port is established simultaneously with the establishment of the binding
  • Local PANID local network ID number
  • Dst PANID describing the destination PAN address, used to implement cross-PAN communication, including PANID and ExPANID
  • dstAddress describing the destination node address, including IEEEAddress, NetworkAddress, and Al iasAddress
  • dstEndpoint used to describe the destination port number
  • the instance of Local Endpoint is EPB;
  • the local PANID is a personal area network identifier, which is not involved in this embodiment.
  • i.GWl will locally establish a binding service entry (WSNConnection Entry) that serves the binding between EP1 and EP2, in the same format as above.
  • WSNConnection Entry binding service entry
  • the local PANID is a personal area network identifier, which is not involved in this embodiment.
  • the first device is within the service scope of the first gateway, the second device is within the service scope of the second gateway, the first device, the first gateway is a ZIGBEE communication node, and the first gateway stores
  • the first binding entry is used to record the correspondence between the first device, the first gateway, the second device, and the second gateway;
  • the second gateway stores the second binding entry, and the second binding
  • the entry is used to record the correspondence between the first device, the first gateway, the second device, and the second gateway;
  • the method for the network device to communicate includes:
  • the binding request includes: address information of the first device, and address information of the second device;
  • the first binding entry includes: address information of the first device, first gateway address information, second gateway address information;
  • the first binding cluster identifier is used to identify the binding relationship between the first device and the second device;
  • the binding message includes: address information of the first device, the first gateway address Information, first gateway address information, address information of the second device, and the first binding cluster identifier;
  • the second binding entry includes: first gateway address information, address information of the first device, address information of the second device, address information of the second gateway, and the first binding cluster identifier.
  • the address information includes: a network address, or a physical address, or a port number, or a subnet identifier.
  • the method further includes: sending, by the second gateway, a binding response message to the first gateway.
  • the second gateway address information and the second device address are all multicast group address information, and are used to implement a multicast group binding relationship between the single first device and the multiple second devices.
  • first gateway address information and the first device address are all multicast group address information, and are used to implement multicast group binding between multiple first devices to a single second device or to implement multiple first Multicast group binding between the device and multiple second devices.
  • the second gateway receiving the binding message from the first gateway includes:
  • the second gateway receives the binding message from the first gateway through the virtual ZIGBEE node and port to implement node communication between different protocols.
  • the EPA on GW1 receives the data packet from node A, queries the WSNConnection table, finds the matching Entry, then proceeds to step ii, otherwise discards the data packet and proceeds to step i i i ,
  • step a) If the message of step a) requires a Default Response, the GW1 proxy B node replies to this Default Response command, and proceeds to step iv to send to GW2.
  • Bay' J discards the Message.
  • Iv. GW1 sends a packet to GW2 via Data, request.
  • the GW2 After receiving the Data, the GW2 queries the srcep_id and cluster ID stored in the local WSNConnection to obtain the EPB.
  • Ii. GW2 sends a message of APS mode 0 through EPB, and sends the message to node B. iii. ⁇ The message supports Default Response, and the first response is generated after the message is sent to the GW2. At this time, GW2 proxy node A processes the message.
  • Node B may generate Response Message after processing the message sent by node A.
  • Ii. GW2 is also sent to GW1 again.
  • the first device can perform communication by establishing a binding relationship between the first gateway served by the first device and the second device in the service scope of the second gateway, thereby improving communication efficiency.
  • Embodiment 2 of the present invention (1) Establish a binding relationship, as shown in Figure 5.
  • the two gateways belong to different ZigBee networks.
  • Gateway A (first gateway) and gateway B (second gateway) are in different ZigBee networks
  • node A (first device) is in the service scope of gateway A
  • gateway A is the service gateway of node A.
  • GW1 in the same way
  • gateway B is the serving gateway (GW2) of the node B (second device).
  • GW1 finds that node A needs to establish binding service with node B (for example, A is the central control room switch, B is outdoor) Street lights, A and B can not communicate directly or direct communication is very expensive, then A and B negotiate and inform GW1), GW1 will build a new ZigBee Endpoint (denoted as EPA);
  • the gateway A sends a Bind-req command to the APS layer through the ZDP command, establishes an EPA-to-node A binding table entry (Binding Entry) in GW1, and sends a CreateConnect ion. reques to the node B's serving gateway GW2.
  • the t command, the command parameters include the address of the node A, the port number, the address of the node B, the port number, and the bound cluster identifier (Clus ter lD ), the PAN ID of the gateway A, and the ExPANID.
  • GW2 After issuing the CreateConnection. response command, GW2 will locally establish a binding service entry (WSNConnect ion Entry) for AB and BA data communication. Similarly, GW1 receives the Crea teConnect ion. response command of GW2. After that, a binding service entry is created locally.
  • a (first device) sends a message to the port of GW1 (EPA) through APS_DATA-REQ, or sends the port to GW1 (first gateway) through bind (if A and GW1 establish a binding relationship)
  • the EPA port on GW1 receives the packet sent by A in step 1, and detects the source of the packet. Address and source port, if the message address matches, GW1 sends the message through WSNConnect ion. If the message sent by A in step 1 supports Defaul t response, GW1 agent node B replies to the response; if the source address or port of the message is detected If the local WSNConnect ion does not match, the message is discarded;
  • GW2 (the second gateway) searches the binding table of GW2 and Node B according to the srcep_id, Cluster lD and PANID stored in the WSNConnect, and finally sends the packet to B through the mode 0 of the APS (the second device). ), if the command supports Defaul t Response, the GW2 proxy node A connects to: and processes the Response;
  • the node B After the node B processes the packet sent by the node A, a response command is generated, and the source address is returned to the EPB port of the gateway B.
  • the GW2 determines that the node B sends a reply to the node A, and then passes the WSNConnect ion. Sended to GW1, GW1 queries the local WSNConnect ion and sends the reply to A, and the communication is completed.
  • GW1 first gateway
  • GW2 second gateway
  • the process of establishing a connection is basically the same as that in the first embodiment. The difference is that when Crea teConnect ion. reques t, the PANID and the PANID are carried. ExPANID two parameters; When establishing WSNConnect ion Entry, the peer PAN ID will also be recorded in the WSNConnect ion table.
  • A's APS_DATA_REQ packet payload does not contain any destination address, so for the application layer, it is transparent.
  • the first device establishes a binding relationship with the second device that is in the range of the second gateway service by using the first gateway that serves the first device to perform communication, thereby improving communication efficiency.
  • Embodiment 3 of the present invention
  • the binding relationship with the ZigBee gateway endpoint can be established in the same way as in the first embodiment.
  • gateway A is a ZigBee gateway
  • gateway B is a non-ZigBee gateway. They can communicate directly with each other, or can be a physical device (a device with two communication interfaces), and node B is a non-ZigBee node, when node B It is necessary to establish a connection with a Zi gBee node and run the ZigBee service (for example, in the Smar t Energy application, the physical layer communication technology can be a Z igBee device or a PLC device, and the SE Prof.
  • the payload occupied by address information in the manner described in Embodiment 1, as follows:
  • node A needs to establish the binding service with node B (for example, A is the central control room switch, B is an outdoor street light, A and B cannot communicate directly or the direct communication overhead is large, then A and B pass Negotiate and inform GWl) that GW1 will create a new ZigBee Endpoint (denoted as EPA), and at the same time, a virtual ZigBee communication node (non-ZigBee node, but can handle ZigBee messages) and port (ZigBee Endpoint) will be established on the gateway. );
  • the gateway A sends a Bind-req command to the APS layer, establishes an EPA-to-node A binding table entry (Binding Entry) in GW1, and sends a CreateConnect ion.reques t command to the gateway B.
  • the command parameters include the address of node A, the port number, the address of node B, the port number, and the bound cluster identifier (Clus ter ID).
  • GW2 After issuing the CreateConnection. response command, GW2 will locally establish a binding service entry (WSNConnect ion Entry) for AB and BA data communication. Similarly, GW1 receives the Crea teConnect ion. response command of GW2. After that, a binding service entry is created locally.
  • A sends a message to the port of GW1 (EPA) through APS_DATA_REQ, or sends it to the port of GW1 through bind (if A and GW1 establish a binding relationship)
  • the EPA port on GW1 receives the packet sent by A in step 1, and detects the source of the packet. Address and source port, if the message address matches, GW1 sends the message through WSNConnect ion. If the message sent by A in step 1 supports Defaul t response, GW1 agent node B replies to the response; if the source address or port of the message is detected If the local WSNConnect ion does not match, the message is discarded;
  • the gateway 1 matches the received data packet according to srcep-id and c lus ter lD. If the match is successful, the message is processed and sent to node B.
  • Node B After Node B processes the message of node A, it generates a Response command and sends it to gateway 2.
  • the gateway 2 sends it to gateway 1 through WSNConnect ion.
  • GW1 queries local WSNConnect ion and sends the reply to A. The communication is completed.
  • A's APS_DATA_REQ payload does not contain any destination address, so for the application layer, it is transparent.
  • the third embodiment is to communicate with different protocol networks, that is, GW1 belongs to the ZigBee network, and GW2 does not belong to the ZigBee network.
  • the process of establishing a binding connection is basically the same as that of the first embodiment. The difference is that a virtual ZigBee is first established in GW2. node.
  • the first device establishes a binding relationship with the second device that is in the range of the second gateway service by using the first gateway that serves the first device to perform communication, thereby improving communication efficiency.
  • Embodiment 4 of the present invention
  • the fourth embodiment is an extension of the second embodiment. Because the binding table can be bound to multiple target addresses, it is suitable for establishing multicast group-based binding, as shown in FIG.
  • the fourth embodiment is a synthesis of the first three embodiments, and is also a specific implementation of multicast group binding and WSNConnection, and the specific description is as follows:
  • the source node of the communication (Node A) is a node in the ZigBee network with PANID WPAN1 or a virtual node in the WPAN1 network. Because of the business requirements, it needs to be associated with the ZigBee node (Node B, Node C) in the WPAN2 network.
  • the communication scenario of the ZigBee node (node D) and the non-Zi gBee node (node E) in the WPAN3 network (the application scenario of this embodiment is that the node A is the node B, C, D, E centralized control node, A needs to maintain the connection with BCDE for a long time, and send multicast messages).
  • the first device establishes a binding relationship between the first gateway served by the first gateway and the second device (the second device is a plurality of multicast group nodes) in the service scope of the second gateway to perform communication, thereby improving Communication efficiency.
  • the second device is a plurality of multicast group nodes
  • the embodiment of the present invention provides a gateway.
  • the gateway 100 is a first device
  • the gateway 100 is a first gateway
  • the first gateway and the first device are ZIGBEE communication nodes
  • the first gateway includes: a receiving unit 105, configured to receive a binding request from the first device, where the first binding unit 101 is configured to establish, according to the binding request, a first binding entry of the first device and the second device; The entry is used to record the correspondence between the first device, the first gateway, the second device, and the second gateway.
  • the first sending unit 103 is configured to send a binding message to the second gateway according to the binding request, so that the The second gateway establishes a second binding entry of the first device and the second device according to the binding message.
  • the second binding entry is used to record the correspondence between the first device, the first gateway, the second device, and the second gateway.
  • the binding request includes: address information of the first device, and address information of the second device;
  • the first binding entry includes: address information of the first device, first gateway address information, second gateway address information;
  • the address information of the device, and the first binding cluster identifier; the first binding cluster identifier is used to identify a binding relationship between the first device and the second device;
  • the binding message includes: address information of the first device, first gateway address information, second gateway address information, address information of the second device, and a first binding cluster identifier;
  • the second binding entry includes: first gateway address information, address information of the first device, address information of the second device, address information of the second gateway, and the first binding cluster identifier.
  • the address information includes: a network address, or a physical address, or a port number, or a subnet identifier.
  • the second gateway address information and the second device address are all multicast group address information, and are used to implement a multicast group binding relationship between the single first device and the multiple second devices.
  • the first gateway address information and the first device address are all multicast group address information, and are used to implement multicast group binding between multiple first devices to a single second device or to implement multiple first Multicast group binding between the device and multiple second devices.
  • the embodiment of the present invention further provides another gateway.
  • the gateway 110 serves the second device, the gateway 110 is the second gateway, and the second gateway includes: a second receiving unit 111, configured to receive from the first a binding message of the gateway; the second binding unit 113 is configured to establish a second binding entry of the first device and the second device according to the binding message; the second binding entry is used to record the first device, the first gateway Correspondence between the second device and the second gateway.
  • the second gateway further includes: a second response unit, configured to send a response message to the first gateway after receiving the binding message from the first gateway.
  • a second response unit configured to send a response message to the first gateway after receiving the binding message from the first gateway.
  • the second gateway further includes: a second virtual unit, configured to receive, by the virtual ZIGBEE node and the port, a binding message from the first gateway to implement node communication between different protocols.
  • a second virtual unit configured to receive, by the virtual ZIGBEE node and the port, a binding message from the first gateway to implement node communication between different protocols.
  • the serving gateway GW1 of the node A needs to communicate with the nodes B, C, D, and E, and GW1 creates a new Zi gBee Endpoint (EPA) and maintains a WSNConnect ion bound to the port of the node A.
  • EPA Zi gBee Endpoint
  • the structure of the WSNConnec ion is described as follows:
  • Upper Interface connects to the high-level connection management entity, which is used to remote Zi GBee Endpoint or other means of communication (eg ZigBee over Mm-ware)
  • the virtual ZigBee endpoint image is local, and the Upper Interface directly interacts with ZigBee APS layer data.
  • Connect ion management is used to manage the binding connection and is responsible for completing the binding, deleting the binding, and sending and receiving data.
  • Connect ion management supports primitives.
  • the primitives use the request-response method for communication between objects, including Request, Response, Confirm, Indicat:
  • CreateConnection is used to establish the Connection Entry between two binding entities; DeleteConnection is used to delete the Connection; AddDestAddr is to add a new binding table entry in the peer Connection Entries, for example, the binding content in the original binding table only contains A destination address, through which the group binding can be implemented on the basis of the original binding; the Listener is used to listen to each WSNConnection callback command; Data is used to transmit APS packets between the binding entities.
  • the WSNConnect ions are peer-to-peer entities based on cross-gateway binding between ZigBee nodes or ZigBee nodes and non-ZigBee nodes, and maintain various attributes of the bound connection. These attributes include:
  • Local Endpoint local service port used to receive data based on the binding in the network.
  • the port is established at the same time as the binding is established.
  • ⁇ s, e, c ⁇ ⁇ ⁇ url, dstPANID, gateway address (not limited to IP connection)
  • dstAddress, dstEndpoint ⁇ or Dst PANID describes the destination PAN address, used for real
  • dstPANID now cross-PAN communication, including PANID and ExPANID dstAddress, dstEndpoint ⁇ , ⁇ , dstAddress describes the destination node address, including
  • dstEndpoint is used to describe the destination port number.
  • the first device establishes a binding relationship with the second device that is in the range of the second gateway service by using the first gateway that serves the first device to perform communication, thereby improving communication efficiency.
  • Embodiment 6 of the present invention
  • an embodiment of the present invention provides a gateway 120, where the gateway 120 is a first gateway, where the first device is within the service scope of the first gateway, and the second device is in the service scope of the second gateway.
  • the first device, the first gateway is a ZIGBEE communication node, the first gateway receives a binding request from the first device, and the binding request is used to establish a binding relationship between the first device and the second device; the gateway is bound according to the binding a first binding entry is established between the first device and the second device; the first binding entry is used to record a correspondence between the first device, the first gateway, the second device, and the second gateway; Binding the request, sending a binding message to the second gateway, so that the second gateway establishes a second binding entry of the first device and the second device according to the binding message; the second binding entry is used to record the first device, a correspondence between a gateway, a second device, and a second gateway;
  • the first gateway includes: a third receiving unit 121, configured to receive a data
  • the binding request includes: address information of the first device, and address information of the second device;
  • the first binding entry includes: address information of the first device, first gateway address information, second gateway address information;
  • the address information of the device, and the first binding cluster identifier; the first binding cluster identifier is used to identify a binding relationship between the first device and the second device;
  • the binding message includes: address information of the first device, first gateway address information, second gateway address information, address information of the second device, and the first binding cluster identifier;
  • the second binding entry includes: the first gateway address The information, the address information of the first device, the address information of the second device, the address information of the second gateway, and the first binding cluster identifier.
  • the address information includes: a network address, or a physical address address, or a port number, or a subnet identifier.
  • the embodiment of the present invention further discloses a gateway 1 30 , where the gateway 130 is a second gateway, the first device is within the service scope of the first gateway, and the second device is at the second gateway.
  • the first device, the first gateway is a ZIGBEE communication node, the first gateway receives a binding request from the first device, and the binding request is used to establish a binding relationship between the first device and the second device;
  • the gateway establishes a first binding entry of the first device and the second device according to the binding request;
  • the first binding entry is used to record a correspondence between the first device, the first gateway, the second device, and the second gateway;
  • the first gateway sends a binding message to the second gateway according to the binding request, so that the second gateway establishes a second binding entry of the first device and the second device according to the binding message;
  • the second binding entry is used for recording a correspondence between a device, a first gateway, a second device, and a second gateway;
  • the second gateway includes: a fourth receiving unit 1 31, configured to receive a data packet of the first gateway; a fourth address obtaining unit 133, configured to identify the second binding entry according to the first binding cluster included in the data packet Obtained Taking the second device address; the fourth sending unit 135 is configured to send the data packet to the second device.
  • the second gateway further includes: a fourth response unit, configured to send a data packet to the first gateway.
  • the second gateway further includes: a fourth virtual unit, configured to receive the data packet from the first gateway by using the virtual ZIGBEE node and the port to implement device communication between different protocols.
  • the first device establishes a binding relationship with the second device that is in the range of the second gateway service by using the first gateway that serves the first device to perform communication, thereby improving communication efficiency.
  • Embodiment 7 of the present invention
  • the embodiment of the present invention further provides a network system.
  • the first device 141 is within the service range of the first gateway 140
  • the second device 151 is within the service range of the second gateway 150.
  • the first gateway is a ZIGBEE communication node, and the system includes: a first device, configured to send a binding request to the first gateway, where the binding request is used to establish a binding relationship between the first device and the second device; For receiving a binding request from the first device, establishing a first binding entry of the first device and the second device according to the binding request, where the first binding entry is used to record the first device, the first gateway, and the first Corresponding relationship between the second device and the second device; sending, according to the binding request, a binding message to the second gateway, so that the second gateway establishes a second binding entry of the first device and the second device according to the binding message;
  • the second binding entry is used to record the correspondence between the first device, the first gateway, the second device, and the second gateway; the second gateway is configured to receive the
  • the first gateway includes: a first receiving unit, configured to receive a binding request from the first device, where the binding request is used to establish a binding relationship between the first device and the second device; Establishing a first binding entry of the first device and the second device according to the binding request; the first binding entry is used to record a correspondence between the first device, the first gateway, the second device, and the second gateway; a first sending unit, configured to send a binding message to the second gateway according to the binding request, so that the second gateway Establishing a second binding entry of the first device and the second device according to the binding message; the second binding entry is used to record a correspondence between the first device, the first gateway, the second device, and the second gateway;
  • the gateway includes: a second receiving unit, configured to receive a binding message from the first gateway; a second binding unit, configured to establish a second binding entry of the first device and the second device according to the binding message; The entry is used to record the correspondence between the first device, the first gateway, the second device, and the second gateway.
  • the first device establishes a binding relationship with the second device that is in the range of the second gateway service by using the first gateway that serves the first device to perform communication, thereby improving communication efficiency.
  • Embodiment 8 of the present invention
  • the embodiment of the present invention further provides a network system.
  • the first device 161 is within the service range of the first gateway 160
  • the second device 171 is within the service range of the second gateway 170.
  • the device, the first gateway is a ZIGBEE communication node, and the system includes: a first device, configured to send a data packet to the first gateway; and a first gateway, configured to identify, according to the first binding cluster included in the data packet, the first binding Obtaining a second gateway address in the entry; sending a data packet to the second gateway, so that the second gateway receives the data packet of the first gateway, and acquiring the second binding entry according to the first binding cluster identifier included in the data packet to obtain the second Device address; sends a packet to the second device.
  • a second gateway configured to receive a data packet of the first gateway, obtain a second device address according to the first binding cluster identifier included in the data packet, and send the data packet to the second device; Used for data communication with the first device.
  • the first gateway includes:
  • a third receiving unit configured to receive a data packet from the first device, and a third address obtaining unit, configured to obtain a second gateway address according to the first binding cluster identifier included in the data packet to obtain the second gateway address;
  • a sending unit configured to send a data packet to the second gateway, so that the second gateway receives the data packet of the first gateway, and obtains the second device address according to the second binding entry of the first binding cluster identifier included in the data packet.
  • the second gateway includes: a fourth receiving unit, configured to receive the data packet of the first gateway; and a fourth address obtaining unit, configured to identify, according to the first binding cluster included in the data packet
  • the second binding entry acquires the second device address;
  • the fourth sending unit is configured to send to the second device Send a data packet.
  • the first device establishes a binding relationship with the second device that is in the range of the second gateway service by using the first gateway that serves the first device to perform communication, thereby improving communication efficiency.
  • the present invention can be implemented by means of software plus necessary general hardware including general-purpose integrated circuits, general-purpose CPUs, general-purpose memories, general-purpose components, and the like.
  • dedicated hardware including an application specific integrated circuit, a dedicated CPU, a dedicated memory, a dedicated component, etc., but in many cases, the former is a better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk, etc. includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention.
  • the sequence of the steps in the foregoing method embodiments may be adjusted according to actual application requirements, and each step may be combined to form a new solution according to actual application requirements.
  • the units and modules in the above device embodiments may be divided according to actual application requirements, or may be recombined.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例提供了一种网络设备绑定的方法,第一设备、第一网关为ZIGBEE通信节点,第一网关根据第一设备和第二设备的绑定请求,建立用于记录第一设备、第一网关、第二设备、第二网关之间的对应关系的第一绑定条目;第一网关根据该绑定请求,向第二网关发送绑定消息,以使第二网关根据该绑定消息建立用于记录第一设备、第一网关、第二设备、第二网关之间的对应关系的第二绑定条目。本发明实施例还提供了通信的方法、装置及系统。通过本发明实施例,第一设备通过为其服务的第一网关与位于第二网关服务范围内的第二设备建立绑定关系以便进行通信,提高了通信效率。

Description

一种网络设备绑定的方法、 通信的方法、 装置及系统 技术领域
本发明涉及通信技术领域, 尤其涉及一种网络设备绑定的方法、 通信的 方法、 装置及系统。
背景技术
Z igBee无线传感器网络技术是一种近距离、 低复杂度、 低功耗、 低数据 速率和成本的无线通信技术。 ZigBee是基于 IEEE 802. 15. 4标准的通信协议 研制发开的, 并工作在 868/915MHz和 2. 4GHz的工业、 科学及医药设备(ISM) 无线电波段。 ZigBee具有半径为 10到 100米的传输范围,并支持 20到 250Kbps 的传输数据速率。 同时每个 ZigBee协调器最多支持 255个设备, 一个 ZigBee 网络则最多可支持 65535个设备。 Zigbee标准定义了网络层和应用层协议(整 体称作 Zigbee标准或 Zigbee协议栈), 主要用于支持应用。 网络层定义了加 入和离开网络的方法, 及将消息发送到适当目的地的方法。 网络层还负责找 寻并维护节点间的多跳路径, 搜寻和储存邻节点信息。 对于网络协调器来说, 网络层还需要负责: 发起和维护一个网络和设定各项网络参数; 为加入网络 设备分配地址并规范网络地址分发原则。 Zigbee应用层(APL)包含应用支持子 层(APS)、 应用框架(AF)、 Zigbee设备管理以及具体应用对象。 通常具体应用 对象都在应用框架中实现, 并且应用框架为应用对象和 APS提供接口。 应用 支持子层为网络层和应用之间提供接口, 维护创建服务的两个网络节点应用 对象间的对应关系。 当有消息进入 Zigbee设备, 应用支持子层负责将消息转 送到恰当的应用对象。 Zigbee设备管理专门负责整体系统的管理事务。 其中 每个应用对象与应用支持子层通信需要对应一个 endpoint , endpo int相当于 该应用对象独有的端口号或者 IP地址, 用于区别和标识出不同的应用对象。 一个 Zi gBee协议栈支持 241个 endpoint , 其中 endpoint 0预留给 ZigBee设 备对象使用, endpoint 1—240分配给不同的应用对象使用。 Z igBee应用层定义了绑定机制, 它为源 endpoint或簇标识 c lus ter ID 与目的 endpoint之间建立了单向逻辑连接, 使得应用对象之间的通信变得便 捷。例如同一个 ZigBee的网络中的节点 A与节点 C进行通信,通过 ZIGBEE APS 层建立节点 A和节点 C之间绑定, 绑定之后, 节点 A就可以在不用知道节点 C 的地址和端口的情况下, 向 C发送 APS报文, 对于目的节点明确, 并且需要 保持单向长连接(连接对象可以是一组设备) 的场景, 该特性尤为重要。
APS层允许 ZigBee设备为来自给定源端点并带有一个给定 c lus ter ID的 帧, 建立一个指定的目的地。 每个指定的目标代表具体设备上的一个具体端 点, 或一个组播群地址。
在现有技术中, 位于不同网关的设备相互之间不能进行绑定通信, 通信 效率不高。
发明内容
本发明实施例提供了一种网络设备绑定的方法、 通信的方法、 装置及系 统, 第一设备通过为其服务的第一网关与位于第二网关服务范围内的第二设 备建立绑定关系以便进行通信, 提高了通信效率。
本发明实施例提供了一种网络设备绑定的方法, 第一设备在所述第一网 关的服务范围之内, 所述第二设备在所述第二网关的服务范围之内, 所述第 一设备、 第一网关为 ZIGBEE通信节点, 所述方法包括: 所述第一网关接收来 自所述第一设备的绑定请求; 所述第一网关根据所述绑定请求, 建立所述第 一设备与所述第二设备的第一绑定条目; 所述第一绑定条目用于记录所述第 一设备、 第一网关、 第二设备、 第二网关之间的对应关系; 所述第一网关根 据所述绑定请求, 向所述第二网关发送绑定消息, 以使所述第二网关根据所 述绑定消息建立所述第一设备与所述第二设备的第二绑定条目; 所述第二绑 定条目用于记录所述第一设备、 第一网关、 第二设备、 第二网关之间的对应 关系。
本发明实施例还提供了一种网络设备通信的方法, 所述第一设备在所述 第一网关的服务范围之内, 所述第二设备在所述第二网关的服务范围之内, 所述第一设备、 第一网关为 ZIGBEE通信节点, 所述第一网关存储有第一绑定 条目, 所述第一绑定条目用于记录所述第一设备、 第一网关、 第二设备、 第 二网关之间的对应关系; 所述第二网关存储有第二绑定条目, 所述第二绑定 条目用于记录所述第一设备、 第一网关、 第二设备、 第二网关之间的对应关 系; 所述网络设备通信的方法包括: 所述第一网关接收来自所述第一设备的 数据包; 根据所述数据包中包括的第一绑定簇标识, 从第一绑定条目中获取 所述第二网关地址; 根据所述第二网关地址, 向所述第二网关发送所述数据 包, 以使所述第二网关接收所述第一网关的数据包, 根据所述数据包中包括 的第一绑定簇标识从第二绑定条目中获取所述第二设备地址; 根据所述第二 设备地址, 向所述第二设备发送所述数据包。
本发明实施例还提供了一种网关, 所述网关为第一设备提供服务, 所述 网关、 第一设备为 ZIGBEE通信节点, 所述网关包括: 第一接收单元, 用于接 收来自所述第一设备的绑定请求; 第一绑定单元, 用于根据所述绑定请求, 建立所述第一设备与所述第二设备的第一绑定条目; 所述第一绑定条目用于 记录所述第一设备、 所述网关、 第二设备、 第二网关之间的对应关系; 第一 发送单元, 用于根据所述绑定请求, 向所述第二网关发送绑定消息, 以使所 述第二网关根据所述绑定消息建立所述第一设备与所述第二设备的第二绑定 条目; 所述第二绑定条目用于记录所述第一设备、 所述网关、 第二设备、 第 二网关之间的对应关系。
本发明实施例还提供了一种网关, 所述网关为第二设备提供服务, 所述 网关包括: 第二接收单元, 用于接收来自第一网关的绑定消息; 第二绑定单 元, 用于根据所述绑定消息建立所述第一设备与所述第二设备的第二绑定条 目; 所述第二绑定条目用于记录所述第一设备、 第一网关、 第二设备、 第二 网关之间的对应关系。
本发明实施例还提供了一种网关, 所述网关为第一设备提供服务, 所述 网关、 第一设备为 ZIGBEE通信节点, 所述网关包括: 第三接收单元, 用于接 收来自所述第一设备的数据包; 第三地址获取单元; 用于根据所述数据包中 包括的第一绑定簇标识到第一绑定条目中获取所述第二网关地址; 第三发送 单元, 用于向所述第二网关发送所述数据包, 以使所述第二网关接收所述第 一网关的数据包, 根据所述数据包中包括的第一绑定簇标识道第二绑定条目 获取所述第二设备地址; 向所述第二设备发送所述数据包。
本发明实施例还提供了一种网关, 所述网关为第二设备提供服务, 所述 网关包括; 第四接收单元, 用于接收所述第一网关的数据包; 第四地址获取 单元, 用于根据所述数据包中包括的第一绑定簇标识道第二绑定条目获取所 述第二设备地址; 第四发送单元, 用于向所述第二设备发送所述数据包。
本发明实施例还提供了一种网络系统, 其特征在于, 所述系统包括: 第 一设备、 第一网关、 第二设备和第二网关, 其中: 所述第一设备在所述第一 网关的服务范围之内, 所述第二设备在所述第二网关的服务范围之内, 所述 第一设备、 第一网关为 ZIGBEE通信节点; 所述第一设备, 用于向第一网关发 送绑定请求; 所述第一网关, 接收来自所述第一设备的绑定请求; 所述第一 网关根据所述绑定请求, 建立所述第一设备与所述第二设备的第一绑定条目; 所述第一绑定条目用于记录所述第一设备、 第一网关、 第二设备、 第二网关 之间的对应关系; 所述第一网关根据所述绑定请求, 向所述第二网关发送绑 定消息, 以使所述第二网关根据所述绑定消息建立所述第一设备与所述第二 设备的第二绑定条目; 所述第二绑定条目用于记录所述第一设备、 第一网关、 第二设备、 第二网关之间的对应关系; 所述第二网关, 用于接收来自所述第 一网关的绑定消息, 根据所述绑定消息建立所述第一设备与所述第二设备的 第二绑定条目; 所述第二绑定条目用于记录所述第一设备、 第一网关、 第二 设备、 第二网关之间的对应关系; 所述第二设备, 用于和第一设备建立绑定 关系。
本发明实施例还提供了一种网络系统, 其特征在于, 所述系统包括: 第 一设备、 第一网关、 第二设备和第二网关, 其中: 第一设备在所述第一网关 的服务范围之内, 所述第二设备在所述第二网关的服务范围之内, 所述第一 设备、 第一网关为 ZIGBEE通信节点; 所述第一设备, 用于向第一网关发送数 据包; 所述第一网关, 用于接收来自所述第一设备的数据包; 根据所述数据 包中包括的第一绑定簇标识, 从第一绑定条目中获取所述第二网关地址; 根 据所述第二网关地址, 向所述第二网关发送所述数据包; 所述第二网关, 用 于接收来自所述第一网关的数据包, 根据所述数据包中包括的第一绑定簇标 识, 从所述第二绑定条目中获取所述第二设备地址; 向所述第二设备发送所 述数据包; 所述第二设备, 用于接收来自所述第二网关的数据包, 与所述第 一设备进行通信。
本发明实施例提供了一种网络设备绑定的方法、 通信的方法、 装置及系 统, 第一网关根据所述绑定请求, 建立所述第一设备与所述第二设备的第一 绑定条目; 所述第一绑定条目用于记录所述第一设备、 第一网关、 第二设备、 第二网关之间的对应关系; 向所述第二网关发送绑定消息, 以使所述第二网 关根据所述绑定消息建立所述第一设备与所述第二设备的第二绑定条目; 所 述第二绑定条目用于记录所述第一设备、 第一网关、 第二设备、 第二网关之 间的对应关系, 通过本发明实施例, 第一设备通过为其服务的第一网关与位 于第二网关服务范围内的第二设备建立绑定关系以便进行通信, 提高了通信 效率。
附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中 所需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图是本发明 的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提 下, 还可以根据这些附图获得其他的附图。
图 1是现有技术下通信的示意图;
图 2是采用本发明实施例后通信的有益效果示意图; 图 3是本发明实施例 1绑定月良务 WSNConnection建立过程示意图; 图 4是本发明实施例 1建立绑定服务后的数据发送过程示意图; 图 5是本发明实施 1绑定月良务 WSNConnection建立过程示意图; 图 6是本发明实施例 2建立绑定服务后的数据发送过程示意图; 图 7是本发明实施例 3绑定月良务 WSNConnection建立过程示意图; 图 8是本发明实施例 3建立绑定服务后的数据发送过程示意图; 图 9是本发明实施例 4的通信示意图。
图 10是本发明实施例 5中一种网关的示意图。
图 11是本发明实施例 5中另一种网关的示意图。
图 12是本发明实施例 6中一种网关的示意图。
图 13是本发明实施例 6中另一种网关的示意图。
图 14是本发明实施例 7中一种网络设备绑定系统的示意图。
图 15是本发明实施例 7中另一种网络设备绑定系统的示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。
a)名词解释
PAN: Personal Area Network, 个域网。
GW: Gateway, 服务网关, 它具有一定的网络管理能力, 可以维护其管辖 范围内网络管理信息 (包括网络拓朴、 节点的网络信息、 月良务信息等) 并负 责管理网络中的 ZigBee节点接入其他网络的边界网关(例如 IP网)。
EP: Endpoint, ZigBee网络中的端口, 对应一种逻辑设备, ZigBee网络 中的数据报文都是通过各个设备上的端口来完成。
Binding: 绑定, ZigBee端到端的一种通信方式, 当 ZigBee网络中的两 个端口建立绑定关系之后, 可以通过 Binding的方式(APS的方式 0 )来通信。
Binding Table: 维护在某个设备之后的绑定映射关系, APS方式 0通信, 需要通过查询这个绑定表来获取目标地址和 Endpoint地址, 并发送数据。
C lus ter : 绑定表的一个属性, 用于规范绑定的通信规范 (ZigBee 的 Clus ter是用于规范一堆属性和命令的集合)。
在一个 WPAN (无线个域网)网络中, 网关是这个网络中的一个 IP出口设 备, 这个 WPAN中的 Zi gBee节点 (节点 1 )如果有与网络中的其他 ZigBee节 点 (节点 2 )或者这个 WPAN外的另外一个 Z igBee节点 (节点 3 )通信时, 我 们可以在节点 1 的 APS绑定表中建立一个到达节点 1和节点 3 的绑定条目 Binding Entry, 这样节点 1与节点 2或节点 3进行通信, 就可以直接通过绑 定 Binding的方式完成, 而不需要在负载中携带节点 2和节点 3的目的地址, 如图 1、 图 2所示。 通过本发明实施例, 第一设备通过为其服务的第一网关与 位于第二网关服务范围内的第二设备建立绑定关系以便进行通信, 提高了通 信效率。
本发明实施例所涉及的绑定技术是一种跨网关的绑定, 具体实现包括以 下几个实施例:
1、 binding的源和目的节点在以两个不同的 ZigBee网关为出口: a)两个 Zi gBee网关在同一个 WPAN中,
b)两个 Zi gBee网关在不同的 WPAN中 (WPAN1、 WPAN2 )。
1、 Binding的源和目的节点,一个在 Zi gBee网络中, 另一个在非 ZigBee 网络中。
3、 Binding的目的节点为多个节点 (分别存在于多个 WPAN中)。
下面将结合附图对本发明实施例作进一步地详细描述。
本发明实施例一 1)初始条件
a)节点 A (第一设备)需要有与节点 B (第二设备) 的 binding业务, 比 如 A是中控室开关, B是室外某路灯, A需要与 B建立 binding业务,网关 A (第 一网关)和网关 B (第二网关)在同一个 ZigBee网络中,节点 A在网关 A的月良务 范围, 称网关 A是节点 A的服务网关(筒称 GWl ), A和 GW1均为 ZIGBEE通信 节点。 网关 B为节点 B的服务网关(GW2 ), 当 GW1发现节点 A需要建立与节 点 B的绑定业务之后 (例如 A是中控室开关, B是室外某路灯, A和 B不能直 接通信或直接通信开销很大, 则 A和 B通过协商并告知 GW1 );
b)节点 A和节点 B分别属于不同的 GW;
c) Binding关系由业务驱使, 由一方的服务网关来发起绑定的建立;
叚设节点 A上的 Endpoint为 EP1 , 节点 B上的 Endpoint为 EP2。
2)绑定建立过程包括: 第一网关 (网关 A )接收来自第一设备(节点 A ) 的绑定请求;
第一网关根据该绑定请求, 建立第一设备与第二设备(节点 B )的第一绑 定条目; 该第一绑定条目用于记录第一设备、 第一网关、 第二设备、 第二网 关(网关 B )之间的对应关系; 第一网关根据该绑定请求, 向第二网关发送绑 定消息, 以使第二网关根据绑定消息建立第一设备与第二设备的第二绑定条 目; 该第二绑定条目用于记录第一设备、 第一网关、 第二设备、 第二网关之 间的对应关系。
第二网关接收来自第一网关的绑定消息, 根据该绑定消息建立第一设备 与第二设备的第二绑定条目; 该第二绑定条目用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系。
进一步的, 该绑定请求包括: 第一设备的地址信息, 第二设备的地址信 息; 该第一绑定条目包括: 第一设备的地址信息, 第一网关地址信息, 第二 网关地址信息; 第二设备的地址信息, 以及第一绑定簇标识; 第一绑定簇标 识用于标识第一设备和第二设备的绑定关系; 该绑定消息包括: 第一设备的 地址信息, 第一网关地址信息, 第一网关地址信息, 第二设备的地址信息, 以及第一绑定簇标识;
第二绑定条目包括: 第一网关地址信息, 第一设备的地址信息, 第二设 备的地址信息, 第二网关的地址信息, 以及第一绑定簇标识。
进一步的, 地址信息包括: 网络地址、 或物理地址、 或端口号、 或子网 标识。
可选的, 在第二网关接收来自第一网关的绑定消息之后, 还包括: 第二 网关向第一网关发送绑定响应消息。
进一步的, 第二网关地址信息、 第二设备地址均为组播群地址信息, 用 于实现单个第一设备和多个第二设备之间的组播群绑定关系。
进一步的, 第一网关地址信息、 第一设备地址均为组播群地址信息, 用 于实现多个第一设备到单个第二设备之间的组播群绑定或者用于实现多个第 一设备到多个第二设备之间的组播群绑定。
进一步的, 第二网关接收来自第一网关的绑定消息包括:
第二网关通过虚拟的 ZIGBEE节点和端口接收来自第一网关的绑定消息以 实现不同协议之间的节点通信。
具体如图 3所示。
a) GW1首先需要在本地注册一个新的 Endpoint (EPA) , 并建立 EPA和 EP1 的绑定:
i . GW1的应用层向 APS层发出 Bind-req命令,
i i. GW1的 APS层接收到 Bind-req之后,会在本地生成一个绑定表条目 (Binding Entry) , Binding Entry的格式为:
{s, e, c} = { {a, e}, {a, e}, ..·, {a, e} },其中 {s, e, c}中的 s为 GW1的 ZigBee 地址 ( Network Addres s ), e为 EPA, c为 C lus ter ID; { {a, e}, {a, e}, ..·, {a, e} } 在本实施例中可实例化为 {节点 A的地址, EP1} ,
b) GW1查询节点 B的地址: i.通过向其他服务网关(GWs)广播方式查找(本实施例中未保护服务发现 以及查找方法),
ii. 找到之后获取节点 B的服务网关 GW2。
c) GW1向 GW2发起绑定建立命令 CreateConnection. request:
i.该命令中包含节点 A的地址、 节点 A的 Endpoint号、 节点 B的地址、 节点 B的 Endpoint号以及绑定的簇标识 ClusterlD,
d) GW2接收到 CreateConnection. indication的处理:
i. GW2首先需要在本地注册一个新的 Endpoint (EPB) , 并建立 EPB与 EP2 的绑定, 建立方法与 a)相同,
ii. EPB 与 EP2 绑 定 建 立 成 功 之 后 , GW2 回 复 CreateConnect ion. response给 GW1 ,
iii. GW2会在本地建立一个服务于 EP1和 EP2之间绑定的绑定服务条目 (WSNConnection Entry) , 其描述如下:
WSNConnections为 ZigBee节点之间或 ZigBee节点与非 ZigBee节点之间 的基于跨网关绑定的对等实体, 维护绑定连接的各个属性, 这些属性包括:
Local Endpoint, 本地月良务端口, 用于接收网络中基于本绑定的数据, 该端口随绑定的建立同时建立;
Local Binding Entry, {s, e, c} = { {a, e} , {a, e} , {a, e} } 维护网 关本地绑定表, 该表的作用是向本网内发送绑定 4艮文;
Local PANID, 本地网络 ID号;
Remote Binding Table , {s, e, c} = { {ur 1, dstPANID, dstAddress, dstEndpoint} ¾ { {ipaddr, port} , dstPANID, ds tAddress, dstEndpoint } , -.. {ur 1, dstPANID, dstAddress, dstEndpoint }}其中 ur 1 和 {ipaddr, port} 描述目的网关地址(不限于 IP连接);
Dst PANID, 描述目的 PAN地址, 用于实现跨 PAN通信, 包括 PANID和 ExPANID; dstAddress, 描述目的节点地址, 包括 IEEEAddress, NetworkAddress 和 Al iasAddress;
dstEndpoint, 用于描述目的端口号;
其中 Local Endpoint的实例为 EPB;
Local Binding Entry可实例为: {GW2的 ZigBee地址, EPB, Cluster ID} = {B的 ZigBee地址, EP2} ,
Local PANID为个域网标识, 本实施例中未涉及;
Remote Binding Table可实例 ^匕为: {B的 ZigBee地址, EP2, , Cluster ID} = {GW1的 url地址, GW1所在 PAN的标识, 节点 A的地址, EP1} ,
e) GW1接收到 CreateConnection. confirm后处理:
i.GWl 会在本地建立一个服务于 EP1 和 EP2 之间绑定的绑定服务条目 (WSNConnection Entry) , 其格式与上面相同,
其中 Local Endpoint的实例为 EPA;
Local Binding Entry可实例为: {GW1的 ZigBee地址, EPA, Cluster ID} = {A的 ZigBee地址, EP1} ,
Local PANID为个域网标识, 本实施例中未涉及;
Remote Binding Table可实例 ^匕为: {A的 ZigBee地址, EP1, , Cluster ID} = {GW2的 url地址, GW2所在 PAN的标识, 节点 B的地址, EP2}。
(2)利用 binding进行通信, 第一设备在第一网关的服务范围之内, 第 二设备在第二网关的服务范围之内,第一设备、第一网关为 ZIGBEE通信节点, 第一网关存储有第一绑定条目, 第一绑定条目用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系; 第二网关存储有第二绑定条目, 第二 绑定条目用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关 系; 网络设备通信的方法包括:
第一网关接收来自第一设备的数据包; 根据数据包中包括的第一绑定簇 标识, 从第一绑定条目中获取第二网关地址; 根据第二网关地址, 向第二网 关发送数据包, 以使第二网关接收第一网关的数据包, 根据数据包中包括的 第一绑定簇标识从第二绑定条目中获取第二设备地址; 根据第二设备地址, 向第二设备发送数据包。
进一步的, 绑定请求包括: 第一设备的地址信息, 第二设备的地址信息; 第一绑定条目包括: 第一设备的地址信息, 第一网关地址信息, 第二网关地 址信息; 第二设备的地址信息, 以及第一绑定簇标识; 第一绑定簇标识用于 标识第一设备和第二设备的绑定关系; 绑定消息包括: 第一设备的地址信息, 第一网关地址信息, 第一网关地址信息, 第二设备的地址信息, 以及第一绑 定簇标识;
第二绑定条目包括: 第一网关地址信息, 第一设备的地址信息, 第二设 备的地址信息, 第二网关的地址信息, 以及第一绑定簇标识。
进一步的, 地址信息包括: 网络地址、 或物理地址、 或端口号、 或子网 标识。
可选的, 在第二网关接收来自第一网关的绑定消息之后, 还包括: 第二 网关向第一网关发送绑定响应消息。
进一步的, 第二网关地址信息、 第二设备地址均为组播群地址信息, 用 于实现单个第一设备和多个第二设备之间的组播群绑定关系。
进一步的, 第一网关地址信息、 第一设备地址均为组播群地址信息, 用 于实现多个第一设备到单个第二设备之间的组播群绑定或者用于实现多个第 一设备到多个第二设备之间的组播群绑定。
进一步的, 第二网关接收来自第一网关的绑定消息包括:
第二网关通过虚拟的 ZIGBEE节点和端口接收来自第一网关的绑定消息以 实现不同协议之间的节点通信。
具体如图 4所示。
a) A到 GW1
i . A通过 APS方式 0 ( Binding方式)或方式 1 ( Unicas t方式)发送数据 包 (Message )到 GW1的 EPA (说明: 必须发送到 EPA) ,
b) GW1到 GW2
i. GW1上的 EPA接收到来自节点 A的数据包, 则查询 WSNConnection表, 找到匹配的 Entry, 则转步骤 ii, 否则丢弃该数据包并转步骤 i i i ,
ii. 如果步骤 a)的 Message需要 Default Response, 则 GW1代理 B节 点回复这个 Default Response命令, 转步骤 iv发送到 GW2,
iii. 如果未查询到相应的 Entry, 贝' J丢弃该 Message,
iv. GW1通过 Data, request发送数据包到 GW2。
c) GW2到节点 A
i. GW2接收到 Data, indication之后,查询本地 WSNConnect ion中存储的 srcep_id和 cluster ID获取 EPB,
ii. GW2通过 EPB发送 APS方式 0的消息, 将 Message发送到节点 B, iii. ^口果该 Message支持 Default Response, 贝1 J节^、 B接 Message 之后会产生这个 Default Response, 并发送给 GW2, 此时 GW2代理节点 A处 理该消息。
d)节点 B 处理完节点 A发送的 Message 之后, 可能会产生 Response Message
i. B Response Message回复给 GW2的 EPB ( ZigBee的响应是原路返 回的 ),
ii. GW2同样再发送给 GW1,
iii. GW1发送给 A,
通信完成。
本发明实施例中, 可以实现第一设备通过为其服务的第一网关与位于第 二网关服务范围内的第二设备建立绑定关系后进行通信, 提高了通信效率。 本发明实施例二 ( 1 )建立绑定关系, 如图 5所示。
当一个 ZigBee网关与另一个 ZigBee网关进行绑定时, 两网关属于不同 ZigBee网络。
1、 网关 A (第一网关)和网关 B (第二网关)在不同的 ZigBee网络中, 节 点 A (第一设备)在网关 A的服务范围, 称网关 A是节点 A的服务网关(筒称 GW1 ), 同理, 网关 B为节点 B (第二设备)的服务网关(GW2 ), 当 GW1发现节 点 A需要建立与节点 B的绑定业务之后 (例如 A是中控室开关, B是室外某路 灯, A和 B不能直接通信或直接通信开销很大,则 A和 B通过协商并告知 GW1 ), GW1会建个新的 ZigBee Endpoint (记为 EPA);
2、 网关 A通过 ZDP命令, 向 APS层发送 Bind- req命令, 在 GW1中建立 一个 EPA到节点 A的绑定表条目 (Binding Entry ), 并向节点 B的服务网关 GW2发送一条 CreateConnect ion. reques t命令, 该命令参数包括节点 A的地 址、 端口号、 节点 B的地址、 端口号以及绑定的簇标识(Clus ter lD ), 网关 A 的 PAN ID和 ExPANID。
3、 GW2接收到 GWl的 Crea teConnect ion. reques t命令之后, GW2会建立 一个新的 ZigBee Endpo int (记为 EPB ), 并建立一个到节点 B的绑定表条目 (Binding Entry) , 并回复 CreateCom ect ion. response命令给 GWl , 回复数 据包中应包含 GW2的 PANID和 ExPANID;
4、 GW2在发出 CreateConnect ion. response命令之后, 会在本地建立一 个服务于 A-B和 B-A数据通信的绑定服务条目 (WSNConnect ion Entry ), 同 样的, GW1在接收到 GW2的 Crea teConnect ion. response命令之后,会在本地 建立一个绑定服务条目。
( 2 )使用绑定进行通信, 如图 6所示。
1、 A (第一设备)通过 APS— DATA— REQ发送报文到 GW1的端口 ( EPA ), 或 通过 bind发送到 GW1 (第一网关) 的端口 (如果 A和 GW1建立绑定关系)
2、 GW1上的 EPA端口接收到步骤 1中 A发送的报文, 则检测报文的源地 址和源端口, 如果消息地址匹配, 则 GW1通过 WSNConnect ion发送艮文, 如 果步骤 1中 A发出的消息支持 Defaul t response, 则 GW1代理节点 B回复该 Response; 如果检测艮文的源地址或端口与本地 WSNConnect ion 不匹配, 则 丢弃该艮文;
3、 GW2 (第二网关)根据 WSNConnect ion中存储的 srcep_ id, Clus ter lD 以及 PANID查找 GW2与 B节点的绑定表, 并通过 APS的模式 0方式将报文最 终发送给 B (第二设备), 如果该命令支持 Defaul t Response, 则 GW2代理节 点 A接^:和处理该 Response;
4、 节点 B处理完节点 A发送的报文之后, 产生 Response命令, 通过接 收的源地址回复给网关 B的 EPB端口, GW2判断出来是节点 B给节点 A的回复 4艮文之后, 通过 WSNConnect ion发送给 GW1 , GW1查询本地 WSNConnect ion再 将该回复发送给 A, 通信完成。
GW1 (第一网关)和 GW2 (第二网关)不在同一个 WP AN内, 建立连接的过 程与实施例一基本相同, 不同之处是在 Crea teConnect ion. reques t的时候, 会多携带 PANID和 ExPANID两个参数; 在建立 WSNConnect ion Entry时候, 也会将对端的 PAN ID 记录在 WSNConnect ion 表中。 整个通信过程中 A 的 APS_DATA_REQ报文负载中, 不包含任何目的地址, 所以对于应用层来说, 为 透明传输。
本发明实施例中, 第一设备通过为其服务的第一网关与位于第二网关服 务范围内的第二设备建立绑定关系以便进行通信, 提高了通信效率。 本发明实施例三
当 ZigBee 网关与非 ZigBee 网关进行绑定时, 在其设备上虚拟一个 endpoint , 则可以使用与实施例一相同的方法与 ZigBee网关 endpoint建立 绑定关系。
( 1 )建立绑定关系, 如图 7所示。 如图, 网关 A为 ZigBee网关、 网关 B为非 ZigBee网关, 它们之间可以 直接通信, 也可以是一个物理设备(具有两种通信接口的设备), 节点 B是一 个非 ZigBee节点, 当节点 B需要与一个 Zi gBee节点建立连接并运行 ZigBee 业务(例如, Smar t Energy应用中, 物理层通信技术可以是 Z igBee设备, 也 可以是 PLC设备, 而 SE的 Prof i le中描述有很多需要这两种设备经常通信的 场景), 我们同样可以像实施例一描述的方式, 通过建立绑定来减少因地址信 息而占用的有效负载, 具体方式如下:
1、 当 ZigBee网关发现节点 A需要建立与节点 B的绑定业务之后(例如 A 是中控室开关, B是室外某路灯, A和 B不能直接通信或直接通信开销很大, 则 A和 B通过协商并告知 GWl ), GW1会建个新的 ZigBee Endpoint (记为 EPA) , 同时, 在网关 Β上会建立一个虚拟 ZigBee通信节点 (非 ZigBee节点, 但可 以处理 ZigBee报文)和端口 ( ZigBee Endpoint );
2、 网关 A通过 ZDP命令, 向 APS层发送 Bind— req命令, 在 GWl中建立 一个 EPA 到节点 A 的绑定表条目 (Binding Entry ), 并向网关 B发送一条 CreateConnect ion. reques t命令, 该命令参数包括节点 A的地址、 端口号、 节点 B的地址、 端口号以及绑定的簇标识( Clus ter ID )。
3、 网关接收到 GW1 的 CreateConnect ion. reques t 命令之后, 回复 CreateConnect ion. response;
4、 GW2在发出 CreateConnect ion. response命令之后, 会在本地建立一 个服务于 A-B和 B-A数据通信的绑定服务条目 (WSNConnect ion Entry ), 同 样的, GW1在接收到 GW2的 Crea teConnect ion. response命令之后,会在本地 建立一个绑定服务条目。
( 2 )利用绑定进行通信, 如图 8所示。
1、 A通过 APS_DATA_REQ发送艮文到 GW1的端口 ( EPA ), 或通过 bind发 送到 GW1的端口 (如果 A和 GW1建立绑定关系 )
2、 GW1上的 EPA端口接收到步骤 1中 A发送的报文, 则检测报文的源地 址和源端口, 如果消息地址匹配, 则 GW1通过 WSNConnect ion发送艮文, 如 果步骤 1中 A发出的消息支持 Defaul t response, 则 GW1代理节点 B回复该 Response; 如果检测艮文的源地址或端口与本地 WSNConnect ion 不匹配, 则 丢弃该艮文;
3、 网关 1根据 srcep- id以及 c lus ter lD匹配接收到的数据包, 如果匹 配成功, 则处理该报文, 并发送给节点 B。
4、节点 B处理完节点 A的 艮文之后,产生 Response命令,发送给网关 2 , 网关 2再通过 WSNConnect ion发送给网关 1 , GW1查询本地 WSNConnect ion再 将该回复发送给 A, 通信完成。
整个通信过程中 A的 APS_DATA_REQ 艮文负载中, 不包含任何目的地址, 所以对于应用层来说, 为透明传输。
实施例三为跨不同协议网络通信, 即 GW1属于 ZigBee网络, 而 GW2不属 于 ZigBee网络, 建立绑定连接的过程与实施例一基本相同, 不同之处是先要 在 GW2中建立一个虚拟的 ZigBee节点。
本发明实施例中, 第一设备通过为其服务的第一网关与位于第二网关服 务范围内的第二设备建立绑定关系以便进行通信, 提高了通信效率。 本发明实施例四
实施例四是实施例二的扩展, 因为绑定表可以绑定多个目标地址, 所以 很适合建立基于组播群的绑定, 如图 9所示。
实施例四是前三种实施例的综合, 也是对组播群组绑定以及 WSNConnect ion的一种具体实现, 具体描述为:
假设通信的源节点 (节点 A ) 为 PANID为 WPAN1的 ZigBee网络中的一个 节点或虚拟在 WPAN1 网络中的一个虚拟节点, 由于业务需求需要与 WPAN2 网 络中的 ZigBee节点(节点 B, 节点 C )、 WPAN3网络中的 ZigBee节点(节点 D ) 及非 Zi gBee节点 (节点 E )通信(该实施例的应用场景为, 节点 A是节点 B、 C、 D、 E的集中控制节点, A需要长期保持与 BCDE的连接, 并发送多播报文)。 本发明实施例中, 第一设备通过为其服务的第一网关与位于第二网关服 务范围内的第二设备(第二设备为多个组播群节点)建立绑定关系以便进行通 信, 提高了通信效率。 本发明实施例五
本发明实施例提供了一种网关,如图 10所示, 网关 100为第一设备服务, 该网关 100为第一网关, 第一网关、 第一设备为 ZIGBEE通信节点, 第一网关 包括: 第一接收单元 105 , 用于接收来自第一设备的绑定请求; 第一绑定单元 101 , 用于根据绑定请求, 建立第一设备与第二设备的第一绑定条目; 第一绑 定条目用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系; 第一发送单元 103 , 用于根据绑定请求, 向第二网关发送绑定消息, 以使第二 网关根据绑定消息建立第一设备与第二设备的第二绑定条目; 第二绑定条目 用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系。
进一步的, 绑定请求包括: 第一设备的地址信息, 第二设备的地址信息; 第一绑定条目包括: 第一设备的地址信息, 第一网关地址信息, 第二网关地 址信息; 第二设备的地址信息, 以及第一绑定簇标识; 第一绑定簇标识用于 标识第一设备和第二设备的绑定关系;
绑定消息包括: 第一设备的地址信息, 第一网关地址信息, 第二网关地 址信息, 第二设备的地址信息, 以及第一绑定簇标识;
第二绑定条目包括: 第一网关地址信息, 第一设备的地址信息, 第二设 备的地址信息, 第二网关的地址信息, 以及第一绑定簇标识。
进一步的, 地址信息包括: 网络地址、 或物理地址、 或端口号、 或子网 标识。
进一步的, 第二网关地址信息、 第二设备地址均为组播群地址信息, 用 于实现单个第一设备和多个第二设备之间的组播群绑定关系。 进一步的, 第一网关地址信息、 第一设备地址均为组播群地址信息, 用 于实现多个第一设备到单个第二设备之间的组播群绑定或者用于实现多个第 一设备到多个第二设备之间的组播群绑定。
本发明实施例还提供了另一种网关, 如图 11所示, 网关 110为第二设备 服务, 该网关 110为第二网关, 第二网关包括: 第二接收单元 111 , 用于接收 来自第一网关的绑定消息; 第二绑定单元 113 , 用于根据绑定消息建立第一设 备与第二设备的第二绑定条目; 第二绑定条目用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系。
可选的, 第二网关还包括: 第二响应单元, 用于在接收到来自第一网关 的绑定消息之后, 向所述第一网关发送响应消息。
可选的, 第二网关还包括: 第二虚拟单元, 用于通过虚拟的 ZIGBEE节点 和端口接收来自第一网关的绑定消息以实现不同协议之间的节点通信。
具体的, 节点 A的服务网关 GW1发现节点 A需要与节点 B, C, D, E进行通 信, 则 GW1会新建一个 Zi gBee Endpoint ( EPA ), 并维护一个与节点 A的端口 绑定的 WSNConnect ion, 该 WSNConnec t ion的结构描述如下:
Figure imgf000020_0001
WSNConnection中间件结构图
Upper Interface 连接高层连接管理实体, 该实体用于将远端 Zi gBee endpoint 或其他通信方式 (例如 ZigBee over Mm-ware ) 虚拟的 ZigBee endpoint镜像在本地, Upper Interface直接交互 ZigBee APS层数据。
Connect ion Management用于管理绑定连接, 负责完成建立绑定、 删除绑 定、 收发数据等操作。 Connect ion Management支持原语, 原语在对象之间的 通信采用 request-response 的方式, 包括 Request, Response, Confirm, Indicat ion:
Figure imgf000021_0001
其中 CreateConnection用于建立两个绑定实体间的 Connection Entry; DeleteConnection 用 于删除该 Connection; AddDestAddr 为在对等 Connection Entries 中增加新的绑定表条目, 比如, 原绑定表中绑定内容仅 包含一个目的地址, 通过该命令, 可以在原有绑定的基础上实现群组绑定; Listener用于监听各个 WSNConnect ion回调命令; Data用于传输绑定实体间 的 APS报文。
WSNConnect ions为 ZigBee节点之间或 ZigBee节点与非 ZigBee节点之间 的基于跨网关绑定的对等实体, 维护绑定连接的各个属性, 这些属性包括:
Local Endpoint 本地服务端口, 用于接收网络中基于 本绑定的数据, 该端口随绑定的建立 同时建立
Local Binding Entry 维护网关本地绑定表, 该表的作用是 {s, e, c} = { {a, e} , {a, e} , ···, {a, e} } 向本网内发送绑定报文
Local PANID 本地网络 ID号
Remote Binding Table 其中 url和 {ipaddr, port}描述目的
{s, e, c} = { {url, dstPANID, 网关地址 (不限于 IP连接)
dstAddress, dstEndpoint} 或 Dst PANID描述目的 PAN地址, 用于实
{ {ipaddr, port} , dstPANID, 现跨 PAN通信, 包括 PANID和 ExPANID dstAddress, dstEndpoint } , ···, dstAddress描述目的节点地址, 包括
{url, dstPANID, dstAddress, IEEEAddress, NetworkAddress 禾口 dstEndpoint } } AliasAddress
dstEndpoint用于描述目的端口号
Common Interface为 Connect ion Middleware与 ZigBee的 APS/ZDP交互 借口, 完成必要的跨层数据(例如 ExPan ID, PANID, IEEE ADDR等)和跨物 理层协议数据处理和发送。
本发明实施例中, 第一设备通过为其服务的第一网关与位于第二网关服 务范围内的第二设备建立绑定关系以便进行通信, 提高了通信效率。 本发明实施例六
如图 12所示, 本发明实施例提供了一种网关 120, 该网关 120即为第一 网关, 第一设备在第一网关的服务范围之内, 第二设备在第二网关的服务范 围之内, 第一设备、 第一网关为 ZIGBEE通信节点, 第一网关接收来自第一设 备的绑定请求, 绑定请求用于建立第一设备和第二设备的绑定关系; 该网关 根据绑定请求, 建立第一设备与第二设备的第一绑定条目; 第一绑定条目用 于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系; 第一网 关根据绑定请求, 向第二网关发送绑定消息, 以使第二网关根据绑定消息建 立第一设备与第二设备的第二绑定条目; 第二绑定条目用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系; 第一网关包括: 第三接收单元 121 , 用于接收来自第一设备的数据包; 第 三地址获取单元 123;用于根据数据包中包括的第一绑定簇标识到第一绑定条 目中获取第二网关地址; 第三发送单元 125 , 用于向第二网关发送数据包, 以 使第二网关接收第一网关的数据包, 根据数据包中包括的第一绑定簇标识道 第二绑定条目获取第二设备地址; 向第二设备发送数据包。
进一步的, 绑定请求包括: 第一设备的地址信息, 第二设备的地址信息; 第一绑定条目包括: 第一设备的地址信息, 第一网关地址信息, 第二网关地 址信息; 第二设备的地址信息, 以及第一绑定簇标识; 第一绑定簇标识用于 标识第一设备和第二设备的绑定关系;
绑定消息包括: 第一设备的地址信息, 第一网关地址信息, 第二网关地 址信息, 第二设备的地址信息, 以及第一绑定簇标识; 第二绑定条目包括: 第一网关地址信息, 第一设备的地址信息, 第二设备的地址信息, 第二网关 的地址信息, 以及第一绑定簇标识。
进一步的, 地址信息包括: 网络地址、 或物理地址地址、 或端口号、 或 子网标识。
如图 1 3所示, 本发明实施例还公开了一种网关 1 30 , 该网关 1 30为第二 网关, 第一设备在第一网关的服务范围之内, 第二设备在第二网关的服务范 围之内, 第一设备、 第一网关为 ZIGBEE通信节点, 第一网关接收来自第一设 备的绑定请求, 绑定请求用于建立第一设备和第二设备的绑定关系; 第一网 关根据绑定请求, 建立第一设备与第二设备的第一绑定条目; 第一绑定条目 用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系; 第一 网关根据绑定请求, 向第二网关发送绑定消息, 以使第二网关根据绑定消息 建立第一设备与第二设备的第二绑定条目; 第二绑定条目用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系;
第二网关包括: 第四接收单元 1 31 , 用于接收第一网关的数据包; 第四地 址获取单元 1 33 ,用于根据数据包中包括的第一绑定簇标识道第二绑定条目获 取第二设备地址; 第四发送单元 135 , 用于向第二设备发送数据包。
可选的, 第二网关还包括: 第四响应单元, 用于向第一网关发送数据包。 可选的, 第二网关还包括: 第四虚拟单元, 用于通过虚拟的 ZIGBEE节点 和端口接收来自第一网关的数据包以实现不同协议之间的设备通信。
本发明实施例中, 第一设备通过为其服务的第一网关与位于第二网关服 务范围内的第二设备建立绑定关系以便进行通信, 提高了通信效率。 本发明实施例七
本发明实施例还提供了一种网络系统, 如图 14所示, 第一设备 141在第 一网关 140的服务范围之内, 第二设备 151在第二网关 150的服务范围之内, 第一设备、 第一网关为 ZIGBEE通信节点, 该系统包括: 第一设备, 用于向第 一网关发送绑定请求, 绑定请求用于建立第一设备和第二设备的绑定关系; 第一网关, 用于接收来自第一设备的绑定请求; 根据绑定请求, 建立第一设 备与第二设备的第一绑定条目; 第一绑定条目用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系; 根据绑定请求, 向第二网关发送绑定 消息, 以使第二网关根据绑定消息建立第一设备与第二设备的第二绑定条目; 第二绑定条目用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对 应关系; 第二网关, 用于接收来自第一网关的绑定消息, 根据绑定消息建立 第一设备与第二设备的第二绑定条目; 第二绑定条目用于记录第一设备、 第 一网关、 第二设备、 第二网关之间的对应关系; 第二设备, 用于和第一设备 建立绑定关系。
进一步的, 第一网关包括: 第一接收单元, 用于接收来自第一设备的绑 定请求, 绑定请求用于建立第一设备和第二设备的绑定关系; 第一绑定单元, 用于根据绑定请求, 建立第一设备与第二设备的第一绑定条目; 第一绑定条 目用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系; 第 一发送单元, 用于根据绑定请求, 向第二网关发送绑定消息, 以使第二网关 根据绑定消息建立第一设备与第二设备的第二绑定条目; 第二绑定条目用于 记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系; 第二网关 包括: 第二接收单元, 用于接收来自第一网关的绑定消息; 第二绑定单元, 用于根据绑定消息建立第一设备与第二设备的第二绑定条目; 第二绑定条目 用于记录第一设备、 第一网关、 第二设备、 第二网关之间的对应关系。
本发明实施例中, 第一设备通过为其服务的第一网关与位于第二网关服 务范围内的第二设备建立绑定关系以便进行通信, 提高了通信效率。 本发明实施例八
本发明实施例还提供了一种网络系统, 如图 15所示, 第一设备 161在第 一网关 160的服务范围之内, 第二设备 171在第二网关 170的服务范围之内, 第一设备、 第一网关为 ZIGBEE通信节点, 系统包括: 第一设备, 用于向第一 网关发送数据包; 第一网关, 用于根据数据包中包括的第一绑定簇标识到第 一绑定条目中获取第二网关地址; 向第二网关发送数据包, 以使第二网关接 收第一网关的数据包, 根据数据包中包括的第一绑定簇标识道第二绑定条目 获取第二设备地址; 向第二设备发送数据包。 第二网关, 用于接收第一网关 的数据包, 根据数据包中包括的第一绑定簇标识道第二绑定条目获取第二设 备地址; 向第二设备发送数据包; 第二设备, 用于和第一设备进行数据通信。
进一步的, 第一网关包括:
第三接收单元, 用于接收来自第一设备的数据包; 第三地址获取单元; 用于根据数据包中包括的第一绑定簇标识到第一绑定条目中获取第二网关地 址; 第三发送单元, 用于向第二网关发送数据包, 以使第二网关接收第一网 关的数据包, 根据数据包中包括的第一绑定簇标识道第二绑定条目获取第二 设备地址; 向第二设备发送数据包; 第二网关包括: 第四接收单元, 用于接 收第一网关的数据包; 第四地址获取单元, 用于根据数据包中包括的第一绑 定簇标识道第二绑定条目获取第二设备地址; 第四发送单元, 用于向第二设 备发送数据包。
本发明实施例中, 第一设备通过为其服务的第一网关与位于第二网关服 务范围内的第二设备建立绑定关系以便进行通信, 提高了通信效率。 通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本 发明可借助软件加必需的通用硬件的方式来实现, 通用硬件包括通用集成电 路、 通用 CPU、 通用存储器、 通用元器件等, 当然也可以通过专用硬件包括专 用集成电路、 专用 CPU、 专用存储器、 专用元器件等来实现, 但很多情况下前 者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本质上或者说对 现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软件产 品存储在可读取的存储介质中, 如计算机的软盘, 硬盘或光盘等, 包括若干 指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备 等)执行本发明各个实施例的方法。
以上方法实施例中的各个步骤的顺序可以根据实际应用需要进行调整, 各个步骤可以根据实际应用需要进行组合形成新的方案。 以上装置实施例中 的各个单元、 模块可以根据实际应用需要进行划分, 或者重新组合。
以上, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变 化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 以权利要求的保护范围为准, 依本发明权利要求所作的等同变化, 仍属本发 明所涵盖的范围。

Claims

权利要求书
1、 一种网络设备绑定的方法, 其特征在于, 第一设备在所述第一网关的服 务范围之内, 所述第二设备在所述第二网关的服务范围之内, 所述第一设备、 第一网关为 ZIGBEE通信节点, 所述方法包括:
所述第一网关接收来自所述第一设备的绑定请求;
所述第一网关根据所述绑定请求, 建立所述第一设备与所述第二设备的第 一绑定条目; 所述第一绑定条目用于记录所述第一设备、 第一网关、 第二设备、 第二网关之间的对应关系;
所述第一网关根据所述绑定请求, 向所述第二网关发送绑定消息, 以使所 述第二网关根据所述绑定消息建立所述第一设备与所述第二设备的第二绑定条 目; 所述第二绑定条目用于记录所述第一设备、 第一网关、 第二设备、 第二网 关之间的对应关系。
2、 如权利要求 1所述的绑定的方法, 其特征在于, 还包括:
所述第二网关接收来自所述第一网关的绑定消息, 根据所述绑定消息建立 所述第一设备与所述第二设备的第二绑定条目; 所述第二绑定条目用于记录所 述第一设备、 第一网关、 第二设备、 第二网关之间的对应关系。
3、 如权利要求 1所述的绑定的方法, 其特征在于,
所述绑定请求包括: 所述第一设备的地址信息, 所述第二设备的地址信息; 所述第一绑定条目包括: 所述第一设备的地址信息, 所述第一网关地址信 息, 所述第二网关地址信息; 所述第二设备的地址信息, 以及第一绑定簇标识; 所述第一绑定簇标识用于标识所述第一设备和所述第二设备的绑定关系;
所述绑定消息包括: 所述第一设备的地址信息, 所述第一网关地址信息, 所述第一网关地址信息, 所述第二设备的地址信息, 以及所述第一绑定簇标识; 所述第二绑定条目包括: 所述第一网关地址信息, 所述第一设备的地址信 息, 所述第二设备的地址信息, 第二网关的地址信息, 以及所述第一绑定簇标 识。
4、 如权利要求 3所述的绑定的方法, 其特征在于, 所述地址信息包括: 网 络地址、 或物理地址、 或端口号、 或子网标识。
5、 如权利要求 1所述的绑定的方法, 其特征在于, 在所述第二网关接收来 自所述第一网关的绑定消息之后, 还包括:
所述第二网关向所述第一网关发送绑定响应消息。
6、 如权利要求 3所述的设备绑定方法, 其特征在于, 所述第二网关地址信 息、 第二设备地址均为组播群地址信息, 用于实现单个第一设备和多个第二设 备之间的组播群绑定关系。
7、 如权利要求 3所述的设备绑定方法, 其特征在于, 所述第一网关地址信 息、 第一设备地址均为组播群地址信息, 用于实现多个第一设备到单个第二设 备之间的组播群绑定或者用于实现多个第一设备到多个第二设备之间的组播群 绑定。
8、 如权利要求 2所述的设备绑定的方法, 其特征在于, 所述第二网关接收 来自所述第一网关的绑定消息包括:
所述第二网关通过虚拟的 Z I GBEE节点和端口接收来自所述第一网关的绑定 消息以实现不同协议之间的节点通信。
9、 一种网络设备通信的方法, 其特征在于, 所述第一设备在所述第一网关 的服务范围之内, 所述第二设备在所述第二网关的服务范围之内, 所述第一设 备、 第一网关为 ZIGBEE通信节点, 所述第一网关存储有第一绑定条目, 所述第 一绑定条目用于记录所述第一设备、 第一网关、 第二设备、 第二网关之间的对 应关系; 所述第二网关存储有第二绑定条目, 所述第二绑定条目用于记录所述 第一设备、 第一网关、 第二设备、 第二网关之间的对应关系;
所述网络设备通信的方法包括:
所述第一网关接收来自所述第一设备的数据包;
根据所述数据包中包括的第一绑定簇标识, 从第一绑定条目中获取所述第 二网关地址;
根据所述第二网关地址, 向所述第二网关发送所述数据包, 以使所述第二 网关接收所述第一网关的数据包, 根据所述数据包中包括的第一绑定簇标识从 第二绑定条目中获取所述第二设备地址; 根据所述第二设备地址, 向所述第二 设备发送所述数据包。
10、 如权利要求 9 所述的网络设备通信的方法, 其特征在于, 所述方法还 包括:
所述第二网关接收所述第一网关的数据包, 根据所述数据包中包括的第一 绑定簇标识, 从所述第二绑定条目中获取所述第二设备地址; 向所述第二设备 发送所述数据包。
11、 如权利要求 10所述网络设备通信的方法, 其特征在于, 所述第二网关 接收所述第一网关的数据包包括:
所述第二网关通过虚拟的 ZIGBEE节点和端口接收来自所述第一网关的数据 包以实现不同协议之间的设备通信。
12、 一种网关, 其特征在于, 所述网关为第一设备提供服务, 所述网关、 第一设备为 ZIGBEE通信节点, 所述网关包括: 第一接收单元, 用于接收来自所述第一设备的绑定请求;
第一绑定单元, 用于根据所述绑定请求, 建立所述第一设备与所述第二设 备的第一绑定条目; 所述第一绑定条目用于记录所述第一设备、 所述网关、 第 二设备、 第二网关之间的对应关系;
第一发送单元, 用于根据所述绑定请求, 向所述第二网关发送绑定消息, 以使所述第二网关根据所述绑定消息建立所述第一设备与所述第二设备的第二 绑定条目; 所述第二绑定条目用于记录所述第一设备、 所述网关、 第二设备、 第二网关之间的对应关系。
1 3、 如权利要求 12所述的网关, 其特征在于,
所述绑定请求包括: 所述第一设备的地址信息, 所述第二设备的地址信息; 所述第一绑定条目包括: 所述第一设备的地址信息, 所述第一网关地址信 息, 所述第二网关地址信息; 所述第二设备的地址信息, 以及第一绑定簇标识; 所述第一绑定簇标识用于标识所述第一设备和所述第二设备的绑定关系;
所述绑定消息包括: 所述第一设备的地址信息, 所述第一网关地址信息, 所述第二网关地址信息, 所述第二设备的地址信息, 以及所述第一绑定簇标识; 所述第二绑定条目包括: 所述第一网关地址信息, 所述第一设备的地址信 息, 所述第二设备的地址信息, 第二网关的地址信息, 以及所述第一绑定簇标 识。
14、 如权利要求 1 3所述的网关, 其特征在于, 所述地址信息包括: 网络地 址、 或物理地址、 或端口号、 或子网标识。
15、 如权利要求 1 3所述的网关, 其特征在于, 所述第二网关地址信息、 第 二设备地址均为组播群地址信息, 用于实现单个第一设备和多个第二设备之间 的组播群绑定关系。 16、 如权利要求 13所述的网关, 其特征在于, 所述第一网关地址信息、 第 一设备地址均为组播群地址信息, 用于实现多个第一设备到单个第二设备之间 的组播群绑定或者用于实现多个第一设备到多个第二设备之间的组播群绑定。
17、 一种网关, 其特征在于, 所述网关为第二设备提供服务, 所述网关包 括:
第二接收单元, 用于接收来自第一网关的绑定消息;
第二绑定单元, 用于根据所述绑定消息建立所述第一设备与所述第二设备 的第二绑定条目; 所述第二绑定条目用于记录所述第一设备、 第一网关、 第二 设备、 第二网关之间的对应关系。
18、 如权利要求 17所述的网关, 其特征在于, 所述网关还包括: 第二响应单元, 用于在接收到来自第一网关的绑定消息之后, 向所述第一 网关发送响应消息。
19、 如权利要求 17所述的网关, 其特征在于,
所述第二接收单元, 具体用于通过虚拟的 ZIGBEE节点和端口接收来自所述 第一网关的绑定消息以实现不同协议之间的节点通信。
20、 一种网关, 其特征在于, 所述网关为第一设备提供服务, 所述网关、 第一设备为 ZIGBEE通信节点, 所述网关包括:
第三接收单元, 用于接收来自所述第一设备的数据包;
第三地址获取单元; 用于根据所述数据包中包括的第一绑定簇标识到第一 绑定条目中获取所述第二网关地址;
第三发送单元, 用于向所述第二网关发送所述数据包, 以使所述第二网关 接收所述第一网关的数据包, 根据所述数据包中包括的第一绑定簇标识道第二 绑定条目获取所述第二设备地址; 向所述第二设备发送所述数据包。
21、 如权利 20所述的网关, 其特征在于,
所述绑定请求包括: 所述第一设备的地址信息, 所述第二设备的地址信息; 所述第一绑定条目包括: 所述第一设备的地址信息, 所述第一网关地址信 息, 所述第二网关地址信息; 所述第二设备的地址信息, 以及第一绑定簇标识; 所述第一绑定簇标识用于标识所述第一设备和所述第二设备的绑定关系;
所述绑定消息包括: 所述第一设备的地址信息, 所述第一网关地址信息, 所述第二网关地址信息, 所述第二设备的地址信息, 以及所述第一绑定簇标识; 所述第二绑定条目包括: 所述第一网关地址信息, 所述第一设备的地址信 息, 所述第二设备的地址信息, 第二网关的地址信息, 以及所述第一绑定簇标 识。
11、 如权利要求 21所述的网关, 其特征在于, 所述地址信息包括: 网络地 址、 或物理地址地址、 或端口号、 或子网标识。
23、 一种网关, 其特征在于, 所述网关为第二设备提供服务, 所述网关包 括;
第四接收单元, 用于接收所述第一网关的数据包;
第四地址获取单元, 用于根据所述数据包中包括的第一绑定簇标识道第二 绑定条目获取所述第二设备地址;
第四发送单元, 用于向所述第二设备发送所述数据包。
24、 如权利要求 23所述的网关, 其特征在于, 所述网关还包括:
第四响应单元, 用于向所述第一网关发送数据包。 25、 如权利要求 24所述的网关, 其特征在于, 所述网关还包括: 第四虚拟单元, 用于通过虚拟的 ZIGBEE节点和端口接收来自所述第一网关 的数据包以实现不同协议之间的设备通信。
26、 一种网络系统, 其特征在于, 所述系统包括: 第一设备、 第一网关、 第二设备和第二网关, 其中: 所述第一设备在所述第一网关的服务范围之内, 所述第二设备在所述第二网关的服务范围之内, 所述第一设备、 第一网关为 ZIGBEE通信节点;
所述第一设备, 用于向第一网关发送绑定请求;
所述第一网关, 接收来自所述第一设备的绑定请求; 所述第一网关根据所 述绑定请求, 建立所述第一设备与所述第二设备的第一绑定条目; 所述第一绑 定条目用于记录所述第一设备、 第一网关、 第二设备、 第二网关之间的对应关 系; 所述第一网关根据所述绑定请求, 向所述第二网关发送绑定消息, 以使所 述第二网关根据所述绑定消息建立所述第一设备与所述第二设备的第二绑定条 目; 所述第二绑定条目用于记录所述第一设备、 第一网关、 第二设备、 第二网 关之间的对应关系;
所述第二网关, 用于接收来自所述第一网关的绑定消息, 根据所述绑定消 息建立所述第一设备与所述第二设备的第二绑定条目; 所述第二绑定条目用于 记录所述第一设备、 第一网关、 第二设备、 第二网关之间的对应关系;
所述第二设备, 用于和第一设备建立绑定关系。
27、 如权利要求 26所述的网络系统, 其特征在于,
所述第一网关包括:
第一接收单元, 用于接收来自所述第一设备的绑定请求;
第一绑定单元, 用于根据所述绑定请求, 建立所述第一设备与所述第二设 备的第一绑定条目; 所述第一绑定条目用于记录所述第一设备、 所述网关、 第 二设备、 第二网关之间的对应关系;
第一发送单元, 用于根据所述绑定请求, 向所述第二网关发送绑定消息, 以使所述第二网关根据所述绑定消息建立所述第一设备与所述第二设备的第二 绑定条目; 所述第二绑定条目用于记录所述第一设备、 所述网关、 第二设备、 第二网关之间的对应关系;
所述第二网关包括:
第二接收单元, 用于接收来自第一网关的绑定消息;
第二绑定单元, 用于根据所述绑定消息建立所述第一设备与所述第二设备 的第二绑定条目; 所述第二绑定条目用于记录所述第一设备、 第一网关、 第二 设备、 第二网关之间的对应关系。
28、 一种网络系统, 其特征在于, 所述系统包括: 第一设备、 第一网关、 第二设备和第二网关, 其中: 第一设备在所述第一网关的服务范围之内, 所述 第二设备在所述第二网关的服务范围之内, 所述第一设备、 第一网关为 ZIGBEE 通信节点;
所述第一设备, 用于向第一网关发送数据包;
所述第一网关, 用于接收来自所述第一设备的数据包; 根据所述数据包中 包括的第一绑定簇标识, 从第一绑定条目中获取所述第二网关地址; 根据所述 第二网关地址, 向所述第二网关发送所述数据包;
所述第二网关, 用于接收来自所述第一网关的数据包, 根据所述数据包中 包括的第一绑定簇标识, 从所述第二绑定条目中获取所述第二设备地址; 向所 述第二设备发送所述数据包;
所述第二设备, 用于接收来自所述第二网关的数据包, 与所述第一设备进 行通信。 29、 如权利要求 28所述的网络系统, 其特征在于, 包括:
所述第一网关包括:
第三接收单元, 用于接收来自所述第一设备的数据包;
第三地址获取单元; 用于根据所述数据包中包括的第一绑定簇标识到第一 绑定条目中获取所述第二网关地址;
第三发送单元, 用于向所述第二网关发送所述数据包, 以使所述第二网关 接收所述第一网关的数据包, 根据所述数据包包括的第一绑定簇标识, 从所述 第二绑定条目获取所述第二设备地址; 向所述第二设备发送所述数据包;
所述第二网关包括:
第四接收单元, 用于接收来自所述第一网关的数据包;
第四地址获取单元, 用于根据所述数据包包括的第一绑定簇标识, 从所述 第二绑定条目获取所述第二设备地址;
第四发送单元, 用于向所述第二设备发送所述数据包。
PCT/CN2012/075773 2011-12-29 2012-05-19 一种网络设备绑定的方法、通信的方法、装置及系统 WO2013097400A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110453845.2 2011-12-29
CN201110453845.2A CN103188821B (zh) 2011-12-29 2011-12-29 一种网络设备绑定的方法、通信的方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2013097400A1 true WO2013097400A1 (zh) 2013-07-04

Family

ID=48679703

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075773 WO2013097400A1 (zh) 2011-12-29 2012-05-19 一种网络设备绑定的方法、通信的方法、装置及系统

Country Status (2)

Country Link
CN (1) CN103188821B (zh)
WO (1) WO2013097400A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795571B (zh) * 2014-01-24 2017-10-17 北京搜狗科技发展有限公司 设备之间的绑定方法及装置
CN106231538B (zh) * 2016-07-29 2019-12-27 海尔优家智能科技(北京)有限公司 一种OneM2M架构设备绑定的方法和装置
CN109525621B (zh) * 2017-09-20 2020-09-18 华为技术有限公司 一种基于ZigBee绑定的数据同步方法、设备及系统
KR101988130B1 (ko) * 2017-11-21 2019-09-30 두산중공업 주식회사 배전망 및 그리드망에서의 노드관리 게이트웨이 장치 및 그 방법
CN109495314B (zh) * 2018-12-07 2020-12-18 达闼科技(北京)有限公司 云端机器人的通信方法、装置、介质及电子设备
CN111490916B (zh) * 2020-04-15 2022-03-11 公牛集团股份有限公司 紫蜂ZigBee子设备的绑定方法、系统、装置及介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101163073A (zh) * 2007-11-14 2008-04-16 当代天启技术(北京)有限公司 智能家居系统的组网方法、数据传输方法及智能家居系统
WO2008058744A2 (de) * 2006-11-15 2008-05-22 Universität Duisburg-Essen Sensoreinrichtung und sensorsystem
CN201421160Y (zh) * 2009-05-18 2010-03-10 江苏技术师范学院 基于ZigBee技术的远程空调智能控制装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068198B (zh) * 2007-01-29 2010-08-11 当代天启技术(北京)有限公司 楼宇系统中传输信息的方法、装置和系统
CN101119315B (zh) * 2007-09-17 2010-07-14 当代天启技术(北京)有限公司 控制网络中数据传输的方法、系统和网关
CN101594297A (zh) * 2008-05-30 2009-12-02 当代天启技术(北京)有限公司 控制网络中数据寻址和转发的交换服务器、系统和方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008058744A2 (de) * 2006-11-15 2008-05-22 Universität Duisburg-Essen Sensoreinrichtung und sensorsystem
CN101163073A (zh) * 2007-11-14 2008-04-16 当代天启技术(北京)有限公司 智能家居系统的组网方法、数据传输方法及智能家居系统
CN201421160Y (zh) * 2009-05-18 2010-03-10 江苏技术师范学院 基于ZigBee技术的远程空调智能控制装置

Also Published As

Publication number Publication date
CN103188821A (zh) 2013-07-03
CN103188821B (zh) 2016-09-28

Similar Documents

Publication Publication Date Title
JP4897884B2 (ja) Zigbee/ipゲートウェイ
US20070060147A1 (en) Apparatus for transmitting data packets between wireless sensor networks over internet, wireless sensor network domain name server, and data packet transmission method using the same
KR101370270B1 (ko) 사용자 지향 통신 방법, 라우트 등록 방법 및 장치 및 통신 시스템
WO2013097400A1 (zh) 一种网络设备绑定的方法、通信的方法、装置及系统
WO2005011216A1 (fr) Systeme et procede pour realiser une commutation d'appels multimedia dans un reseau prive
WO2010057386A1 (zh) 数据包转发方法、系统及设备
WO2011119019A1 (en) Method of communicating signals in 6lowpan network to ipv6 network
WO2015066840A1 (zh) 一种网络地址转换设备及方法
WO2011113393A2 (zh) 一种实现虚拟局域网标识转换的方法及装置
WO2007112645A1 (fr) Procédé et système de mise en oeuvre d'un réseau privé virtuel mobile
WO2014101812A1 (zh) 设备到设备通信方法、模块及终端设备
WO2021052399A1 (zh) 接口扩展方法、装置和系统
WO2012106935A1 (zh) 数据通信网络配置方法、网关网元及数据通信系统
WO2019119346A1 (zh) 一种通信路径确定方法及网络设备
CN103227787B (zh) 一种基于ARP代理的4over6隧道自动建立方法
WO2014056412A1 (zh) 一种报文发送的方法、路由器桥及系统
WO2021136292A1 (zh) 用于对mesh网络中的节点进行IP寻址访问的方法
WO2011032462A1 (zh) 一种数据传输、接收的方法及系统及路由器
WO2011131084A1 (zh) 数据通信系统及方法
KR20120103070A (ko) 패킷 호 설정 방법 및 장치
CN103200283A (zh) 多中继无线通信系统及该系统空中接口ip化的实现方法
WO2020220459A1 (zh) 基于VXLAN和OpenFlow的虚拟家庭网络共享方法及系统
WO2011157126A2 (zh) 一种报文转发方法和网间路由装置
US7773613B2 (en) Communication control method and system
US20150032898A1 (en) Method for establishing a virtual community network connection and a system for implementing said method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12863909

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12863909

Country of ref document: EP

Kind code of ref document: A1