TW201415936A - End-to-end communication in sensor network - Google Patents

End-to-end communication in sensor network Download PDF

Info

Publication number
TW201415936A
TW201415936A TW102129276A TW102129276A TW201415936A TW 201415936 A TW201415936 A TW 201415936A TW 102129276 A TW102129276 A TW 102129276A TW 102129276 A TW102129276 A TW 102129276A TW 201415936 A TW201415936 A TW 201415936A
Authority
TW
Taiwan
Prior art keywords
network
zigbee
ipv6
sensor
sensor node
Prior art date
Application number
TW102129276A
Other languages
Chinese (zh)
Inventor
shui-gen Yang
fan-xiang Bin
Hai-Po Wen
Original Assignee
Alcatel Lucent
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 Alcatel Lucent filed Critical Alcatel Lucent
Publication of TW201415936A publication Critical patent/TW201415936A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/106Mapping addresses of different types across networks, e.g. mapping telephone numbers to data network addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • H04L69/085Protocols for interworking; Protocol conversion specially adapted for interworking of IP-based networks with other networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/672Short addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/681Types of network addresses using addresses for wireless personal area networks or wireless sensor networks, e.g. Zigbee addresses

Abstract

The invention provides a solution to interconnection and internetworking of a Zig Bee network and an IPv6 network to thereby achieve end-to-end communication over the sensor network. In a network join procedure, a gateway in the sensor network allocates a globally unique virtual IPv6 address for each sensor node and a Zig Bee short address for each IPv6 server in communication with the sensor node. Thus the sensor node is equivalent to a normal IPv6 node from the perspective of the server in the IPv6 network, and the IPv6 server is equivalent to a normal sensor node in the same sensor network from the perspective of the sensor node in the sensor network.

Description

感測器網路中的端對端通信 End-to-end communication in the sensor network

本發明係關於感測器網路,尤其係關於感測器網路中的端對端通信。 This invention relates to sensor networks, and more particularly to end-to-end communication in a sensor network.

在工業或民生領域中,感測器網路得到廣泛運用。目前,大部分感測器網路基於ZigBee協定來提供廉價、低功耗和雙向的通信。 In the industrial or people's livelihood field, sensor networks are widely used. Currently, most sensor networks are based on the ZigBee protocol to provide inexpensive, low power, and two-way communication.

由於TCP/IP協定已經成為網際網路中占主導地位的協定,因此,基於TCP/IP協定互連ZigBee網路是不可避免的。此外,由於IPv4中存在許多問題(例如,IPv4位址短缺),因此,IPv6是用於互聯ZigBee網路的事實上的網路標準。然而,由於ZigBee協定的基本設計與TCP/IP協定不相容,因此,在它們之間提供網路互聯並不容易。例如,由於ZigBee網路中感測器節點的電池壽命較短、體積較小以及因成本較低而導致的儲存空間和CPU速度受限、無線介面複雜度受限等原因,導致了ZigBee網路的資源和能力嚴重受限。由於這些限制,ZigBee網路中的感測器節點無法像IPv6網路中的伺服器 那樣實現IPv6功能。 Since the TCP/IP protocol has become the dominant protocol in the Internet, interconnecting ZigBee networks based on the TCP/IP protocol is inevitable. In addition, due to many problems in IPv4 (for example, IPv4 address shortage), IPv6 is the de facto network standard for interconnecting ZigBee networks. However, since the basic design of the ZigBee protocol is incompatible with the TCP/IP protocol, it is not easy to provide Internet connectivity between them. For example, ZigBee networks are caused by the short battery life, small size, and limited storage space and CPU speed of the sensor nodes in the ZigBee network due to low cost and limited wireless interface complexity. The resources and capabilities are severely limited. Due to these limitations, the sensor nodes in the ZigBee network cannot be like the servers in the IPv6 network. This implements IPv6 functionality.

基於上述缺陷,在ZigBee網路和IPv6網路之間提供一種新的網路互聯方案從而在感測器網路中提供端對端的通信是十分有利的。 Based on the above shortcomings, it is advantageous to provide a new network interconnection scheme between the ZigBee network and the IPv6 network to provide end-to-end communication in the sensor network.

為了在IPv6網路的伺服器和感測器網路的感測器節點之間提供端對端通信,在網路加入過程中,由感測器網路中的閘道為每個感測器節點分配一個全局唯一的虛擬IPv6位址,該虛擬IPv6位址是基於該感測器節點的MAC位址和該閘道的IPv6網路前綴生成的,例如,該虛擬IPv6位址可以一個是由該感測器節點的64bit的MAC位址和該閘道的64bit的IPv6網路前綴結合生成的128bit的位址。 In order to provide end-to-end communication between the server of the IPv6 network and the sensor nodes of the sensor network, each sensor is used by the gateway in the sensor network during the network join process. The node allocates a globally unique virtual IPv6 address, which is generated based on the MAC address of the sensor node and the IPv6 network prefix of the gateway. For example, the virtual IPv6 address may be one The 64-bit MAC address of the sensor node and the 64-bit IPv6 network prefix of the gateway combine to generate a 128-bit address.

由於每個感測器節點被分配了一個虛擬IPv6位址,因此,從IPv6網路中的伺服器的角度來看,該感測器節點就相當於一個普通的IPv6節點。 Since each sensor node is assigned a virtual IPv6 address, the sensor node is equivalent to a normal IPv6 node from the perspective of the server in the IPv6 network.

為了在感測器網路的感測器節點和IPv6網路的伺服器之間提供端對端通信,在網路加入過程中,由感測器網路中的閘道為每個想與感測器節點通信的IPv6伺服器分配一個ZigBee短位址,例如,16bit的ZigBee短位址。該ZigBee短位址在該感測器網路中是唯一的。 In order to provide end-to-end communication between the sensor node of the sensor network and the server of the IPv6 network, during the network joining process, the gateway in the sensor network is used for each sense. The IPv6 server communicating with the test node allocates a ZigBee short address, for example, a 16-bit ZigBee short address. The ZigBee short address is unique within the sensor network.

由於IPv6伺服器被分配了一個ZigBee短位址,因此,從感測器網路中的感測器節點的角度來看,該IPv6 伺服器就相當於一個普通的感測器節點。 Since the IPv6 server is assigned a ZigBee short address, the IPv6 is from the perspective of the sensor node in the sensor network. The server is equivalent to a normal sensor node.

根據本發明的一個實施例,提供了一種在IPv6網路的伺服器中用於加入感測器網路的方法,所述方法包括以下步驟:發送IPv6網路加入請求消息至所述感測器網路的閘道,所述IPv6網路加入請求消息中包括該伺服器所要加入的感測器網路的網路識別資訊以及用於指示該伺服器是終端節點的標籤資訊;以及接收來自所述閘道的IPv6網路加入確認消息,所述IPv6網路加入確認消息中包括所述閘道為所述伺服器分配的ZigBee短位址。 In accordance with an embodiment of the present invention, a method for joining a sensor network in a server of an IPv6 network is provided, the method comprising the steps of: transmitting an IPv6 network join request message to the sensor a gateway of the network, the IPv6 network join request message includes network identification information of a sensor network to which the server is to be added, and label information indicating that the server is a terminal node; and receiving the source information The IPv6 network join confirmation message of the gateway includes the ZigBee short address allocated by the gateway to the server in the IPv6 network join confirmation message.

根據本發明的另一個實施例,提供了一種在感測器網路的閘道中用於輔助IPv6網路中的伺服器加入該感測器網路的方法,所述方法包括以下步驟:接收來自所述伺服器的IPv6網路加入請求消息,所述IPv6網路加入請求消息中包括該伺服器所要加入的感測器網路的網路識別資訊以及用於指示該伺服器是終端節點的標籤資訊;為所述伺服器分配ZigBee短位址,並且記錄所述伺服器的IPv6位址、所述伺服器所要加入的感測器網路的網路識別資訊以及為所述伺服器分配的所述ZigBee短位址;以及發送IPv6網路加入確認消息至所述伺服器,所述IPv6網路加入確認消息中包括為該伺服器分配的所述ZigBee短位址。 In accordance with another embodiment of the present invention, a method for facilitating a server in an IPv6 network to join the sensor network in a gateway of a sensor network is provided, the method comprising the steps of: receiving from An IPv6 network join request message of the server, where the IPv6 network join request message includes network identification information of a sensor network to which the server is to join, and a label indicating that the server is a terminal node. Information; assigning a ZigBee short address to the server, and recording an IPv6 address of the server, network identification information of a sensor network to which the server is to join, and a location allocated for the server Said ZigBee short address; and sending an IPv6 network join confirmation message to the server, the IPv6 network join confirmation message including the ZigBee short address allocated for the server.

根據本發明的另一個實施例,提供了一種在感測器網路的閘道中用於輔助感測器節點加入該感測器網路的方法,所述方法包括以下步驟:接收來自所述感測器節點的 ZigBee網路加入請求消息,所述ZigBee網路加入請求消息中包括該感測器節點的節點識別資訊以及該感測器節點所要加入的感測器網路的網路識別資訊;為所述感測器節點分配ZigBee短位址,並且基於所述感測器節點的MAC位址和所述閘道的IPv6網路前綴為所述感測器節點生成虛擬IPv6位址,並且記錄所述感測器節點的所述節點識別資訊、所述感測器節點所要加入的感測器網路的網路識別資訊、為所述感測器節點分配的所述ZigBee短位址以及為所述感測器節點生成的所述虛擬IPv6位址;以及發送ZigBee網路加入確認消息至所述感測器節點,所述ZigBee網路加入確認消息中包括為所述感測器節點分配的所述ZigBee短位址。 In accordance with another embodiment of the present invention, a method for assisting a sensor node to join a sensor network in a gateway of a sensor network is provided, the method comprising the steps of: receiving a sense from the sensor Measurer node a ZigBee network join request message, where the ZigBee network join request message includes node identification information of the sensor node and network identification information of the sensor network to which the sensor node is to join; The detector node allocates a ZigBee short address and generates a virtual IPv6 address for the sensor node based on the MAC address of the sensor node and the IPv6 network prefix of the gateway, and records the sensing The node identification information of the node, the network identification information of the sensor network to which the sensor node is to join, the ZigBee short address assigned to the sensor node, and the sensing The virtual IPv6 address generated by the node; and sending a ZigBee network join confirmation message to the sensor node, the ZigBee network join confirmation message including the short ZigBee allocated for the sensor node Address.

根據本發明的另一個實施例,提供了一種在感測器網路的感測器節點中用於與IPv6網路中的伺服器進行數據傳輸的方法,所述感測器節點和所述伺服器已加入所述感測器網路,其中,所述方法包括以下步驟:發送ZigBee數據請求消息至所述感測網路中的閘道,所述ZigBee數據請求消息中包括所述感測器節點所要發送的數據的業務識別資訊;接收來自所述閘道的ZigBee數據確認消息,所述ZigBee數據確認消息中包括所述伺服器的ZigBee短位址,用於指示該伺服器是所述感測器節點所要發送的數據的目的地;以及發送ZigBee數據至所述閘道,所述ZigBee數據的目的位址為所述伺服器的ZigBee短位址。 In accordance with another embodiment of the present invention, a method is provided in a sensor node of a sensor network for data transmission with a server in an IPv6 network, the sensor node and the servo The device has been added to the sensor network, wherein the method comprises the steps of: transmitting a ZigBee data request message to a gateway in the sensing network, the ZigBee data request message including the sensor a service identification information of the data to be sent by the node; receiving a ZigBee data acknowledgement message from the gateway, the ZigBee data acknowledgement message including a ZigBee short address of the server, indicating that the server is the sense a destination of data to be transmitted by the detector node; and transmitting ZigBee data to the gateway, the destination address of the ZigBee data being a ZigBee short address of the server.

根據本發明的另一個實施例,提供了一種在IPv6網 路的伺服器中用於配合感測器網路中的感測器節點進行數據傳輸的方法,所述伺服器和所述感測器節點已加入所述感測器網路,其中,所述方法包括以下步驟:接收來自所述感測器網路的閘道的IPv6數據請求消息,所述IPv6數據請求消息中包括所述感測器節點所要發送的數據的業務識別資訊;根據所述業務識別資訊確定所述感測器節點所要發送的數據是該伺服器想要獲得的數據後,發送IPv6數據確認消息至所述閘道;以及接收來自所述閘道的IPv6數據,所述IPv6數據的源位址為所述感測器節點的虛擬IPv6位址。 According to another embodiment of the present invention, an IPv6 network is provided A method for data transmission in a server of a path for cooperating with a sensor node in a sensor network, the server and the sensor node having joined the sensor network, wherein The method includes the steps of: receiving an IPv6 data request message from a gateway of the sensor network, the IPv6 data request message including service identification information of data to be sent by the sensor node; The identification information determines that the data to be sent by the sensor node is data that the server wants to obtain, sends an IPv6 data confirmation message to the gateway; and receives IPv6 data from the gateway, the IPv6 data The source address is the virtual IPv6 address of the sensor node.

