Nothing Special   »   [go: up one dir, main page]

CN101557606B - Media access control (MAC) method applicable to wireless sensor network - Google Patents

Media access control (MAC) method applicable to wireless sensor network Download PDF

Info

Publication number
CN101557606B
CN101557606B CN2009100279945A CN200910027994A CN101557606B CN 101557606 B CN101557606 B CN 101557606B CN 2009100279945 A CN2009100279945 A CN 2009100279945A CN 200910027994 A CN200910027994 A CN 200910027994A CN 101557606 B CN101557606 B CN 101557606B
Authority
CN
China
Prior art keywords
data
node
packet
packets
current
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.)
Active
Application number
CN2009100279945A
Other languages
Chinese (zh)
Other versions
CN101557606A (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.)
Jiangsu Jinyue Holding Group Co ltd
Original Assignee
Southeast University
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 Southeast University filed Critical Southeast University
Priority to CN2009100279945A priority Critical patent/CN101557606B/en
Publication of CN101557606A publication Critical patent/CN101557606A/en
Application granted granted Critical
Publication of CN101557606B publication Critical patent/CN101557606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • Y02B60/50

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

用于无线传感器网络的媒体访问控制方法根据无线传感器网络具体应用中节点的数据流量随时间变化的特点调节发送过程。通过测量数据包到达的间隔估算当前数据流量强度并采用滤波器减小测量过程中的干扰。并通过检测节点当前的数据包队列长度进行自适应控制,当数据包队列长度大于1时候,采用突发传输方式将队列中的数据包成批发送以减小延迟和能耗。否则根据当前测量的数据流量进行判断,如果当前数据流量值小于给定的阈值则启用低流量自适应机制,节点能够通过局部的控制包交换移除不必要的唤醒周期。该方法不需要在线调节协议的周期和占空比,避免了节点之间的同步困难问题,并有效解决了目前无线传感器网络中同步和数据流量自适应的难点问题。

Figure 200910027994

The media access control method for wireless sensor networks adjusts the sending process according to the characteristics of the data flow of the nodes in the specific application of the wireless sensor network that changes with time. Estimate the current data traffic intensity by measuring the interval between data packets arrival and use filters to reduce the interference in the measurement process. And by detecting the current data packet queue length of the node, adaptive control is performed. When the data packet queue length is greater than 1, the data packets in the queue are sent in batches in a burst transmission mode to reduce delay and energy consumption. Otherwise, judge according to the current measured data flow. If the current data flow value is less than a given threshold, the low-flow adaptive mechanism is enabled, and the node can remove unnecessary wake-up cycles through local control packet exchange. This method does not need to adjust the period and duty cycle of the protocol online, avoids the difficult problem of synchronization between nodes, and effectively solves the difficult problem of synchronization and data flow self-adaptation in the current wireless sensor network.

Figure 200910027994

Description

用于无线传感器网络的媒体访问控制方法 Media Access Control Method for Wireless Sensor Networks

技术领域technical field

本发明涉及无线网络领域,特别涉及无线传感器网络协议设计领域,具体给出用于无线传感器网络的流量自适应的媒体访问控制方法。The invention relates to the field of wireless networks, in particular to the field of wireless sensor network protocol design, and specifically provides a flow adaptive media access control method for wireless sensor networks.

背景技术Background technique

在无线传感器网络中,节点一般采用电池供电且其容量较小,节点分布在实际的应用环境后电池难以更换或者更换成本很高,所以能量效率是无线传感器网络协议设计考虑的重点。在许多应用领域如火灾检测等,节点需要将采集到的数据及时发送给sink节点并采取必要的措施以减小损失,这对协议设计的延迟时间要求很高。In wireless sensor networks, the nodes are generally powered by batteries and their capacity is small. After the nodes are distributed in the actual application environment, the batteries are difficult or costly to replace. Therefore, energy efficiency is the focus of wireless sensor network protocol design considerations. In many application fields such as fire detection, nodes need to send the collected data to the sink node in time and take necessary measures to reduce losses, which requires a high delay time for protocol design.

目前在无线传感器网络MAC协议的设计中,节点一般采用周期性的侦听和睡眠调度以降低能耗,最有代表性的是叶伟提出的S-MAC协议,它最早由参考文献“An Energy-Efficient MAC Protocol for Wireless Sensor Networks”(W.Ye,J.Heidemann,and D.Estrin,IEEE INFOCOM,June 2002)提出。S-MAC协议按照周期性方式运行,协议的一个周期分为侦听期和睡眠期两个部分,其中的侦听期又分为同步阶段和数据阶段,侦听时间和整个周期长度的比率为占空比,协议运行过程中周期长度和占空比均固定。节点在侦听期间唤醒进行数据通信,在睡眠期间进入睡眠状态以降低功耗。为保证节点之间正确通信,协议设计采用定期同步的机制,通过周期性接收和转发同步包使得节点之间形成一致的侦听睡眠调度,从而保证节点之间能够进行正确通信。At present, in the design of wireless sensor network MAC protocol, nodes generally adopt periodic listening and sleep scheduling to reduce energy consumption. The most representative one is the S-MAC protocol proposed by Ye Wei, which was first introduced by the reference "An Energy- Efficient MAC Protocol for Wireless Sensor Networks” (W. Ye, J. Heidemann, and D. Estrin, IEEE INFOCOM, June 2002). The S-MAC protocol operates in a periodic manner. A cycle of the protocol is divided into two parts: the listening period and the sleep period. The listening period is further divided into a synchronization phase and a data phase. The ratio of the listening time to the length of the entire cycle is Duty cycle, the period length and duty cycle are fixed during the operation of the protocol. Nodes wake up for data communication during listening and go to sleep during sleep to reduce power consumption. In order to ensure correct communication between nodes, the protocol design adopts a regular synchronization mechanism. By periodically receiving and forwarding synchronization packets, a consistent listening sleep schedule is formed between nodes, thereby ensuring correct communication between nodes.

