CN103533574A - Method and device for data transmission between wireless sensor network and internet - Google Patents

Method and device for data transmission between wireless sensor network and internet Download PDF

Info

Publication number
CN103533574A
CN103533574A CN201310467703.0A CN201310467703A CN103533574A CN 103533574 A CN103533574 A CN 103533574A CN 201310467703 A CN201310467703 A CN 201310467703A CN 103533574 A CN103533574 A CN 103533574A
Authority
CN
China
Prior art keywords
packet
wsn
address
header
ipv6
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310467703.0A
Other languages
Chinese (zh)
Inventor
赵文东
解冰
胡昌玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201310467703.0A priority Critical patent/CN103533574A/en
Publication of CN103533574A publication Critical patent/CN103533574A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and a device for data transmission between a wireless sensor network and the internet, and relates to the technical field of the internet of things. The volume of a data packet is reduced so as to lower the bandwidth pressure in the data packet transmission process. The method comprises the following steps of receiving the data packet sent by a wireless sensor network (WSN) node; when the data packet does not contain the sixth edition of internet protocol (IPv6) header, de-packaging the WSN header of the data packet to obtain the load data of the data packet; packaging the load data onto the IPv6 header to obtain an IPv6 data packet; sending the IPv6 data packet to a server. The embodiment of the invention is suitable for the process of data transmission between the sensor network and the internet.

Description