根據本發明的另一個實施例,提供了一種在感測器網路的閘道中用於輔助該感測器網路中的感測器節點與IPv6網路中的伺服器進行數據傳輸的方法,所述感測器節點和所述伺服器已加入所述感測器網路,其中,所述方法包括以下步驟:接收來自所述感測器節點的ZigBee數據請求消息,所述ZigBee數據請求消息中包括所述感測器節點所要發送的數據的業務識別資訊;將所述ZigBee數據請求消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6數據請求消息;將所述IPv6數據請求消息發送至所述伺服器,所述IPv6數據請求消息中包括所述感測器節點所要發送的數據的業務識別資訊;接收來自所述伺服器的IPv6數據確認消息;將所述IPv6數據確認消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee數據確認消息,並且將所述伺服器的ZigBee短位址加入所述 ZigBee數據確認消息中,以用於指示該伺服器是所述感測器節點所要發送的數據的目的地;發送所述ZigBee數據確認消息至所述感測器節點,所述ZigBee數據確認消息中包括所述伺服器的ZigBee短位址;接收來自所述感測器節點的ZigBee數據,所述ZigBee數據的目的位址為所述伺服器的ZigBee短位址;將所述ZigBee數據的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6數據;以及將所述IPv6數據發送至所述伺服器,所述IPv6數據的源位址為所述感測器節點的虛擬IPv6位址。 In accordance with another embodiment of the present invention, a method is provided in a gateway of a sensor network for facilitating data transmission between a sensor node in the sensor network and a server in an IPv6 network, The sensor node and the server have joined the sensor network, wherein the method comprises the steps of receiving a ZigBee data request message from the sensor node, the ZigBee data request message Include the service identification information of the data to be sent by the sensor node; replace the ZigBee network layer header of the ZigBee data request message with an IPv6 header to generate an IPv6 data request message; and request the IPv6 data Sending a message to the server, the IPv6 data request message includes service identification information of data to be sent by the sensor node; receiving an IPv6 data acknowledgement message from the server; and confirming the IPv6 data The IPv6 header is replaced with a ZigBee network layer header to generate a ZigBee data acknowledgment message, and the ZigBee short address of the server is added to the a ZigBee data acknowledgement message, for indicating that the server is a destination of data to be sent by the sensor node; transmitting the ZigBee data acknowledgement message to the sensor node, in the ZigBee data acknowledgement message Include a ZigBee short address of the server; receive ZigBee data from the sensor node, a destination address of the ZigBee data is a ZigBee short address of the server; a ZigBee network that uses the ZigBee data The layer header is replaced with an IPv6 header to generate IPv6 data; and the IPv6 data is sent to the server, the source address of the IPv6 data being a virtual IPv6 address of the sensor node.

根據本發明的另一個實施例,提供了一種在IPv6網路的伺服器中用於與感測器網路中的感測器節點進行數據傳輸的方法,所述伺服器和所述感測器節點已加入所述感測器網路,其中,所述方法包括以下步驟:發送IPv6業務發現請求消息至所述感測器網路的閘道,所述IPv6業務發現請求消息中包括所述伺服器感興趣的業務的業務識別資訊;接收來自所述閘道的IPv6業務發現確認消息,所述IPv6業務發現確認消息中包括所述感測器節點的虛擬IPv6位址,用於指示該感測器節點能夠提供所述伺服器感興趣的業務;以及發送IPv6數據至所述閘道,所述IPv6數據的目的位址為所述感測器節點的虛擬IPv6位址。 In accordance with another embodiment of the present invention, a method for data transmission with a sensor node in a sensor network in a server of an IPv6 network is provided, the server and the sensor A node has joined the sensor network, wherein the method comprises the steps of: transmitting an IPv6 service discovery request message to a gateway of the sensor network, the IPv6 service discovery request message including the servo Receiving the service identification information of the service of interest; receiving an IPv6 service discovery confirmation message from the gateway, where the IPv6 service discovery confirmation message includes a virtual IPv6 address of the sensor node, and is used to indicate the sensing The node is capable of providing the service of interest to the server; and transmitting IPv6 data to the gateway, the destination address of the IPv6 data being a virtual IPv6 address of the sensor node.

根據本發明的另一個實施例,提供了一種在感測器網路的感測器節點中用於配合IPv6網路中的伺服器進行數據傳輸的方法,所述感測器節點和所述伺服器已加入所述 感測器網路,其中,所述方法包括以下步驟:接收來自所述感測器網路的閘道的ZigBee業務發現請求消息,所述ZigBee業務發現請求消息中包括所述伺服器感興趣的業務的業務識別資訊;根據所述業務識別資訊確定本感測器節點具有所述伺服器感興趣的業務後,發送ZigBee業務發現確認消息至所述閘道;以及接收來自所述閘道的ZigBee數據,所述ZigBee數據的源位址為所述伺服器的ZigBee短位址。 In accordance with another embodiment of the present invention, a method is provided in a sensor node of a sensor network for cooperating with a server in an IPv6 network for data transmission, the sensor node and the servo Has been added a sensor network, wherein the method comprises the steps of: receiving a ZigBee Service Discovery Request message from a gateway of the sensor network, the ZigBee Service Discovery Request message including the server of interest Service identification information of the service; determining, after the service sensor node has the service of interest to the server, transmitting a ZigBee service discovery confirmation message to the gateway according to the service identification information; and receiving ZigBee from the gateway Data, the source address of the ZigBee data is the ZigBee short address of the server.

根據本發明的另一個實施例,提供了一種在感測器網路的閘道中用於輔助IPv6網路中的伺服器與該感測器網路中的感測器節點進行數據傳輸的方法,所述伺服器和所述感測器節點已加入所述感測器網路,其中,所述方法包括以下步驟:接收來自所述伺服器的IPv6業務發現請求消息,所述IPv6業務發現請求消息中包括所述伺服器感興趣的業務的業務識別資訊;將所述IPv6業務發現請求消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee業務發現請求消息;將所述ZigBee業務發現請求消息發送至所述感測器節點,所述ZigBee業務發現請求消息中包括所述伺服器感興趣的業務的業務識別資訊;接收來自所述感測器節點的ZigBee業務發現確認消息;將所述ZigBee業務發現確認消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6業務發現確認消息,並且將所述感測器節點的虛擬IPv6位址加入所述IPv6業務發現確認消息,以用於指示該感測器節點能夠提供所述伺服器感 興趣的業務;發送所述IPv6業務發現確認消息至所述伺服器,所述IPv6業務發現確認消息中包括所述感測器節點的虛擬IPv6位址;接收來自所述伺服器的IPv6數據,所述IPv6數據的目的位址為所述感測器節點的虛擬IPv6位址;將所述IPv6數據的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee數據;以及將所述ZigBee數據發送至所述感測器節點,所述ZigBee數據的源位址為所述伺服器的ZigBee短位址。 In accordance with another embodiment of the present invention, a method is provided in a gateway of a sensor network for facilitating data transmission between a server in an IPv6 network and a sensor node in the sensor network, The server and the sensor node have joined the sensor network, wherein the method comprises the steps of receiving an IPv6 service discovery request message from the server, the IPv6 service discovery request message Include the service identification information of the service of interest to the server; replace the IPv6 header of the IPv6 service discovery request message with a ZigBee network layer header to generate a ZigBee service discovery request message; and discover the ZigBee service Sending a request message to the sensor node, the ZigBee service discovery request message includes service identification information of a service of interest to the server; receiving a ZigBee service discovery confirmation message from the sensor node; The ZigBee network layer header of the ZigBee service discovery acknowledgement message is replaced with an IPv6 header to generate an IPv6 service discovery acknowledgement message, and the sensor node is virtualized Adding an IPv6 service discovery confirmation message to the IPv6 address to indicate that the sensor node can provide the server sense The service of interest; sending the IPv6 service discovery confirmation message to the server, the IPv6 service discovery confirmation message includes a virtual IPv6 address of the sensor node; receiving IPv6 data from the server, The destination address of the IPv6 data is a virtual IPv6 address of the sensor node; the IPv6 header of the IPv6 data is replaced with a ZigBee network layer header to generate ZigBee data; and the ZigBee data is sent To the sensor node, the source address of the ZigBee data is a ZigBee short address of the server.

根據本發明的另一個實施例,提供了一種在第一感測器網路的第一感測器節點中用於與第二感測器網路中的第二感測器節點進行數據傳輸的方法,所述方法包括以下步驟:發送ZigBee業務發現請求消息至所述第一感測器網路的第一閘道,所述ZigBee業務發現請求消息中包括所述第一感測器節點感興趣的業務的業務識別資訊;接收來自所述第一閘道的ZigBee業務發現確認消息,所述ZigBee業務發現確認消息中包括所述第二感測器網路中的所述第二感測器節點的ZigBee短位址,用於指示該第二感測器節點能夠提供所述第一感測器網路中的所述第一感測器節點感興趣的業務;接收來所述第一閘道的ZigBee網路重加入指示消息,所述ZigBee網路重加入指示消息中包括所述第二感測器網路的網路識別資訊,用於指示所述第一感測器節點所要重新加入的感測器網路;發送ZigBee網路重加入請求消息,所述ZigBee網路重加入請求消息中包括所述第二感測器網路的網路識別資訊,用 於指示所述第一感測器節點所要重新加入的感測器網路;接收來自所述第一閘道的ZigBee網路重加入確認消息,所述ZigBee網路重加入確認消息中包括所述第一感測器節點在所述第二感測器網路中的ZigBee短位址;以及發送ZigBee數據至所述第一閘道,所述ZigBee數據的源位址為所述第一感測器節點在所述第二感測器網路中的ZigBee短位址。 In accordance with another embodiment of the present invention, a first sensor node in a first sensor network is provided for data transmission with a second sensor node in a second sensor network The method includes the following steps: sending a ZigBee service discovery request message to a first gateway of the first sensor network, where the ZigBee service discovery request message includes the first sensor node is interested Service identification information of the service; receiving a ZigBee service discovery confirmation message from the first gateway, the ZigBee service discovery confirmation message including the second sensor node in the second sensor network a ZigBee short address for indicating that the second sensor node is capable of providing a service of interest in the first sensor node in the first sensor network; receiving the first gateway a ZigBee network re-join indication message, where the ZigBee network re-entry indication message includes network identification information of the second sensor network, and is used to indicate that the first sensor node is to be re-joined. Sensor network; send ZigBee Heavy road join request message, the network re ZigBee network identification information added to the request message comprises a second sensor network, with Receiving a sensor network to be rejoined by the first sensor node; receiving a ZigBee network re-add confirmation message from the first gateway, the ZigBee network re-join confirmation message including the a ZigBee short address of the first sensor node in the second sensor network; and transmitting ZigBee data to the first gateway, the source address of the ZigBee data being the first sensing The ZigBee short address of the node in the second sensor network.

根據本發明的另一個實施例,提供了一種在第一感測器網路的第一閘道中用於輔助該第一感測器網路中的第一感測器節點與第二感測器網路中的第二感測器節點進行數據傳輸的方法,所述方法包括以下步驟:接收來自所述第一感測器節點的ZigBee業務發現請求消息,所述ZigBee業務發現請求消息中包括該第一感測器節點感興趣的業務的業務識別資訊;將所述ZigBee業務發現請求消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6業務發現請求消息;發送所述IPv6業務發現請求消息至所述第二感測器網路中的第二閘道,所述IPv6業務發現請求消息中包括所述第一感測器節點感興趣的業務的業務識別資訊;接收來自所述第二閘道的IPv6業務發現確認消息,所述IPv6業務發現確認消息中包括所述第二感測器網路的網路識別資訊、所述第二感測器節點在所述第二感測器網路中的ZigBee短位址以及所述第二感測器節點的虛擬IPv6位址,用於指示所述第二感測器網路中的所述第二感測器節點具有所述第一感測器節點感興趣的業務,並且記 錄所述第二感測器節點在所述第二感測器網路中的ZigBee短位址以及所述第二感測器節點的虛擬IPv6位址;將所述IPv6業務發現確認消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee業務發現確認消息;發送所述ZigBee業務發現確認消息至所述第一感測器節點,所述ZigBee業務發現確認消息中包括所述第二感測器節點在所述第二感測器網路中的ZigBee短位址,用於指示該第二感測器節點具有所述第一感測器節點感興趣的業務;發送ZigBee網路重加入指示消息至所述第一感測器節點,所述ZigBee網路重加入指示消息中包括所述第二感測器網路的網路識別資訊,用於指示所述第一感測器節點所要重新加入的感測器網路;接收來自所述第一感測器節點的ZigBee網路重加入請求消息,所述ZigBee網路重加入請求消息中包括所述第二感測器網路的網路識別資訊,用於指示所述第一感測器節點所要重新加入的感測器網路;將所述ZigBee網路重加入請求消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6網路重加入請求消息;發送所述IPv6網路重加入請求消息至所述第二感測器網路的所述第二閘道,所述IPv6網路重加入請求消息中包括所述第一感測器節點的節點識別資訊、所述第一感測器節點的虛擬IPv6位址、所述第一感測器節點所要重新加入的感測器網路的網路識別資訊以及用於指示所述第一閘道是閘道的標籤資訊;接收來自所述第二閘道的IPv6網路重加入確認消息,所述IPv6網路重加入確認消息中 包括所述第一感測器節點在所述第二感測器網路中的ZigBee短位址,並且記錄所述第一感測器節點在所述第二感測器網路中的ZigBee短位址;將所述IPv6網路重加入確認消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee網路重加入確認消息;發送所述ZigBee網路重加入確認消息至所述第一感測器節點,所述ZigBee網路重加入確認消息中包括該第一感測器節點在所述第二感測器網路中的ZigBee短位址;接收來自所述第一感測器節點的ZigBee數據,所述ZigBee數據的源位址為所述第一感測器節點在所述第二感測器網路中的ZigBee短位址;將所述ZigBee數據的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6數據;以及發送所述IPv6數據至所述第二閘道,所述IPv6數據的源位址為所述第一感測器節點的虛擬IPv6位址,所述IPv6數據的目的位址為所述第二感測器節點的虛擬IPv6位址。 According to another embodiment of the present invention, a first sensor node and a second sensor in the first sensor network are provided in a first gateway of the first sensor network. A method for data transmission by a second sensor node in a network, the method comprising the steps of: receiving a ZigBee service discovery request message from the first sensor node, where the ZigBee service discovery request message includes the The service identification information of the service of the first sensor node; replacing the ZigBee network layer header of the ZigBee service discovery request message with an IPv6 header to generate an IPv6 service discovery request message; and sending the IPv6 service discovery Requesting a message to a second gateway in the second sensor network, the IPv6 service discovery request message including service identification information of a service of interest to the first sensor node; receiving from the first The IPv6 service discovery confirmation message of the second gateway, the IPv6 service discovery confirmation message includes network identification information of the second sensor network, and the second sensor node is in the second sensor network a ZigBee short address and a virtual IPv6 address of the second sensor node, configured to indicate that the second sensor node in the second sensor network has the first sensing The node is interested in the business, and remember Recording a ZigBee short address of the second sensor node in the second sensor network and a virtual IPv6 address of the second sensor node; IPv6 of the IPv6 service discovery acknowledgement message The header is replaced with a ZigBee network layer header to generate a ZigBee service discovery confirmation message; the ZigBee service discovery confirmation message is sent to the first sensor node, and the ZigBee service discovery confirmation message includes the second a ZigBee short address of the sensor node in the second sensor network, for indicating that the second sensor node has a service of interest to the first sensor node; sending a ZigBee network weight Adding an indication message to the first sensor node, where the ZigBee network re-entry indication message includes network identification information of the second sensor network, for indicating the first sensor node a sensor network to be rejoined; receiving a ZigBee network rejoin request message from the first sensor node, the ZigBee network rejoin request message including the second sensor network Network identification information for indicating the number a sensor network to be rejoined by the sensor node; replacing the ZigBee network layer header of the ZigBee network re-join request message with an IPv6 header to generate an IPv6 network re-join request message; An IPv6 network rejoin request message to the second gateway of the second sensor network, where the IPv6 network re-join request message includes node identification information of the first sensor node, a virtual IPv6 address of the first sensor node, network identification information of the sensor network to be rejoined by the first sensor node, and a label for indicating that the first gateway is a gateway Receiving an IPv6 network rejoin acknowledgment message from the second gateway, the IPv6 network rejoin confirmation message Include a ZigBee short address of the first sensor node in the second sensor network, and record a short ZigBee of the first sensor node in the second sensor network Address: replacing the IPv6 header of the IPv6 network re-add confirmation message with a ZigBee network layer header to generate a ZigBee network re-add confirmation message; sending the ZigBee network re-add confirmation message to the a sensor node, the ZigBee network re-join confirmation message includes a ZigBee short address of the first sensor node in the second sensor network; receiving from the first sensor ZigBee data of the node, the source address of the ZigBee data is a ZigBee short address of the first sensor node in the second sensor network; a ZigBee network layer label of the ZigBee data The header is replaced with an IPv6 header to generate IPv6 data; and the IPv6 data is sent to the second gateway, the source address of the IPv6 data being a virtual IPv6 address of the first sensor node, The destination address of the IPv6 data is a virtual IPv6 address of the second sensor node.

