CN104202803B - An energy-saving MAC protocol communication method based on wireless sensor network - Google Patents
An energy-saving MAC protocol communication method based on wireless sensor network Download PDFInfo
- Publication number
- CN104202803B CN104202803B CN201410438896.1A CN201410438896A CN104202803B CN 104202803 B CN104202803 B CN 104202803B CN 201410438896 A CN201410438896 A CN 201410438896A CN 104202803 B CN104202803 B CN 104202803B
- Authority
- CN
- China
- Prior art keywords
- node
- wakeup
- wake
- time
- wait
- 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.)
- Expired - Fee Related
Links
- 238000004891 communication Methods 0.000 title claims abstract description 23
- 238000000034 method Methods 0.000 title abstract description 24
- 108700026140 MAC combination Proteins 0.000 title abstract description 14
- 230000005540 biological transmission Effects 0.000 claims description 36
- 230000008859 change Effects 0.000 claims description 9
- 238000012544 monitoring process Methods 0.000 claims description 7
- 230000002618 waking effect Effects 0.000 claims 4
- 108090000623 proteins and genes Proteins 0.000 claims 3
- 238000012423 maintenance Methods 0.000 claims 2
- 230000003139 buffering effect Effects 0.000 claims 1
- 230000002045 lasting effect Effects 0.000 claims 1
- 238000005265 energy consumption Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000007246 mechanism Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 108010046685 Rho Factor Proteins 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000004083 survival effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明属于无线传感器网络通信领域,尤其涉及一种基于无线传感器网络的节能MAC协议通信方法,包括:新节点通过维护邻居节点的唤醒时间表,记录邻居节点的唤醒时间偏移值;根据邻居节点的唤醒时间偏移值确定新节点的唤醒时间偏移值;当发送节点发送数据时,查询所述唤醒时间表中对应的接收节点信息,并预测接收节点的唤醒时间。本发明根据邻居节点唤醒时间选择偏移值,保证了节点之间具有不同的唤醒时间,并通过准确预测接收节点的唤醒时间,能够有效减少空闲侦听带来的能量消耗,节约了能量。
The present invention belongs to the field of wireless sensor network communication, and in particular, relates to an energy-saving MAC protocol communication method based on a wireless sensor network, comprising: a new node records the wake-up time offset value of a neighboring node by maintaining the wake-up schedule of the neighboring node; determining the wake-up time offset value of the new node according to the wake-up time offset value of the neighboring node; when the sending node sends data, querying the corresponding receiving node information in the wake-up schedule, and predicting the wake-up time of the receiving node. The present invention selects the offset value according to the wake-up time of the neighboring node, ensures that the nodes have different wake-up times, and can effectively reduce the energy consumption caused by idle listening and save energy by accurately predicting the wake-up time of the receiving node.
Description
技术领域technical field
本发明涉及通信领域,具体而言,涉及一种基于无线传感器网络的节能MAC协议通信方法。The invention relates to the field of communication, in particular to an energy-saving MAC protocol communication method based on a wireless sensor network.
背景技术Background technique
无线传感器网络(Wireless Sensor Network,WSN)是由大量的静止或移动的传感器以自组织和多跳的方式构成的无线网络,以协作地感知、采集、处理和传输网络覆盖地理区域内被感知对象的信息。A wireless sensor network (Wireless Sensor Network, WSN) is a wireless network composed of a large number of stationary or moving sensors in a self-organizing and multi-hop manner to cooperatively perceive, collect, process and transmit the perceived objects in the geographical area covered by the network. Information.
在传感器网络使用过程中,部分传感器节点由于能量耗尽或环境因素造成失效,也有一些节点为了弥补失效节点、增加监测精度而补充到网络中(新节点),这样在传感器网络中的节点个数就动态地增加或减少,从而使网络的拓扑结构随之动态地变化。During the use of the sensor network, some sensor nodes fail due to energy exhaustion or environmental factors, and some nodes are added to the network (new nodes) in order to make up for the failed nodes and increase the monitoring accuracy. In this way, the number of nodes in the sensor network It increases or decreases dynamically, so that the topology of the network changes dynamically accordingly.
无线传感器网络中,节点的唤醒方式有以下几种:In wireless sensor networks, the wake-up methods of nodes are as follows:
(1)全唤醒模式:这种模式下,无线传感器网络中的所有节点同时唤醒,探测并跟踪网络中出现的目标,虽然这种模式下可以得到较高的跟踪精度,然而是以网络能量的消耗巨大为代价的。(1) Full wake-up mode: In this mode, all nodes in the wireless sensor network wake up at the same time to detect and track targets in the network. Although high tracking accuracy can be obtained in this mode, the network energy At the expense of huge consumption.
(2)随机唤醒模式:这种模式下,无线传感器网络中的节点由给定的唤醒概率p随机唤醒。(2) Random wake-up mode: In this mode, the nodes in the wireless sensor network wake up randomly with a given wake-up probability p.
(3)由预测机制选择唤醒模式:这种模式下,无线传感器网络中的节点根据跟踪任务的需要,选择性的唤醒对跟踪精度收益较大的节点,通过获得的信息预测目标下一时刻的状态,并唤醒节点。(3) The wake-up mode is selected by the prediction mechanism: in this mode, the nodes in the wireless sensor network selectively wake up the nodes that have a greater benefit to the tracking accuracy according to the needs of the tracking task, and predict the next moment of the target through the obtained information. state, and wake up the node.
(4)任务循环唤醒模式:这种模式下,无线传感器网络中的节点周期性的出于唤醒状态,这种工作模式的节点可以与其他工作模式的节点共存,并协助其他工作模式的节点工作。(4) Task cycle wake-up mode: In this mode, the nodes in the wireless sensor network are periodically in the wake-up state. Nodes in this working mode can coexist with nodes in other working modes and assist nodes in other working modes to work .
在无线传感器网络中,媒体介质访问控制(Media Access Control,MAC)协议处于无线传感器网络协议的底层部分,主要用于传感器节点间公平有效地共享通信媒介,对传感器网络的性能有较大影响,是保证无线传感器网络有效通信的关键网络协议之一。In a wireless sensor network, the Media Access Control (MAC) protocol is at the bottom of the wireless sensor network protocol, and it is mainly used for fair and effective sharing of the communication medium between sensor nodes, which has a great impact on the performance of the sensor network. It is one of the key network protocols to ensure the effective communication of wireless sensor networks.
相关技术中的基于接收端发起的异步MAC层协议,节点维持邻居节点固定的唤醒时间表,在持续空闲侦听时带来较大的能量消耗,不利于节能。In the related art, based on the asynchronous MAC layer protocol initiated by the receiving end, the node maintains a fixed wake-up schedule of neighboring nodes, which brings large energy consumption during continuous idle listening, which is not conducive to energy saving.
发明内容Contents of the invention
本发明的目的在于提供一种基于无线传感器网络的节能MAC协议通信方法,以解决上述的问题。The purpose of the present invention is to provide an energy-saving MAC protocol communication method based on a wireless sensor network to solve the above problems.
在本发明的实施例中提供了一种基于无线传感器网络的节能MAC协议通信方法,包括:In an embodiment of the present invention, a wireless sensor network-based energy-saving MAC protocol communication method is provided, including:
新节点通过维护邻居节点的唤醒时间表,记录邻居节点的唤醒时间偏移值;The new node records the wake-up time offset value of the neighbor node by maintaining the wake-up schedule of the neighbor node;
根据邻居节点的唤醒时间偏移值确定新节点的唤醒时间偏移值,公式如下:Determine the wake-up time offset value of the new node according to the wake-up time offset value of the neighbor node, the formula is as follows:
式中,Ow(i)为接收节点i的唤醒时间偏移值,Ow为新节点的唤醒时间偏移值,t(i,j)为i,j两节点唤醒时刻差值,其中i,j两个节点的唤醒时刻处在所有节点中唤醒间隔最短的时间内;In the formula, O w (i) is the wake-up time offset value of the receiving node i, O w is the wake-up time offset value of the new node, t(i, j) is the difference between the wake-up time of two nodes i and j, where i , j The wake-up time of the two nodes is within the shortest wake-up interval among all nodes;
当发送节点发送数据时,查询唤醒时间表中对应的接收节点信息,并预测接收节点的唤醒时间,预测公式如下:When the sending node sends data, query the corresponding receiving node information in the wake-up schedule, and predict the wake-up time of the receiving node. The prediction formula is as follows:
tremain(i)=Twakeup(i)-(tc-Ow(i))%Twakeup(i)t remain (i)=T wakeup (i)-(t c -O w (i))%T wakeup (i)
式中,tremain(i)为接收节点i下次唤醒时刻剩余时间,Twakeup(i)为节点i唤醒间隔,tc为发送节点当前时间,Ow(i)为接收节点i的唤醒偏移值。In the formula, t remain (i) is the remaining time of receiving node i’s next wake-up time, T wakeup (i) is the wake-up interval of node i, t c is the current time of sending node, O w (i) is the wake-up bias of receiving node i transfer value.
进一步,新节点通过维护邻居节点的唤醒时间表记录邻居节点的唤醒时间偏移值之前,还包括:Further, before the new node records the wake-up time offset value of the neighbor node by maintaining the wake-up schedule of the neighbor node, it also includes:
持续监听节点初始最大唤醒间隔的时长,当接收到邻居节点发送的信标帧时,发送带有请求节点唤醒状态标志位的空数据帧;Continuously monitor the duration of the initial maximum wake-up interval of the node, and when receiving the beacon frame sent by the neighbor node, send an empty data frame with the wake-up status flag bit of the requesting node;
当发送节点接收到带有标志位的空数据帧时,在发送的ACK帧中嵌入节点的唤醒间隔;When the sending node receives an empty data frame with a flag bit, embed the wake-up interval of the node in the sent ACK frame;
新节点在持续监听时间内接收邻居节点返回的ACK帧,并在监听结束后维护一张邻居节点唤醒时间表。The new node receives the ACK frame returned by the neighbor node during the continuous monitoring time, and maintains a wake-up schedule of the neighbor node after the monitoring ends.
进一步,该方法还包括:当接收节点的实际唤醒时间与发送节点预测的唤醒时间的差值大于误差阈值时,重新请求接收节点唤醒时间的信息。Further, the method further includes: when the difference between the actual wake-up time of the receiving node and the predicted wake-up time of the sending node is greater than an error threshold, re-requesting information about the wake-up time of the receiving node.
进一步,该方法还包括:发送节点每次发送数据前,检测缓冲队列中等待传输的数据包数量,根据等待传输的数据包数量计算等待传输数据包数量等级,根据等待传输数据包数量等级自适应改变节点的唤醒间隔。Further, the method also includes: before the sending node sends data each time, detecting the number of data packets waiting to be transmitted in the buffer queue, calculating the level of the number of data packets waiting to be transmitted according to the number of data packets waiting to be transmitted, and adapting to the level according to the number of data packets waiting to be transmitted Change the wakeup interval of a node.
进一步,根据等待传输数据包数量等级自适应改变节点的唤醒间隔,具体包括:Further, according to the level of the number of data packets waiting to be transmitted, the wake-up interval of the node is adaptively changed, including:
当相比于上一次发送数据前,等待传输数据包数量等级发生改变时,将标志位和所述等待传输数据包数量等级嵌入到预发送的数据帧中;其中,标志位用于通知接收节点数据帧中嵌入有改变的等待传输数据包数量等级,等待传输数据包数量等级由下式求得:When the level of the number of data packets waiting to be transmitted is changed compared to the previous data transmission, the flag bit and the level of the number of data packets waiting to be transmitted are embedded in the pre-sent data frame; wherein the flag bit is used to notify the receiving node The number of data packets waiting to be transmitted is embedded in the data frame, and the number of data packets waiting to be transmitted is obtained by the following formula:
式中,ρwait(i)为节点i等待传输数据包数量等级,Nwait(i)为节点i等待传输的数据包数量,nthreshold为发送节点负载因子,ρthreshold为接收节点负载因子;In the formula, ρ wait (i) is the level of the number of data packets that node i is waiting to transmit, N wait (i) is the number of data packets that node i is waiting to transmit, n threshold is the load factor of the sending node, and ρ threshold is the load factor of the receiving node;
当节点收到带有标志位的数据帧时更新孩子节点中等待传输数据包数量等级的总和,当未收到带有标志位的数据帧时,保持等待传输数据包数量等级不变;其中,孩子节点中等待传输数据包数量等级的总和由下式求得:When the node receives the data frame with the flag bit, update the sum of the number of data packets waiting to be transmitted in the child node. When the data frame with the flag bit is not received, keep the number of data packets waiting to be transmitted unchanged; wherein, The sum of the levels of the number of data packets waiting to be transmitted in the child nodes is obtained by the following formula:
式中,ρwait为孩子节点中等待传输数据包数量等级的总和,ρwait(i)为节点i等待传输数据包数量等级,s为孩子节点的个数;In the formula, ρ wait is the sum of the number of data packets waiting to be transmitted in child nodes, ρ wait (i) is the number of data packets waiting for node i to transmit, and s is the number of child nodes;
接收节点动态改变唤醒间隔;其中,动态改变唤醒间隔的条件为调整因子改变,相关公式如下:The receiving node dynamically changes the wake-up interval; the condition for dynamically changing the wake-up interval is the change of the adjustment factor, and the related formula is as follows:
式中,μ为调整因子,ρwait为孩子节点中等待传输数据包数量等级的总和,ρthreshold为接收节点负载因子,Ttmp为节点计算后的唤醒间隔,Tinit_wakeup为节点初始最大唤醒间隔,Twakeup为节点的唤醒间隔,Tmin为节点最小唤醒间隔。In the formula, μ is the adjustment factor, ρ wait is the sum of the number of data packets waiting to be transmitted in the child nodes, ρ threshold is the load factor of the receiving node, T tmp is the wake-up interval calculated by the node, T init_wakeup is the initial maximum wake-up interval of the node, T wakeup is the wakeup interval of the node, and T min is the minimum wakeup interval of the node.
进一步,该方法还包括:当调整因子未改变时保持唤醒间隔不变。Further, the method further includes: keeping the wake-up interval unchanged when the adjustment factor does not change.
进一步,该方法还包括:当发送节点接收到接收节点的唤醒信标帧时,转换为睡眠状态直到接收节点下一次唤醒时间重传数据。Further, the method further includes: when the sending node receives the wake-up beacon frame of the receiving node, switching to a sleep state until the next wake-up time of the receiving node and retransmitting data.
本发明实施例提供的基于无线传感器网络的节能MAC协议通信方法与现有技术相比,通过根据邻居节点唤醒时间选择偏移值,保证了节点之间具有不同的唤醒时间,并通过准确预测接收节点的唤醒时间,能够有效减少空闲侦听带来的能量消耗,节约了能量。Compared with the prior art, the wireless sensor network-based energy-saving MAC protocol communication method provided by the embodiment of the present invention ensures that nodes have different wake-up times by selecting the offset value according to the wake-up time of neighboring nodes, and accurately predicts the reception The wake-up time of the node can effectively reduce the energy consumption caused by idle listening and save energy.
附图说明Description of drawings
图1示出了本发明一种基于无线传感器网络的节能MAC协议通信方法的流程图;Fig. 1 shows the flow chart of a kind of energy-saving MAC protocol communication method based on wireless sensor network of the present invention;
图2示出了本发明一种基于无线传感器网络的节能MAC协议通信方法的工作过程示意图;Fig. 2 shows a schematic diagram of the working process of a wireless sensor network-based energy-saving MAC protocol communication method of the present invention;
图3示出了本发明一种基于无线传感器网络的节能MAC协议通信方法新节点加入网络初始化阶段的示意图。FIG. 3 shows a schematic diagram of an energy-saving MAC protocol communication method based on a wireless sensor network according to the present invention, and a schematic diagram of a new node joining the network initialization stage.
具体实施方式detailed description
下面通过具体的实施例子并结合附图对本发明做进一步的详细描述。The present invention will be described in further detail below through specific implementation examples and in conjunction with the accompanying drawings.
考虑到现有技术中节点维持邻居节点固定的唤醒时间表,在持续空闲侦听时带来较大能量消耗的问题,本发明实施例提供了一种基于无线传感器网络的HELD-MAC(Highenergy efficiency and Low delay-Media Access Control,高能效低延时媒体介质访问控制)协议。Considering that in the prior art, a node maintains a fixed wake-up schedule of neighboring nodes, which causes a large energy consumption during continuous idle listening, an embodiment of the present invention provides a HELD-MAC (High energy efficiency MAC) based on a wireless sensor network. and Low delay-Media Access Control, energy-efficient low-delay media media access control) protocol.
参图1至图3所示,图1示出了本发明一种基于无线传感器网络的节能MAC协议通信方法的流程图;图2示出了本发明一种基于无线传感器网络的节能MAC协议通信方法的工作过程示意图;图3示出了本发明一种基于无线传感器网络的节能MAC协议通信方法新节点加入网络初始化阶段的示意图。Referring to Figs. 1 to 3, Fig. 1 shows a flowchart of a wireless sensor network-based energy-saving MAC protocol communication method of the present invention; Fig. 2 shows a wireless sensor network-based energy-saving MAC protocol communication method of the present invention Schematic diagram of the working process of the method; FIG. 3 shows a schematic diagram of an energy-saving MAC protocol communication method based on a wireless sensor network in the present invention, and a schematic diagram of a new node joining the network initialization stage.
为了解决上述问题,本发明的思路是,在新节点加入网络阶段,根据邻居节点唤醒时间选择偏移值,以保证与邻居节点有不同的唤醒时间。通过预测接收节点唤醒时间,当发送节点有数据传输时,根据预测到的接收节点唤醒时间提前Tcd时刻唤醒,以等待接收唤醒信标帧。具体包括:In order to solve the above problems, the idea of the present invention is to select an offset value according to the wake-up time of the neighbor nodes when the new node joins the network, so as to ensure that the wake-up time is different from that of the neighbor nodes. By predicting the wake-up time of the receiving node, when the sending node has data transmission, it wakes up at Tcd time in advance according to the predicted wake-up time of the receiving node, so as to wait for receiving the wake-up beacon frame. Specifically include:
步骤S102,新节点通过维护邻居节点的唤醒时间表,记录邻居节点的唤醒时间偏移值;Step S102, the new node records the wake-up time offset value of the neighbor node by maintaining the wake-up time table of the neighbor node;
步骤S104,根据邻居节点的唤醒时间偏移值确定新节点的唤醒时间偏移值,公式如下:Step S104, determine the wake-up time offset value of the new node according to the wake-up time offset value of the neighbor node, the formula is as follows:
(1)式中,Ow(i)为接收节点i的唤醒时间偏移值,Ow为新节点的唤醒时间偏移值,t(i,j)为i,j两节点唤醒时刻差值,两个节点唤醒时刻必须在所有节点中唤醒间隔最短的时间内;In the formula (1), O w (i) is the wake-up time offset value of the receiving node i, O w is the wake-up time offset value of the new node, t(i, j) is the difference between the wake-up time of the two nodes i and j , the wake-up time of the two nodes must be within the shortest wake-up interval among all nodes;
步骤S106,当发送节点发送数据时,查询唤醒时间表中对应的接收节点信息,并预测接收节点的唤醒时间,预测公式如下:Step S106, when the sending node sends data, query the corresponding receiving node information in the wake-up schedule, and predict the wake-up time of the receiving node, the prediction formula is as follows:
tremain(i)=Twakeup(i)-(tc-Ow(i))%Twakeup(i) (2)t remain (i)=T wakeup (i)-(t c -O w (i))%T wakeup (i) (2)
(2)式中,tremain(i)为接收节点i下次唤醒时刻剩余时间,Twakeup(i)为节点i唤醒间隔,tc为发送节点当前时间,Ow(i)为接收节点i的唤醒偏移值。In formula (2), t remain (i) is the remaining time of receiving node i’s next wake-up time, T wakeup (i) is the wake-up interval of node i, t c is the current time of sending node, O w (i) is receiving node i The wake-up offset value.
在本实施例中,唤醒间隔应该理解为两次唤醒的间隔,唤醒时间应理解为唤醒时刻,即唤醒的那一刻。In this embodiment, the wake-up interval should be understood as the interval between two wake-ups, and the wake-up time should be understood as the wake-up moment, that is, the moment of wake-up.
本实施例提供的HELD-MAC协议,通过式(1),根据邻居节点唤醒时间选择偏移值,保证了节点之间具有不同的唤醒时间,并通过式(2)准确预测接收节点的唤醒时间,能够有效减少空闲侦听带来的能量消耗,节约了能量。The HELD-MAC protocol provided in this embodiment, through formula (1), selects the offset value according to the wake-up time of neighboring nodes, which ensures that the nodes have different wake-up times, and accurately predicts the wake-up time of the receiving node through formula (2) , which can effectively reduce energy consumption caused by idle listening and save energy.
在本实施例中,在新节点加入网络的初始阶段,新节点通过维护邻居节点的唤醒时间表记录邻居节点的唤醒时间偏移值之前,还包括:In this embodiment, at the initial stage when a new node joins the network, before the new node records the wake-up time offset value of the neighbor node by maintaining the wake-up schedule of the neighbor node, it also includes:
持续监听节点初始最大唤醒间隔Tinit_wakeup的时长,监听过程中,当接收到邻居节点发送的信标帧时,发送带有请求节点唤醒状态标志位的空数据帧;Continuously monitor the duration of the initial maximum wakeup interval T init_wakeup of the node. During the monitoring process, when receiving the beacon frame sent by the neighbor node, send an empty data frame with the request node wakeup status flag;
当发送节点接收到带有标志位的空数据帧时,在发送的ACK帧中嵌入节点的唤醒间隔Twakeup(节点最近一次唤醒时间Tlast,节点当前时间Tcur);When the sending node receives an empty data frame with a flag bit, it embeds the wakeup interval T wakeup of the node in the sent ACK frame (the last wakeup time of the node is T last , the current time of the node is T cur );
新节点在持续监听时间内接收邻居节点返回的ACK帧,并在监听结束后维护一张邻居节点唤醒时间表。The new node receives the ACK frame returned by the neighbor node during the continuous monitoring time, and maintains a wake-up schedule of the neighbor node after the monitoring ends.
相关技术在预测唤醒时间时,均会存在不同程度的误差,该误差不仅由时钟漂移造成,操作系统和硬件延迟也会带来明显的预测误差,为了有效解决此问题,本实施例提供的HELD-MAC协议引入预测误差阈值Ethreshold,当接收节点的实际唤醒时间与发送节点预测的唤醒时间的差值大于误差阈值时,节点根据上述初始化阶段的方法重新请求接收节点唤醒时间的信息。误差阈值Ethreshold的取值范围可取0~20ms。When the related technologies predict the wake-up time, there will be different degrees of error. The error is not only caused by clock drift, but also the operating system and hardware delay will also bring obvious prediction errors. In order to effectively solve this problem, the HELD provided by this embodiment -MAC protocol introduces prediction error threshold E threshold , when the difference between the actual wake-up time of the receiving node and the predicted wake-up time of the sending node is greater than the error threshold, the node re-requests the information of the wake-up time of the receiving node according to the method in the above initialization phase. The value range of the error threshold E threshold may be 0-20 ms.
为了解决相关技术中MAC协议在网络动态负载条件下,不能动态地改变节点唤醒间隔,从而带来较高的数据传输冲突率及较大的数据传输延时的问题,本实施例提供的HELD-MAC协议,还包括:In order to solve the problem that the MAC protocol in the related art cannot dynamically change the node wake-up interval under the dynamic load condition of the network, resulting in a higher data transmission collision rate and a larger data transmission delay, the HELD- MAC protocol, also includes:
发送节点每次发送数据前,检测缓冲队列中等待传输的数据包数量,(如果除本次传输的数据包之外有等待传输的数据包)根据等待传输的数据包数量Nwait(i)计算等待传输数据包数量等级ρwait(i),根据等待传输数据包数量等级自适应改变节点的唤醒间隔。Before sending data each time, the sending node detects the number of data packets waiting to be transmitted in the buffer queue, (if there are data packets waiting to be transmitted in addition to the data packets transmitted this time), it is calculated according to the number of data packets waiting to be transmitted N wait (i) The level of the number of data packets waiting to be transmitted ρ wait (i), adaptively changes the wake-up interval of the node according to the level of the number of data packets waiting to be transmitted.
在本实施例中,根据等待传输数据包数量等级自适应改变节点的唤醒间隔,具体包括:In this embodiment, the wake-up interval of the node is adaptively changed according to the level of the number of data packets waiting to be transmitted, specifically including:
当相比于上一次发送数据前,等待传输数据包数量等级发生改变时,将标志位和所述等待传输数据包数量等级嵌入到预发送的数据帧中;其中,标志位用于通知接收节点数据帧中嵌入有改变的等待传输数据包数量等级,等待传输数据包数量等级由(3)式求得:When the level of the number of data packets waiting to be transmitted is changed compared to the previous data transmission, the flag bit and the level of the number of data packets waiting to be transmitted are embedded in the pre-sent data frame; wherein the flag bit is used to notify the receiving node The number of data packets waiting to be transmitted is embedded in the data frame, and the number of data packets waiting to be transmitted is obtained by formula (3):
(3)式中,ρwait(i)为节点i等待传输数据包数量等级,Nwait(i)为节点i等待传输的数据包数量,nthreshold为发送节点负载因子,ρthreshold为接收节点负载因子;In the formula (3), ρ wait (i) is the level of the number of data packets that node i is waiting to transmit, N wait (i) is the number of data packets that node i is waiting to transmit, n threshold is the load factor of the sending node, and ρ threshold is the load of the receiving node factor;
接收节点动态维持着孩子节点中等待传输数据包数量等级总和ρwait,其中ρwait值越大,代表孩子节点中等待传输的数据包越多,当节点收到带有标志位的数据帧时更新孩子节点中等待传输数据包数量等级的总和ρwait,当未收到带有标志位的数据帧时,保持等待传输数据包数量等级不变;其中,孩子节点中等待传输数据包数量等级的总和由(4)式求得:The receiving node dynamically maintains the sum ρwait of the number of data packets waiting to be transmitted in the child node. The larger the value of ρwait , the more data packets waiting to be transmitted in the child node. It is updated when the node receives a data frame with a flag bit The sum ρ wait of the number of data packets waiting to be transmitted in the child node, when the data frame with the flag bit is not received, the number of data packets waiting to be transmitted remains unchanged; wherein, the sum of the number of data packets waiting to be transmitted in the child node Obtained from formula (4):
(4)式中,ρwait为孩子节点中等待传输数据包数量等级的总和,ρwait(i)为节点i等待传输数据包数量等级,s为孩子节点的个数;(4) In the formula, ρ wait is the sum of the number of data packets waiting to be transmitted in the child nodes, ρ wait (i) is the number of data packets waiting for node i to transmit, and s is the number of child nodes;
接收节点动态改变唤醒间隔;其中,动态改变唤醒间隔的条件为调整因子(μ值)改变,当调整因子(μ值)未改变时保持唤醒间隔不变,相关公式如式(5)、(6)、(7):The receiving node dynamically changes the wake-up interval; the condition for dynamically changing the wake-up interval is that the adjustment factor (μ value) changes, and when the adjustment factor (μ value) does not change, the wake-up interval remains unchanged. The relevant formulas are as follows: (5), (6 ), (7):
式(5)、(6)、(7)中,μ为调整因子,ρwait为孩子节点中等待传输数据包数量等级的总和,ρthreshold为接收节点负载因子,Ttmp为节点计算后的唤醒间隔,Tinit_wakeup为节点初始最大唤醒间隔,Twakeup为节点的唤醒间隔,Tmin为节点最小唤醒间隔,根据节点剩余能量计算而来。In formulas (5), (6), and (7), μ is the adjustment factor, ρ wait is the sum of the number of data packets waiting to be transmitted in the child nodes, ρ threshold is the load factor of the receiving node, and T tmp is the wake-up time of the node after calculation interval, T init_wakeup is the initial maximum wakeup interval of the node, T wakeup is the wakeup interval of the node, and T min is the minimum wakeup interval of the node, which is calculated according to the remaining energy of the node.
其中μ值越大,代表孩子节点中等待传输的数据包越多;(3)式中的发送节点负载因子nthreshold及(5)式中的接收节点负载因子,ρthreshold,可根据应用对数据包传输延时容忍度调整,若对传输延时容忍度较大,则可以适当增加其值,相反,可减小其值。The larger the value of μ, the more data packets waiting to be transmitted in the child node; the load factor n threshold of the sending node in the formula (3) and the load factor of the receiving node in the formula (5), ρ threshold , can be adjusted according to the application Packet transmission delay tolerance adjustment, if the transmission delay tolerance is large, you can increase its value appropriately, otherwise, you can decrease its value.
本实施例提供的HELD-MAC协议,通过发送节点每次发送数据前,检测缓冲队列中等待传输的数据包数量,根据等待传输的数据包数量计算等待传输数据包数量等级,根据等待传输数据包数量等级自适应改变节点的唤醒间隔,实现了接收节点根据网络负载状况自适应地改变节点唤醒间隔,使接收节点改变唤醒间隔之后仍然具有不同的唤醒时间,从而保证了在高负载情况下具有较低的数据传输延时及数据传输冲突率,同时,节点可以根据估计的剩余能量自适应地改变节点的最小唤醒间隔,确保了节点不会因为频繁转发数据而过早关机,延长了网络的生存周期,增强了网络的稳定性。The HELD-MAC protocol provided in this embodiment detects the number of data packets waiting to be transmitted in the buffer queue before the sending node sends data each time, calculates the number level of data packets waiting to be transmitted according to the number of data packets waiting to be transmitted, and calculates the number level of data packets waiting to be transmitted according to the The quantity level adaptively changes the wake-up interval of the node, and realizes that the receiving node can adaptively change the node wake-up interval according to the network load status, so that the receiving node still has a different wake-up time after changing the wake-up interval, thereby ensuring a relatively high load under high load conditions. Low data transmission delay and data transmission collision rate, at the same time, the node can adaptively change the minimum wake-up interval of the node according to the estimated remaining energy, ensuring that the node will not shut down prematurely due to frequent data forwarding, prolonging the survival of the network Period, which enhances the stability of the network.
在无线传感器网络中,高效的数据重传机制是真实传感器网络中需要考虑的重要方面,网络负载的增加以及多个相邻节点同时传输都会带来数据传输冲突,传输失败需要数据重传。本实施例提供的HELD-MAC协议中,当发送节点接收到接收节点的唤醒信标帧时,转换为睡眠状态直到接收节点下一次唤醒时间重传数据,即发送节点当需要数据重传时,检测到传输冲突,节点立即转换到睡眠状态,智能的选择何时唤醒重传数据,实现了高效的能量利用。图2说明了HELD-MAC协议的基于预测的数据重传机制。如图2所示,如果发送节点S接收的是接收节点R的唤醒信标帧而不是数据传输的确认帧,S节点会认为数据传输失败或者确认帧发送失败,S节点立即转换到睡眠状态直到接收节点下一次唤醒时间重传数据,该方法通过减少等待接收节点唤醒的时间,从而减少了能量消耗。In wireless sensor networks, an efficient data retransmission mechanism is an important aspect that needs to be considered in real sensor networks. The increase in network load and the simultaneous transmission of multiple adjacent nodes will cause data transmission conflicts, and transmission failure requires data retransmission. In the HELD-MAC protocol provided in this embodiment, when the sending node receives the wake-up beacon frame of the receiving node, it switches to the sleep state until the receiving node wakes up next time to retransmit the data, that is, when the sending node needs data retransmission, When a transmission conflict is detected, the node immediately switches to the sleep state, intelligently chooses when to wake up and retransmit data, and realizes efficient energy utilization. Figure 2 illustrates the prediction-based data retransmission mechanism of the HELD-MAC protocol. As shown in Figure 2, if the sending node S receives the wake-up beacon frame of the receiving node R instead of the confirmation frame of data transmission, the S node will think that the data transmission failed or the confirmation frame transmission failed, and the S node immediately switches to the sleep state until The receiving node retransmits data at the next wake-up time, and the method reduces energy consumption by reducing the waiting time for the receiving node to wake up.
本发明提供的HELD-MAC协议,通过节点动态的维持邻居节点唤醒时间表来预测节点的唤醒时间,节点根据网络负载情况自适应地的改变节点的唤醒间隔的同时,保证节点之间仍然具有不同的唤醒间隔,在数据传输延时、能量消耗、网络吞吐量、传输碰撞方面具有明显优势。The HELD-MAC protocol provided by the present invention predicts the wake-up time of the node by dynamically maintaining the wake-up schedule of the neighbor nodes, and the node adaptively changes the wake-up interval of the node according to the network load situation, while ensuring that the nodes still have different The wake-up interval has obvious advantages in data transmission delay, energy consumption, network throughput, and transmission collision.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410438896.1A CN104202803B (en) | 2014-08-30 | 2014-08-30 | An energy-saving MAC protocol communication method based on wireless sensor network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410438896.1A CN104202803B (en) | 2014-08-30 | 2014-08-30 | An energy-saving MAC protocol communication method based on wireless sensor network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104202803A CN104202803A (en) | 2014-12-10 |
CN104202803B true CN104202803B (en) | 2017-05-24 |
Family
ID=52088013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410438896.1A Expired - Fee Related CN104202803B (en) | 2014-08-30 | 2014-08-30 | An energy-saving MAC protocol communication method based on wireless sensor network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104202803B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104539398B (en) * | 2015-01-21 | 2017-11-21 | 哈尔滨工程大学 | A kind of underwater sensor network MAC protocol communication means of asynchronous dutycycle and network code |
WO2018052343A1 (en) * | 2016-09-13 | 2018-03-22 | Telefonaktiebolaget Lm Ericsson (Publ) | Identification of neighboring network nodes in a wireless communication network |
CN108966327B (en) * | 2018-08-22 | 2021-02-05 | 中国农业科学院农业信息研究所 | A method and system for extending the lifespan of an agricultural wireless sensor network |
CN109862123A (en) * | 2019-03-29 | 2019-06-07 | 深圳开立生物医疗科技股份有限公司 | Data processing method, Internet of Things module and equipment |
CN110290121B (en) * | 2019-06-13 | 2021-10-08 | 曲阜师范大学 | Implementation of Asynchronous ALT-MAC Protocol with Low Delay and High Throughput |
CN112333740B (en) * | 2020-11-16 | 2022-10-14 | 北京融讯信通科技有限公司 | Sleeping Method of Centerless Asynchronous Ad Hoc Network Applicable to Broadcast |
CN112788132B (en) * | 2020-12-31 | 2022-08-23 | 广州技象科技有限公司 | Response grade-based transfer equipment data processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101282335A (en) * | 2008-05-20 | 2008-10-08 | 浙江大学宁波理工学院 | Method for snooping and sleeping low-load wireless sensor network MAC layer |
CN101557637A (en) * | 2009-05-20 | 2009-10-14 | 河南科技大学 | Method for realizing cross-layer wireless sensor network medium access control protocol |
CN102377801A (en) * | 2010-08-19 | 2012-03-14 | 中国科学院计算技术研究所 | Sensor network for environmental monitoring and data transmission method |
US8588119B2 (en) * | 2010-01-21 | 2013-11-19 | Robert Bosch Gmbh | Asynchronous low-power multi-channel media access control |
-
2014
- 2014-08-30 CN CN201410438896.1A patent/CN104202803B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101282335A (en) * | 2008-05-20 | 2008-10-08 | 浙江大学宁波理工学院 | Method for snooping and sleeping low-load wireless sensor network MAC layer |
CN101557637A (en) * | 2009-05-20 | 2009-10-14 | 河南科技大学 | Method for realizing cross-layer wireless sensor network medium access control protocol |
US8588119B2 (en) * | 2010-01-21 | 2013-11-19 | Robert Bosch Gmbh | Asynchronous low-power multi-channel media access control |
CN102377801A (en) * | 2010-08-19 | 2012-03-14 | 中国科学院计算技术研究所 | Sensor network for environmental monitoring and data transmission method |
Non-Patent Citations (1)
Title |
---|
《传感器网络中数据驱动MAC协议的研究》;王志刚;《中国优秀硕士学位论文全文数据库 信息科技辑》;20131215;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN104202803A (en) | 2014-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104202803B (en) | An energy-saving MAC protocol communication method based on wireless sensor network | |
CN102651898B (en) | Delay-constrained and energy-efficient online routing in asynchronous sensor networks | |
CN103906207B (en) | Wireless sensor network data transmission method based on self adaptation awakening technology on demand | |
US9980219B2 (en) | Power efficient PS-Poll | |
JP2004336779A (en) | Adaptive sleeping and wake-up protocol for high energy efficiency adhoc network | |
JP2007096898A (en) | Radio communication apparatus and radio communication method | |
US20140105063A1 (en) | Duty cycle control method and apparatus to mitigate latency for duty cycle-based wireless low-power mac | |
CN103929284B (en) | High-reliability transmission method for wireless sensor network | |
CN1894978A (en) | Wireless network with improved sharing of high power consumption tasks | |
CN102740363A (en) | Method for acquiring data of wireless sensor network | |
Sadiq et al. | An energy-efficient cross-layer approach for cloud wireless green communications | |
CN102958109B (en) | A kind of node energy adaptive management strategy of wireless sensor network | |
Liang et al. | SW-MAC: A low-latency MAC protocol with adaptive sleeping for wireless sensor networks | |
Touati et al. | Named Data Networking‐based communication model for Internet of Things using energy aware forwarding strategy and smart sleep mode | |
Lee et al. | MAC sleep mode control considering downlink traffic pattern and mobility | |
CN102984780A (en) | Wireless sensor network data transmission method | |
CN102638901A (en) | Wireless sensor network self-adapting MAC (medium access control) protocol suitable for industry monitoring | |
Barbieri et al. | WSN17-2: Proposal of an adaptive MAC protocol for efficient IEEE 802.15. 4 low power communications | |
KR101135517B1 (en) | Method for increasing energy efficiency in wireless sensor network | |
Wang et al. | The PSL MAC Protocol for Accumulated Data Processing in the Energy‐Harvesting Wireless Sensor Network | |
KR20120006791A (en) | How to reduce transmission delay in wireless sensor network | |
CN102546750B (en) | A kind of MAC protocol for wireless sensor networks method | |
Wang et al. | p-manet: Efficient power saving protocol for multi-hop mobile ad hoc networks | |
JP4161988B2 (en) | Method and station for optimizing the energy consumption of a station in a network | |
Hu et al. | RP-MAC: A passive MAC protocol with frame reordering for wireless sensor networks |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170524 Termination date: 20190830 |
|
CF01 | Termination of patent right due to non-payment of annual fee |