但是在实际的无线传感器网络应用中,上述传统MAC协议的性能受到很大限制,其原因为:①实际无线传感器网络节点的数据流量经常变换,而且很多情况下是无规律或者规律不可循。采用固定周期和占空比的方法,当数据流量大的时候,容易引起缓冲区溢出丢包,而数据流量小的时候,不必要的唤醒过程耗费能量,从而使得协议性能低下。②在传感器网络节点之间维持同步是一个复杂过程,因为传感器节点需要侦听一段时间,接收到同步包后设置自己的调度,然后转发同步包,最终使全网形成一致的调度,这是一个耗费时间耗费能量的过程。However, in practical wireless sensor network applications, the performance of the above-mentioned traditional MAC protocol is greatly limited. The reasons are as follows: ① The data traffic of actual wireless sensor network nodes changes frequently, and in many cases is irregular or irregular. Using the method of fixed period and duty cycle, when the data flow is large, it is easy to cause buffer overflow and packet loss, and when the data flow is small, the unnecessary wake-up process consumes energy, which makes the protocol performance low. ②Maintaining synchronization between sensor network nodes is a complex process, because sensor nodes need to listen for a period of time, set their own schedule after receiving the synchronization packet, and then forward the synchronization packet, and finally make the entire network form a consistent schedule, which is a A process that consumes time and energy.

发明内容Contents of the invention

技术问题:本发明为解决上述现有技术中存在的问题,提出用于无线传感器网络的媒体访问控制方法,该方法使得节点能够很好提升协议在可变数据流量条件下的性能,并且不需要在线调节周期和占空比从而避免同步困难问题。Technical problem: In order to solve the problems in the above-mentioned prior art, the present invention proposes a media access control method for wireless sensor networks, which enables nodes to improve the performance of the protocol under variable data flow conditions, and does not require Period and duty cycle are adjusted online to avoid synchronization difficulties.

技术方案:本发明的用于无线传感器网络的媒体访问控制方法,用于解决节点数据流量变化环境下协议性能低下问题。节点通过测量当前的数据流量和数据包缓冲区队列长度进行自适应调节,当数据流量比较大的时候采用高流量自适应机制,当数据流量比较小的时候采用低流量自适应机制,从而有效提高协议在流量变化条件下的能耗,延迟等方面的性能。数据流量测量的具体方法为:节点连续记录数据包到达的时间,将连续到达的两个数据包间隔的倒数作为当前测量得到的数据流量,则测量的数据流量可表示为:lk+1=1/(tk+1-tk),其中tk,tk+1分别表示前一个数据包收到的时刻和当前数据包收到的时刻,测量结果通过低通滤波器消除测量干扰。Technical solution: The media access control method for wireless sensor networks of the present invention is used to solve the problem of low protocol performance in the environment of node data flow changes. The node performs self-adaptive adjustment by measuring the current data flow and the length of the packet buffer queue. When the data flow is relatively large, the high-flow adaptive mechanism is adopted, and when the data flow is relatively small, the low-flow adaptive mechanism is adopted, thereby effectively improving The performance of the protocol in terms of energy consumption, latency, etc. under traffic changing conditions. The specific method of data flow measurement is: the node continuously records the arrival time of data packets, and takes the reciprocal of the interval between two continuously arriving data packets as the current measured data flow, then the measured data flow can be expressed as: l k+1 = 1/(t k+1 -t k ), where t k and t k+1 respectively indicate the time when the previous data packet is received and the time when the current data packet is received, and the measurement results are eliminated by a low-pass filter.

节点通过检测当前数据缓冲区队列长度Ncur进行自适应调节,当Ncur>1时,启用高流量自适应机制,当Ncur≤1并且当前测量得到的数据流量Lk<β时启用低流量自适应机制,否则采用传统MAC协议中每次发送一个数据包的方式进行通信。其中的β为预先设定的阈值。The node performs adaptive adjustment by detecting the current data buffer queue length N cur . When N cur > 1, the high flow adaptive mechanism is enabled. When N cur ≤ 1 and the current measured data flow L k <β, the low flow is enabled Self-adaptive mechanism, otherwise the communication is carried out by sending a data packet at a time in the traditional MAC protocol. Among them, β is a preset threshold.