根據本發明的另一個實施例,提供了一種在第二感測器網路的第二感測器節點中用於配合第一感測器網路中的第一感測器節點進行數據傳輸的方法,所述方法包括以下步驟:接收來自所述第二感測器網路中的第二閘道的ZigBee業務發現請求消息,所述ZigBee業務發現請求消息中包括所述第一感測器節點感興趣的業務的業務識別資訊;根據所述業務識別資訊確定本第二感測器節點具有所述第一感測器節點感興趣的業務後,發送ZigBee業務發現確認消息至所述第二閘道;以及接收來自所述第二閘道 的ZigBee數據,所述ZigBee數據的源位址為所述第一感測器節點在所述第二感測器網路中的ZigBee短位址。 According to another embodiment of the present invention, there is provided a second sensor node in a second sensor network for cooperating with a first sensor node in a first sensor network for data transmission The method includes the steps of: receiving a ZigBee service discovery request message from a second gateway in the second sensor network, the ZigBee service discovery request message including the first sensor node a service identification information of the service of interest; determining, after the second sensor node has the service of interest by the first sensor node, sending, according to the service identification information, a ZigBee service discovery confirmation message to the second gate And receiving from the second gateway ZigBee data, the source address of the ZigBee data is a ZigBee short address of the first sensor node in the second sensor network.

根據本發明的另一個實施例,提供了一種在第二感測器網路的第二閘道中用於輔助第一感測器網路中的第一感測器節點與該第二感測器網路中的第二感測器節點進行數據傳輸的方法,所述方法包括以下步驟:接收來自所述第一感測器網路的第一閘道的IPv6業務發現請求消息,所述IPv6業務發現請求消息中包括所述第一感測器節點感興趣的業務的業務識別資訊;將所述IPv6業務發現請求消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee業務發現請求消息;將所述ZigBee業務發現請求消息發送至所述第二感測器節點,所述ZigBee業務發現請求消息中包括所述第一感測器節點感興趣的業務的業務識別資訊;接收來自所述第二感測器節點的ZigBee業務發現確認消息;將所述ZigBee業務發現確認消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6業務發現確認消息;發送IPv6業務發現確認消息至所述第一感測器網路中的第一閘道,所述IPv6業務發現確認消息中包括所述第二感測器網路的網路識別資訊、所述第二感測器節點在所述第二感測器網路中的ZigBee短位址以及所述第二感測器節點的虛擬IPv6位址,用於指示所述第二感測器網路中的所述第二感測器節點具有所述第一感測器節點感興趣的業務;接收來自所述第一閘道的IPv6網路重加入請求消息,所述IPv6網路重加入請求消息中包括 所述第一感測器節點的節點識別資訊、所述第一感測器節點的虛擬IPv6位址、所述第一感測器節點所要重新加入的感測器網路的網路識別資訊以及用於指示所述第一閘道是閘道的標籤資訊;為所述第一感測器節點分配其在所述第二感測器網路中的ZigBee短位址,並且記錄所述第一感測器節點的虛擬IPv6位址以及所述第一感測器節點在所述第二感測器網路中的ZigBee短位址;發送IPv6網路重加入確認消息至所述第一閘道,所述IPv6網路重加入確認消息中包括所述第一感測器節點在所述第二感測器網路中的ZigBee短位址;接收來自所述第一閘道的IPv6數據,所述IPv6數據的源位址為所述第一感測器節點的虛擬IPv6位址,所述IPv6數據的目的位址為所述第二感測器節點的虛擬IPv6位址;將所述IPv6數據的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee數據;以及發送所述ZigBee數據至所述第二感測器節點,所述ZigBee數據的源位址為所述第一感測器節點在所述第二感測器網路中的ZigBee短位址。 In accordance with another embodiment of the present invention, a first sensor node and a second sensor in a first sensor network are assisted in a second gate of a second sensor network A method of data transmission by a second sensor node in a network, the method comprising the steps of: receiving an IPv6 service discovery request message from a first gateway of the first sensor network, the IPv6 service The discovery request message includes service identification information of a service that is interested in the first sensor node; and replaces an IPv6 header of the IPv6 service discovery request message with a ZigBee network layer header to generate a ZigBee service discovery request message. Sending the ZigBee service discovery request message to the second sensor node, where the ZigBee service discovery request message includes service identification information of a service of interest to the first sensor node; receiving from the a ZigBee service discovery acknowledgement message of the second sensor node; replacing the ZigBee network layer header of the ZigBee service discovery acknowledgement message with an IPv6 header to generate an IPv6 service discovery acknowledgement message; sending the IPv6 a service discovery confirmation message to the first gateway in the first sensor network, where the IPv6 service discovery confirmation message includes network identification information of the second sensor network, the second sense a ZigBee short address of the detector node in the second sensor network and a virtual IPv6 address of the second sensor node for indicating the in the second sensor network a second sensor node having a service of interest to the first sensor node; receiving an IPv6 network re-join request message from the first gateway, the IPv6 network re-join request message being included Node identification information of the first sensor node, a virtual IPv6 address of the first sensor node, network identification information of a sensor network to which the first sensor node is to rejoin, and Label information for indicating that the first gateway is a gateway; assigning a first ZigBee short address in the second sensor network to the first sensor node, and recording the first a virtual IPv6 address of the sensor node and a ZigBee short address of the first sensor node in the second sensor network; sending an IPv6 network re-join confirmation message to the first gateway The IPv6 network re-join confirmation message includes a ZigBee short address of the first sensor node in the second sensor network; receiving IPv6 data from the first gateway, The source address of the IPv6 data is a virtual IPv6 address of the first sensor node, and the destination address of the IPv6 data is a virtual IPv6 address of the second sensor node; the IPv6 data is to be The IPv6 header is replaced with a ZigBee network layer header to generate ZigBee data; and the ZigBee number is sent To the second sensor node, the ZigBee source address data for said first sensor node ZigBee short address in the network of the second sensor.

本發明的優點在於:- 當數據包在ZigBee網路中傳送時,IPv6標頭被替換為ZigBee網路層標頭。因此,不會存在數據包尺寸問題,並且其具有足夠的空間承載應用數據;- 由於保留了ZigBee網路層標頭,因此,能夠重新使用ZigBee網路中所有的現有路由、定址以及數據轉發方案; - 在通信過程中保留了重要的端對端模式,例如資訊安全;- 支援跨不同的ZigBee網路的端對端通信。 The advantages of the present invention are: - When a packet is transmitted in a ZigBee network, the IPv6 header is replaced with a ZigBee network layer header. Therefore, there is no packet size problem, and it has enough space to carry application data; - because the ZigBee network layer header is retained, all existing routing, addressing, and data forwarding schemes in the ZigBee network can be reused. ; - Retain important end-to-end modes during communication, such as information security; - Support end-to-end communication across different ZigBee networks.

本發明的各個實施例將通過下文中的具體實施例的說明而更加清晰。 Various embodiments of the invention will be apparent from the description of the embodiments.

10‧‧‧感測器節點 10‧‧‧ sensor node

20‧‧‧閘道 20‧‧‧gateway

30‧‧‧感測器節點 30‧‧‧ sensor node

40‧‧‧閘道 40‧‧‧Chute

50‧‧‧IPv6伺服器 50‧‧‧IPv6 server

通過閱讀參照以下附圖所作的對非限制性實施例所作的詳細描述,本發明的上述及其他特徵將會更加清晰:圖1示出了根據本發明的實施例的感測器網路中端對端通信的網路架構圖;圖2示出了根據本發明的實施例的感測器節點和IPv6伺服器加入感測器網路的方法流程圖;圖3(a)示出了根據本發明的實施例的閘道中儲存的關於感測器節點的對映表;圖3(b)示出了根據本發明的實施例的閘道中儲存的關於IPv6伺服器的對映表;圖4示出了根據本發明的實施例的從ZigBee網路至IPv6網路的數據傳輸的方法流程圖;圖5示出了根據本發明的實施例的從IPv6網路至ZigBee網路的數據傳輸的方法流程圖;圖6示出了根據本發明的實施例的跨不同ZigBee網路的數據傳輸的方法流程圖。 The above and other features of the present invention will become more apparent from the detailed description of the exemplary embodiments illustrated in the <RTIgt Network architecture diagram of peer communication; FIG. 2 shows a flow chart of a method for a sensor node and an IPv6 server to join a sensor network according to an embodiment of the present invention; FIG. 3(a) shows The mapping table for the sensor nodes stored in the gateway of the embodiment of the invention; FIG. 3(b) shows the mapping table for the IPv6 server stored in the gateway according to an embodiment of the invention; Flowchart of a method for data transmission from a ZigBee network to an IPv6 network according to an embodiment of the present invention; FIG. 5 illustrates a method of data transmission from an IPv6 network to a ZigBee network according to an embodiment of the present invention Flowchart; FIG. 6 shows a flow chart of a method of data transmission across different ZigBee networks in accordance with an embodiment of the present invention.

附圖中相同或者相似的附圖識別表示相同或者相似的 部件。 The same or similar drawing identifications in the figures indicate the same or similar component.

圖1為根據本發明的實施例的感測器網路中端對端通信的網路架構圖。圖中示出了感測器網路A、感測器網路B以及IPv6網路,感測器節點10和閘道20位於感測器網路A中,感測器節點30和閘道40位於感測器網路B中,IPv6伺服器50位於IPv6網路中。感測器網路10通過閘道20連接至IPv6網路,感測器節點30通過閘道40連接至IPv6網路。 1 is a network architecture diagram of end-to-end communication in a sensor network in accordance with an embodiment of the present invention. The sensor network A, the sensor network B, and the IPv6 network are shown, the sensor node 10 and the gateway 20 are located in the sensor network A, the sensor node 30 and the gateway 40 Located in sensor network B, IPv6 server 50 is located in the IPv6 network. The sensor network 10 is connected to the IPv6 network via the gateway 20, and the sensor node 30 is connected to the IPv6 network via the gateway 40.

需要說明的是,儘管感測器網路A和感測器網路B中均僅示出了一個感測器節點,然而,在實際應用中,感測器網路A和感測器網路B中均可包括多個感測器節點。 It should be noted that although only one sensor node is shown in both the sensor network A and the sensor network B, in practical applications, the sensor network A and the sensor network Multiple sensor nodes can be included in B.

以感測器網路A為例,以下參照圖2並結合圖1描述感測器節點10和IPv6伺服器50加入感測器網路A的方法流程。 Taking the sensor network A as an example, a method flow of the sensor node 10 and the IPv6 server 50 joining the sensor network A will be described below with reference to FIG. 2 and FIG.

感測器節點10加入感測器網路A Sensor node 10 joins sensor network A

參照圖2,首先,在步驟S21中,感測器節點10發送ZigBee網路加入請求消息(ZigBee network join request)至閘道20。該ZigBee網路加入請求消息中包括該感測器節點10的節點識別資訊以及該感測器節點10所要加入的感測器網路的網路識別資訊(也即,感測器網路 A的網路識別資訊)。 Referring to FIG. 2, first, in step S21, the sensor node 10 transmits a ZigBee network join request message to the gateway 20. The ZigBee network join request message includes node identification information of the sensor node 10 and network identification information of the sensor network to which the sensor node 10 is to join (ie, the sensor network) A's network identification information).

閘道20接收到來自感測器節點10的ZigBee網路加入請求消息後,在步驟S22中,閘道20為感測器節點10分配ZigBee短位址(ZigBee short address),並且基於感測器節點10的MAC位址和閘道20的IPv6網路前綴為感測器節點10生成虛擬IPv6位址,並且記錄感測器節點10的節點識別資訊、感測器節點10所要加入的感測器網路的網路識別資訊(也即,感測器網路A的網路識別資訊)、為感測器節點10分配的ZigBee短位址以及為感測器節點10生成的虛擬IPv6位址。 After the gateway 20 receives the ZigBee network join request message from the sensor node 10, in step S22, the gateway 20 assigns a ZigBee short address to the sensor node 10, and is based on the sensor. The MAC address of the node 10 and the IPv6 network prefix of the gateway 20 generate a virtual IPv6 address for the sensor node 10, and record the node identification information of the sensor node 10, the sensor to which the sensor node 10 is to be added. The network identification information of the network (i.e., the network identification information of sensor network A), the ZigBee short address assigned to sensor node 10, and the virtual IPv6 address generated for sensor node 10.

例如,閘道20可以將感測器節點10的節點識別資訊、感測器節點10所要加入的感測器網路的網路識別資訊、為感測器節點10分配的ZigBee短位址以及為感測器節點10生成的虛擬IPv6位址記錄在如圖3(a)所示出的對映表中。 For example, gateway 20 may have node identification information for sensor node 10, network identification information for the sensor network to which sensor node 10 is to be added, ZigBee short address assigned to sensor node 10, and The virtual IPv6 address generated by the sensor node 10 is recorded in the mapping table as shown in Fig. 3(a).

然後,在步驟23中,閘道20發送ZigBee網路加入確認消息(ZigBee network join confirm)至感測器節點10。該ZigBee網路加入確認消息中包括為感測器節點10分配的ZigBee短位址。 Then, in step 23, the gateway 20 sends a ZigBee network join confirm message to the sensor node 10. The ZigBee network join confirmation message includes a ZigBee short address assigned to the sensor node 10.

IPv6伺服器50加入感測器網路A IPv6 server 50 joins sensor network A

參照圖2,首先,在步驟S24中,IPv6伺服器50發送IPv6網路加入請求消息(IPv6 network join request)至閘道20。該IPv6網路加入請求消息中包括該IPv6伺服 器50所要加入的感測器網路的網路識別資訊(也即,感測器網路A的網路識別資訊)以及用於指示該IPv6伺服器是終端節點的標籤資訊。 Referring to FIG. 2, first, in step S24, the IPv6 server 50 transmits an IPv6 network join request message to the gateway 20. The IPv6 network join request message includes the IPv6 servo The network identification information of the sensor network to which the device 50 is to be added (that is, the network identification information of the sensor network A) and the tag information indicating that the IPv6 server is the terminal node.

閘道20接收到來自IPv6伺服器50的IPv6網路加入請求消息後,在步驟S25中,閘道20為該IPv6伺服器50分配ZigBee短位址,並且記錄該IPv6伺服器50的IPv6位址、該IPv6伺服器50所要加入的感測器網路的網路識別資訊(也即,感測器網路A的網路識別資訊)以及為該IPv6伺服器50分配的ZigBee短位址。 After the gateway 20 receives the IPv6 network join request message from the IPv6 server 50, in step S25, the gateway 20 assigns a ZigBee short address to the IPv6 server 50, and records the IPv6 address of the IPv6 server 50. The network identification information of the sensor network to which the IPv6 server 50 is to be added (that is, the network identification information of the sensor network A) and the ZigBee short address assigned to the IPv6 server 50.

例如,閘道20可以將IPv6伺服器50的IPv6位址、IPv6伺服器50所要加入的感測器網路的網路識別資訊以及為該IPv6伺服器50分配的ZigBee短位址記錄在如圖3(b)所示出的對映表中。 For example, the gateway 20 may record the IPv6 address of the IPv6 server 50, the network identification information of the sensor network to which the IPv6 server 50 is to be added, and the ZigBee short address assigned to the IPv6 server 50 as shown in the figure. 3(b) shown in the mapping table.

然後,在步驟S26中,閘道20發送IPv6網路加入確認消息(IPv6 network join confirm)至IPv6伺服器50。該IPv6網路加入確認消息中包括為該IPv6伺服器分配的ZigBee短位址。 Then, in step S26, the gateway 20 transmits an IPv6 network join confirm message to the IPv6 server 50. The IPv6 network join confirmation message includes a ZigBee short address allocated for the IPv6 server.

IPv6伺服器50加入多播組 IPv6 server 50 joins the multicast group

為減少數據傳輸量,閘道20和IPv6伺服器50之間可以建立一個多播組。 To reduce the amount of data transfer, a multicast group can be established between the gateway 20 and the IPv6 server 50.

參照圖2,首先,在步驟S27中,IPv6伺服器50發送IPv6多播組加入請求消息(IPv6 multicast group join request)至閘道20。該IPv6多播組加入請求消息中包括 IPv6伺服器50所要加入的多播組的組識別資訊。 Referring to FIG. 2, first, in step S27, the IPv6 server 50 transmits an IPv6 multicast group join request message to the gateway 20. The IPv6 multicast group join request message includes The group identification information of the multicast group to be joined by the IPv6 server 50.

閘道20接收到來自IPv6伺服器50的IPv6多播組加入請求消息後,在步驟S28中,閘道20為該多播組分配一個多播位址,並且記錄該多播組的組識別資訊和多播位址。例如,閘道20可以將該多播組的組識別資訊和多播位址記錄在如圖3(b)所示出的對映表中。 After the gateway 20 receives the IPv6 multicast group join request message from the IPv6 server 50, in step S28, the gateway 20 assigns a multicast address to the multicast group, and records the group identification information of the multicast group. And multicast addresses. For example, the gateway 20 may record the group identification information and the multicast address of the multicast group in the mapping table as shown in FIG. 3(b).

然後,在步驟S29中,閘道20發送IPv6多播組加入確認消息(IPv6 multicast group join confirm)至IPv6伺服器50。該IPv6多播組加入確認消息中包括所分配的多播位址。 Then, in step S29, the gateway 20 transmits an IPv6 multicast group join confirm message to the IPv6 server 50. The IPv6 multicast group join confirmation message includes the allocated multicast address.

以感測器網路A為例,以下參照圖4並結合圖1描述從ZigBee網路至IPv6網路的數據傳輸的方法流程。 Taking the sensor network A as an example, a method flow of data transmission from a ZigBee network to an IPv6 network will be described below with reference to FIG. 4 in conjunction with FIG. 1.

假設在網路加入過程之後,感測器網路A中的感測器節點10想與IPv6網路中的IPv6伺服器50進行通信,例如,該感測器節點10想發送其感測到的數據至其感興趣的目的地。 It is assumed that after the network join process, the sensor node 10 in the sensor network A wants to communicate with the IPv6 server 50 in the IPv6 network, for example, the sensor node 10 wants to send its sensed Data to its destination of interest.

參照圖4,首先,在步驟S41中,感測器節點10發送ZigBee數據請求消息(ZigBee data request)至閘道20,例如,該感測器節點10可以在感測器網路A中廣播該ZigBee數據請求消息。該ZigBee數據請求消息中包括感測器節點10所要發送的數據的業務識別資訊。 Referring to FIG. 4, first, in step S41, the sensor node 10 transmits a ZigBee data request message to the gateway 20, for example, the sensor node 10 can broadcast the sensor network A. ZigBee data request message. The ZigBee data request message includes service identification information of data to be sent by the sensor node 10.

閘道20接收到來自感測器節點10的ZigBee數據請求消息後,在步驟S42中,閘道20將該ZigBee數據請求消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6 數據請求消息(IPv6 data request)。 After the gateway 20 receives the ZigBee data request message from the sensor node 10, in step S42, the gateway 20 replaces the ZigBee network layer header of the ZigBee data request message with an IPv6 header to generate an IPv6 header. Data request message (IPv6 data request).

然後,在步驟S43中,閘道20將該IPv6數據請求消息發送至IPv6伺服器50,例如,閘道20可以通過多播的方式發送IPv6數據請求消息。該IPv6數據請求消息中包括感測器節點10所要發送的數據的業務識別資訊。 Then, in step S43, the gateway 20 transmits the IPv6 data request message to the IPv6 server 50. For example, the gateway 20 can transmit the IPv6 data request message by multicast. The IPv6 data request message includes service identification information of data to be transmitted by the sensor node 10.

IPv6伺服器50接收到來自閘道20的IPv6數據請求消息後,在步驟S44中,IPv6伺服器50根據IPv6數據請求消息中的業務識別資訊確定感測器節點10所要發送的數據是該伺服器想要獲得的數據後,IPv6伺服器50發送IPv6數據確認消息(IPv6 data confirm)至閘道20。例如,IPv6伺服器可以通過單播方式發送IPv6數據確認消息至閘道20。 After the IPv6 server 50 receives the IPv6 data request message from the gateway 20, in step S44, the IPv6 server 50 determines, according to the service identification information in the IPv6 data request message, that the data to be sent by the sensor node 10 is the server. After the data is desired, the IPv6 server 50 sends an IPv6 data confirm message to the gateway 20. For example, the IPv6 server can send an IPv6 data acknowledgement message to the gateway 20 by unicast.

閘道20接收到來自IPv6伺服器50的IPv6數據確認消息後,在步驟S45中,閘道20將該IPv6數據確認消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee數據確認消息(ZigBee data confirm),並且將IPv6伺服器50的ZigBee短位址加入該ZigBee數據確認消息中,以用於指示該IPv6伺服器50是感測器節點10所要發送的數據的目的地。 After the gateway 20 receives the IPv6 data acknowledgment message from the IPv6 server 50, in step S45, the gateway 20 replaces the IPv6 header of the IPv6 data acknowledgment message with the ZigBee network layer header to generate a ZigBee data acknowledgment message. (ZigBee data confirm), and the ZigBee short address of the IPv6 server 50 is added to the ZigBee data acknowledgment message for indicating that the IPv6 server 50 is the destination of the data to be transmitted by the sensor node 10.

然後,在步驟S46中,閘道20發送該ZigBee數據確認消息至感測器節點10,例如,閘道20可以通過單播方式發送ZigBee數據確認消息至感測器節點10。該ZigBee數據確認消息中包括IPv6伺服器50的ZigBee短位址。 Then, in step S46, the gateway 20 transmits the ZigBee data acknowledgement message to the sensor node 10, for example, the gateway 20 may send a ZigBee data acknowledgement message to the sensor node 10 in a unicast manner. The ZigBee data acknowledgement message includes the ZigBee short address of the IPv6 server 50.

至此,感測器節點10可以與IPv6伺服器50直接進 行通信。在通信中,感測器節點10把IPv6伺服器50當作感測器網路A中的一個感測器節點;而IPv6伺服器50把感測器節點10當作一個IPv6節點。 At this point, the sensor node 10 can directly enter the IPv6 server 50. Line communication. In communication, the sensor node 10 treats the IPv6 server 50 as one of the sensor nodes in the sensor network A; and the IPv6 server 50 treats the sensor node 10 as an IPv6 node.

具體地,參照圖4,在步驟S47中,感測器節點10發送ZigBee數據至閘道20,該ZigBee數據的目的位址為IPv6伺服器50的ZigBee短位址。 Specifically, referring to FIG. 4, in step S47, the sensor node 10 transmits ZigBee data to the gateway 20, and the destination address of the ZigBee data is the ZigBee short address of the IPv6 server 50.

閘道20接收到來自感測器節點10的ZigBee數據後,在步驟S48中,閘道20將該ZigBee數據的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6數據。 After the gateway 20 receives the ZigBee data from the sensor node 10, in step S48, the gateway 20 replaces the ZigBee network layer header of the ZigBee data with an IPv6 header to generate IPv6 data.

然後,在步驟S49中,閘道20將該IPv6數據發送至IPv6伺服器50,該IPv6數據的源位址為所感測器節點10的虛擬IPv6位址。 Then, in step S49, the gateway 20 transmits the IPv6 data to the IPv6 server 50, the source address of the IPv6 data being the virtual IPv6 address of the sensor node 10.

以感測器網路A為例,以下參照圖5並結合圖1描述從IPv6網路至ZigBee網路的數據傳輸的方法流程。 Taking the sensor network A as an example, a method flow of data transmission from an IPv6 network to a ZigBee network will be described below with reference to FIG. 5 in conjunction with FIG. 1.

假設在網路加入過程之後,IPv6網路中的IPv6伺服器50想與感測器網路A中的感測器節點10進行通信,例如,該IPv6伺服器50想要獲得一個感興趣的業務。 It is assumed that after the network joining process, the IPv6 server 50 in the IPv6 network wants to communicate with the sensor node 10 in the sensor network A, for example, the IPv6 server 50 wants to obtain a service of interest. .

參照圖5,首先,在步驟S51中,IPv6伺服器50發送IPv6業務發現請求消息(IPv6 service discovery request)至閘道20,例如,IPv6伺服器50可以通過多播的方式發送IPv6業務發現請求消息。該IPv6業務發現請求消息中包括IPv6伺服器50感興趣的業務的業務識別資訊。 Referring to FIG. 5, first, in step S51, the IPv6 server 50 transmits an IPv6 service discovery request message (IPv6 service discovery request) to the gateway 20. For example, the IPv6 server 50 can transmit an IPv6 service discovery request message by multicast. . The IPv6 service discovery request message includes service identification information of a service that the IPv6 server 50 is interested in.