The method and apparatus of transfer of data between wireless sensor network and the Internet
Technical field
The present invention relates to technology of Internet of things field, relate in particular to the method and apparatus of transfer of data between a kind of wireless sensor network and the Internet.
Background technology
Under environment of internet of things, wireless sensor network (Wireless Sensor Networks, WSN) mainly contains two kinds with the access way of existing network: directly access and gateway accessing.Wherein, directly access way is, when WSN node and mobile terminal are all supported IPv6(Internet Protocol Version6, Internet Protocol version 6) time, mobile terminal can directly communicate with WSN node.And gateway accessing mode is, after the packet that gateway reception server or WSN interior nodes (ordinary node) send, packet is carried out to protocol conversion, to obtain the packet of supporting the other side's communication protocol, be that gateway receives after the packet of server or the transmission of WSN node, directly packet outer package WSN header or encapsulation ipv6 header, and by the Packet Generation after protocol conversion to WSN node or server.
When all WSN nodes all adopt direct access way, because WSN node device is low in energy consumption, complexity is poor, there is no wide area concatenation ability, if adopt gateway accessing mode, although solved the problem of direct access way, but the data communication of all WSN nodes and server all needs through gateway, when gateway carries out protocol conversion to packet, need to encapsulate again ipv6 header outward or encapsulate again WSN header outward at the packet that has encapsulated ipv6 header at the packet that has encapsulated WSN header, cause increasing the capacity of packet, when serious, can cause network congestion.
Summary of the invention
Embodiments of the invention provide the method and apparatus of transfer of data between a kind of wireless sensor network and the Internet, reduce the capacity of packet, thereby reduce the bandwidth pressure in transmission of data packets.
First aspect, the embodiment of the present invention provides the method for transmitting uplink data between a kind of wireless sensor network and the Internet, comprising:
Receive the packet that wireless sensor network WSN node sends;
While not comprising Internet Protocol version 6 ipv6 header in described packet, by the WSN header decapsulation of described packet, obtain the load data of described packet;
By the upper ipv6 header of described load data encapsulation, obtain IPv6 packet;
By described IPv6 Packet Generation to server.
Second aspect, the embodiment of the present invention provides the method for downlink data transmission between a kind of wireless sensor network and the Internet, comprising:
The packet that reception server sends;
When the destination address comprising when the header of described packet is gateway address, by the ipv6 header decapsulation of described packet, obtain the load data of described packet;
According to described load data, that obtains that described load data comprises treats the described WSN address of node corresponding with the network label of the WSN node of described server communication;
By the upper WSN header of described load data encapsulation, obtain WSN packet;
According to described WSN address of node, by described WSN Packet Generation, give described WSN node corresponding to described WSN address of node.
The third aspect, the embodiment of the present invention provides a kind of intelligent gateway, and when carrying out transmitting uplink data between wireless sensor network and the Internet, described intelligent gateway comprises:
Receiving element, the packet sending for receiving wireless sensor network WSN node;
Decapsulation unit, for when described packet does not comprise Internet Protocol version 6 ipv6 header, by the WSN header decapsulation of described packet, obtains the load data of described packet;
Encapsulation unit, for by the upper ipv6 header of described load data encapsulation, obtains IPv6 packet;
Transmitting element, for by described IPv6 Packet Generation to server.
Fourth aspect, the embodiment of the present invention provides a kind of intelligent gateway, and when carrying out downlink data transmission between wireless sensor network and the Internet, described intelligent gateway comprises:
Receiving element, the packet sending for reception server;
Decapsulation unit, when the destination address comprising for the header when described packet is gateway address, by the ipv6 header decapsulation of described packet, obtains the load data of described packet;
Acquiring unit, for according to described load data, that obtains that described load data comprises treats the described WSN address of node corresponding with the network label of the WSN node of described server communication;
Encapsulation unit, for by the upper WSN header of described load data encapsulation, obtains WSN packet;
Transmitting element, for according to described WSN address of node, gives described WSN node corresponding to described WSN address of node by described WSN Packet Generation.
The method and apparatus of transfer of data between a kind of wireless sensor network that the embodiment of the present invention provides and the Internet, while carrying out transfer of data between the node in wireless sensor network and the server in the Internet, by gateway by needs carry on an agreement conversion packet carry out decapsulation, and then encapsulation on need conversion header corresponding to agreement.While packet being carried out to protocol conversion with gateway in prior art, need to encapsulate again ipv6 header outward or encapsulate again WSN header outward at the packet that has encapsulated ipv6 header at the packet that has encapsulated WSN header, cause increasing the capacity of packet, when serious, can cause network congestion to be compared, the embodiment of the present invention is by the former header decapsulation of packet, encapsulate again upper new header, the capacity of the packet that Reseal is good is reduced, thereby can reduce bandwidth pressure in Internet Transmission.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, to the accompanying drawing of required use in the embodiment of the present invention be briefly described below, apparently, below described accompanying drawing be only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the method for transmitting uplink data between a kind of wireless sensor network that Fig. 1 provides for one embodiment of the invention and the Internet;
The flow chart of the method for transmitting uplink data between a kind of wireless sensor network that Fig. 2 provides for another embodiment of the present invention and the Internet;
The flow chart of the method for downlink data transmission between a kind of wireless sensor network that Fig. 3 provides for one embodiment of the invention and the Internet;
The flow chart of the method for downlink data transmission between a kind of wireless sensor network that Fig. 4 provides for another embodiment of the present invention and the Internet;
The structure chart of a kind of intelligent gateway that Fig. 5 provides for one embodiment of the invention;
The structure chart of the intelligent gateway that Fig. 6 provides for another embodiment of the present invention;
The structure chart of a kind of intelligent gateway that Fig. 7 provides for one embodiment of the invention;
Fig. 8 provides the structure chart of intelligent gateway for another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides the method for transmitting uplink data between a kind of wireless sensor network and the Internet, and the executive agent of the method is gateway, is specially gateway device, and as shown in Figure 1, described method comprises:
Step 101, gateway receive the packet that WSN node sends.
While carrying out transmitting uplink data between WSN and the Internet, packet first sends to gateway by the WSN node in WSN, then by described package forward, gives the server in described the Internet by described gateway.
Optionally, WSN node can be divided into ordinary node and IPv6 node, wherein, the packet that IPv6 node sends comprises ipv6 header, transmission channel between IPv6 node and gateway is supported IPv6 communication protocol, in the packet that ordinary node sends, do not comprise ipv6 header, this packet comprises WSN header, and the transmission channel between ordinary node and gateway is supported WSN communication protocol.
Step 102, while not comprising ipv6 header in described packet, gateway, by the WSN header decapsulation of described packet, obtains the load data of described packet.
Optionally, after gateway receives the packet of WSN node transmission, whether the header that judges packet is ipv6 header, while not comprising ipv6 header in the header of packet, illustrate that this packet is the packet that in WSN, ordinary node sends, transmission channel between ordinary node and gateway is supported WSN communication protocol, does not support IPv6 communication protocol.Because the transmission channel between server and gateway is supported IPv6 communication protocol, gateway sends in the packet of server and comprises ipv6 header, therefore gateway need to carry out protocol conversion by this packet, to make the packet after protocol conversion process comprise ipv6 header, can send to server by gateway.
Optionally, gateway is by the WSN header decapsulation of described packet, and the WSN header that is about to described packet is deleted, and obtains the load data of described packet, and this load data is the data of the surrounding enviroment of WSN node collection, and need to report the data of server.
Step 103, by the upper ipv6 header of described load data encapsulation, obtain IPv6 packet.
Optionally, the data that send to gateway due to WSN node all send to server, during therefore for load data encapsulation ipv6 header, need to be by source address in ipv6 header and destination address interpolation, be that source address is gateway address, destination address is the address of server, then, by the ipv6 header of having added source address and destination address in load data encapsulation, obtains IPv6 packet.
Step 104, by described IPv6 Packet Generation to server.
The embodiment of the present invention provides the method for transmitting uplink data between a kind of wireless sensor network and the Internet, by gateway, the WSN node of reception is sent do not comprise the packet of ipv6 header time, by the WSN header decapsulation of packet, and by the upper ipv6 header of load data encapsulation obtaining, the IPv6 packet obtaining also sends to server, make in transmission of data packets, reduce the capacity of packet, thereby reduce the bandwidth pressure in transmission of data packets.
The embodiment of the present invention provides the method for transmitting uplink data between a kind of wireless sensor network and the Internet, and as shown in Figure 2, the method comprises:
Step 201, WSN node sends packet to gateway.
Optionally, WSN node is collected the data of surrounding enviroment, and these data are former data, and these data need to be reported as server by WSN node.WSN node encapsulates data header after collecting data, and then composition data bag sends to gateway.
It should be noted that, WSN node comprises ordinary node and IPv6 node, transmission channel between ordinary node and gateway is not supported IPv6 communication protocol, transmission channel between IPv6 node and gateway is supported IPv6 communication protocol, when WSN node encapsulates data header, ordinary node encapsulates data WSN header, and IPv6 node encapsulates data ipv6 header.
Step 202, gateway receives the packet that WSN node sends, and records the network label of WSN node.
Optionally, there is unique network label in each WSN node in WSN, for distinguishing different WSN nodes.
Step 203, gateway judges whether the header of packet is ipv6 header.
When the header of packet is ipv6 header, the source address of carrying in this ipv6 header is IPv6 address of node, the address that destination address is described server; When the header of packet is ipv6 header, execution step 204, when the header of packet is not ipv6 header, the header of packet is WSN header, the address that the source address of carrying in this WSN header is ordinary node, destination address is gateway address, when the header of packet is not ipv6 header, performs step 205.
Step 204, gateway directly passes through server by described packet.
Optionally, when the header of packet is ipv6 header, illustrate that the WSN node of this packet of transmission is IPv6 node.The source address of carrying in the ipv6 header of packet is IPv6 address of node, and destination address is server address.
Because transmission channel between server and gateway is supported IPv6 communication protocol, so the header of the packet that forwards to server of gateway is ipv6 header.
Step 205, gateway judges whether WSN address of node is kept in attribute list.
Optionally, preserve the attribute list of each node in WSN on gateway, attribute list consists of network label and the WSN address of node of WSN node.
When WSN address of node is kept in attribute list, perform step 207, when WSN address of node is not kept in attribute list, perform step 206.
Step 206, is kept at the network label of described WSN address of node and described WSN node in attribute list, and sends to server the attribute list upgrading.
When gateway receives the packet that new WSN node sends, upgrade this attribute list, and the very first time attribute list of renewal is sent to server so that server can send instruction to this new WSN node.
After gateway is preserved WSN address of node, perform step 207.
Step 207, gateway passes through the built-in WSN communication protocol of gateway by the WSN header decapsulation of packet, obtains the load data of described packet.
Optionally, the load data of packet is the ambient data that WSN node is collected, i.e. former data.
Gateway passes through the built-in WSN communication protocol of gateway by the WSN header decapsulation of packet, and gateway is deleted the WSN header of packet.
Step 208, gateway, by the upper ipv6 header of described load data encapsulation, obtains IPv6 packet.
Optionally, the packet that the WSN node receiving due to gateway sends all sends to server, so gateway is that the source address of carrying in the ipv6 header in load data encapsulation is gateway address, the address that destination address is server.
Optionally, gateway, by the upper ipv6 header of described load data encapsulation, obtains IPv6 packet, comprising:
To in the source address field of ipv6 header, add described gateway address, and will in the destination address field (DAF) of described ipv6 header, add the address of described server;
Ipv6 header by having added source address and destination address in described load data encapsulation, obtains IPv6 packet.
Step 209, by described IPv6 Packet Generation to server.
It should be noted that, during packet that in prior art, gateway sends ordinary node in the WSN receiving, regard packet as a complete packet, outside packet, directly encapsulate an ipv6 header, so that can be by this Packet Generation to server, but can cause increasing like this capacity of packet, at some, need large area not know WSN node to gather in the scene of mass data, WSN node image data also frequently reports, when can making total amount of data upload, the increase of individual data containing amount increases the pressure to bandwidth, when serious, can cause network congestion, packet cannot transfer to server in time, affect the judgement of server to monitoring field.When the scheme that the embodiment of the present invention adopts is carried out protocol conversion to packet, first by the WSN header decapsulation of packet, and then encapsulate upper ipv6 header, make to reduce the capacity of packet, the pressure to bandwidth while reducing data packet transmission.
The embodiment of the present invention provides the method for downlink data transmission between a kind of wireless sensor network and the Internet, and as shown in Figure 3, the method comprises:
The packet that step 301, gateway reception server send.
While carrying out downlink data transmission between WSN and the Internet, the packet first server in the Internet sends to gateway, then by described package forward, gives corresponding WSN node by described gateway.
Optionally, the transmission channel between server and gateway is supported IPv6 communication protocol, so the header of the packet of server transmission is ipv6 header.
Optionally, server can send instruction to each WSN node according to each WSN node recording in attribute list, such as sending the instructions such as activation, dormancy.Such instruction is the former data that server sends to WSN node.Wherein, WSN node comprises ordinary node and IPv6 node.
When step 302, the destination address comprising when the header of described packet are gateway address, by the ipv6 header decapsulation of described packet, obtain the load data of described packet.
Optionally, when the destination address comprising when the header of packet is gateway address, illustrate that server sends packet to the ordinary node in WSN, the header of the packet now sending due to server is ipv6 header, and transmission channel between ordinary node and gateway is only supported WSN communication protocol, therefore need to carry out to this packet the protocol conversion of IPv6-WSN.
By the ipv6 header decapsulation of described packet, the ipv6 header that is about to packet is deleted.
Load data is the instruction that server issues WSN node, i.e. former data.
Step 303, according to described load data, that obtains that described load data comprises treats the WSN address of node with described server communication.
Optionally, when server sends packet to the ordinary node in WSN, the network label of ordinary node can be encapsulated in outside former data, again to having encapsulated the packet encapsulation ipv6 header of the network label of ordinary node, now, the source address of carrying in ipv6 header is the address of server, and destination address is gateway address.After gateway is to ipv6 header decapsulation, can obtain the packet of the network label that has encapsulated ordinary node, now can obtain the network label of ordinary node, according to the attribute list of the WSN node of preserving, obtain the address of the ordinary node that the network label of this ordinary node is corresponding, treat the WSN address of node with server communication, so as by Packet Generation to ordinary node.
Step 304, by the upper WSN header of described load data encapsulation, obtain WSN packet.
Optionally, owing to giving the WSN node treat with server communication by the WSN Packet Generation that has encapsulated WSN header, therefore can will in the source address field of WSN header, add described gateway address, and will in the destination address field (DAF) of described WSN header, add described WSN address of node; By having added the WSN header of source address and destination address in described load data encapsulation, obtain WSN packet.
Step 305, according to described WSN address of node, by described WSN Packet Generation, give described WSN node corresponding to described WSN address of node.
The embodiment of the present invention provides the method for downlink data transmission between a kind of wireless sensor network and the Internet, the packet sending by gateway reception server, and the ipv6 header decapsulation of the packet that is gateway address to destination address, and by the upper WSN header of load data encapsulation obtaining, the WSN packet obtaining also sends to server, make in transmission of data packets, reduce the capacity of packet, thereby reduce the bandwidth pressure in transmission of data packets.
The embodiment of the present invention provides the method for downlink data transmission between a kind of wireless sensor network and the Internet, and as shown in Figure 4, the method comprises:
Step 401, server receives the attribute list of the renewal of gateway transmission.
Optionally, the WSN node of data uploaded in gateway record, and form attribute list according to the network label of WSN node and WSN address of node, and when attribute list has renewal, the very first time sends to server by the attribute list of renewal.
Optionally, when the attribute list upgrading comprises the attribute of all WSN nodes, after server receives the attribute list of renewal, can delete the old attribute list of original preservation, while only comprising the attribute of the current WSN node newly increasing of gateway in the attribute list upgrading, after server receives the attribute list of renewal, the record in the attribute list of renewal can be added to the old attribute list of preserving in server, and delete the attribute list upgrading.
Step 402, server, according to the WSN node in the attribute list after upgrading, sends packet to gateway.
Optionally, the instruction of the packet that server sends for WSN node is assigned, for example, server can be assigned the instructions such as activation, dormancy to WSN node, and these instructions are that server is to the former data of its transmission for WSN node.
Optionally, optional, the transmission channel between server and gateway is supported IPv6 communication protocol, the packet encapsulation of transmission ipv6 header.WSN node comprises ordinary node and IPv6 node, when server sends packet to IPv6 node, directly in former data outer package ipv6 header, wherein, ipv6 header comprises source address and destination address, wherein, source address is the address of server, and destination address is IPv6 node address.When server sends packet to ordinary node, at the network label of former data outer package ordinary node, then encapsulate ipv6 header, wherein, this ipv6 header comprises source address and destination address, wherein, source address is the address of server, and destination address is gateway address.
Step 403, the packet that gateway reception server sends.
Step 404, judges whether the destination address that the header of described packet comprises is gateway address.
When the destination address comprising when the header of packet is not gateway address, perform step 405, when the destination address comprising when the header of packet is gateway address, perform step 406.
Step 405, gives described Packet Generation the described WSN node corresponding to IPv6 address of the WSN node that the header of described packet comprises.
Optionally, when the destination address comprising when the header of packet is not gateway address, illustrate that this packet is that server sends to IPv6 node in WSN, carries destination address-IPv6 address in the Pv6 header of packet.According to ipv6 header, obtain IPv6 address, and by package forward to IPv6 node corresponding to IPv6 address.
Step 406, by the ipv6 header decapsulation of described packet, obtains the load data of described packet.
Optionally, optional, when the destination address comprising when the header of packet is gateway address, illustrate that this packet is that server sends to ordinary node in WSN, now, gateway need to be carried out to packet the protocol conversion of IPv6-WSN.
Optionally, the load data of packet is the instruction that server sends to this ordinary node.
Optionally, by the ipv6 header decapsulation of described packet, the ipv6 header that is about to packet is deleted.
Step 407, according to described load data, that obtains that described load data comprises treats the described WSN address of node corresponding with the network label of the WSN node of described server communication.
Optionally, according to described load data, that obtains that described load data comprises treats and the network label of the WSN node of described server communication, and the attribute list of each WSN node of preserving according to gateway, obtains the WSN address of node corresponding with the network label of WSN node.
Step 408, by the upper WSN header of described load data encapsulation, obtains WSN packet.
Optionally, will in the source address field of WSN header, add described gateway address, and will in the destination address field (DAF) of described WSN header, add described WSN address of node; By having added the WSN header of source address and destination address in described load data encapsulation, obtain WSN packet.
Step 409, according to described WSN address of node, gives described WSN node corresponding to described WSN address of node by described WSN Packet Generation.
The embodiment of the present invention provides the method for downlink data transmission between a kind of wireless sensor network and the Internet, the packet sending by gateway reception server, and the ipv6 header decapsulation of the packet that is gateway address to destination address, and by the upper WSN header of load data encapsulation obtaining, the WSN packet obtaining also sends to server, make in transmission of data packets, reduce the capacity of packet, thereby reduce the bandwidth pressure in transmission of data packets.
The embodiment of the present invention provides a kind of intelligent gateway 50, and as shown in Figure 5, when carrying out transmitting uplink data between wireless sensor network and the Internet, described intelligent gateway comprises receiving element 501, decapsulation unit 502, encapsulation unit 503 and transmitting element 504.
Receiving element 501, the packet sending for receiving wireless sensor network WSN node;
Decapsulation unit 502, for when described packet does not comprise Internet Protocol version 6 ipv6 header, by the WSN header decapsulation of described packet, obtains the load data of described packet;
Optionally, while not comprising Internet Protocol version 6 ipv6 header in described packet, illustrate that the packet that receiving element 501 receives is the packet that in WSN, ordinary node sends, now in packet, comprise WSN header, need to carry out WSN-IPv6 protocol conversion.
Encapsulation unit 503, for by the upper ipv6 header of described load data encapsulation, obtains IPv6 packet;
Optionally, the source address that comprises described IPv6 packet in described ipv6 header and destination address, the source address of described IPv6 packet is gateway address, the address that the destination address of described IPv6 packet is described server.
Transmitting element 504, for by described IPv6 Packet Generation to server.
Optionally, as shown in Figure 6, described encapsulation unit 503 comprises: add module 5031, package module 5032.
Add module 5031, for the source address field of ipv6 header is added to described gateway address, and will in the destination address field (DAF) of described ipv6 header, add the address of described server;
Package module 5032, for by the ipv6 header of having added source address and destination address in described load data encapsulation, obtains IPv6 packet.
Further alternative, while comprising ipv6 header in described packet, described transmitting element 504, also for directly sending to described server by described packet.
Optionally, while comprising ipv6 header in packet, illustrate that the packet that gateway receives is that in WSN, Ipv6 node sends.
It should be noted that, in accompanying drawing 5 or accompanying drawing 6 shown devices, the specific implementation process of its modules and the contents such as information interaction between modules, due to the inventive method embodiment based on same inventive concept, can, referring to embodiment of the method, at this, not repeat one by one.
The embodiment of the present invention provides a kind of intelligent gateway, and while not comprising ipv6 header in described packet, decapsulation unit, by the WSN header decapsulation of described packet, obtains the load data of described packet; Encapsulation unit, for by the upper ipv6 header of described load data encapsulation, obtains IPv6 packet; Transmitting element, for by described IPv6 Packet Generation to server, make in transmission of data packets, reduce the capacity of packet, thereby reduce the bandwidth pressure in transmission of data packets.
The embodiment of the present invention provides a kind of intelligent gateway 70, as shown in Figure 7, when carrying out downlink data transmission between wireless sensor network and the Internet, described intelligent gateway comprises receiving element 701, decapsulation unit 702, acquiring unit 703, encapsulation unit 704 and transmitting element 705.
Receiving element 701, the packet sending for reception server;
Decapsulation unit 702, when the destination address comprising for the header when described packet is gateway address, by the ipv6 header decapsulation of described packet, obtains the load data of described packet;
Optionally, when the destination address comprising when the header of described packet is gateway address, illustrate that the packet that receiving element 701 receives is that server sends to the interior ordinary node of WSN, because the transmission channel between server and gateway is supported IPv6 communication protocol, transmission channel between ordinary node and gateway is supported WSN communication protocol, therefore server need to be sent to the packet of ordinary node to carry out IPv6-WSN protocol conversion.
Acquiring unit 703, for according to described load data, that obtains that described load data comprises treats the described WSN address of node corresponding with the network label of the WSN node of described server communication;
Encapsulation unit 704, for by the upper WSN header of described load data encapsulation, obtains WSN packet;
The source address and the destination address that in described WSN header, comprise described WSN packet, the source address of described WSN packet is described gateway address, the destination address of described WSN packet is described WSN address of node;
Transmitting element 705, for according to described WSN address of node, gives described WSN node corresponding to described WSN address of node by described WSN Packet Generation.
Further alternative, as shown in Figure 8, described encapsulation unit 704, comprising: add module 7041, package module 7042.
Add module 7041, for the source address field of WSN header is added to described gateway address, and will in the destination address field (DAF) of described WSN header, add described WSN address of node;
Package module 7042, for by having added the WSN header of source address and destination address in described load data encapsulation, obtains WSN packet.
Described transmitting element 705, when the destination address also comprising for the header when described packet is not gateway address, described WSN node corresponding to WSN address of node of comprising described Packet Generation to the header of described packet.
Optionally, when the destination address comprising when the header of described packet is not gateway address, illustrate that the packet that receiving element 701 receives is that server sends to the interior IPv6 node of WSN, because the transmission channel between server and gateway is supported IPv6 communication protocol, transmission channel between IPv6 node and gateway is supported IPv6 communication protocol, transmitting element 705, can be directly gives the described WSN node corresponding to IPv6 address of the WSN node that the header of described packet comprises by described Packet Generation.
It should be noted that, in accompanying drawing 7 or accompanying drawing 8 shown devices, the specific implementation process of its modules and the contents such as information interaction between modules, due to the inventive method embodiment based on same inventive concept, can, referring to embodiment of the method, at this, not repeat one by one.
The embodiment of the present invention provides a kind of intelligent gateway, and when the destination address of described packet is gateway address, decapsulation unit, by the ipv6 header decapsulation of described packet, obtains the load data of described packet; According to described load data, acquiring unit obtains that described load data comprises treats the described WSN address of node corresponding with the network label of the WSN node of described server communication, encapsulation unit, by the upper WSN header of described load data encapsulation, obtains WSN packet; Transmitting element is according to described WSN address of node, by described WSN Packet Generation, give described WSN node corresponding to described WSN address of node, make in transmission of data packets, reduce the capacity of packet, thereby reduce the bandwidth pressure in transmission of data packets.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (10)

