Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
See also Fig. 1, a kind of near radio community network transfer of data detection method basic procedure schematic diagram that the embodiment of the invention provides mainly comprises:
S101, source node continued to intercept to channel before sending data.
Because the DTMSN network often is in high dynamic and non-connected state, duty ratio mechanism lower node need safeguard that a huge synchronizing information table is used to write down the wakeup time of each node synchronously, and the acute variation of neighbor state makes that channel resource and energy resource that sync message consumed are very big; By contrast, asynchronous duty ratio mechanism does not need the synchronizing information of maintenance of neighbor node not need the transmitting synchronous message yet, only need keep wake-up states to finish and the shaking hands of potential receiving node.Yet neighbor state changes acutely among the DTMSN, and the duty ratio mechanism based on lead code in traditional MAC agreement need be upgraded neighbor table continually, causes a large amount of messages to be delayed transmission, and channel Be Controlled message frequently takies even blocks.Therefore, unlike the prior art, in embodiments of the present invention, source node was not to send lead code, but channel is continued to intercept before sending the data that need to send, send the energy that a large amount of lead codes expend thereby reduced, improved channel utilization.
S102 as if the probe messages that listens to from destination node, then sends data to described destination node.
The data re-transmission that sends message with no destination in the prior art and cause because of invalid transmission is different, in the embodiment of the invention, source node can judge whether destination node possesses the condition that receives data according to intercepted result, for example, be in idle condition etc., if possess, then send, thereby reduced the waste of energy consumption and channel resource.
As one embodiment of the invention, if source node listens to probe messages from destination node, judge that then to send the condition of data to destination node satisfied, at this moment, source node begins to send data to destination node.
In embodiment provided by the invention, probe messages can be a minimum active probe message by node fixed time broadcast among the DTMAC (MAEP, Minimal Active Exploration Packet), is used for informing the state of node self, for example, busy or free time etc.A MAEP comprises the node identification of the node that sends this MAEP at least, can also further comprise lead code, length field and check digit or the like, wherein, node identification is used to inform to be which node has sent this MAEP to source node, lead code has been indicated MAEP header information, value on the length field has been indicated MAEP message data loaded length, the CRC check value that check digit adopts when exactly the MAEP message being carried out cyclic redundancy check (CRC) (CRC, Cyclic Redundancy Check) verification.
In another embodiment provided by the invention, when source node is intercepted channel and is waited for the probe messages of destination node, if listen to probe messages from non-destination node, MAEP for example, then source node in view of the above MAEP upgrade neighbor state.Network topology shown in accompanying drawing 2-a, the node A among the DTMAC intercepts one-period.In this cycle, node A listens to the MAEP that sends from neighbor node E, neighbor node F, neighbor node C, neighbor node D and neighbor node B, shown in accompanying drawing 2-b.So node A upgrades neighbor state according to the MAEP that the above-mentioned neighbor node of receiving sends, and for example, safeguards a neighbor state table, record sends node identification, free time or the state that does of MAEP node and upgrades corresponding network topology or the like.
See also Fig. 3, the another kind of near radio community network transfer of data detection method basic procedure schematic diagram that the embodiment of the invention provides comprises:
S301, destination node carry out frame to channel before sending probe messages listens.
In the prior art, owing to be to send a large amount of preamble sequences by source node to wake destination node up, therefore, destination node need not be intercepted channel, is only waking back early ACK message of transmission up to source node, and source node begins to send data.And in embodiments of the present invention, source node does not send preamble sequence, and so, destination node is intercepted in short-term to channel before sending probe messages, has so also reduced the energy consumption of source node.
S302 if intercepting the gained result is channel idle, then sends probe messages, if intercepting the gained result is channel busy, then destination node changes resting state over to.
In embodiment provided by the invention, each node regularly wakes up by the duty time ratio of self.In case destination node wakes up, when listening to channel idle, this destination node just sends probe messages, mean that message switching initiated by destination node, guaranteed that thus source node is after receiving probe messages, destination node is in upstate, the data re-transmission that reduces that no purpose message common among the DTMSN sends and cause because of invalid transmission has further reduced the waste of energy and channel resource.
In the present embodiment, probe messages also can be a MAEP by node fixed time broadcast among the DTMAC, is used for informing the state of node self, for example, and busy or free time etc.A MAEP comprises the node identification of the node that sends this MAEP at least, can also further comprise lead code, length field and check digit or the like.
See also Fig. 4, in the near radio community network data transmission method (X-MAC transmission mechanism) that near radio community network transfer of data detection method (DTMAC transmission mechanism) that the embodiment of the invention provides and prior art provide, the message contrast schematic diagram that source node (Sender) and destination node (Receiver) send is described as follows.
In the X-MAC transmission mechanism, when source node has data to send, at first send a preamble sequence (or expansion lead code) and keep destination node to be in wake-up states, and then send datagram.In case a certain node begins to send preamble sequence (or expansion lead code), it is with long-term busy channel, all neighbours of this node can't receive or send message, cause the network percent of pass to reduce, and high dynamic topological environmental also cause the bust this of being initiated by source node easily among the DTMSN.
In the DTMAC transmission mechanism that the embodiment of the invention provides, message switching is to be initiated by destination node, be that source node is enough intercepted for a long time to channel, receive the MAEP of its neighbor node broadcasting, realize neighbor discovery process, therefore, source node is actually channel is continued to intercept replacement a large amount of transmission lead codes of the prior art.In embodiments of the present invention, source node only need keep the state of intercepting, if receive the MAEP of destination node, finishes listening periods immediately, can be considered as the long enough time during this period of time from beginning to intercept to the MAEP that receives destination node.
At destination node, when it wakes up, channel is intercepted in short-term, if channel busy then continues dormancy, if channel idle then sends MAEP.Source node sends data after receiving the MAEP of potential destination node immediately.
Sending power consumption and receiving under the more or less the same hypothesis of power consumption, to compare with X-MAC, the transmission ends of DTMAC need not frequent switching between transmission and accepting state, and institute's energy requirement is still less; And notification source node immediately after the destination node of DTMAC wakes up transmits early ACK message after need not to receive a message again, and time-delay improves to some extent.In addition, in the X-MAC transmission mechanism, send targeting sequencing before each transfer of data and can bring long-time channel occupancy, the DTMAC transmission mechanism is that channel is just occupied when the transmission beginning.Suppose that the message average length is an one-period, DTMAC has improved nearly one times with channel utilization.The destination node inefficacy has effectively been avoided in this transmission of being initiated by destination node, and common no purpose message sends and retransmits when having reduced by source node initiation transmission, has reduced the waste of energy and channel resource.
See also Fig. 5-a and Fig. 5-b, the near radio community network data transmission method contrast schematic diagram that near radio community network transfer of data detection method that the embodiment of the invention provides and prior art provide is described as follows.
Shown in Fig. 5-a, after destination node B woke up, MAEP went on the air.After node A and node C receive MAEP, transfer to the upper strata and judged whether that data send to destination node B.If all have, the multicarrier that node adopts conflict to avoid is intercepted multiple access and is inserted (CSMA/CA, Carrier Sense Multiple Access withCollision Avoidance) machine-processed short data message contention channel that sends.If have only node A to have data to wait to send out, then directly send short data message (Short Data Packet), this short data message is that source node A sends out the part in the data of giving destination node B.Destination node B broadcasts a confirmation message (ACK message, this message comprise call duration time indication territory), the transfer of data between start node A and the destination node B after receiving short data message.Node C directly enters dormancy after receiving the ACK message also postponement is to the data transmission of Node B, and the communication between node A and destination node B is finished.
And in the near radio community network data transmission method that prior art shown in Fig. 5-b provides, when source node A has data to send, at first send a large amount of preamble sequences and wake destination node B or destination node C up; Destination node B receives the preamble sequence of source node A when waking up, broadcast a confirmation message (ACK message), notification source node A can send data, informs that meanwhile other nodes (for example destination node C) change dormancy, sign off between source node A and destination node B over to.Source node A begins to send data after receiving the ACK message, and destination node B begins to receive data and reply a confirmation message (ACK message) behind DTD.
By the contrast of Fig. 5-a and Fig. 5-b and above-mentioned explanation as can be known, DTMAC transmission mechanism of the present invention has been finished multiple function by MAEP, avoided multiple different control loads appearance in the network, a large amount of topologys are controlled messages and are transmitted a large amount of energy consumptions that the control message brings among the minimizing DTMSN, and, because the short data message that source node sends is that source node is sent out the part in the data of giving destination node, therefore, reduced sending the energy dissipation that the ACK message brings.
See also Fig. 6, the near radio community network transfer of data detecting devices basic logical structure schematic diagram that the embodiment of the invention provides.For convenience of explanation, only show the part relevant with the embodiment of the invention.This transmission detecting devices can be the source node in the communication system, and the functional module that this transmission detecting devices comprises can be the module that software module, hardware module or software and hardware combine, and comprising: first intercepts the module 601 and first sending module 602, wherein:
First intercepts module 601, is used for channel being continued to intercept before sending data;
First sending module 602 is used for first when intercepting module 601 and listening to probe messages from destination node, sends data to this destination node.
As another embodiment of the present invention, near radio community network transfer of data detecting devices further comprises neighbours' update module 701, as shown in Figure 7.Neighbours' update module 701 is used for then upgrading neighbor state if first intercept module 601 and listen to probe messages from non-destination node.
In the near radio community network transfer of data detecting devices of Fig. 6 to Fig. 7 example, probe messages can be a MAEP by node fixed time broadcast among the DTMAC, is used for informing the state of node self, for example, and busy or free time etc.A MAEP comprises the node identification of the node that sends this MAEP at least, can also further comprise lead code, length field and check digit or the like.
See also Fig. 8, the near radio community network transfer of data detecting devices basic logical structure schematic diagram that the embodiment of the invention provides.For convenience of explanation, only show the part relevant with the embodiment of the invention.This transmission equipment can be the destination node in the communication system, and its functional module that comprises can be the module that software module, hardware module or software and hardware combine, and comprising: second intercepts the module 801 and second sending module 802, wherein:
Second intercepts module 801, is used for before sending probe messages channel being intercepted;
Second sending module 802 is used for then sending probe messages if second intercept module 801 to intercept the gained result be channel idle.
To intercept the gained result be channel busy if second intercepts module 801, and then destination node changes resting state over to.
As another embodiment of the present invention, near radio community network data transmission set shown in Figure 8 further comprises broadcast module 901, as shown in Figure 9.After broadcast module 901 is used for second sending module, 802 transmission probe messages, if receive short data message, broadcast acknowledgements message.
In the near radio community network transfer of data detecting devices of Fig. 8 to Fig. 9 example, probe messages also can be a MAEP by node fixed time broadcast among the DTMAC, is used for informing the state of node self, for example, and busy or free time etc.A MAEP comprises the node identification of the node that sends this MAEP at least, can also further comprise lead code, length field and check digit or the like.
See also Figure 10, the near radio community network transfer of data detection system basic logical structure schematic diagram that the embodiment of the invention one provides.For convenience of explanation, only show the part relevant with the embodiment of the invention.This system comprises source node 1001 and destination node 1002, wherein:
Source node 1001 comprises that first intercepts the module 10011 and first sending module 10012;
First intercepts module 10011, is used for channel being continued to intercept before sending data;
First sending module 10012 is used for then sending data to destination node if first intercept module 10011 and listen to probe messages from destination node;
Destination node 1002 comprises that second intercepts the module 10021 and second sending module 10022;
Second intercepts module 10021, is used for before sending probe messages channel being intercepted;
Second sending module 10022 is used for then sending probe messages if second intercept module 10021 to intercept the gained result be channel idle.
To intercept the gained result be channel busy if second intercepts module 10021, and then destination node 1002 changes resting state over to.
As another embodiment of the present invention, the source node 1001 of Figure 10 example further comprises neighbours' update module 11011, and source node 1902 further comprises broadcast module 11012, as shown in Figure 11, and wherein:
Neighbours' update module 11011 is used for then upgrading neighbor state if first intercept module 10011 and listen to probe messages from non-destination node;
Broadcast module 11012 is after being used for second sending module 10022 and sending probe messages, if receive short data message, broadcast acknowledgements message.
Need to prove, contents such as the information interaction between each module/unit of the said equipment, implementation, since with the inventive method embodiment based on same design, its technique effect that brings is identical with the inventive method embodiment, particular content can repeat no more referring to the narration among the inventive method embodiment herein.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than near radio community network transfer of data detection method, system and relevant device that the embodiment of the invention is provided be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.