閘道20接收到來自IPv6伺服器50的IPv6業務發現 請求消息後,在步驟S52中,閘道20將該IPv6業務發現請求消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee業務發現請求消息(ZigBee service discovery request)。 Gateway 20 receives IPv6 service discovery from IPv6 server 50 After requesting the message, in step S52, the gateway 20 replaces the IPv6 header of the IPv6 Service Discovery Request message with the ZigBee network layer header to generate a ZigBee service discovery request message.

然後,在步驟S53中,閘道20將該ZigBee業務發現請求消息發送至感測器節點10,例如,閘道20可以通過廣播的方式發送ZigBee業務發現請求消息。該ZigBee業務發現請求消息中包括IPv6伺服器50感興趣的業務的業務識別資訊。 Then, in step S53, the gateway 20 transmits the ZigBee service discovery request message to the sensor node 10, for example, the gateway 20 can transmit a ZigBee service discovery request message by means of a broadcast. The ZigBee service discovery request message includes service identification information of a service that the IPv6 server 50 is interested in.

感測器節點10接收到來自閘道20的ZigBee業務發現請求消息後,在步驟S54中,感測器節點10根據該ZigBee業務發現請求消息中的業務識別資訊確定本感測器節點具有IPv6伺服器50感興趣的業務後,感測器節點10發送ZigBee業務發現確認消息(ZigBee service discovery confirm)至閘道20。例如,感測器節點10可以通過單播的方式發送ZigBee業務發現確認消息至閘道20。 After the sensor node 10 receives the ZigBee service discovery request message from the gateway 20, in step S54, the sensor node 10 determines, according to the service identification information in the ZigBee service discovery request message, that the sensor node has an IPv6 servo. After the device 50 is interested in the service, the sensor node 10 sends a ZigBee service discovery confirm message to the gateway 20. For example, the sensor node 10 can send a ZigBee Service Discovery Confirm message to the gateway 20 in a unicast manner.

閘道20接收到來自感測器節點10的ZigBee業務發現確認消息後,在步驟S55中,閘道20將該ZigBee業務發現確認消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6業務發現確認消息(IPv6 service discovery confirm),並且將感測器節點10的虛擬IPv6位址加入該IPv6業務發現確認消息,以用於指示該感測器節點10能夠提供IPv6伺服器50感興趣的業務。 After the gateway 20 receives the ZigBee service discovery confirmation message from the sensor node 10, in step S55, the gateway 20 replaces the ZigBee network layer header of the ZigBee service discovery confirmation message with an IPv6 header to generate an IPv6 header. An IPv6 service discovery confirm message, and the virtual IPv6 address of the sensor node 10 is added to the IPv6 service discovery acknowledgement message for indicating that the sensor node 10 is capable of providing the IPv6 server 50 interested. business.

然後,在步驟S56中,閘道20發送該IPv6業務發現確認消息至IPv6伺服器50,例如,閘道20可以通過單播的方式發送IPv6業務發現確認消息至IPv6伺服器50。該IPv6業務發現確認消息中包括感測器節點10的虛擬IPv6位址。 Then, in step S56, the gateway 20 transmits the IPv6 service discovery confirmation message to the IPv6 server 50. For example, the gateway 20 can transmit the IPv6 service discovery confirmation message to the IPv6 server 50 by unicast. The IPv6 service discovery confirmation message includes the virtual IPv6 address of the sensor node 10.

至此,IPv6伺服器50可以與感測器節點10直接進行通信。 So far, the IPv6 server 50 can communicate directly with the sensor node 10.

具體地,參照圖5,在步驟S57中,IPv6伺服器50發送IPv6數據至閘道20,該IPv6數據的目的位址為感測器節點10的虛擬IPv6位址。 Specifically, referring to FIG. 5, in step S57, the IPv6 server 50 transmits IPv6 data to the gateway 20, and the destination address of the IPv6 data is the virtual IPv6 address of the sensor node 10.

閘道20接收到來自IPv6伺服器50的IPv6數據後,在步驟S58中,閘道20將該IPv6數據的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee數據。 After the gateway 20 receives the IPv6 data from the IPv6 server 50, in step S58, the gateway 20 replaces the IPv6 header of the IPv6 data with the ZigBee network layer header to generate ZigBee data.

然後,在步驟S59中,閘道20發送該ZigBee數據至感測器節點10,所述ZigBee數據的源位址為IPv6伺服器50的ZigBee短位址。 Then, in step S59, the gateway 20 transmits the ZigBee data to the sensor node 10, and the source address of the ZigBee data is the ZigBee short address of the IPv6 server 50.

以下參照圖6並結合圖1描述跨不同ZigBee網路的數據傳輸的方法流程。 A method flow for data transmission across different ZigBee networks is described below with reference to FIG. 6 in conjunction with FIG.

假設在網路加入過程之後,感測器網路A中的感測器節點10想與感測器網路B中的感測器節點30進行通信,例如,感測器節點10想要獲得某一業務。 It is assumed that after the network join process, the sensor node 10 in the sensor network A wants to communicate with the sensor node 30 in the sensor network B, for example, the sensor node 10 wants to obtain some A business.

參照圖6,首先,在步驟S601中,感測器節點10發送ZigBee業務發現請求消息(ZigBee service discovery request)至閘道20,例如,感測器節點10可以通過廣播 的方式發送ZigBee業務發現請求消息。該ZigBee業務發現請求消息中包括感測器節點10感興趣的業務的業務識別資訊。 Referring to FIG. 6, first, in step S601, the sensor node 10 transmits a ZigBee service discovery request message to the gateway 20, for example, the sensor node 10 can broadcast The way to send a ZigBee Service Discovery Request message. The ZigBee service discovery request message includes service identification information of a service that the sensor node 10 is interested in.

閘道20接收到來自感測器節點10的ZigBee業務發現請求消息後,在步驟602中,閘道20將該ZigBee業務發現請求消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6業務發現請求消息(IPv6 service discovery request)。 After the gateway 20 receives the ZigBee service discovery request message from the sensor node 10, in step 602, the gateway 20 replaces the ZigBee network layer header of the ZigBee service discovery request message with an IPv6 header to generate an IPv6 header. Service discovery request message (IPv6 service discovery request).

然後,在步驟S603中,閘道20發送該IPv6業務發現請求消息至感測器網路B中的閘道40,例如,閘道20可以通過多播的方式發送IPv6業務發現請求消息。該IPv6業務發現請求消息中包括感測器節點10感興趣的業務的業務識別資訊。 Then, in step S603, the gateway 20 transmits the IPv6 service discovery request message to the gateway 40 in the sensor network B. For example, the gateway 20 can transmit the IPv6 service discovery request message by multicast. The IPv6 service discovery request message includes service identification information of a service that is interested in the sensor node 10.

閘道40接收到來自感測器網路A的閘道20的IPv6業務發現請求消息後,在步驟S604中,閘道40將該IPv6業務發現請求消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee業務發現請求消息(ZigBee service discovery request)。 After the gateway 40 receives the IPv6 service discovery request message from the gateway 20 of the sensor network A, in step S604, the gateway 40 replaces the IPv6 header of the IPv6 service discovery request message with the ZigBee network layer label. Header to generate a ZigBee service discovery request message.

然後,在步驟S605中,閘道40將該ZigBee業務發現請求消息發送至感測器節點30,例如,閘道40可以通過廣播的方式發送ZigBee業務發現請求消息。該ZigBee業務發現請求消息中包括感測器節點10感興趣的業務的業務識別資訊。 Then, in step S605, the gateway 40 transmits the ZigBee service discovery request message to the sensor node 30. For example, the gateway 40 can transmit the ZigBee service discovery request message by means of broadcast. The ZigBee service discovery request message includes service identification information of a service that the sensor node 10 is interested in.

感測器節點30接收到來自閘道40的ZigBee業務發 現請求消息後,在步驟S606中,感測器節點30根據該ZigBee業務發現請求消息中的業務識別資訊確定本感測器節點30具有感測器節點10感興趣的業務後,感測器節點30發送ZigBee業務發現確認消息(ZigBee service discovery confirm)至閘道40。例如,感測器節點30可以通過單播的方式發送ZigBee業務發現確認消息。 The sensor node 30 receives the ZigBee service from the gateway 40. After the message is requested, in step S606, the sensor node 30 determines, according to the service identification information in the ZigBee service discovery request message, that the sensor node 30 has the service of interest to the sensor node 10, and the sensor node 30 sends a ZigBee service discovery confirm message to the gateway 40. For example, sensor node 30 can send a ZigBee Service Discovery Ack message in a unicast manner.

閘道40接收到來自感測器節點30的ZigBee業務發現確認消息後;在步驟S607中,閘道40將該ZigBee業務發現確認消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6業務發現確認消息(IPv6 service discovery confirm)。 After the gateway 40 receives the ZigBee service discovery confirmation message from the sensor node 30, in step S607, the gateway 40 replaces the ZigBee network layer header of the ZigBee service discovery confirmation message with an IPv6 header to generate an IPv6 header. Service discovery confirmation message (IPv6 service discovery confirm).

然後,在步驟S608中,閘道40發送IPv6業務發現確認消息至感測器網路A中的20閘道,例如,閘道40可以通過單播的方式發送IPv6業務發現確認消息。該IPv6業務發現確認消息中包括感測器網路B的網路識別資訊、感測器節點40在感測器網路B中的ZigBee短位址以及感測器節點40的虛擬IPv6位址,用於指示感測器網路B中的所感測器節點40具有感測器節點10感興趣的業務。 Then, in step S608, the gateway 40 sends an IPv6 service discovery confirmation message to the 20 gateways in the sensor network A. For example, the gateway 40 can transmit an IPv6 service discovery confirmation message by unicast. The IPv6 service discovery confirmation message includes network identification information of the sensor network B, a ZigBee short address of the sensor node 40 in the sensor network B, and a virtual IPv6 address of the sensor node 40. It is used to indicate that the sensor node 40 in the sensor network B has traffic that is of interest to the sensor node 10.

閘道20接收到來自閘道40的IPv6業務發現確認消息後,在步驟S609中,閘道20記錄感測器節點30在感測器網路B中的ZigBee短位址以及感測器節點30的虛擬IPv6位址,並且將該IPv6業務發現確認消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee業務發現確認消息(ZigBee service discovery confirm)。例如,閘道 20可以將感測器節點30在感測器網路B中的ZigBee短位址以及感測器節點30的虛擬IPv6位址記錄在如圖3(a)所示出的對映表中。 After the gateway 20 receives the IPv6 service discovery confirmation message from the gateway 40, in step S609, the gateway 20 records the ZigBee short address of the sensor node 30 in the sensor network B and the sensor node 30. The virtual IPv6 address, and replace the IPv6 header of the IPv6 Service Discovery Acknowledgement message with the ZigBee network layer header to generate a ZigBee service discovery confirm message. For example, the gateway The ZigBee short address of the sensor node 30 in the sensor network B and the virtual IPv6 address of the sensor node 30 can be recorded in the mapping table as shown in Figure 3(a).

然後,在步驟S610中,閘道20發送該ZigBee業務發現確認消息至感測器節點10,例如,閘道20可以通過單播的方式發送ZigBee業務發現確認消息。該ZigBee業務發現確認消息中包括感測器節點30在感測器網路B中的ZigBee短位址,用於指示該感測器節點30具有感測器節點10感興趣的業務。 Then, in step S610, the gateway 20 transmits the ZigBee service discovery confirmation message to the sensor node 10, for example, the gateway 20 can transmit a ZigBee service discovery confirmation message by unicast. The ZigBee service discovery confirmation message includes a ZigBee short address of the sensor node 30 in the sensor network B for indicating that the sensor node 30 has a service of interest to the sensor node 10.

由於感測器節點30位於感測器網路B中而非感測器網路A中,因此,感測器節點10需要獲取一個其在感測器網路B中的ZigBee短位址(因為不同感測器網路中的感測器節點的ZigBee短位址可能相同)。 Since the sensor node 30 is located in the sensor network B instead of the sensor network A, the sensor node 10 needs to acquire a ZigBee short address in the sensor network B (because The ZigBee short addresses of the sensor nodes in different sensor networks may be the same).

仍參照圖6,首先,在步驟S611中,閘道20發送ZigBee網路重加入指示消息(ZigBee network rejoin indication)至所述感測器節點10。該ZigBee網路重加入指示消息中包括感測器網路B的網路識別資訊,用於指示感測器節點10所要重新加入的感測器網路。 Still referring to FIG. 6, first, in step S611, the gateway 20 transmits a ZigBee network rejoin indication message to the sensor node 10. The ZigBee network re-entry indication message includes network identification information of the sensor network B for indicating the sensor network to which the sensor node 10 is to rejoin.

感測器節點10接收到來所述閘道20的ZigBee網路重加入指示消息後,在步驟S612中,感測器節點10發送ZigBee網路重加入請求消息(ZigBee network rejoin request)至閘道20。該ZigBee網路重加入請求消息中包括感測器網路B的網路識別資訊,用於指示感測器節點10所要重新加入的感測器網路。 After the sensor node 10 receives the ZigBee network rejoin indication message coming to the gateway 20, the sensor node 10 sends a ZigBee network rejoin request message to the gateway 20 in step S612. . The ZigBee network re-submission request message includes network identification information of the sensor network B for indicating the sensor network that the sensor node 10 is to rejoin.

閘道20接收到來自感測器節點10的ZigBee網路重加入請求消息後,在步驟S613中,閘道20將該ZigBee網路重加入請求消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6網路重加入請求消息(IPv6 network rejoin request)。 After the gateway 20 receives the ZigBee network rejoin request message from the sensor node 10, in step S613, the gateway 20 replaces the ZigBee network layer header of the ZigBee network rejoin request message with the IPv6 header. To generate an IPv6 network rejoin request message.