1. a method for transmitting uplink data between wireless sensor network and the Internet, is characterized in that, comprising:
Receive the packet that wireless sensor network WSN node sends;
While not comprising Internet Protocol version 6 ipv6 header in described packet, by the WSN header decapsulation of described packet, obtain the load data of described packet;
By the upper ipv6 header of described load data encapsulation, obtain IPv6 packet;
By described IPv6 Packet Generation to server.
2. method according to claim 1, is characterized in that,
The source address and the destination address that in described ipv6 header for described load data encapsulation, comprise described IPv6 packet, the source address of described IPv6 packet is gateway address, the address that the destination address of described IPv6 packet is described server;
Described by the upper ipv6 header of described load data encapsulation, acquisition IPv6 packet, comprising:
To in the source address field of ipv6 header, add described gateway address, and will in the destination address field (DAF) of described ipv6 header, add the address of described server;
Ipv6 header by having added source address and destination address in described load data encapsulation, obtains IPv6 packet.
3. method according to claim 1 and 2, is characterized in that, described method also comprises:
While comprising ipv6 header in described packet, described packet is directly sent to described server.
4. a method for downlink data transmission between wireless sensor network and the Internet, is characterized in that, comprising:
The packet that reception server sends;
When the destination address comprising when the header of described packet is gateway address, by the ipv6 header decapsulation of described packet, obtain the load data of described packet;
According to described load data, that obtains that described load data comprises treats the described WSN address of node corresponding with the network label of the WSN node of described server communication;
By the upper WSN header of described load data encapsulation, obtain WSN packet;
According to described WSN address of node, by described WSN Packet Generation, give described WSN node corresponding to described WSN address of node.
5. method according to claim 4, is characterized in that,
The source address and the destination address that in described WSN header for described load data encapsulation, comprise described WSN packet, the source address of described WSN packet is described gateway address, the destination address of described WSN packet is described WSN address of node;
Described by the upper WSN header of described load data encapsulation, acquisition WSN packet, comprising:
To in the source address field of WSN header, add described gateway address, and will in the destination address field (DAF) of described WSN header, add described WSN address of node;
By having added the WSN header of source address and destination address in described load data encapsulation, obtain WSN packet.
6. according to the method described in claim 4 or 5, it is characterized in that, described method also comprises:
When the destination address comprising when the header of described packet is not gateway address, described Packet Generation is given to the described WSN node corresponding to IPv6 address of the WSN node that the header of described packet comprises.
7. an intelligent gateway, is characterized in that, when carrying out transmitting uplink data between wireless sensor network and the Internet, described intelligent gateway comprises:
Receiving element, the packet sending for receiving wireless sensor network WSN node;
Decapsulation unit, for when described packet does not comprise Internet Protocol version 6 ipv6 header, by the WSN header decapsulation of described packet, obtains the load data of described packet;
Encapsulation unit, for by the upper ipv6 header of described load data encapsulation, obtains IPv6 packet;
Transmitting element, for by described IPv6 Packet Generation to server.
8. intelligent gateway according to claim 7, is characterized in that,
The source address and the destination address that in described ipv6 header for described load data encapsulation, comprise described IPv6 packet, the source address of described IPv6 packet is gateway address, the address that the destination address of described IPv6 packet is described server;
Described encapsulation unit, comprising:
Add module, for the source address field of ipv6 header is added to described gateway address, and will in the destination address field (DAF) of described ipv6 header, add the address of described server;
Package module, for by the ipv6 header of having added source address and destination address in described load data encapsulation, obtains IPv6 packet;
Described transmitting element, also, for when described packet comprises ipv6 header, directly sends to described server by described packet.
9. an intelligent gateway, is characterized in that, when carrying out downlink data transmission between wireless sensor network and the Internet, described intelligent gateway comprises:
Receiving element, the packet sending for reception server;
Decapsulation unit, when the destination address comprising for the header when described packet is gateway address, by the ipv6 header decapsulation of described packet, obtains the load data of described packet;
Acquiring unit, for according to described load data, that obtains that described load data comprises treats the described WSN address of node corresponding with the network label of the WSN node of described server communication;
Encapsulation unit, for by the upper WSN header of described load data encapsulation, obtains WSN packet;
Transmitting element, for according to described WSN address of node, gives described WSN node corresponding to described WSN address of node by described WSN Packet Generation.
10. intelligent gateway according to claim 9, is characterized in that,
The source address and the destination address that in described WSN header for described load data encapsulation, comprise described WSN packet, the source address of described WSN packet is described gateway address, the destination address of described WSN packet is described WSN address of node;
Described encapsulation unit, comprising:
Add module, for the source address field of WSN header is added to described gateway address, and will in the destination address field (DAF) of described WSN header, add described WSN address of node;
Package module, for by having added the WSN header of source address and destination address in described load data encapsulation, obtains WSN packet;
Described transmitting element, when the destination address also comprising for the header when described packet is not gateway address, gives described Packet Generation the described WSN node corresponding to IPv6 address of the WSN node that the header of described packet comprises.
CN201310467703.0A 2013-10-09 2013-10-09 Method and device for data transmission between wireless sensor network and internet Pending CN103533574A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310467703.0A CN103533574A (en) 2013-10-09 2013-10-09 Method and device for data transmission between wireless sensor network and internet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310467703.0A CN103533574A (en) 2013-10-09 2013-10-09 Method and device for data transmission between wireless sensor network and internet