本发明的无线传感器网络中流量自适应的媒体访问控制方法,其高流量自适应机制采用突发模式发送数据包,节点首先确定本次突发传输的数据包数目Nbst,方法为:预先设定最大允许的突发传输时间Tmax并以此计算突发传输最大允许发送的包数目Mmax,节点在发送数据前首先检测当前数据缓冲区队列长度Ncur,如果Ncur≥Nmax,则Nbst=Nmax,否则如果Ncur<Nmax,则Nbst=Ncur。然后在数据期间采用载波侦听方式发送请求发送包-RTS包进行信道预约,一旦预约成功则通过RTS/CTS/DATA1/DATA2/.../DATANbst/ACK的突发模式一次发送多个数据包,即发送节点首先发送RTS包给接收节点,当收到接收节点回复的允许发送包-CTS后,发送节点连续发送Nbst个数据包-DATA给接收节点,最后收到接收节点回复的确认包-ACK后完成本次传输。In the flow adaptive media access control method in the wireless sensor network of the present invention, the high flow adaptive mechanism uses a burst mode to send data packets, and the node first determines the number N bst of data packets for this burst transmission, and the method is: preset Determine the maximum allowable burst transmission time T max and calculate the maximum number of packets M max allowed for burst transmission. Before sending data, the node first detects the current data buffer queue length N cur . If N cur ≥ N max , then N bst =N max , otherwise if N cur <N max , then N bst =N cur . Then during the data period, the carrier sense method is used to send the request to send packet-RTS packet for channel reservation. Once the reservation is successful, multiple data are sent at a time through the burst mode of RTS/CTS/DATA1/DATA2/.../DATAN bst /ACK packet, that is, the sending node first sends an RTS packet to the receiving node, and after receiving the permission to send the packet-CTS from the receiving node, the sending node continuously sends N bst data packets-DATA to the receiving node, and finally receives the confirmation from the receiving node This transmission is completed after the packet-ACK.

如果突发传输的时间超过协议运行的周期长度则节点继续发送数据直到本次突发传输完成为止。突发传输系列中的每个控制包和数据包中都包含离本次发送完成所需要的时间。其他非目的节点侦听到这个突发包序列中的任何一个包,则更新其网络分配矢量NAV并进入睡眠以降低能耗。If the burst transmission time exceeds the cycle length of the protocol operation, the node will continue to send data until the burst transmission is completed. Each control packet and data packet in the burst transmission series contains the time required until the completion of this transmission. Other non-destination nodes detect any packet in this burst packet sequence, then update their network allocation vector NAV and go to sleep to reduce energy consumption.

本发明的无线传感器网络中流量自适应的媒体访问控制方法,其高流量自适应机制在误码信道条件下工作时,一旦检测到突发突发传输系列中有包由于信道误码而被破坏,则节点继续传输剩余的数据包直到本次突发数据传输完成为止。被破坏的数据包将在下次的突发传输系列中进行重传。如果当前节点存在两个或者两个以上的下一条邻居节点,则当前节点重新调度堆积在数据缓冲区中的数据包,将发送到同一目的地址的数据包调度成一个系列,使得在发送数据包的时候,每一个突发传输系列中只包含发送到同一目的地址的数据包。In the flow adaptive medium access control method in the wireless sensor network of the present invention, when its high flow adaptive mechanism works under the error channel condition, once a packet in the burst transmission series is detected to be destroyed due to channel error , the node continues to transmit the remaining data packets until the burst data transmission is completed. Corrupted packets will be retransmitted in the next burst series. If the current node has two or more next neighbor nodes, the current node reschedules the data packets accumulated in the data buffer, and schedules the data packets sent to the same destination address into a series, so that when sending data packets , each burst contains only data packets sent to the same destination address.

本发明的无线传感器网络中流量自适应的媒体访问控制方法,其低流量自适应策略为:发送节点通过检测当前待发送的数据包的相应域得到下一条目的节点的地址,然后构建一个邀请发送包(ITS)并在同步阶段采用载波侦听方式发送这个ITS包给目的节点,目的节点接收到ITS包后回复一个同意发送包(ATS)确认本次通信。发送节点和接收节点在数据期间采用数据包/确认包方式直接进行数据通信而不采用载波侦听,其他邻居节点接收到ITS或者ATS后更新NAV并进入睡眠以降低功耗。In the flow adaptive media access control method in the wireless sensor network of the present invention, the low flow adaptive strategy is as follows: the sending node obtains the address of the node of the next entry by detecting the corresponding field of the data packet currently to be sent, and then constructs an invitation to send Packet (ITS) and send this ITS packet to the destination node by means of carrier sense in the synchronization phase, the destination node will reply an agree to send packet (ATS) after receiving the ITS packet to confirm this communication. The sending node and the receiving node use the data packet/acknowledgment packet to communicate directly without carrier sense during the data period, and other neighbor nodes update NAV after receiving ITS or ATS and go to sleep to reduce power consumption.

当节点没有数据包需要发送并且没有收到ITS包则移除本周期内余下的侦听时间以降低功耗。同时设定一个阈值θ,当节点经历了θ个周期仍无数据或者控制包发送或者接收,则节点唤醒以侦听可能发送给自己的控制或数据包。如果接收节点在同步期检测到冲突发生则在DATA期间保持唤醒以侦听可能到达的报文,如果发送节点在同步期检测到冲突发生则在本周期的数据期间采用传统的载波侦听方式进行数据发送。避免由于节点睡眠导致传输错误。When the node has no data packets to send and no ITS packets are received, the remaining listening time in this period is removed to reduce power consumption. At the same time, a threshold θ is set. When the node has experienced θ cycles and still does not send or receive data or control packets, the node wakes up to listen for control or data packets that may be sent to itself. If the receiving node detects a collision during the synchronization period, it will keep awake during the DATA period to listen for possible arriving messages. If the sending node detects a collision during the synchronization period, it will use the traditional carrier sense method during the data period of this cycle. data sent. Avoid transmission errors due to node sleep.