然後,在步驟S614中,閘道20發送該IPv6網路重加入請求消息至感測器網路B中的閘道40。該IPv6網路重加入請求消息中包括感測器節點10的節點識別資訊、感測器節點10的虛擬IPv6位址、感測器節點10所要重新加入的感測器網路的網路識別資訊(也即,感測器網路B的網路識別資訊)以及用於指示閘道20是閘道的標籤資訊。 Then, in step S614, the gateway 20 transmits the IPv6 network re-join request message to the gateway 40 in the sensor network B. The IPv6 network re-join request message includes node identification information of the sensor node 10, a virtual IPv6 address of the sensor node 10, and network identification information of the sensor network to which the sensor node 10 is to rejoin. (ie, network identification information of the sensor network B) and tag information indicating that the gateway 20 is a gateway.

閘道40接收到來自閘道20的IPv6網路重加入請求消息後,在步驟S615中,閘道40為感測器節點10分配其在感測器網路B中的ZigBee短位址,並且記錄感測器節點10的虛擬IPv6位址以及感測器節點10在感測器網路B中的ZigBee短位址。例如,閘道40將感測器節點10的虛擬IPv6位址以及感測器節點10在感測器網路B中的ZigBee短位址記錄在如圖3(a)所示出的對映表中。 After the gateway 40 receives the IPv6 network rejoin request message from the gateway 20, in step S615, the gateway 40 assigns the sensor node 10 its ZigBee short address in the sensor network B, and The virtual IPv6 address of the sensor node 10 and the ZigBee short address of the sensor node 10 in the sensor network B are recorded. For example, gateway 40 records the virtual IPv6 address of sensor node 10 and the ZigBee short address of sensor node 10 in sensor network B in the mapping table as shown in Figure 3(a). in.

然後,在步驟S616中,閘道40發送IPv6網路重加入確認消息(IPv6 network rejoin confirm)至感測器網路A中的閘道20。該IPv6網路重加入確認消息中包括感測器節點10在感測器網路B中的ZigBee短位址。 Then, in step S616, the gateway 40 sends an IPv6 network rejoin confirm message to the gateway 20 in the sensor network A. The IPv6 network re-join confirmation message includes the ZigBee short address of the sensor node 10 in the sensor network B.

閘道20接收到來自閘道40的IPv6網路重加入確認 消息後,在步驟S617中,閘道20記錄感測器節點10在感測器網路B中的ZigBee短位址,並且將該IPv6網路重加入確認消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee網路重加入確認消息(ZigBee network rejoin confirm)至感測器網路A中的閘道20。該IPv6網路重加入確認消息中包括。例如,閘道20將感測器節點10在感測器網路B中的ZigBee短位址記錄如圖3(a)所示出的對映表中。 Gate 20 receives an IPv6 network rejoin confirmation from gateway 40 After the message, in step S617, the gateway 20 records the ZigBee short address of the sensor node 10 in the sensor network B, and replaces the IPv6 header of the IPv6 network re-addition confirmation message with the ZigBee network. The layer header is used to generate a ZigBee network rejoin confirm message to the gateway 20 in the sensor network A. The IPv6 network re-join confirmation message is included. For example, gateway 20 records the ZigBee short address of sensor node 10 in sensor network B as shown in the mapping table shown in Figure 3(a).

然後,在步驟S618中,閘道20發送該ZigBee網路重加入確認消息至感測器節點10。該ZigBee網路重加入確認消息中包括該感測器節點10在感測器網路B中的ZigBee短位址。 Then, in step S618, the gateway 20 transmits the ZigBee network re-add confirmation message to the sensor node 10. The ZigBee network re-join confirmation message includes the ZigBee short address of the sensor node 10 in the sensor network B.

至此,感測器節點10能夠使用其在感測器網路B中的ZigBee短位址直接與感測器網路B中的感測器節點30進行通信。 To this end, the sensor node 10 is able to communicate directly with the sensor node 30 in the sensor network B using its ZigBee short address in the sensor network B.

具體的,參照圖6,在步驟S619中,感測器節點10發送ZigBee數據至閘道20。該ZigBee數據的源位址為感測器節點10在感測器網路B中的ZigBee短位址。 Specifically, referring to FIG. 6, in step S619, the sensor node 10 transmits ZigBee data to the gateway 20. The source address of the ZigBee data is the ZigBee short address of the sensor node 10 in the sensor network B.

閘道20接收到來自感測器節點10的ZigBee數據後,在步驟S620中,閘道20將該ZigBee數據的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6數據。 After the gateway 20 receives the ZigBee data from the sensor node 10, in step S620, the gateway 20 replaces the ZigBee network layer header of the ZigBee data with an IPv6 header to generate IPv6 data.

然後,在步驟S621中,閘道20發送該IPv6數據至感測器網路B中的閘道40。該IPv6數據的源位址為感測器節點10的虛擬IPv6位址,該IPv6數據的目的位址為 感測器節點30的虛擬IPv6位址。 Then, in step S621, the gateway 20 transmits the IPv6 data to the gateway 40 in the sensor network B. The source address of the IPv6 data is a virtual IPv6 address of the sensor node 10, and the destination address of the IPv6 data is The virtual IPv6 address of sensor node 30.

閘道40接收到來自閘道20的IPv6數據後,在步驟S622中,閘道40將該IPv6數據的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee數據。 After the gateway 40 receives the IPv6 data from the gateway 20, in step S622, the gateway 40 replaces the IPv6 header of the IPv6 data with the ZigBee network layer header to generate ZigBee data.

然後,在步驟S623中,閘道40發送該ZigBee數據至感測器節點30。該ZigBee數據的源位址為感測器節點10在感測器網路B中的ZigBee短位址。 Then, in step S623, the gateway 40 transmits the ZigBee data to the sensor node 30. The source address of the ZigBee data is the ZigBee short address of the sensor node 10 in the sensor network B.

對於本領域技術人員而言,顯然本發明不限於上述示範性實施例的細節,而且在不背離本發明的精神或基本特徵的情況下,能夠以其他的具體形式實現本發明。因此,無論從哪一點來看,均應將實施例看作是示範性的,而且是非限制性的,不應將申請專利範圍中的任何附圖標記視為限制所涉及的權利要求。此外,明顯的,“包括”一詞不排除其他元件或步驟,在元件前的“一個”一詞不排除包括“多個”該元件。產品申請專利範圍中陳述的多個元件也可以由一個元件通過軟體或者硬體來實現。第一,第二等詞語用來表示名稱,而並不表示任何特定的順序。 It is apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, and the present invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the claims In addition, it is obvious that the word "comprising" does not exclude other elements or steps, and the word "a" or "an" A plurality of elements stated in the scope of the product application patent may also be realized by one element by software or hardware. The first, second, etc. words are used to denote names and do not denote any particular order.

10‧‧‧感測器節點 10‧‧‧ sensor node

20‧‧‧閘道 20‧‧‧gateway

50‧‧‧IPv6伺服器 50‧‧‧IPv6 server

Claims (13)