Publications (1)

Publication Number Publication Date
CN103533574A true CN103533574A (en) 2014-01-22

Family

ID=49935165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310467703.0A Pending CN103533574A (en) 2013-10-09 2013-10-09 Method and device for data transmission between wireless sensor network and internet

Country Status (1)

Country Link
CN (1) CN103533574A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100301A (en) * 2015-08-31 2015-11-25 中国电力科学研究院 Transmission method of wireless sensing network and wireless sensing network
CN108924879A (en) * 2018-06-22 2018-11-30 北京格瑞空间科技有限公司 A kind of load-balancing method for wireless internet of things
CN109089278A (en) * 2018-09-29 2018-12-25 中国联合网络通信集团有限公司 A kind of interface test method and device
CN110351351A (en) * 2019-07-01 2019-10-18 珠海欧麦斯通信科技有限公司 A kind of system and method for L2 network and Ethernet interconnection
CN110933085A (en) * 2019-11-29 2020-03-27 上海上实龙创智慧能源科技股份有限公司 Protocol conversion method of edge computing gateway based on wireless sensor network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488975A (en) * 2009-01-13 2009-07-22 王晓喃 System for implementing complete IP communication between wireless sensor network and IPv6 network
CN101917707A (en) * 2010-08-18 2010-12-15 中兴通讯股份有限公司 IP addressing method and system for wireless sensor network
CN101984706A (en) * 2010-11-04 2011-03-09 中国电信股份有限公司 Gateway of Internet of things and automatic adaptation method of communication protocol
CN102404289A (en) * 2010-09-15 2012-04-04 武汉邮电科学研究院 Method for connecting wireless sensing network into internet protocol (IP) v4 network
CN102546699A (en) * 2010-12-13 2012-07-04 中国移动通信集团广东有限公司 Data transmission method and device for acquisition terminals

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488975A (en) * 2009-01-13 2009-07-22 王晓喃 System for implementing complete IP communication between wireless sensor network and IPv6 network
CN101917707A (en) * 2010-08-18 2010-12-15 中兴通讯股份有限公司 IP addressing method and system for wireless sensor network
CN102404289A (en) * 2010-09-15 2012-04-04 武汉邮电科学研究院 Method for connecting wireless sensing network into internet protocol (IP) v4 network
CN101984706A (en) * 2010-11-04 2011-03-09 中国电信股份有限公司 Gateway of Internet of things and automatic adaptation method of communication protocol
CN102546699A (en) * 2010-12-13 2012-07-04 中国移动通信集团广东有限公司 Data transmission method and device for acquisition terminals

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐志云: "基于虚拟IP思想的无线传感网络网关设计", 《电信快报》, no. 6, 10 June 2012 (2012-06-10), pages 35 - 37 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100301A (en) * 2015-08-31 2015-11-25 中国电力科学研究院 Transmission method of wireless sensing network and wireless sensing network
CN108924879A (en) * 2018-06-22 2018-11-30 北京格瑞空间科技有限公司 A kind of load-balancing method for wireless internet of things
CN108924879B (en) * 2018-06-22 2021-07-30 北京格瑞空间科技有限公司 Load balancing method for wireless Internet of things
CN109089278A (en) * 2018-09-29 2018-12-25 中国联合网络通信集团有限公司 A kind of interface test method and device
CN109089278B (en) * 2018-09-29 2022-04-01 中国联合网络通信集团有限公司 Interface testing method and device
CN110351351A (en) * 2019-07-01 2019-10-18 珠海欧麦斯通信科技有限公司 A kind of system and method for L2 network and Ethernet interconnection
CN110933085A (en) * 2019-11-29 2020-03-27 上海上实龙创智慧能源科技股份有限公司 Protocol conversion method of edge computing gateway based on wireless sensor network