有益效果:本发明的无线传感器网络中流量自适应的媒体访问控制方法,通过实时测量节点的数据流量和数据缓冲区队列长度,并基于测量值进行流量自适应调节。在数据流量比较大的时候能够很大程度上降低数据包发送的延迟时间和功耗,并能很好缓解缓冲区堆积和丢包问题。在数据流量比较小的时候通过移除不必要的侦听期降低节点的能耗,并且不会明显影响协议的延迟性能。此外并发明中的方法不需要调节协议的周期和占空比,使得方法实施比较简单并且不会导致同步困难问题。Beneficial effects: the flow adaptive medium access control method in the wireless sensor network of the present invention measures the data flow of nodes and the length of the data buffer queue in real time, and performs flow adaptive adjustment based on the measured value. When the data traffic is relatively large, it can greatly reduce the delay time and power consumption of data packet transmission, and can well alleviate the problems of buffer accumulation and packet loss. When the data traffic is relatively small, the energy consumption of nodes is reduced by removing unnecessary listening periods, and the delay performance of the protocol will not be significantly affected. In addition, the method in the invention does not need to adjust the period and duty cycle of the protocol, so that the method is relatively simple to implement and does not cause synchronization difficulties.

附图说明Description of drawings

图1为本发明的流量自适应的媒体访问控制方法总体示意图,FIG. 1 is an overall schematic diagram of a flow-adaptive media access control method according to the present invention,

图2为本发明中高流量自适应机制的突发传输操作示意图,Fig. 2 is a schematic diagram of the burst transmission operation of the medium and high flow adaptive mechanism of the present invention,

图3为本发明中低流量自适应机制的选择性唤醒操作示意图。FIG. 3 is a schematic diagram of the selective wake-up operation of the low traffic adaptive mechanism in the present invention.

具体实施方式Detailed ways

下面将结合附图和具体实施实例对本发明的技术方案进行进一步说明。The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and specific implementation examples.

本发明的无线传感器网络中流量自适应的媒体访问控制方法,其总体操作过程如图1所示,节点通过检测当前数据缓冲区队列长度Ncur进行自适应调节,当Ncur>1时,启用高流量自适应机制,当Ncur≤1并且当前测量得到的数据流量Lk<β时启用低流量自适应机制,否则采用传统MAC协议中每次发送一个数据包的方式进行通信。其中的β为预先设定的阈值,其值根据具体的网络状况确定。The flow adaptive media access control method in the wireless sensor network of the present invention, its overall operation process is shown in Figure 1, the node carries out self-adaptive adjustment by detecting the current data buffer queue length N cur , when N cur > 1, enable High-flow adaptive mechanism, when N cur ≤ 1 and the current measured data flow L k <β, the low-flow adaptive mechanism is enabled; otherwise, the traditional MAC protocol sends a data packet at a time for communication. Among them, β is a preset threshold, and its value is determined according to specific network conditions.

数据流量测量的具体方法为:节点连续记录数据包到达的时间,将连续到达的两个数据包时间间隔的倒数作为当前测量得到的数据流量,则测量的数据流量可表示为:The specific method of data flow measurement is: the node continuously records the arrival time of data packets, and takes the reciprocal of the time interval between two consecutive arrival data packets as the current measured data flow, then the measured data flow can be expressed as:

lk+1=1/(tk+1-tk)                (1)l k+1 =1/(t k+1 -t k ) (1)

其中tk,tk+1分别表示前一个数据包收到的时刻和当前数据包收到的时刻,由于测量过程中存在随机干扰,故通过一个低通滤波器消除测量干扰,具体方法为:令Lk-1为经过滤波器消除干扰后的前一次数据流量值,Lcur为当前直接估计得到的数据流量值,则本次经过滤波器消除干扰后得到的数据流量值计算公式为:Among them, t k and t k+1 represent the time when the previous data packet is received and the time when the current data packet is received respectively. Since there is random interference in the measurement process, a low-pass filter is used to eliminate the measurement interference. The specific method is as follows: Let L k-1 be the previous data flow value after the filter eliminates interference, and L cur be the current directly estimated data flow value, then the calculation formula for the data flow value obtained after the filter eliminates interference this time is:

Lk=αLk-1+(1-α)Lcur                (2)L k =αL k-1 +(1-α)L cur (2)

本发明中的高流量自适应机制的突发传输方式如图2所示,如果一个节点希望发送数据包给他的下一跳目的节点,则首先在数据期间通过载波侦听方式发送RTS包,其中包含了本次突发传输的数据包数目Nbst、离本次突发传输结束的时间、以及下一条节点地址等信息。下一跳目的节点接收到这个RTS包后回复一个CTS包进行传输确认,其他的邻居节点如果侦听到RTS包或者CTS包,则更新自己的NAV并进入睡眠以降低功耗。此时发送节点连续发送Nbst个数据包给下一跳目的节点,下一跳目的节点在接收完数据包后回复一个ACK包进行确认。突发传输序列中的包间隔大小具体设定方法和802.11类似。如果突发参数的时间超过协议本身的周期长度,则传输过程会继续进行直到本次传输完成为止,并不会因为超过一个周期长度而中断。The burst transmission mode of the high flow adaptive mechanism among the present invention is as shown in Figure 2, if a node wishes to send data packet to its next hop destination node, then at first send RTS packet by carrier sense mode during the data period, It includes information such as the number N bst of data packets of this burst transmission, the time before the end of this burst transmission, and the address of the next node. After receiving the RTS packet, the next-hop destination node replies with a CTS packet for transmission confirmation. If other neighbor nodes hear the RTS packet or CTS packet, they update their NAV and go to sleep to reduce power consumption. At this time, the sending node continuously sends N bst data packets to the next-hop destination node, and the next-hop destination node replies an ACK packet for confirmation after receiving the data packets. The specific setting method of the packet interval size in the burst transmission sequence is similar to that of 802.11. If the time of the burst parameter exceeds the cycle length of the protocol itself, the transmission process will continue until the current transmission is completed, and will not be interrupted because of exceeding a cycle length.