一種在IPv6網路的伺服器中用於加入感測器網路的方法,所述方法包括以下步驟:- 發送IPv6網路加入請求消息至所述感測器網路的閘道,所述IPv6網路加入請求消息中包括該伺服器所要加入的感測器網路的網路識別資訊以及用於指示該伺服器是終端節點的標籤資訊;- 接收來自所述閘道的IPv6網路加入確認消息,所述IPv6網路加入確認消息中包括所述閘道為所述伺服器分配的ZigBee短位址。 A method for joining a sensor network in a server of an IPv6 network, the method comprising the steps of: - transmitting an IPv6 network join request message to a gateway of the sensor network, the IPv6 The network join request message includes network identification information of the sensor network to which the server is to be added, and label information indicating that the server is a terminal node; - receiving an IPv6 network join confirmation from the gateway The message, the IPv6 network join confirmation message includes a ZigBee short address allocated by the gateway to the server. 一種在感測器網路的閘道中用於輔助IPv6網路中的伺服器加入該感測器網路的方法,所述方法包括以下步驟:- 接收來自所述伺服器的IPv6網路加入請求消息,所述IPv6網路加入請求消息中包括該伺服器所要加入的感測器網路的網路識別資訊以及用於指示該伺服器是終端節點的標籤資訊;- 為所述伺服器分配ZigBee短位址,並且記錄所述伺服器的IPv6位址、所述伺服器所要加入的感測器網路的網路識別資訊以及為所述伺服器分配的所述ZigBee短位址;- 發送IPv6網路加入確認消息至所述伺服器,所述IPv6網路加入確認消息中包括為該伺服器分配的所述ZigBee短位址。 A method for assisting a server in an IPv6 network to join the sensor network in a gateway of a sensor network, the method comprising the steps of: - receiving an IPv6 network join request from the server a message, the IPv6 network join request message includes network identification information of a sensor network to which the server is to be added, and label information indicating that the server is a terminal node; - allocating ZigBee to the server a short address, and recording an IPv6 address of the server, network identification information of a sensor network to which the server is to join, and the ZigBee short address allocated for the server; - sending IPv6 The network joins the confirmation message to the server, and the IPv6 network join confirmation message includes the ZigBee short address allocated for the server. 一種在感測器網路的閘道中用於輔助感測器節點加入該感測器網路的方法,所述方法包括以下步驟:- 接收來自所述感測器節點的ZigBee網路加入請求消息,所述ZigBee網路加入請求消息中包括該感測器節點的節點識別資訊以及該感測器節點所要加入的感測器網路的網路識別資訊;- 為所述感測器節點分配ZigBee短位址,並且基於所述感測器節點的MAC位址和所述閘道的IPv6網路前綴為所述感測器節點生成虛擬IPv6位址,並且記錄所述感測器節點的所述節點識別資訊、所述感測器節點所要加入的感測器網路的網路識別資訊,為所述感測器節點分配的所述ZigBee短位址以及為所述感測器節點生成的所述虛擬IPv6位址;- 發送ZigBee網路加入確認消息至所述感測器節點,所述ZigBee網路加入確認消息中包括為所述感測器節點分配的所述ZigBee短位址。 A method for assisting a sensor node to join the sensor network in a gateway of a sensor network, the method comprising the steps of: - receiving a ZigBee network join request message from the sensor node The ZigBee network join request message includes node identification information of the sensor node and network identification information of the sensor network to which the sensor node is to join; - assigning ZigBee to the sensor node Short address, and generating a virtual IPv6 address for the sensor node based on a MAC address of the sensor node and an IPv6 network prefix of the gateway, and recording the sensor node Node identification information, network identification information of a sensor network to which the sensor node is to join, the ZigBee short address assigned to the sensor node, and a location generated for the sensor node a virtual IPv6 address; - transmitting a ZigBee network join confirmation message to the sensor node, the ZigBee network join confirmation message including the ZigBee short address allocated for the sensor node. 一種在感測器網路的感測器節點中用於與IPv6網路中的伺服器進行數據傳輸的方法,所述感測器節點和所述伺服器已加入所述感測器網路,其中,所述方法包括以下步驟:- 發送ZigBee數據請求消息至所述感測網路中的閘道,所述ZigBee數據請求消息中包括所述感測器節點所要發送的數據的業務識別資訊;- 接收來自所述閘道的ZigBee數據確認消息,所述 ZigBee數據確認消息中包括所述伺服器的ZigBee短位址,用於指示該伺服器是所述感測器節點所要發送的數據的目的地;- 發送ZigBee數據至所述閘道,所述ZigBee數據的目的位址為所述伺服器的ZigBee短位址。 A method for data transmission with a server in an IPv6 network in a sensor node of a sensor network, the sensor node and the server having joined the sensor network, The method includes the following steps: - sending a ZigBee data request message to a gateway in the sensing network, where the ZigBee data request message includes service identification information of data to be sent by the sensor node; Receiving a ZigBee data acknowledgement message from the gateway, said The ZigBee data acknowledgement message includes a ZigBee short address of the server for indicating that the server is a destination of data to be sent by the sensor node; - transmitting ZigBee data to the gateway, the ZigBee The destination address of the data is the ZigBee short address of the server. 一種在IPv6網路的伺服器中用於配合感測器網路中的感測器節點進行數據傳輸的方法,所述伺服器和所述感測器節點已加入所述感測器網路,其中,所述方法包括以下步驟:- 接收來自所述感測器網路的閘道的IPv6數據請求消息,所述IPv6數據請求消息中包括所述感測器節點所要發送的數據的業務識別資訊;- 根據所述業務識別資訊確定所述感測器節點所要發送的數據是該伺服器想要獲得的數據後,發送IPv6數據確認消息至所述閘道;- 接收來自所述閘道的IPv6數據,所述IPv6數據的源位址為所述感測器節點的虛擬IPv6位址。 A method for coordinating data transmission with a sensor node in a sensor network in a server of an IPv6 network, the server and the sensor node having joined the sensor network, Wherein the method comprises the steps of: - receiving an IPv6 data request message from a gateway of the sensor network, the IPv6 data request message including service identification information of data to be sent by the sensor node And determining, according to the service identification information, that the data to be sent by the sensor node is data that the server wants to obtain, sending an IPv6 data confirmation message to the gateway; receiving IPv6 from the gateway Data, the source address of the IPv6 data is a virtual IPv6 address of the sensor node. 一種在感測器網路的閘道中用於輔助該感測器網路中的感測器節點與IPv6網路中的伺服器進行數據傳輸的方法,所述感測器節點和所述伺服器已加入所述感測器網路,其中,所述方法包括以下步驟:- 接收來自所述感測器節點的ZigBee數據請求消息,所述ZigBee數據請求消息中包括所述感測器節點所要發送的數據的業務識別資訊; - 將所述ZigBee數據請求消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6數據請求消息;- 將所述IPv6數據請求消息發送至所述伺服器,所述IPv6數據請求消息中包括所述感測器節點所要發送的數據的業務識別資訊;- 接收來自所述伺服器的IPv6數據確認消息;- 將所述IPv6數據確認消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee數據確認消息,並且將所述伺服器的ZigBee短位址加入所述ZigBee數據確認消息中,以用於指示該伺服器是所述感測器節點所要發送的數據的目的地;- 發送所述ZigBee數據確認消息至所述感測器節點,所述ZigBee數據確認消息中包括所述伺服器的ZigBee短位址;- 接收來自所述感測器節點的ZigBee數據,所述ZigBee數據的目的位址為所述伺服器的ZigBee短位址;- 將所述ZigBee數據的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6數據;- 將所述IPv6數據發送至所述伺服器,所述IPv6數據的源位址為所述感測器節點的虛擬IPv6位址。 A method for facilitating data transmission between a sensor node in a sensor network and a server in an IPv6 network in a gateway of a sensor network, the sensor node and the server Having joined the sensor network, wherein the method comprises the steps of: - receiving a ZigBee data request message from the sensor node, the ZigBee data request message including the sensor node to send Business identification information of the data; - replacing the ZigBee network layer header of the ZigBee data request message with an IPv6 header to generate an IPv6 data request message; - transmitting the IPv6 data request message to the server, the IPv6 data request message Included with the service identification information of the data to be sent by the sensor node; - receiving an IPv6 data acknowledgement message from the server; - replacing the IPv6 header of the IPv6 data acknowledgement message with a ZigBee network layer header, Generating a ZigBee data acknowledgement message and adding the ZigBee short address of the server to the ZigBee data acknowledgement message for indicating that the server is a destination of data to be sent by the sensor node; Transmitting the ZigBee data acknowledgement message to the sensor node, the ZigBee data acknowledgement message including a ZigBee short address of the server; receiving ZigBee data from the sensor node, the ZigBee data The destination address is the ZigBee short address of the server; - replacing the ZigBee network layer header of the ZigBee data with an IPv6 header to generate IPv6 data; - the IPv6 data Sent to the server, the source IPv6 address of the data to the virtual IPv6 address of the sensor node. 一種在IPv6網路的伺服器中用於與感測器網路中的感測器節點進行數據傳輸的方法,所述伺服器和所述感測器節點已加入所述感測器網路,其中,所述方法包括以下步驟: - 發送IPv6業務發現請求消息至所述感測器網路的閘道,所述IPv6業務發現請求消息中包括所述伺服器感興趣的業務的業務識別資訊;- 接收來自所述閘道的IPv6業務發現確認消息,所述IPv6業務發現確認消息中包括所述感測器節點的虛擬IPv6位址,用於指示該感測器節點能夠提供所述伺服器感興趣的業務;- 發送IPv6數據至所述閘道,所述IPv6數據的目的位址為所述感測器節點的虛擬IPv6位址。 A method for data transmission with a sensor node in a sensor network in a server of an IPv6 network, the server and the sensor node having joined the sensor network, Wherein, the method comprises the following steps: Transmitting an IPv6 Service Discovery Request message to a gateway of the sensor network, the IPv6 Service Discovery Request message including service identification information of a service of interest to the server; receiving IPv6 from the gateway a service discovery confirmation message, where the IPv6 service discovery confirmation message includes a virtual IPv6 address of the sensor node, indicating that the sensor node can provide services that are interested in the server; and sending IPv6 data to The gateway, the destination address of the IPv6 data is a virtual IPv6 address of the sensor node. 一種在感測器網路的感測器節點中用於配合IPv6網路中的伺服器進行數據傳輸的方法,所述感測器節點和所述伺服器已加入所述感測器網路,其中,所述方法包括以下步驟:- 接收來自所述感測器網路的閘道的ZigBee業務發現請求消息,所述ZigBee業務發現請求消息中包括所述伺服器感興趣的業務的業務識別資訊;- 根據所述業務識別資訊確定本感測器節點具有所述伺服器感興趣的業務後,發送ZigBee業務發現確認消息至所述閘道;- 接收來自所述閘道的ZigBee數據,所述ZigBee數據的源位址為所述伺服器的ZigBee短位址。 A method for communicating data with a server in an IPv6 network in a sensor node of a sensor network, the sensor node and the server having joined the sensor network, The method includes the following steps: - receiving a ZigBee service discovery request message from a gateway of the sensor network, the ZigBee service discovery request message including service identification information of a service of interest to the server After determining that the sensor node has the service of interest to the server according to the service identification information, transmitting a ZigBee service discovery confirmation message to the gateway; receiving ZigBee data from the gateway, The source address of the ZigBee data is the ZigBee short address of the server. 一種在感測器網路的閘道中用於輔助IPv6網路中的伺服器與該感測器網路中的感測器節點進行數據傳輸的方法,所述伺服器和所述感測器節點已加入所述感測器網 路,其中,所述方法包括以下步驟:- 接收來自所述伺服器的IPv6業務發現請求消息,所述IPv6業務發現請求消息中包括所述伺服器感興趣的業務的業務識別資訊;- 將所述IPv6業務發現請求消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee業務發現請求消息;- 將所述ZigBee業務發現請求消息發送至所述感測器節點,所述ZigBee業務發現請求消息中包括所述伺服器感興趣的業務的業務識別資訊;- 接收來自所述感測器節點的ZigBee業務發現確認消息;- 將所述ZigBee業務發現確認消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6業務發現確認消息,並且將所述感測器節點的虛擬IPv6位址加入所述IPv6業務發現確認消息,以用於指示該感測器節點能夠提供所述伺服器感興趣的業務;- 發送所述IPv6業務發現確認消息至所述伺服器,所述IPv6業務發現確認消息中包括所述感測器節點的虛擬IPv6位址;- 接收來自所述伺服器的IPv6數據,所述IPv6數據的目的位址為所述感測器節點的虛擬IPv6位址;- 將所述IPv6數據的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee數據;- 發送所述ZigBee數據至所述感測器節點,所述 ZigBee數據的源位址為所述伺服器的ZigBee短位址。 A method for facilitating data transmission between a server in an IPv6 network and a sensor node in the sensor network in a gateway of a sensor network, the server and the sensor node Has joined the sensor network The method includes the following steps: - receiving an IPv6 service discovery request message from the server, where the IPv6 service discovery request message includes service identification information of a service that is interested in the server; The IPv6 header of the IPv6 service discovery request message is replaced with a ZigBee network layer header to generate a ZigBee service discovery request message; - the ZigBee service discovery request message is sent to the sensor node, the ZigBee service discovery The request message includes service identification information of the service of interest to the server; - receiving a ZigBee service discovery confirmation message from the sensor node; - replacing the ZigBee network layer header of the ZigBee service discovery confirmation message An IPv6 header to generate an IPv6 service discovery acknowledgement message, and adding the virtual IPv6 address of the sensor node to the IPv6 service discovery acknowledgement message for indicating that the sensor node is capable of providing the server The service of interest; transmitting the IPv6 service discovery confirmation message to the server, the IPv6 service discovery confirmation message including the sense a virtual IPv6 address of the detector node; receiving IPv6 data from the server, the destination address of the IPv6 data being a virtual IPv6 address of the sensor node; - an IPv6 standard of the IPv6 data The header is replaced with a ZigBee network layer header to generate ZigBee data; - the ZigBee data is sent to the sensor node, The source address of the ZigBee data is the ZigBee short address of the server. 一種在第一感測器網路的第一感測器節點中用於與第二感測器網路中的第二感測器節點進行數據傳輸的方法,所述方法包括以下步驟:- 發送ZigBee業務發現請求消息至所述第一感測器網路的第一閘道,所述ZigBee業務發現請求消息中包括所述第一感測器節點感興趣的業務的業務識別資訊;- 接收來自所述第一閘道的ZigBee業務發現確認消息,所述ZigBee業務發現確認消息中包括所述第二感測器網路中的所述第二感測器節點的ZigBee短位址,用於指示該第二感測器節點能夠提供所述第一感測器網路中的所述第一感測器節點感興趣的業務;- 接收來自所述第一閘道的ZigBee網路重加入指示消息,所述ZigBee網路重加入指示消息中包括所述第二感測器網路的網路識別資訊,用於指示所述第一感測器節點所要重新加入的感測器網路;- 發送ZigBee網路重加入請求消息至所述第一閘道,所述ZigBee網路重加入請求消息中包括所述第二感測器網路的網路識別資訊,用於指示所述第一感測器節點所要重新加入的感測器網路;- 接收來自所述第一閘道的ZigBee網路重加入確認消息,所述ZigBee網路重加入確認消息中包括所述第一感測器節點在所述第二感測器網路中的ZigBee短位址;- 發送ZigBee數據至所述第一閘道,所述ZigBee數 據的源位址為所述第一感測器節點在所述第二感測器網路中的ZigBee短位址。 A method for data transmission with a second sensor node in a second sensor network in a first sensor node of a first sensor network, the method comprising the steps of: - transmitting a ZigBee service discovery request message to the first gateway of the first sensor network, where the ZigBee service discovery request message includes service identification information of a service that is interested in the first sensor node; a ZigBee service discovery confirmation message of the first gateway, where the ZigBee service discovery confirmation message includes a ZigBee short address of the second sensor node in the second sensor network, for indicating The second sensor node is capable of providing a service of interest to the first sensor node in the first sensor network; receiving a ZigBee network rejoin indication message from the first gateway The ZigBee network re-entry indication message includes network identification information of the second sensor network, and is used to indicate a sensor network that the first sensor node is to rejoin; ZigBee network rejoin request message to the a gateway, the ZigBee network re-submission request message includes network identification information of the second sensor network, and is used to indicate a sensor network that the first sensor node is to rejoin Receiving a ZigBee network re-add confirmation message from the first gateway, the ZigBee network re-add confirmation message including the first sensor node in the second sensor network ZigBee short address; - sending ZigBee data to the first gateway, the ZigBee number The source address of the data is the ZigBee short address of the first sensor node in the second sensor network. 一種在第一感測器網路的第一閘道中用於輔助該第一感測器網路中的第一感測器節點與第二感測器網路中的第二感測器節點進行數據傳輸的方法,所述方法包括以下步驟:- 接收來自所述第一感測器節點的ZigBee業務發現請求消息,所述ZigBee業務發現請求消息中包括該第一感測器節點感興趣的業務的業務識別資訊;- 將所述ZigBee業務發現請求消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6業務發現請求消息;- 發送所述IPv6業務發現請求消息至所述第二感測器網路中的第二閘道,所述IPv6業務發現請求消息中包括所述第一感測器節點感興趣的業務的業務識別資訊;- 接收來自所述第二閘道的IPv6業務發現確認消息,所述IPv6業務發現確認消息中包括所述第二感測器網路的網路識別資訊、所述第二感測器節點在所述第二感測器網路中的ZigBee短位址以及所述第二感測器節點的虛擬IPv6位址,用於指示所述第二感測器網路中的所述第二感測器節點具有所述第一感測器節點感興趣的業務,並且記錄所述第二感測器節點在所述第二感測器網路中的ZigBee短位址以及所述第二感測器節點的虛擬IPv6位址;- 將所述IPv6業務發現確認消息的IPv6標頭替換為 ZigBee網路層標頭,以生成ZigBee業務發現確認消息;- 發送所述ZigBee業務發現確認消息至所述第一感測器節點,所述ZigBee業務發現確認消息中包括所述第二感測器節點在所述第二感測器網路中的ZigBee短位址,用於指示該第二感測器節點具有所述第一感測器節點感興趣的業務;- 發送ZigBee網路重加入指示消息至所述第一感測器節點,所述ZigBee網路重加入指示消息中包括所述第二感測器網路的網路識別資訊,用於指示所述第一感測器節點所要重新加入的感測器網路;- 接收來自所述第一感測器節點的ZigBee網路重加入請求消息,所述ZigBee網路重加入請求消息中包括所述第二感測器網路的網路識別資訊,用於指示所述第一感測器節點所要重新加入的感測器網路;- 將所述ZigBee網路重加入請求消息的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6網路重加入請求消息;- 發送所述IPv6網路重加入請求消息至所述第二感測器網路的所述第二閘道,所述IPv6網路重加入請求消息中包括所述第一感測器節點的節點識別資訊、所述第一感測器節點的虛擬IPv6位址、所述第一感測器節點所要重新加入的感測器網路的網路識別資訊以及用於指示所述第一閘道是閘道的標籤資訊;- 接收來自所述第二閘道的IPv6網路重加入確認消 息,所述IPv6網路重加入確認消息中包括所述第一感測器節點在所述第二感測器網路中的ZigBee短位址,並且記錄所述第一感測器節點在所述第二感測器網路中的ZigBee短位址;- 將所述IPv6網路重加入確認消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee網路重加入確認消息;- 發送所述ZigBee網路重加入確認消息至所述第一感測器節點,所述ZigBee網路重加入確認消息中包括該第一感測器節點在所述第二感測器網路中的ZigBee短位址;- 接收來自所述第一感測器節點的ZigBee數據,所述ZigBee數據的源位址為所述第一感測器節點在所述第二感測器網路中的ZigBee短位址;- 將所述ZigBee數據的ZigBee網路層標頭替換為IPv6標頭,以生成IPv6數據;- 發送所述IPv6數據至所述第二閘道,所述IPv6數據的源位址為所述第一感測器節點的虛擬IPv6位址,所述IPv6數據的目的位址為所述第二感測器節點的虛擬IPv6位址。 One in a first gateway of the first sensor network for assisting a first sensor node in the first sensor network with a second sensor node in a second sensor network A method of data transmission, the method comprising the steps of: - receiving a ZigBee service discovery request message from the first sensor node, the ZigBee service discovery request message including a service of interest to the first sensor node Service identification information; - replacing the ZigBee network layer header of the ZigBee Service Discovery Request message with an IPv6 header to generate an IPv6 Service Discovery Request message; - transmitting the IPv6 Service Discovery Request message to the second sense a second gateway in the network of the controller, the IPv6 service discovery request message including service identification information of a service of interest to the first sensor node; receiving IPv6 service discovery from the second gateway a confirmation message, the IPv6 service discovery confirmation message includes network identification information of the second sensor network, and a ZigBee short position of the second sensor node in the second sensor network Address and said a virtual IPv6 address of the sensor node, configured to indicate that the second sensor node in the second sensor network has a service of interest to the first sensor node, and record the a ZigBee short address of the second sensor node in the second sensor network and a virtual IPv6 address of the second sensor node; - an IPv6 header of the IPv6 service discovery acknowledgement message Replace with a ZigBee network layer header to generate a ZigBee service discovery acknowledgment message; - transmitting the ZigBee service discovery acknowledgment message to the first sensor node, the ZigBee service discovery acknowledgment message including the second sensor a ZigBee short address of the node in the second sensor network, for indicating that the second sensor node has a service of interest to the first sensor node; - transmitting a ZigBee network rejoin indication Message to the first sensor node, the ZigBee network re-entry indication message includes network identification information of the second sensor network, used to indicate that the first sensor node is to be re-initiated Joining the sensor network; receiving a ZigBee network re-join request message from the first sensor node, the ZigBee network re-join request message including the network of the second sensor network Road identification information for indicating a sensor network to which the first sensor node is to rejoin; - replacing the ZigBee network layer header of the ZigBee network re-join request message with an IPv6 header, Generating an IPv6 network re-join request message; Transmitting the IPv6 network re-subscription request message to the second gateway of the second sensor network, the IPv6 network re-join request message including a node of the first sensor node Identifying information, a virtual IPv6 address of the first sensor node, network identification information of a sensor network to which the first sensor node is to rejoin, and indicating that the first gateway is Tag information of the gateway; - receiving an IPv6 network re-add confirmation from the second gateway The IPv6 network re-join confirmation message includes a ZigBee short address of the first sensor node in the second sensor network, and records the first sensor node in the Describe a ZigBee short address in the second sensor network; - replace the IPv6 header of the IPv6 network re-addition confirmation message with a ZigBee network layer header to generate a ZigBee network re-join confirmation message; Sending the ZigBee network re-join confirmation message to the first sensor node, where the ZigBee network re-join confirmation message includes the first sensor node in the second sensor network ZigBee short address; receiving ZigBee data from the first sensor node, the source address of the ZigBee data being ZigBee of the first sensor node in the second sensor network Short address; - replacing the ZigBee network layer header of the ZigBee data with an IPv6 header to generate IPv6 data; - transmitting the IPv6 data to the second gateway, the source address of the IPv6 data a virtual IPv6 address of the first sensor node, where the destination address of the IPv6 data is the The virtual IPv6 address of the second sensor node. 一種在第二感測器網路的第二感測器節點中用於配合第一感測器網路中的第一感測器節點進行數據傳輸的方法,所述方法包括以下步驟:- 接收來自所述第二感測器網路中的第二閘道的 ZigBee業務發現請求消息,所述ZigBee業務發現請求消息中包括所述第一感測器節點感興趣的業務的業務識別資訊;- 根據所述業務識別資訊確定本第二感測器節點具有所述第一感測器節點感興趣的業務後,發送ZigBee業務發現確認消息至所述第二閘道;- 接收來自所述第二閘道的ZigBee數據,所述ZigBee數據的源位址為所述第一感測器節點在所述第二感測器網路中的ZigBee短位址。 A method for data transmission in a second sensor node of a second sensor network for cooperation with a first sensor node in a first sensor network, the method comprising the steps of: - receiving From the second gate of the second sensor network a ZigBee service discovery request message, where the ZigBee service discovery request message includes service identification information of a service that is interested in the first sensor node; and determining, according to the service identification information, that the second sensor node has the After the service of the first sensor node is interested, sending a ZigBee service discovery confirmation message to the second gateway; receiving ZigBee data from the second gateway, the source address of the ZigBee data is A ZigBee short address of the first sensor node in the second sensor network. 一種在第二感測器網路的第二閘道中用於輔助第一感測器網路中的第一感測器節點與該第二感測器網路中的第二感測器節點進行數據傳輸的方法,所述方法包括以下步驟:- 接收來自所述第一感測器網路的第一閘道的IPv6業務發現請求消息,所述IPv6業務發現請求消息中包括所述第一感測器節點感興趣的業務的業務識別資訊;- 將所述IPv6業務發現請求消息的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee業務發現請求消息;- 將所述ZigBee業務發現請求消息發送至所述第二感測器節點,所述ZigBee業務發現請求消息中包括所述第一感測器節點感興趣的業務的業務識別資訊;- 接收來自所述第二感測器節點的ZigBee業務發現確認消息;- 將所述ZigBee業務發現確認消息的ZigBee網路層 標頭替換為IPv6標頭,以生成IPv6業務發現確認消息;- 發送IPv6業務發現確認消息至所述第一感測器網路中的第一閘道,所述IPv6業務發現確認消息中包括所述第二感測器網路的網路識別資訊、所述第二感測器節點在所述第二感測器網路中的ZigBee短位址以及所述第二感測器節點的虛擬IPv6位址,用於指示所述第二感測器網路中的所述第二感測器節點具有所述第一感測器節點感興趣的業務;- 接收來自所述第一閘道的IPv6網路重加入請求消息,所述IPv6網路重加入請求消息中包括所述第一感測器節點的節點識別資訊、所述第一感測器節點的虛擬IPv6位址、所述第一感測器節點所要重新加入的感測器網路的網路識別資訊以及用於指示所述第一閘道是閘道的標籤資訊;- 為所述第一感測器節點分配其在所述第二感測器網路中的ZigBee短位址,並且記錄所述第一感測器節點的虛擬IPv6位址以及所述第一感測器節點在所述第二感測器網路中的ZigBee短位址;- 發送IPv6網路重加入確認消息至所述第一閘道,所述IPv6網路重加入確認消息中包括所述第一感測器節點在所述第二感測器網路中的ZigBee短位址;- 接收來自所述第一閘道的IPv6數據,所述IPv6數據的源位址為所述第一感測器節點的虛擬IPv6位址,所述IPv6數據的目的位址為所述第二感測器節點的虛擬 IPv6位址;- 將所述IPv6數據的IPv6標頭替換為ZigBee網路層標頭,以生成ZigBee數據;- 發送所述ZigBee數據至所述第二感測器節點,所述ZigBee數據的源位址為所述第一感測器節點在所述第二感測器網路中的ZigBee短位址。 One in a second gate of the second sensor network for assisting a first sensor node in the first sensor network with a second sensor node in the second sensor network A method of data transmission, the method comprising the steps of: - receiving an IPv6 service discovery request message from a first gateway of the first sensor network, the IPv6 service discovery request message including the first sense The service identification information of the service of interest to the test node; - replacing the IPv6 header of the IPv6 service discovery request message with the ZigBee network layer header to generate a ZigBee service discovery request message; - the ZigBee service discovery request Sending a message to the second sensor node, where the ZigBee service discovery request message includes service identification information of a service that is interested in the first sensor node; receiving the second sensor node from the second sensor node ZigBee service discovery confirmation message; - ZigBee network layer of the ZigBee service discovery confirmation message The header is replaced with an IPv6 header to generate an IPv6 service discovery acknowledgement message; - an IPv6 service discovery acknowledgement message is sent to the first gateway in the first sensor network, and the IPv6 service discovery acknowledgement message includes Network identification information of the second sensor network, a ZigBee short address of the second sensor node in the second sensor network, and a virtual IPv6 of the second sensor node a address indicating that the second sensor node in the second sensor network has a service of interest to the first sensor node; receiving an IPv6 from the first gateway a network re-join request message, where the IPv6 network re-submission request message includes node identification information of the first sensor node, a virtual IPv6 address of the first sensor node, and the first sense Network identification information of the sensor network to be rejoined by the detector node and label information for indicating that the first gateway is a gateway; - assigning the first sensor node to the first a ZigBee short address in the second sensor network, and recording the first sensor a virtual IPv6 address of the point and a ZigBee short address of the first sensor node in the second sensor network; - transmitting an IPv6 network re-join confirmation message to the first gateway, The IPv6 network re-join confirmation message includes a ZigBee short address of the first sensor node in the second sensor network; receiving IPv6 data from the first gateway, The source address of the IPv6 data is a virtual IPv6 address of the first sensor node, and the destination address of the IPv6 data is a virtual state of the second sensor node IPv6 address; - replacing the IPv6 header of the IPv6 data with a ZigBee network layer header to generate ZigBee data; - transmitting the ZigBee data to the second sensor node, the source of the ZigBee data The address is a ZigBee short address of the first sensor node in the second sensor network.
TW102129276A 2012-09-04 2013-08-15 End-to-end communication in sensor network TW201415936A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210324148.1A CN103686584B (en) 2012-09-04 2012-09-04 End-to-end communication in sensor network