Similar Documents

Publication Publication Date Title
CN102769869B (en) Message rapid forwarding system of control and provisioning of wireless access point
CN104704909B (en) System and method for WiFi unloadings
CN103533574A (en) Method and device for data transmission between wireless sensor network and internet
CN107006045A (en) The context of transmission equipment is depended in the network address
CN103190089A (en) Persistent logical data tunnels
CN105188056A (en) Method and device for connecting WiFi (Wireless Fidelity) equipment with access point
CN103907394A (en) Small data techniques and configurations in a wireless communication network
CN102158461B (en) Method and device for transmitting non-I (in-phase)/Q (quadrature phase) data through common public radio interface (CPRI)
CN102404416A (en) Method for acquiring domain name system (DNS) and tunnel gateway equipment
CN102932765A (en) Method and equipment for acquiring capability information
CN111050361A (en) Message transmission method, device and system
CN103703747A (en) Internet content storage method and apparatus
CN105900503A (en) Paging method, base station, and paging system
CN105264869A (en) Ip address allocation system and method
CN102387564A (en) Internet of things access method, device and gateway
CN104521220A (en) Method and device for message processing
CN103297311A (en) Method and device for achieving control and provision for wireless access point protocol (CAPWAP) data tunnels
CN104754521A (en) Message transmitting method, wireless access point, wireless controller and system
CN103190170B (en) The processing method of a kind of subscriber equipment, the processing method of Mobility Management Entity, subscriber equipment, Mobility Management Entity and communication system
CN101998508B (en) Data encapsulation method and device
CN104038446A (en) Link discovery method and device
CN108243056B (en) Method and device for acquiring abnormal information
CN103987029A (en) Service processing method and related devices
CN103346945B (en) The data transmission method of CAPWAP tunnel, Apparatus and system
CN103517332B (en) A kind of base station, data processing method and communication system

Legal Events

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

Application publication date: 20140122

RJ01 Rejection of invention patent application after publication