其中的一次突发传输包含的数据包数目Nbst计算方法为:如果满足公平性条件下以及维持正确的同步时最大允许的时间分别为Tf和Ts,则最大允许的burst传输时间Tmax可表示为:The calculation method of the number N bst of data packets contained in a burst transmission is as follows: if the maximum allowable time is T f and T s respectively under the condition of fairness and maintaining correct synchronization, then the maximum allowable burst transmission time T max Can be expressed as:

Tamx=min(Tf,Ts)                    (3)T amx = min(T f , T s ) (3)

根据最大允许的突发传输时间和突发传输的特点,假设突发传输系统中数据包长度相同,则可通过下面公式计算得到burst传输最大允许发送的包数目Nmax According to the maximum allowable burst transmission time and the characteristics of burst transmission, assuming that the data packets in the burst transmission system have the same length, the maximum number of packets allowed to be sent in burst transmission can be calculated by the following formula N max

Nmax=[k×min(Tf,Ts)-LRTS-LCTS-LACK-        (4)N max =[k×min(T f , T s )-L RTS -L CTS -L ACK - (4)

3k×SIFS+k×PIFS]/(LDATA+k×PIFS)3k×SIFS+k×PIFS]/(L DATA +k×PIFS)

其中LRTS,LCTS,LDATA,LACK分别为RTS,CTS,DATA,ACK包的长度,而SIFS和PIFS分别为控制包间隔和数据包间隔,k为数据发送速度。节点在发送数据前首先检测当前数据缓冲区队列长度Ncur,如果Ncur>Nmax,则Nbst=Nmax,否则如果Ncur<Nmax,则Nbst=NcurAmong them, L RTS , L CTS , L DATA , and L ACK are the lengths of RTS, CTS, DATA, and ACK packets respectively, while SIFS and PIFS are the control packet interval and data packet interval respectively, and k is the data transmission speed. Before sending data, the node first checks the current data buffer queue length N cur , if N cur >N max , then N bst =N max , otherwise if N cur <N max , then N bst =N cur .

本发明的高流量自适应机制在误码信道条件下工作时,一旦检测到突发传输系列中有包由于信道误码而被破坏,则节点继续传输剩余的包直到本次突发数据传输完成为止。被破坏的数据包将在下次的突发传输系列中进行重传。如果当前节点存在两个或者两个以上的下一条邻居节点,则节点对当前数据缓冲区中的包进行重新排列,将发送到同一目的地址的数据包调度成一个系列,使得发送数据包的时候,在每一个突发数据包系统中只包含发送到同一目的地址的数据包。例如数据缓冲区中的包数目为7,假定数据包的序号分别为1、2、3、4、5、6、7,其中序号为1、4、5的数据包包含相同的目的地址,而序号为2、3、6、7的数据包包含另外一个相同的目的地址,则节点在突发传输前对数据缓冲区中的这些数据包进行重新排列,顺序为1、4、5、2、3、6、7。这些数据包将在两个burst传输中被发送出去,其中一个burst传输包含序号为1、4、5的数据包,另外一个burst传输包含序号为2、3、6、7的数据包。When the high-flow adaptive mechanism of the present invention works under the error channel condition, once it detects that a packet in the burst transmission series is destroyed due to channel error, the node continues to transmit the remaining packets until the burst data transmission is completed until. Corrupted packets will be retransmitted in the next burst series. If the current node has two or more next neighbor nodes, the node rearranges the packets in the current data buffer, and schedules the packets sent to the same destination address into a series, so that when sending packets , each burst data packet system contains only data packets sent to the same destination address. For example, the number of packets in the data buffer is 7, assuming that the serial numbers of the data packets are 1, 2, 3, 4, 5, 6, and 7 respectively, and the data packets with the serial numbers 1, 4, and 5 contain the same destination address, and The data packets with sequence numbers 2, 3, 6, and 7 contain another same destination address, then the node rearranges these data packets in the data buffer before the burst transmission, and the order is 1, 4, 5, 2, 3, 6, 7. These packets will be sent in two burst transmissions, one burst transmission containing packets with sequence numbers 1, 4, and 5, and the other burst transmission containing packets with sequence numbers 2, 3, 6, and 7.

本发明的无线传感器网络中流量自适应的媒体访问控制方法,其低流量自适应策略如图3所示,采用节点选择性唤醒的方式来降低功耗。图3中节点0需要发送一个数据包给它的下一跳节点3,则节点0首先在同步阶段发送一个ITS包给他的邻居节点3,节点3收到ITS包后检查包中的相关域确认自己是目的节点,则回复一个ATS包给节点0进行确认。由于节点1和节点2通过收到的ITS包确认自己不是本次通信的目的节点,则更新NAV并提早进入睡眠以降低功耗,其中NAV更新的长度为到离本次数据发送完为止的时间长度。在数据阶段的开始,节点0直接发送DATA包给节点3,然后节点3收到DATA包后回复ACK包进行确认,则节点0和节点3之间的传输成功完成,由于已经在同步阶段通过载波侦听进行信道预约,故数据通信过程中不采用载波侦听。由于节点1和节点2已经进入睡眠状态,这些邻居节点不会干扰节点0和节点3之间的通信。In the flow adaptive media access control method in the wireless sensor network of the present invention, its low flow adaptive strategy is shown in FIG. 3 , and the power consumption is reduced by adopting a node selective wake-up method. In Figure 3, node 0 needs to send a data packet to its next-hop node 3, then node 0 first sends an ITS packet to its neighbor node 3 in the synchronization phase, and node 3 checks the relevant fields in the packet after receiving the ITS packet Confirm that it is the destination node, then reply an ATS packet to node 0 for confirmation. Since node 1 and node 2 confirm that they are not the destination node of this communication through the received ITS packet, they update NAV and go to sleep early to reduce power consumption, where the length of NAV update is the time until the end of this data transmission length. At the beginning of the data phase, node 0 directly sends a DATA packet to node 3, and then node 3 replies with an ACK packet for confirmation after receiving the DATA packet, then the transmission between node 0 and node 3 is successfully completed, because Listening performs channel reservation, so carrier sensing is not used in the data communication process. Since nodes 1 and 2 have gone to sleep, these neighbor nodes will not interfere with the communication between nodes 0 and 3.

当节点没有数据包需要发送并且没有收到ITS包则移除本周期内余下的侦听时间以降低功耗。同时设定一个阈值θ,当节点经历了θ个周期仍无数据或者控制包发送或者接收,则节点唤醒以侦听可能发送给自己的控制或数据包。由于节点在同步节点发送ITS包进行传输请求,而节点周期性的同步包也在同步阶段发送,则在发送节点和接收节点都有可能发生同步包和同步包、ITS和ITS,以及同步包和ITS之间的冲突。如果接收节点在同步期检测到冲突发生,则在DATA期间保持唤醒以侦听可能到达的报文,从而避免由于节点睡眠导致传输错误和降低延迟。对于发送节点而言,如果检测到冲突则采用常规的通信运行方式,即节点在数据期间采用RTS/CTS/DATA/ACK方式进行通信,其中的发送节点通过载波侦听方式发送RTS包。When the node has no data packets to send and no ITS packets are received, the remaining listening time in this period is removed to reduce power consumption. At the same time, a threshold θ is set. When the node has experienced θ cycles and still does not send or receive data or control packets, the node wakes up to listen for control or data packets that may be sent to itself. Since a node sends an ITS packet for a transmission request at a synchronization node, and the periodic synchronization packet of a node is also sent during the synchronization phase, synchronization packets and synchronization packets, ITS and ITS, and synchronization packets and synchronization packets may occur at both the sending node and the receiving node. Conflict between ITS. If the receiving node detects a collision during the synchronization period, it will keep awake during the DATA period to listen for possible arriving messages, thereby avoiding transmission errors and reducing delays caused by node sleep. For the sending node, if a conflict is detected, the normal communication operation mode is adopted, that is, the node communicates in the RTS/CTS/DATA/ACK mode during the data period, and the sending node sends the RTS packet through the carrier sense mode.

Claims (5)

1.一种用于无线传感器网络的媒体访问控制方法,其特征在于通过实时测量节点当前的数据流量和数据缓冲区队列长度进行流量自适应调节,当节点缓冲区队列长度大于1时启用高流量自适应机制,当数据缓冲区队列长度小于等于1且当前数据流量小于预先设定的阈值时启用低流量自适应策略,否则采用传统MAC协议中每次发送一个数据包的方式进行通信。1. A media access control method for wireless sensor networks, characterized in that the current data flow and data buffer queue length of the real-time measurement node carry out flow adaptive regulation, and when the node buffer queue length is greater than 1, high flow rate is enabled Adaptive mechanism, when the data buffer queue length is less than or equal to 1 and the current data flow is less than the preset threshold, the low-flow adaptive strategy is enabled, otherwise, the communication is carried out by sending a data packet at a time in the traditional MAC protocol. 2.根据权利要求1所述的用于无线传感器网络的媒体访问控制方法,其特征在于所述的测量节点当前的数据流量方法为:节点连续记录数据包到达的时间,将连续两个数据包间隔时间的倒数作为当前测量得到的数据流量,其计算方法表示为数据流量lk+1=1/(tk+1-tk),其中tk,tk+1分别表示前一个数据包收到的时刻和当前数据包收到的时刻,测量结果通过低通滤波器消除测量干扰。2. The medium access control method for wireless sensor network according to claim 1, characterized in that the current data flow method of the measuring node is: the node continuously records the arrival time of data packets, and two consecutive data packets The reciprocal of the interval time is used as the current measured data flow, and its calculation method is expressed as data flow l k+1 =1/(t k+1 -t k ), where t k and t k+1 respectively represent the previous data packet The time when the data packet is received and the time when the current data packet is received, the measurement result is eliminated by a low-pass filter to measure interference. 3.根据权利要求1所述的用于无线传感器网络的媒体访问控制方法,其特征在于所述的高流量自适应机制为:3. the media access control method for wireless sensor network according to claim 1, is characterized in that described high flow adaptive mechanism is: ①首先确定当前突发传输中所包含的数据包个数Nbst,则节点通过RTS/CTS/DATA1/DATA2/.../DATANbst/ACK的方式一次预约发送多个数据包,每个控制包和数据包中都包含离本次发送完成所需要的时间;其他非目的节点侦听到这个突发包序列中的任何一个包,则更新其网络分配矢量-NAV并进入睡眠以降低功耗;① First determine the number N bst of data packets contained in the current burst transmission, then the node reserves to send multiple data packets at a time through RTS/CTS/DATA1/DATA2/.../DATAN bst /ACK, each control Both the packet and the data packet contain the time required for the completion of this sending; other non-destination nodes detect any packet in this burst packet sequence, update their network allocation vector-NAV and go to sleep to reduce power consumption ; ②节点在误码信道条件下工作时,一旦节点检测到突发传输系列中有数据包由于信道误码而被破坏,则继续传输剩余的数据包直到本次突发数据传输完成为止,被破坏的数据包将在下次的突发传输中进行重传;② When the node is working under the error channel condition, once the node detects that a data packet in the burst transmission series is destroyed due to a channel error, it will continue to transmit the remaining data packets until the burst data transmission is completed and is destroyed. The data packets will be retransmitted in the next burst transmission; ③如果当前节点存在两个或者两个以上的下一跳邻居节点,则当前节点重新调度堆积在数据缓冲区中的数据包,将发送到同一目的地址的数据包调度成一个系列,使得在发送数据包的时候,每一个突发传输系列中只包含发送到同一目的地址的数据包。③If the current node has two or more next-hop neighbor nodes, the current node reschedules the data packets accumulated in the data buffer, and schedules the data packets sent to the same destination address into a series, so that When sending data packets, each burst transfer series contains only data packets sent to the same destination address. 4.根据权利要求3所述的用于无线传感器网络的媒体访问控制方法,其特征在于确定当前突发传输中所包含的数据包个数Nbst的方法为:预先设定最大允许的突发传输时间Tmax并以此计算每次突发传输最大允许发送的包数目Nmax,节点在发送数据前首先检测当前数据缓冲区队列长度Ncur,如果Ncur>Nmax,则Nbst=Nmax,否则如果Ncur<Nmax,则Nbst=Ncur4. The medium access control method for wireless sensor network according to claim 3, characterized in that the method for determining the number of data packets N bst contained in the current burst transmission is: presetting the maximum allowable burst The transmission time T max is used to calculate the maximum number of packets N max allowed to be sent for each burst transmission. The node first detects the current data buffer queue length N cur before sending data. If N cur > N max , then N bst = N max , otherwise if N cur <N max , then N bst =N cur . 5.根据权利1要求所述的用于无线传感器网络的媒体访问控制方法,其特征在于所述的低流量自适应策略为:5. The medium access control method for wireless sensor networks according to claim 1, characterized in that the low traffic adaptive strategy is: ①发送节点通过检测当前待发送的数据包的相应域得到下一跳目的节点的地址,然后构建一个邀请发送包-ITS并在同步阶段通过载波侦听方式发送ITS包给下一跳目的节点,目的节点接收到ITS包后回复一个同意发送包-ATS确认本次通信过程,发送方和接收方在数据期间采用数据包/确认包方式进行数据通信,其他非目的节点接收到ITS或者ATS后更新网络分配矢量并进入睡眠以降低功耗;①The sending node obtains the address of the next-hop destination node by detecting the corresponding field of the current data packet to be sent, and then constructs an invitation to send packet-ITS and sends the ITS packet to the next-hop destination node through carrier sense in the synchronization phase, After receiving the ITS packet, the destination node replies with an agree-to-send packet-ATS confirms the communication process, the sender and the receiver use data packets/confirmation packets for data communication during the data period, and other non-destination nodes update after receiving ITS or ATS The network allocates vectors and goes to sleep to reduce power consumption; ②当节点没有数据包需要发送并且没有收到ITS包则移除本周期内余下的侦听时间以降低功耗;同时设定一个阈值θ,当节点经历了θ个周期仍无包发送或者接收,则节点唤醒以侦听可能发送给自己的包;② When the node has no data packets to send and no ITS packets are received, remove the remaining listening time in this period to reduce power consumption; at the same time set a threshold θ, when the node has experienced θ cycles and still has no packets to send or receive , the node wakes up to listen for packets that may be sent to itself; ③如果接收节点在同步期检测到冲突发生则在数据期间保持唤醒状态以侦听可能到达的报文,如果发送节点在同步期检测到冲突发生则在本周期的数据期间采用传统的载波侦听方式进行数据通信,避免由于节点睡眠导致传输错误。③ If the receiving node detects a collision during the synchronization period, it will remain awake during the data period to listen for possible arriving messages. If the sending node detects a collision during the synchronization period, it will use traditional carrier sense during the data period of this cycle Data communication is carried out in a way to avoid transmission errors caused by node sleep.
CN2009100279945A 2009-05-15 2009-05-15 Media access control (MAC) method applicable to wireless sensor network Active CN101557606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100279945A CN101557606B (en) 2009-05-15 2009-05-15 Media access control (MAC) method applicable to wireless sensor network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100279945A CN101557606B (en) 2009-05-15 2009-05-15 Media access control (MAC) method applicable to wireless sensor network

Publications (2)

Publication Number Publication Date
CN101557606A CN101557606A (en) 2009-10-14
CN101557606B true CN101557606B (en) 2011-04-20

Family

ID=41175495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100279945A Active CN101557606B (en) 2009-05-15 2009-05-15 Media access control (MAC) method applicable to wireless sensor network

Country Status (1)

Country Link
CN (1) CN101557606B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815323B (en) * 2010-02-04 2012-08-22 东南大学 Self-adaptive communication method in wireless sensor network cluster
CN101883385B (en) * 2010-04-12 2013-03-06 北京航空航天大学 Actively predicted reliable data transmission method in wireless sensor network
CN102075412B (en) * 2010-10-22 2013-06-19 北京神州绿盟信息安全科技股份有限公司 Network data transmission rate control equipment and method
WO2012091567A1 (en) 2010-12-30 2012-07-05 Nederlandse Organisatie Voor Toegepast-Natuurwetenschappelijk Onderzoek Tno A system, a processing unit, a method and a computer program product for monitoring sensors
US8923270B2 (en) * 2011-10-04 2014-12-30 The Chinese University Of Hong Kong Method for link buffer size and queue length estimation for bandwidth-varying mobile data networks
CN102413553B (en) * 2011-12-06 2014-06-18 广州市弘宇科技有限公司 Low power consumption method of wireless sensor network and wireless sensor node
CN102612160B (en) * 2012-04-18 2014-09-10 东南大学 Transmission method adaptive to burst traffic load in wireless sensor network
CN102647805B (en) * 2012-05-10 2014-07-09 东南大学 Wireless sensor network transmission method based on medium access control (MAC) protocol
CN102685780B (en) * 2012-05-16 2015-02-04 姚国良 Wireless sensor network channel access and bulk data transmission method
CN103152751B (en) * 2013-02-07 2015-05-27 西安邮电大学 Energy-saving transmission adaptive LMS (Least-Mean Squares) distributed detection method for wireless sensor network
CN104703273B (en) * 2015-03-17 2016-01-20 中南大学 A kind of synchronous wireless sensor network MAC method of Quorum time slot self-adaptative adjustment
CN105472718B (en) * 2016-01-05 2019-05-17 南京邮电大学 Low-power consumption MAC layer communication means in wireless sensor network based on adaptive-flow
CN108255884A (en) * 2016-12-29 2018-07-06 大唐移动通信设备有限公司 A kind of data processing method and device of the log information of OMC
CN111212482B (en) * 2020-01-13 2022-05-24 普联技术有限公司 Wireless communication control method, device, equipment and computer readable storage medium
CN117407829B (en) * 2023-10-16 2024-04-19 创维互联(北京)新能源科技有限公司 Deep learning-based photovoltaic module health degree assessment method, system and equipment

Also Published As

Publication number Publication date
CN101557606A (en) 2009-10-14

Similar Documents

Publication Publication Date Title
CN101557606B (en) Media access control (MAC) method applicable to wireless sensor network
CN103906207B (en) Wireless sensor network data transmission method based on self adaptation awakening technology on demand
JP5175398B2 (en) Method for configuring the operation of a routing node of an asynchronous wireless communication network, network node implementing the method and communication network
CN101827378B (en) A Hybrid MAC Protocol Design Method for Wireless Sensor Networks
CN100547978C (en) A kind of energy-saving method of medium access control layer of wireless mesh network
CN101404602B (en) DCF protocol node self-adapting dormancy mechanism suitable for multi-hop ad hoc network
CN104812030B (en) Towards the blending agent access control method of chain type wireless sensor network
KR20150016458A (en) Method and apparatus for transmission scheduling in wireless sensor network
CN101232518A (en) A low-power media access control method for dynamic dormancy of nodes
CN101815323B (en) Self-adaptive communication method in wireless sensor network cluster
CN103313421A (en) Back off algorithm in medium access control protocol for multi-hop network and wireless sensor network
CN104853445B (en) A kind of MAC protocol for wireless sensor networks based on broadcast message
US20130329614A1 (en) System and method for intelligent power save notification
CN113453304B (en) Self-adaptive synchronous MAC protocol based on virtual clustering and path reservation
CN102843758B (en) Method for data energy conservation transmission between nodes in wireless sensor network
CN104735756B (en) A Method of Adaptively Adjusting Duty Cycle Based on Energy Residual in Sensor Networks
Kim et al. Performance evaluation of synchronous and asynchronous MAC protocols for wireless sensor networks
CN105007586A (en) Two-factor based self-adaptive contention window adjusting method for SMAC protocol of wireless sensor network
CN102638901A (en) Wireless sensor network self-adapting MAC (medium access control) protocol suitable for industry monitoring
Miller et al. Improving power save protocols using carrier sensing for dynamic advertisement windows
CN106332251B (en) Data transmission method of wireless sensor network
CN102546750B (en) A kind of MAC protocol for wireless sensor networks method
CN105939537B (en) Wireless sensor node module, system and method for reducing data transmission delay
Liu et al. An adaptive energy-efficient and low-latency MAC protocol for wireless sensor networks
Kim et al. On-demand synchronous X-MAC protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: NANTONG CHAOLI ROLLING MACHINE PRODUCING CO., LTD.

Free format text: FORMER OWNER: SOWTHEAST UNIV.

Effective date: 20140813

Owner name: SOWTHEAST UNIV.

Effective date: 20140813

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 211109 NANJING, JIANGSU PROVINCE TO: 226631 NANTONG, JIANGSU PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20140813

Address after: Li Bao Zhen Haian County Industrial Park 226631 Jiangsu city of Nantong Province

Patentee after: Nantong Chaoli Rolling Machine Producing Co.,Ltd.

Patentee after: SOUTHEAST University

Address before: 211109 No. 2, Southeast University Road, Jiangning Development Zone, Nanjing, Jiangsu

Patentee before: Southeast University

TR01 Transfer of patent right

Effective date of registration: 20201224

Address after: 224600 Xiangshui Economic Development Zone, Yancheng City, Jiangsu Province

Patentee after: Xiangshui Jinyue Construction Development Co.,Ltd.

Address before: 226631 Libao Town Industrial Park, Haian County, Nantong City, Jiangsu Province

Patentee before: Nantong Chaoli Rolling Machine Producing Co.,Ltd.

Patentee before: SOUTHEAST University

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 224600 Xiangshui Economic Development Zone, Yancheng City, Jiangsu Province

Patentee after: Jiangsu Jinyue Holding Group Co.,Ltd.

Address before: 224600 Xiangshui Economic Development Zone, Yancheng City, Jiangsu Province

Patentee before: Xiangshui Jinyue Construction Development Co.,Ltd.

CP01 Change in the name or title of a patent holder