Publications (1)

Publication Number Publication Date
TW201415936A true TW201415936A (en) 2014-04-16

Family

ID=49484390

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102129276A TW201415936A (en) 2012-09-04 2013-08-15 End-to-end communication in sensor network

Country Status (3)

Country Link
CN (1) CN103686584B (en)
TW (1) TW201415936A (en)
WO (1) WO2014037779A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI578740B (en) * 2014-09-23 2017-04-11 英特爾公司 Converged adaptive compensation scheme

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935678A (en) * 2014-03-19 2015-09-23 国家电网公司 Communication method of power wireless sensing network, access gateway and system
KR102244824B1 (en) * 2014-08-28 2021-04-27 삼성전자주식회사 Electronic apparatus and method for ip network service
US10097509B2 (en) * 2014-09-29 2018-10-09 Raytheon Company IP address translation for tactical networks
EP3010183B1 (en) * 2014-10-13 2019-06-19 Deutsche Telekom AG Device, system and method for connecting field bus devices with the internet
CN105516381A (en) * 2014-10-14 2016-04-20 中国电信股份有限公司 Method, device and system for generating IPv6 address
US11343222B2 (en) 2015-04-02 2022-05-24 Google Llc Efficient network stack for wireless application protocols
CN104994014B (en) * 2015-05-11 2018-02-27 重庆邮电大学 Power line carrier IPv6 in intelligent grid communication and the communication means between wireless ZigBee
CN104954224B (en) * 2015-06-09 2019-02-01 神州数码(中国)有限公司 The method and apparatus of IP device access sensor network
CN106888281A (en) * 2017-03-31 2017-06-23 山东超越数控电子有限公司 A kind of things-internet gateway and application towards ZigBee radio sensing networks and IPv4 networks
CN108306823A (en) * 2018-02-11 2018-07-20 中国联合网络通信集团有限公司 A kind of addressing method and system of ZigBee node
DE102019112841A1 (en) * 2019-05-16 2020-11-19 innogy eMobility Solutions GmbH Charging station for charging electric vehicles
WO2022221445A1 (en) * 2021-04-14 2022-10-20 Futurewei Technologies, Inc. Asymmetric addressing for limited domains and internet

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905527A (en) * 2005-07-28 2007-01-31 横河电机株式会社 Network communication system
CN101005418A (en) * 2006-12-08 2007-07-25 海信集团有限公司 Communication method and device between ether network and radio sensor network
KR20110003209A (en) * 2009-07-03 2011-01-11 주식회사 케이티 Zigbee gateway and internet protocol service server of interlocking zigbee gateway with internet protocol network
CN201813549U (en) * 2010-10-18 2011-04-27 上海易教信息科技有限公司 IOT (the Internet of Things) router

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI578740B (en) * 2014-09-23 2017-04-11 英特爾公司 Converged adaptive compensation scheme
US10007749B2 (en) 2014-09-23 2018-06-26 Intel Corporation Converged adaptive compensation scheme

Also Published As

Publication number Publication date
CN103686584B (en) 2016-12-14
WO2014037779A1 (en) 2014-03-13
CN103686584A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
TW201415936A (en) End-to-end communication in sensor network
KR101468831B1 (en) Mapping private and public addresses
US8942233B2 (en) Method and apparatus for performing network address translation
US10212233B2 (en) Data transfer in a system of connected things
US8457014B2 (en) Method for configuring control tunnel and direct tunnel in IPv4 network-based IPv6 service providing system
US8149849B2 (en) Zigbee/IP gateway
CN102739541B (en) The method, apparatus and system of a kind of routing function startup and transfer of data
US10680938B2 (en) Method and apparatus for information centric networking (ICN) over locator/identifier separator protocol (LISP)
US10148458B2 (en) Method to support multi-protocol for virtualization
US7764691B2 (en) Allowing IPv4 clients to communicate using teredo addresses when both clients are behind a NAT
TW200924462A (en) System and method for connection of hosts behind NATs
WO2017031947A1 (en) Method and apparatus for sending target data to and acquiring target data from network
WO2011035528A1 (en) Method, system and relay server for network address translation (nat) traversal by way of relay
US8990424B2 (en) Network address translation based on recorded application state
US20100260203A1 (en) TUNNELING IPv6 PACKET THROUGH IPv4 NETWORK USING A TUNNEL ENTRY BASED ON IPv6 PREFIX AND TUNNELING IPv4 PACKET USING A TUNNEL ENTRY BASED ON IPv4 PREFIX
TWI532353B (en) Method for establishing connection of community virtual network and network communication system thereof
US20170346788A1 (en) Network address translation
JP2006005754A (en) Sip signal conversion method, sip-alg device, sip signal conversion program, and recording medium
EP3529963B1 (en) Methods and apparatus for facilitating real time multimedia communications
TWI302794B (en)
WO2008069504A1 (en) Method for configuring control tunnel and direct tunnel in ipv4 network-based ipv6 service providing system
WO2017121134A1 (en) Method for node identification and service advertisement in communication networks
WO2023100371A1 (en) Communication equipment, communication method and program
CN105099928A (en) Dual-stack router and method for realizing bandwidth sharing
JP2007306144A (en) Transmission apparatus, transmission method thereof, program, and storage medium