CN103501276A - Method and device for communication between server and sensor nodes - Google Patents

Method and device for communication between server and sensor nodes Download PDF

Info

Publication number
CN103501276A
CN103501276A CN201310467641.3A CN201310467641A CN103501276A CN 103501276 A CN103501276 A CN 103501276A CN 201310467641 A CN201310467641 A CN 201310467641A CN 103501276 A CN103501276 A CN 103501276A
Authority
CN
China
Prior art keywords
protocol conversion
node
packet
wsn
server
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.)
Granted
Application number
CN201310467641.3A
Other languages
Chinese (zh)
Other versions
CN103501276B (en
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 CN201310467641.3A priority Critical patent/CN103501276B/en
Publication of CN103501276A publication Critical patent/CN103501276A/en
Application granted granted Critical
Publication of CN103501276B publication Critical patent/CN103501276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for communication between a server and sensor nodes, and relates to the technical field of information. When the data communication of the server has excessive requests or many nodes exist in a WSN (wireless sensor network), the workload of a gateway is reduced, the excessive data packets are timely processed, and the communication efficiency is improved. The method comprises the following steps of enabling gateway equipment to receive the data packet which is to be subjected to protocol conversion and is sent by the server or the nodes in the WSN; sending a protocol conversion intermediate piece to an IPv6 (internet protocol version 6) node in the WSN; sending the data packet which is to be subjected to protocol conversion to the IPv6 node, and then enabling the IPv6 node to carry out data conversion on the data packet which is to be subjected to protocol conversion; receiving the data packet with the converted protocol which is sent from the IPv6 node, and forwarding the data packet with the converted protocol to the corresponding WSN node or server. The method and the device are suitable for the communication between the server and the sensor nodes.

Description

A kind of method that server is communicated by letter with sensor node and device
Technical field
The present invention relates to areas of information technology, relate in particular to method and device that a kind of server is communicated by letter with sensor node.
Background technology
While supporting that in the prior art the server of IPv6 agreement and wireless sensor network (Wireless Sensor Networks, WSN) interior nodes communicate, server and WSN interior nodes can communicate by the gateway device access way.Usually the node type of each node in pre-save WSN in gateway device, node type comprises ordinary node and has configured internet protocol version 6(Internet Protocol Version6, IPv6) the IPv6 node of agreement.After gateway receives the packet of server transmission or receives the packet of WSN interior nodes transmission, the node type of the WSN interior nodes that the packet that the gateway device judgement receives will reach or the packet received come from the node type of the node in WSN, when with server communication be ordinary node the time, need packet is carried out sending to corresponding ordinary node or server after protocol conversion, when with server communication be the IPv6 node time, packet is directly sent to corresponding IPv6 node or server.
Yet, when adopting prior art server and WSN interior nodes to communicate, when the data communications requests of server too much, when perhaps the WSN interior nodes is more, can cause the gateway device overwork, make too much packet not processed in time, cause the data processing delay to increase, communication efficiency is lower.
Summary of the invention
Method and device that embodiments of the invention provide a kind of server to communicate by letter with sensor node, can be too much in the data communications requests of server, or the WSN interior nodes reduces the workload of gateway when more, process in time more packet, improve communication efficiency.
First aspect, the invention provides a kind of method that server is communicated by letter with sensor node, comprising:
The packet of the pending protocol conversion that reception server or wireless sensor network WSN interior nodes send;
Internet protocol version 6IPv6 node in WSN sends the protocol conversion middleware, so that described IPv6 node is set up auxiliary gateway;
Give described IPv6 node by the Packet Generation of described pending protocol conversion, so that described IPv6 node carries out protocol conversion to the packet of described pending protocol conversion;
What receive that described IPv6 node sends carries out the packet after protocol conversion, and will describedly carry out package forward after protocol conversion to corresponding WSN node or server.
Second aspect, the invention provides the device that a kind of server is communicated by letter with sensor node, comprising:
Receiving element, the packet of the pending protocol conversion sent for reception server or wireless sensor network WSN interior nodes;
Transmitting element, send the protocol conversion middleware for the internet protocol version 6IPv6 node in WSN, so that described IPv6 node is set up auxiliary gateway;
Described transmitting element, also give described IPv6 node for the Packet Generation by described pending protocol conversion, so that described IPv6 node carries out protocol conversion to the packet of described pending protocol conversion;
Described receiving element, the also packet after protocol conversion that carries out for receiving that described IPv6 node sends;
Described transmitting element, also for carrying out package forward after protocol conversion to corresponding WSN node or server by described.
Method and device that the embodiment of the present invention provides a kind of server to communicate by letter with sensor node, send the protocol conversion middleware by the internet protocol version 6IPv6 node in WSN, so that described IPv6 node is set up auxiliary gateway, then give described IPv6 node by the Packet Generation of the pending protocol conversion that receives, so that described IPv6 node carries out protocol conversion to the packet of described pending protocol conversion; What receive that described IPv6 node sends carries out the packet after protocol conversion, and will describedly carry out package forward after protocol conversion to corresponding WSN node or server.While communicating with server in prior art and WSN interior nodes, when the data communications requests of server too much, when perhaps the WSN interior nodes is more, can cause the gateway overwork, make too much packet not processed in time, cause the data processing delay to increase, communication efficiency is low comparing, the embodiment of the present invention is assisted gateway in order to assist gateway device to carry out protocol conversion to the packet of pending protocol conversion by setting up on the IPv6 node, thereby can be too much in the data communications requests of server, when perhaps the WSN interior nodes is more, reduce the workload of gateway, process in time more packet, improve communication efficiency.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 provides the flow chart of a kind of method that server communicates by letter with sensor node for an embodiment of the present invention;
Fig. 2 provides the flow chart of the method that another kind of server communicates by letter with sensor node for the another kind of embodiment of the present invention;
Fig. 3 provides the block diagram of the device that a kind of server communicates by letter with sensor node for an embodiment of the present invention;
Fig. 4 provides the block diagram of the device that another kind of server communicates by letter with sensor node for an 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 under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
A kind of method that the embodiment of the present invention provides server to communicate by letter with sensor node, the executive agent of the method can be gateway device, as shown in Figure 1, the method comprises:
Step 101, the packet of the pending protocol conversion that reception server or WSN interior nodes send.
Optionally, the packet of pending protocol conversion can send to for server the packet of ordinary node in WSN, also can send to for ordinary node in WSN the packet of server.All contain an ipv6 header in the packet of IPv6 node transmitting-receiving in the packet sent due to server and WSN, the packet of the ordinary node transmitting-receiving in WSN does not have ipv6 header, therefore server sends to the packet of ordinary node in WSN, perhaps in WSN, ordinary node sends to the packets need of server to carry out protocol conversion, and server sends to the packet of IPv6 node in WSN, perhaps in WSN, the IPv6 node sends to the packet of server not need to carry out protocol conversion, directly can send to the other side.
Step 102, the IPv6 node in WSN sends the protocol conversion middleware, so that described IPv6 node is set up auxiliary gateway.
Optionally, when adopting prior art server and WSN interior nodes to communicate, when the data communications requests of server too much, when perhaps the WSN interior nodes is more, can cause the gateway overwork, make too much packet not processed in time, cause the data processing delay to increase, communication efficiency is lower, and the embodiment of the present invention can be by setting up auxiliary gateway on the IPv6 node in WSN, auxiliary gateway device carries out the protocol conversion of packet, to alleviate the workload of gateway device, make and can process in time more packet, reduce the data processing delay, thereby raising communication efficiency.
Optionally, the IPv6 node in the WSN of reception gateway device transmission protocol conversion middleware can be any the IPv6 node comprised in WSN.Preferably, receive IPv6 node in the WSN that gateway device sends the protocol conversion middleware can in WSN with the IPv6 node of gateway device close together, and the data-handling capacity of this IPv6 node is stronger.
The protocol conversion middleware is for set up auxiliary gateway on the IPv6 node, and the auxiliary gateway that employing is set up carries out protocol conversion to packet.
Step 103, give described IPv6 node by the Packet Generation of described pending protocol conversion, so that described IPv6 node carries out protocol conversion to the packet of described pending protocol conversion.
Step 104, what receive that described IPv6 node sends carries out the packet after protocol conversion, and will describedly carry out package forward after protocol conversion to corresponding WSN node or server.
Optionally, in this step, when the packet of the described pending protocol conversion received be described server send the time, carry out package forward after protocol conversion to the ordinary node in corresponding WSN by described; When the packet of the described pending protocol conversion received be ordinary node in described WSN send the time, by the package forward after described protocol conversion to server.
A kind of method that the embodiment of the present invention provides server to communicate by letter with sensor node, the packet of the pending protocol conversion sent by gateway device reception server or WSN interior nodes, then send the protocol conversion middleware to the IPv6 node in WSN, so that described IPv6 node is set up auxiliary gateway; Give described IPv6 node by the Packet Generation of described pending protocol conversion, so that described IPv6 node carries out protocol conversion to the packet of described pending protocol conversion; What receive that described IPv6 node sends carries out the packet after protocol conversion, and carry out package forward after protocol conversion to corresponding WSN node or server by described, complete data communication, make the auxiliary gateway of setting up on the IPv6 node can assist gateway device to carry out protocol conversion to packet, can be too much in the data communications requests of server, or the WSN interior nodes reduces the workload of gateway when more, process in time more packet, improve communication efficiency.
A kind of method that the embodiment of the present invention provides server to communicate by letter with sensor node, as shown in Figure 2, the method comprises:
Step 201, the packet that gateway device reception server or WSN interior nodes send.
Optionally, when server or WSN interior nodes have new communication request, can send packet to gateway device.Wherein, when server is communicated by letter with the WSN interior nodes, can send the data call request to gateway device by server, by gateway device, the data call request is sent to corresponding WSN interior nodes, after the WSN interior nodes receives this data call request, can return accordingly and reply to server by gateway device, server can carry out data communication by sending packet with the WSN interior nodes afterwards.
Optionally, the WSN interior nodes can be divided into ordinary node and IPv6 node, and ordinary node and IPv6 node all have a network node label as unique identification in WSN, so that unique in WSN, determines a node.Preserve the unique identification of each node in WSN in gateway device, when in WSN, some nodes newly network, can initiatively by gateway device, to server, circulate a notice of address, now gateway device can store the unique identification of the node of new networking, so as subsequent server therewith node communicate.
Optionally, packet can be divided into two kinds according to whether comprising ipv6 header, and in server and WSN, the packet of IPv6 node transmitting-receiving all comprises ipv6 header, and in WSN, the packet of ordinary node transmitting-receiving does not have ipv6 header.
This step comprises that the gateway device reception server sends to the packet of WSN interior nodes, or gateway device receives the packet that the WSN interior nodes sends to server.
Step 202, gateway device obtains the work at present load, and judges whether the work at present load is more than or equal to first threshold;
Optionally, first threshold can be the live load threshold value arranged according to working experience, and for example, first threshold is 60% of work quota load, or first threshold is 70% etc. of work quota load.
When gateway device work at present load is less than first threshold, perform step 203, when gateway device work at present load is greater than or equal to first threshold, perform step 204.
Step 203, gateway device sends to corresponding WSN node or server after the packet received is processed.
Optionally, when gateway device work at present load is less than first threshold, be the live load of gateway device hour, can be processed according to prior art, the packet that gateway device receives be server send packet the time, at first according to the destination address of packet specified data bag, be that Packet Generation is to which node in WSN, for example, packets need sends to first node, then judges the node type of first node.When first node is ordinary node, comprise ipv6 header in packet due to the server transmitting-receiving, and do not comprise ipv6 header in the packet of ordinary node transmitting-receiving, therefore gateway device need to carry out protocol conversion by packet, the ipv6 header that is about to packet is deleted, by the Packet Generation after protocol conversion to first node, when first node is the IPv6 node, gateway device directly by Packet Generation to first node.The packet that gateway device receives is that the WSN interior nodes is while sending to the packet of server, at first judge the node type of WSN node, can judge in packet and whether comprise ipv6 header, while in packet, comprising ipv6 header, the node of explanation transmission packet is the IPv6 node, gateway device can be directly by Packet Generation to server, while in packet, not comprising ipv6 header, the node of explanation transmission packet is ordinary node, gateway device need to carry out protocol conversion by packet, be about to add ipv6 header in packet, to carry out Packet Generation after the agreement displacement to server.
Step 204, gateway device sends to the IPv6 node in WSN the assistance requests of setting up auxiliary gateway.
Optionally, when gateway device work at present load is greater than or equal to first threshold, gateway device is prepared for set up auxiliary gateway on the IPv6 node, sends the assistance requests of setting up auxiliary gateway to the IPv6 node.
Optionally, the IPv6 node of gateway device transmission assistance requests can be any the IPv6 node comprised in WSN.Preferably, gateway device send assistance requests the IPv6 node can in WSN with the IPv6 node of gateway device close together, and the data-handling capacity of this IPv6 node is stronger, can assist gateway device to carry out processing data packets.
Step 205, the IPv6 node receives the assistance requests that gateway device sends, and to gateway device, returns to the request acknowledge message.
Optionally, after the IPv6 node receives the assistance requests that gateway device sends, now in running order when the IPv6 node, and the auxiliary gateway device of having the ability returns to the request acknowledge message to gateway device while carrying out processing data packets.
Step 206, after gateway device receives the request acknowledge message of described IPv6 node transmission, the described IPv6 node in WSN sends the protocol conversion middleware.
Optionally, when adopting prior art server and WSN interior nodes to communicate, when the data communications requests of server too much, when perhaps the WSN interior nodes is more, can cause the gateway overwork, make too much packet not processed in time, cause the data processing delay to increase, communication efficiency is lower, and the embodiment of the present invention can be by setting up auxiliary gateway on the IPv6 node in WSN, auxiliary gateway device carries out the protocol conversion of packet, to alleviate the workload of gateway device, make and can process in time more packet, reduce the data processing delay, thereby raising communication efficiency.
The protocol conversion middleware is for set up auxiliary gateway on the IPv6 node, and the auxiliary gateway that employing is set up carries out protocol conversion to packet.
Step 207, the IPv6 node receives the protocol conversion middleware that gateway device sends, and sets up auxiliary gateway according to described protocol conversion middleware, and returns to gateway device the message that gateway device is successfully established.
Optionally, after the IPv6 node receives the protocol conversion middleware, analysis protocol conversion middleware, the protocol conversion middleware after Auto-mounting is resolved, after installation, auxiliary gateway has been set up.
It should be noted that, step 204-step 207 is the process that gateway device is set up auxiliary gateway on the IPv6 node, in this implementation, gateway device need to be processed the packet received according to the method for prior art, and the Packet Generation after processing performs step 203 to corresponding WSN node or server.
Step 208, judge whether the work at present load is greater than or equal to Second Threshold.
Optionally, Second Threshold is greater than first threshold, and for example Second Threshold can be live load 80%.
When gateway device work at present load is more than or equal to Second Threshold, perform step 209, when gateway device work at present load is more than or equal to first threshold and is less than Second Threshold, continue according to prior art, packet to be processed, perform step 203.
Step 209, gateway device judges whether packet needs to carry out protocol conversion process.
Optionally, when the packet received be server send packet the time, according to the destination address of this packet specified data bag, be that Packet Generation is to which node in WSN, for example, packets need sends to first node, then judges the node type of first node.When first node is ordinary node, comprise ipv6 header in the packet due to the server transmitting-receiving, and do not comprise ipv6 header in the packet of ordinary node transmitting-receiving, so packets need is carried out protocol conversion.When first node is the IPv6 node, this packet does not need to carry out protocol conversion.The packet received when gateway device is that the WSN interior nodes is while sending to the packet of server, at first judge the node type of WSN node, can judge in packet and whether comprise ipv6 header, while in packet, comprising ipv6 header, the node of explanation transmission packet is the IPv6 node, and this packet does not need to carry out protocol conversion, while in packet, not comprising ipv6 header, the node of explanation transmission packet is ordinary node, and this packets need is carried out protocol conversion.
Further alternative, when packet does not need to carry out protocol conversion process, perform step 210, when packets need is carried out protocol conversion process, perform step 211.
Step 210, gateway device is directly given corresponding WSN node or server by Packet Generation.
Optionally, when packet is the server transmission, gateway device directly sends to IPv6 node in corresponding WSN by packet; When packet is the transmission of WSN node, gateway device directly sends to server by packet.
Step 211, gateway device is given described IPv6 node by the Packet Generation of pending protocol conversion, so that described IPv6 node carries out protocol conversion to the packet of described pending protocol conversion.
Optionally, when gateway device work at present load is more than or equal to Second Threshold, illustrate that now the live load of gateway device is larger, need to be by auxiliary gateway processes packet, in order to avoid packet can not be processed in time, cause the data processing delay to increase, reduce communication efficiency.
Step 212, the IPv6 node receives the packet of the pending protocol conversion of gateway device transmission, and packet is carried out to protocol conversion process.
Optionally, it is identical with the process that gateway device carries out protocol conversion process to packet that the IPv6 node carries out protocol conversion process to packet, while in packet, comprising ipv6 header, this ipv6 header deleted, while in packet, not comprising ipv6 header, add ipv6 header.
Step 213, the IPv6 node will carry out Packet Generation after protocol conversion to gateway device.
Step 214, gateway device receives that the IPv6 node sends carries out the packet after protocol conversion, and will describedly carry out package forward after protocol conversion to corresponding WSN node or server.
Optionally, when the packet of described pending protocol conversion be described server send the time, carry out package forward after protocol conversion to the ordinary node in corresponding WSN by described;
When the packet of described pending protocol conversion be ordinary node in described WSN send the time, by the package forward after described protocol conversion to server.
A kind of method that the embodiment of the present invention provides server to communicate by letter with sensor node, when larger by the live load when gateway device, IPv6 node in WSN sends the protocol conversion middleware, in order to set up auxiliary gateway on the IPv6 node, auxiliary gateway device carries out protocol conversion process to packet, and making can be too much in the data communications requests of server, when perhaps the WSN interior nodes is more, reduce the workload of gateway, process in time more packet, improve communication efficiency.
The device that the embodiment of the present invention provides a kind of server to communicate by letter with sensor node, this device can be gateway device, as shown in Figure 3, this device comprises: receiving element 301, transmitting element 302.
Receiving element 301, the packet of the pending protocol conversion sent for reception server or WSN interior nodes.
Optionally, the packet of pending protocol conversion can send to for server the packet of ordinary node in WSN, also can send to for ordinary node in WSN the packet of server.All contain an ipv6 header in the packet of IPv6 node transmitting-receiving in the packet sent due to server and WSN, the packet of the ordinary node transmitting-receiving in WSN does not have ipv6 header, therefore server sends to the packet of ordinary node in WSN, perhaps in WSN, ordinary node sends to the packets need of server to carry out protocol conversion, and server sends to the packet of IPv6 node in WSN, perhaps in WSN, the IPv6 node sends to the packet of server not need to carry out protocol conversion, directly can send to the other side.
Transmitting element 302, send the protocol conversion middleware for the IPv6 node in WSN, so that described IPv6 node is set up auxiliary gateway.
Optionally, the IPv6 node in the WSN of reception gateway device transmission protocol conversion middleware can be any the IPv6 node comprised in WSN.Preferably, receive IPv6 node in the WSN that gateway device sends the protocol conversion middleware can in WSN with the IPv6 node of gateway device close together, and the data-handling capacity of this IPv6 node is stronger.
Described transmitting element 302, also give described IPv6 node for the Packet Generation by described pending protocol conversion, so that described IPv6 node carries out protocol conversion to the packet of described pending protocol conversion.
Described receiving element 301, the also packet after protocol conversion that carries out for receiving that described IPv6 node sends.
Described transmitting element 302, also for carrying out package forward after protocol conversion to corresponding WSN node or server by described.
Further alternative, as shown in Figure 4, described device also comprises: acquiring unit 303, processing unit 304.
After the packet of the pending protocol conversion sent in described receiving element 301 reception servers or WSN interior nodes, before described transmitting element 302 sends the protocol conversion middleware to the IPv6 node in WSN, described acquiring unit 303, for obtaining described device work at present load;
When described work at present load is more than or equal to first threshold, described transmitting element 302, also send for the described IPv6 node in WSN the assistance requests of setting up auxiliary gateway;
Send to the described IPv6 node in WSN the assistance requests of setting up auxiliary gateway at transmitting element 302, when preparing to set up auxiliary gateway, processing unit 304, carry out protocol conversion for the packet by pending protocol conversion; Described transmitting element 302, also for carrying out Packet Generation after protocol conversion to corresponding WSN node or server.When the described work at present load of gateway device is more than or equal to first threshold, need to be when preparing to set up auxiliary gateway, packet to pending protocol conversion is processed, to the conversion of the data pack protocol of pending protocol conversion and give corresponding WSN node or server by the Packet Generation after protocol conversion.
Further alternative, after the request acknowledge message that receives described IPv6 node transmission, described transmitting element 302, for: the described IPv6 node in WSN sends the protocol conversion middleware.The protocol conversion middleware is set up auxiliary gateway for described IPv6 node, and carries out protocol conversion by the packet of assisting gateway to pending protocol conversion.
Further alternative, when described work at present load is more than or equal to Second Threshold, described transmitting element 302, give described IPv6 node for the Packet Generation by described pending protocol conversion.
It should be noted that, first threshold and Second Threshold are the threshold value arranged according to practical experience, and described Second Threshold is greater than described first threshold.Be that the work at present load is greater than first threshold, and be more than or equal in the situation of Second Threshold, the work at present of described device load is very high, need in order to avoid incur loss through delay data, be processed by the auxiliary own handle packet of auxiliary gateway, reduces communication efficiency.
Further alternative, after the IPv6 node receives the packet of the pending protocol conversion that transmitting element 302 sends, after packet is carried out to protocol conversion process, send to described device, what by described receiving element 301, receive that described IPv6 node sends carries out the packet after protocol conversion.
Further alternative, when the packet of described pending protocol conversion be described server send the time, described transmitting element 302, for describedly carrying out package forward after protocol conversion to the ordinary node in corresponding WSN;
When the packet of described pending protocol conversion be ordinary node in described WSN send the time, described transmitting element 302, for the package forward by after described protocol conversion to server.
It should be noted that, in accompanying drawing 3 or accompanying drawing 4 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 device that the embodiment of the present invention provides a kind of server to communicate by letter with sensor node, the packet of the pending protocol conversion sent by receiving element reception server or WSN interior nodes, then transmitting element sends the protocol conversion middleware to the IPv6 node in WSN, and give described IPv6 node by the Packet Generation of described pending protocol conversion, so that described IPv6 node carries out protocol conversion to the packet of described pending protocol conversion; What receive that described IPv6 node sends carries out the packet after protocol conversion, and carry out package forward after protocol conversion to corresponding WSN node or server by described, complete data communication, make the auxiliary gateway of setting up on the IPv6 node can assist gateway device to carry out protocol conversion to packet, can be too much in the data communications requests of server, or the WSN interior nodes reduces the workload of gateway when more, process in time more packet, improve communication efficiency.
It should be noted that, device embodiment described above is only schematic, the wherein said unit as the separating component explanation can or can not be also physically to separate, 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 on a plurality of network element.Can select according to the actual needs some or all of module wherein to realize the purpose of the present embodiment scheme.Those of ordinary skills in the situation that do not pay creative work, can understand and implement.
Through the above description of the embodiments, the those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, can certainly comprise that application-specific integrated circuit (ASIC), dedicated cpu, private memory, special-purpose components and parts etc. realize by specialized hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, floppy disk as computer, USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and between each embodiment, identical similar part is mutually referring to getting final product, and each embodiment stresses is the difference with other embodiment.Especially, for device and system embodiment, due to it, substantially similar in appearance to embodiment of the method, so describe fairly simplely, relevant part gets final product referring to the part explanation of embodiment of the method.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, anyly is 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 by the described protection range with claim.

Claims (10)

1. the method that server is communicated by letter with sensor node, is characterized in that, comprising:
The packet of the pending protocol conversion that reception server or wireless sensor network WSN interior nodes send;
Internet protocol version 6IPv6 node in WSN sends the protocol conversion middleware, so that described IPv6 node is set up auxiliary gateway;
Give described IPv6 node by the Packet Generation of described pending protocol conversion, so that described IPv6 node carries out protocol conversion to the packet of described pending protocol conversion;
What receive that described IPv6 node sends carries out the packet after protocol conversion, and will describedly carry out package forward after protocol conversion to corresponding WSN node or server.
2. method according to claim 1, is characterized in that, after the packet of the pending protocol conversion sent in described reception server or WSN interior nodes, described IPv6 node in WSN also comprises before sending the protocol conversion middleware:
Obtain gateway device work at present load;
When the described work at present load of gateway device is more than or equal to first threshold, the described IPv6 node in WSN sends the assistance requests of setting up auxiliary gateway;
The packet of pending protocol conversion is carried out sending to corresponding WSN node or server after protocol conversion.
3. method according to claim 2, is characterized in that, described IPv6 node in WSN sends the protocol conversion middleware, comprising:
After the request acknowledge message that receives described IPv6 node transmission, the described IPv6 node in WSN sends the protocol conversion middleware.
4. method according to claim 3, is characterized in that, describedly by the Packet Generation of described pending protocol conversion, gives described IPv6 node, comprising:
When described gateway work at present load is more than or equal to Second Threshold, by the Packet Generation of described pending protocol conversion, give described IPv6 node; Described Second Threshold is greater than described first threshold.
5. method according to claim 2, is characterized in that, describedly by described, carries out package forward after protocol conversion to corresponding WSN node or server, comprising:
When the packet of described pending protocol conversion be described server send the time, carry out package forward after protocol conversion to the ordinary node in corresponding WSN by described;
When the packet of described pending protocol conversion be ordinary node in described WSN send the time, by the package forward after described protocol conversion to server.
6. the device that server is communicated by letter with sensor node, is characterized in that, comprising:
Receiving element, the packet of the pending protocol conversion sent for reception server or wireless sensor network WSN interior nodes;
Transmitting element, send the protocol conversion middleware for the internet protocol version 6IPv6 node in WSN, so that described IPv6 node is set up auxiliary gateway;
Described transmitting element, also give described IPv6 node for the Packet Generation by described pending protocol conversion, so that described IPv6 node carries out protocol conversion to the packet of described pending protocol conversion;
Described receiving element, the also packet after protocol conversion that carries out for receiving that described IPv6 node sends;
Described transmitting element, also for carrying out package forward after protocol conversion to corresponding WSN node or server by described.
7. device according to claim 6, is characterized in that, described device also comprises:
Acquiring unit, for obtaining described device work at present load;
Described transmitting element, also, for when described work at present load is more than or equal to first threshold, the described IPv6 node in WSN sends the assistance requests of setting up auxiliary gateway;
Processing unit, carry out protocol conversion for the packet by pending protocol conversion;
Described transmitting element, also for carrying out Packet Generation after protocol conversion to corresponding WSN node or server.
8. device according to claim 7, is characterized in that, described transmitting element, for:
After the request acknowledge message that receives described IPv6 node transmission, the described IPv6 node in WSN sends the protocol conversion middleware.
9. device according to claim 8, is characterized in that, described transmitting element, for:
When described work at present load is more than or equal to Second Threshold, by the Packet Generation of described pending protocol conversion, give described IPv6 node; Described Second Threshold is greater than described first threshold.
10. device according to claim 7, is characterized in that, described transmitting element, for:
When the packet of described pending protocol conversion be described server send the time, carry out package forward after protocol conversion to the ordinary node in corresponding WSN by described;
When the packet of described pending protocol conversion be ordinary node in described WSN send the time, by the package forward after described protocol conversion to server.
CN201310467641.3A 2013-10-09 2013-10-09 The method and device that a kind of server communicates with sensor node Active CN103501276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310467641.3A CN103501276B (en) 2013-10-09 2013-10-09 The method and device that a kind of server communicates with sensor node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310467641.3A CN103501276B (en) 2013-10-09 2013-10-09 The method and device that a kind of server communicates with sensor node

Publications (2)

Publication Number Publication Date
CN103501276A true CN103501276A (en) 2014-01-08
CN103501276B CN103501276B (en) 2017-07-04

Family

ID=49866449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310467641.3A Active CN103501276B (en) 2013-10-09 2013-10-09 The method and device that a kind of server communicates with sensor node

Country Status (1)

Country Link
CN (1) CN103501276B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040204A (en) * 2018-07-17 2018-12-18 中国联合网络通信集团有限公司 For the data processing method of gateway, gateway component and sensor network
CN111818010A (en) * 2020-05-26 2020-10-23 视联动力信息技术股份有限公司 Data transmission method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068226A (en) * 2007-02-01 2007-11-07 西安交通大学 Multimedia interactive gateway realizing method under IPv4/IPv6 mixed environment
CN101272294A (en) * 2007-03-23 2008-09-24 西安电子科技大学 WSN access Internet network architecture and service providing method
CN101711048A (en) * 2009-11-13 2010-05-19 西安电子科技大学 Method for choosing gateway in integrating process of mobile self-organization network and Internet
CN102694754A (en) * 2012-06-07 2012-09-26 广州睿哲网络科技有限公司 Application gateway technology and system for realizing content interchange of Internet protocol version 4/Internet protocol version 6 (IPv4/IPv6) websites

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068226A (en) * 2007-02-01 2007-11-07 西安交通大学 Multimedia interactive gateway realizing method under IPv4/IPv6 mixed environment
CN101272294A (en) * 2007-03-23 2008-09-24 西安电子科技大学 WSN access Internet network architecture and service providing method
CN101711048A (en) * 2009-11-13 2010-05-19 西安电子科技大学 Method for choosing gateway in integrating process of mobile self-organization network and Internet
CN102694754A (en) * 2012-06-07 2012-09-26 广州睿哲网络科技有限公司 Application gateway technology and system for realizing content interchange of Internet protocol version 4/Internet protocol version 6 (IPv4/IPv6) websites

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040204A (en) * 2018-07-17 2018-12-18 中国联合网络通信集团有限公司 For the data processing method of gateway, gateway component and sensor network
CN111818010A (en) * 2020-05-26 2020-10-23 视联动力信息技术股份有限公司 Data transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN103501276B (en) 2017-07-04

Similar Documents

Publication Publication Date Title
EP2635002B1 (en) Cgn (carrier grade nat) entity based data transmission method, cgn entity, gateway and system
CN102739541B (en) The method, apparatus and system of a kind of routing function startup and transfer of data
CN103220219B (en) A kind of message forwarding method and equipment
CN102845123A (en) Virtual private cloud connection method and tunnel proxy server
CN103907394A (en) Small data techniques and configurations in a wireless communication network
US20230217347A1 (en) Method for ursp rule-based application data routing, user equipment, and storage medium
CN104796849A (en) Method and equipment for processing data packets
CN105281942A (en) Network equipment sending BGP information and methods for sending BGP information
WO2018121257A1 (en) Method, apparatus and system for sending message, and storage medium
CN103313308A (en) Data transmission method and device
CN111431787B (en) Tunnel establishment method and device and computer readable storage medium
US20180145905A1 (en) Data link layer-based communication method, device, and system
EP3334095B1 (en) Method for establishing data connection, server side, and mobile terminal
CN102904814B (en) Data transmission method, source PE, object PE and data transmission system
CN104243719B (en) The heart beat cycle of long connection determines mthods, systems and devices in mobile communications network
CN103796191B (en) Method, device and the terminal of data are sent to user terminal
CN102299862A (en) Quick forwarding equipment and method for two-layer tunnel
CN104796887A (en) Method and device for safely exchanging information
CN103501276A (en) Method and device for communication between server and sensor nodes
CN106537854A (en) Method and apparatus for switching network communication and direct communication
US10110426B2 (en) Method, apparatus, and system for implementing tunneling processing
US10368388B2 (en) Method for peer to peer communication and related communication device
CN107231704A (en) Method for connecting network and device
CN107431669B (en) Selection method of negotiation object, method for responding discovery message and related device
CN114745456A (en) Message processing method and device and network address translation equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant