WO2015184854A1 - Method for implementing mac layer access, and sensor node - Google Patents

Method for implementing mac layer access, and sensor node Download PDF

Info

Publication number
WO2015184854A1
WO2015184854A1 PCT/CN2015/072592 CN2015072592W WO2015184854A1 WO 2015184854 A1 WO2015184854 A1 WO 2015184854A1 CN 2015072592 W CN2015072592 W CN 2015072592W WO 2015184854 A1 WO2015184854 A1 WO 2015184854A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
backoff counter
sensor node
channel
backoff
Prior art date
Application number
PCT/CN2015/072592
Other languages
French (fr)
Chinese (zh)
Inventor
袁斌
郭阳
刘静
李明
王新兵
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015184854A1 publication Critical patent/WO2015184854A1/en

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the present invention relates to a wireless body area network technology, and more particularly to a method and a sensor node for implementing media access control (MAC) layer access.
  • MAC media access control
  • the wireless body area network usually consists of a variety of medical sensor nodes (Nodes) and a central node (Hub) distributed throughout the body and in the body. It is a short-distance low-range monitoring for body surface or in vivo biological signs information and some wireless applications. Power consumption wireless communication network.
  • the composition of a typical wireless body area network is shown in Figure 1.
  • the wireless body area network mainly has the following three characteristics: First, the communication distance between nodes is short (near the body surface), and the network topology is mostly a star topology; second, the sensor for medical applications is usually wearable or needs to be implanted in the body.
  • the CSMA/CA specified in IEEE 802.15.6 although different competition window values (CW) are used for different user priority services, the backoff rule is still the same as the original CSMA/CA. This means that when the number of nodes increases, the probability of collision when transmitting data packets will be greatly increased, in order to ensure reliable and efficient transmission of physiological information collected by each sensor node as much as possible, and prolong the lifetime of the wireless body area network, The low-power, low-latency MAC layer access method needs to be applied.
  • the sensor node when transmitting a data packet, the sensor node first selects a corresponding contention window CW according to the user priority of the corresponding data packet, and then randomly selects a number from [1, CW] as the value of the backoff counter. Perform a backoff count.
  • the sensor node listens to the channel: if the channel state is idle, the backoff counter is decremented by one; if the channel state is busy, the value of the backoff counter is locked until the channel state is idle again, the backoff counter The value of the value continues to be decremented by 1 from the value that was just locked. Until the value of the backoff counter is decremented to zero, the sensor node begins to send packets.
  • the sensor node determines an initial value of the backoff counter based on the number of data packets buffered in the current data queue
  • the determining the initial value of the backoff counter includes:
  • the number of L now, the current data packet buffer queue is greater than or equal to the threshold value CW max, the value of the contention window CW value of said threshold value CW max.
  • the processing module is configured to: start the backoff counter, and during the backoff counting process, listen to the channel and update the value of the backoff counter according to the channel condition until the value of the backoff counter is 0, and send the data packet.
  • the contention window value CW takes the threshold CW max .
  • the data packet in the data queue is sent; wherein the number of transmitted data packets is randomly selected from [1, L now ].
  • the technical solution provided by the embodiment of the present invention makes the sensor node better in the shared channel. According to different data traffic in each node queue, the number of packets is dynamically adjusted, and the number of packets sent by the data packet is adjusted in real time, so that sensor nodes with more data packets can access the channel in time, and the time slot resources are utilized efficiently. The waste of unnecessary control overhead is avoided, thereby improving the throughput of the entire network and reducing the transmission delay.
  • the backoff duration used by the backoff process is related to the queue length, and the time that the sensor node occupies the channel is also related to the queue length. This makes the data transmission collision probability between the sensor node and the central node smaller, the delay is lower, and the interaction power consumption is lower. Communication is more efficient and at the same time more convenient to implement in real systems.
  • FIG. 2 is a flowchart of a method for implementing MAC layer access according to an embodiment of the present invention
  • the MAC layer access method should minimize the collision and retransmission caused by multiple sensor nodes transmitting packets in the shared channel, thereby improving the throughput of the entire network. At the same time reduce energy consumption to extend network survival time.
  • the MAC layer protocol should not be designed to be too complicated, otherwise it will be difficult to implement in practical applications.
  • FIG. 2 is a flowchart of a method for implementing MAC layer access according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
  • Step 200 The sensor node determines an initial value of the backoff counter based on the number of cached packets in the current data queue.
  • This step includes: randomly selecting a value from the contention window [1, CW] as the initial value of the backoff counter before the sensor node sends the packet.
  • the contention window value CW in the embodiment of the present invention is not a fixed value, but is determined by the formula (1) based on the current queue length of the sensor node:
  • the threshold CW max the threshold CW max , which ensures the fairness between the nodes.
  • the determined backoff counter is started and the backoff count is started.
  • the sensor node starts to listen to the channel: if the channel is idle, the backoff counter is decremented by one; if the channel is busy, then the value of the backoff counter is locked until Listening to the channel idle again, and continuing to count down by 1 from the value that the backoff counter is locked;
  • the sensor node Until the backoff counter value is reduced to 0, the sensor node starts to send the data packet in the data queue. At this time, the number of data packets sent by the sensor node is randomly selected from [1, L now ].
  • the selected integer is greater than a preset threshold
  • the number of currently transmitted data packets is set to the threshold, so that the sensor nodes with more data packets only have Larger ones may send more packets, not necessarily, so this is also a manifestation of fairness. At the same time, this is also very beneficial for efficient use of time slot resources, avoiding unnecessary control overhead.
  • the technical solution provided by the embodiment of the invention enables the sensor node to dynamically adjust the number of packets sent according to different data traffic in each node queue in the shared channel, so that the sensor nodes with more data packets can be connected in time. Incoming channels, thereby increasing overall network throughput and reducing transmission delay. Moreover, the time that the sensor node occupies the channel is also related to the queue length. This makes the data transmission collision probability between the sensor node and the central node smaller, the delay is lower, and the interaction power consumption is lower. Communication is more efficient and at the same time more convenient to implement in real systems.
  • FIG. 3 is a schematic structural diagram of a sensor node according to an embodiment of the present invention. As shown in FIG. 3, at least a preprocessing module and a processing module are included, where
  • the pre-processing module is configured to determine an initial value of the backoff counter based on the number of cached packets in the current data queue;
  • the processing module is configured to start the backoff counter.
  • the sensor node listens to the channel and updates the value of the backoff counter according to the channel condition until the value of the backoff counter is 0, and the sensing node sends the data packet.
  • the number of data packets sent by the sensor node is randomly selected from [1, L now ].
  • a value is randomly selected from the contention window [1, CW] as the initial value of the backoff counter; wherein the contention window value CW is a preset threshold CW max and the number of cached packets in the current data queue L now The difference.
  • the processing module is set to:
  • the backoff counter is decremented by one; if the channel is busy, the value of the backoff counter is locked, until the channel is idle again, and the value of the backoff counter is locked and the counting process is decremented by one;
  • the data packet in the data queue is sent; wherein the number of transmitted data packets is randomly selected from [1, L now ].
  • the Sensor node sends a packet to the central node to test the performance of each indicator.
  • the fixed backoff the number of fixed packets and the backoff based on the length of the real-time queue—the number of fixed packets is one, and the number of transmitted packets is one; considering the actual application, it is impossible to send a sensor node once.
  • a large number of data packets so in the policy of the real-time queue length based on the real-time queue length based on the real-time queue length, the maximum number of packets to be sent is a positive integer value. .
  • the reception correct rate Throughput is approximately 1, that is, the data packets generated by the sensor node can be The central node receives correctly;
  • the three modes, curve 41, curve 42 and curve 43 show the correct rate of reception.
  • the throughput is consistent at low arrival rates because the sensor node's own data queue is low at low arrival rates. There is no accumulation.
  • the CSMA/CA strategy based on the queue length is reverted to the existing static CSMA/CA strategy, so the performance of the three is consistent.
  • the curve 42 shows better performance than the curve 43, because the former's backoff counting process is based on the real-time queue length. The longer the queue length, the shorter the backoff count and the faster access. channel. It can be seen from the simulation results shown in FIG.
  • FIG. 5 is a schematic diagram showing a comparison of delay performance simulation indexes of data packets of sensor nodes at different arrival rates when the method of the related art and the method of the embodiment of the present invention are respectively used, as shown in FIG.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the technical solution provided by the embodiment of the present invention makes the sensor node better in the shared channel. According to different data traffic in each node queue, the number of packets is dynamically adjusted, and the number of packets sent by the data packet is adjusted in real time, so that sensor nodes with more data packets can access the channel in time, and the time slot resources are utilized efficiently. The waste of unnecessary control overhead is avoided, thereby improving the throughput of the entire network and reducing the transmission delay.

Abstract

A method for implementing MAC layer access, and a sensor node. The method comprises: a sensor node determines an initial value of a backoff counter according to the number of data packets temporarily stored in a current data queue; and in a process of backoff counting, the sensor node monitors a channel and updates the value of the backoff counter according to the state of the channel until the value of the backoff counter is 0, and the sensor node sends the data packet.

Description

一种实现MAC层接入的方法及传感器节点Method for implementing MAC layer access and sensor node 技术领域Technical field
本发明涉及无线体域网技术,尤指一种实现媒体访问控制(MAC)层接入的方法及传感器节点。The present invention relates to a wireless body area network technology, and more particularly to a method and a sensor node for implementing media access control (MAC) layer access.
背景技术Background technique
在如今大数据时代的大背景下,一系列基于大数据的应用给工程、商业乃至医疗领域带来了新的挑战和机遇。在这场数据革命中,随着无线通信和半导体技术的快速发展,用于人体生理信息采集的无线传感器变得日益小巧实用,这使得无线传感器所采集到的人体生理信息呈现出爆炸式的增长。这些海量的非结构化数据给由各种适用于人体的传感器所组成的无线体域网带来了新的挑战。In the context of today's big data era, a series of big data-based applications have brought new challenges and opportunities to engineering, business and medical. In this data revolution, with the rapid development of wireless communication and semiconductor technology, wireless sensors for human physiological information collection have become increasingly compact and practical, which has led to explosive growth in human physiological information collected by wireless sensors. . These massive amounts of unstructured data present new challenges for wireless body area networks consisting of a variety of sensors suitable for the human body.
无线体域网通常由各种遍布于体内外的医用传感器节点(Node)和一个中心节点(Hub)组成,是一种用于体表或体内生物体征信息的监控及部分无线应用的短距离低功耗无线通信网络。典型的无线体域网的组成如图1所示。无线体域网主要有以下三个特点:一是,节点间通信距离短(体表附近),网络拓扑多为星形拓扑;二是,面向医疗应用的传感器通常为可穿戴或者需要植入体内的传感器,考虑到人体舒适性和体内植入的难度,无线体域网对传感器的体积和功耗都有较为严格的要求;三是,各传感器节点产生的业务,尤其是紧急业务应能及时可靠地传输到Hub。The wireless body area network usually consists of a variety of medical sensor nodes (Nodes) and a central node (Hub) distributed throughout the body and in the body. It is a short-distance low-range monitoring for body surface or in vivo biological signs information and some wireless applications. Power consumption wireless communication network. The composition of a typical wireless body area network is shown in Figure 1. The wireless body area network mainly has the following three characteristics: First, the communication distance between nodes is short (near the body surface), and the network topology is mostly a star topology; second, the sensor for medical applications is usually wearable or needs to be implanted in the body. The sensor, considering the comfort of the human body and the difficulty of implanting in the body, the wireless body area network has strict requirements on the size and power consumption of the sensor; thirdly, the business generated by each sensor node, especially the emergency service, should be timely Reliably transferred to the Hub.
传感器节点的主要功耗在于无线射频模块的收发以及MAC上,中心节点由于需要做汇聚及与外部网关或远程控制中心通信的任务,功耗相对会大一点。在无线体域网这种多个传感器节点共用一个信道的分布式网络中,MAC层常用的接入方式为载波(媒体)监听多重存取(CSMA,Carrier Sense Multiple Access)/冲突避免(CA,Collision Avoidance),由CSMA/CA的基本原理可知,其不可避免地会产生冲突及重传,这将会导致较多的能量消耗。IEEE 802.15.6中规定的CSMA/CA,虽然对不同用户优先级的业务采用了不同的竞争窗口值(CW),但其退避规则仍和原始CSMA/CA大致相同,这也 就意味着在节点数目增多时,传输数据包时的冲突概率将会大大增加,为了尽可能保证各传感器节点采集的生理信息的可靠、高效传输,延长无线体域网的持续生存时间,一种低功耗、低时延的MAC层接入方法亟待被提出应用。The main power consumption of the sensor node lies in the transceiver of the radio frequency module and the MAC. The power consumption of the central node is relatively large due to the need to aggregate and communicate with the external gateway or remote control center. In a distributed network in which a plurality of sensor nodes share a channel in a wireless body area network, a common access mode of the MAC layer is carrier (Media Sense Multiple Access)/Clash Avoidance (CA). Collision Avoidance), as understood by the basic principles of CSMA/CA, inevitably creates conflicts and retransmissions, which will result in more energy consumption. The CSMA/CA specified in IEEE 802.15.6, although different competition window values (CW) are used for different user priority services, the backoff rule is still the same as the original CSMA/CA. This means that when the number of nodes increases, the probability of collision when transmitting data packets will be greatly increased, in order to ensure reliable and efficient transmission of physiological information collected by each sensor node as much as possible, and prolong the lifetime of the wireless body area network, The low-power, low-latency MAC layer access method needs to be applied.
在申请号为“201310141601.X”,发明名称为“一种实时任务调度的医疗体域网MAC接入方法”的申请中,公开的MAC接入方案需要使用冲突解决队列和数据传输队列两种队列,同时还引入了微时隙和数据时隙来分别传输接入请求和无冲突数据。这种方案虽然可以根据节点和网络的实际情况动态调整网络中节点的传输顺序以提高服务质量,但是,同时也不可避免地增加了MAC层协议的复杂性,在实际应用中是难以实现的。In the application of the invention number "201310141601.X" and the invention name is "a real-time task scheduling medical body network MAC access method", the disclosed MAC access scheme needs to use a conflict resolution queue and a data transmission queue. The queue also introduces mini-slots and data slots to transmit access requests and collision-free data, respectively. Although this scheme can dynamically adjust the transmission order of nodes in the network to improve the quality of service according to the actual situation of nodes and networks, it also inevitably increases the complexity of the MAC layer protocol, which is difficult to implement in practical applications.
在无线体域网尤其是应用于医疗领域的体域网中,紧急业务的传输是一项重要的衡量指标,相关技术中提出的在超帧中插入适量的小的空闲时隙专门用于紧急业务的传输的方案,虽然这些空闲时隙的数目可以由统计规律给出一些参考,但是在实际应用中还是会产生一些不必要的时隙浪费,这将降低全网的吞吐量;而且在实际的医疗场景中,紧急业务出现的频率通常不会太高,因此这种方法实用性并不高。In the wireless body area network, especially in the body area network used in the medical field, the transmission of emergency services is an important measure. In the related art, an appropriate amount of small idle time slots are inserted in the super frame for emergency. The scheme of transmission of services, although the number of these idle slots can be given some reference by statistical law, in practice, some unnecessary time slot waste will be generated, which will reduce the throughput of the whole network; In the medical scenario, the frequency of emergency services is usually not too high, so this method is not very practical.
在IEEE 802.15.6协议中,传感器节点在传输数据包时,首先根据相应数据包的用户优先级选取相应的竞争窗口CW,然后从[1,CW]中随机选取一个数作为退避计数器的值,进行退避计数。在退避计数器件,传感器节点侦听信道:若信道状态为空闲,则退避计数器减1;若信道状态为忙,则退避计数器的值被锁住,直到再次侦听到信道状态为空闲,退避计数器的值从刚才被锁住的值继续做减1计数。直到退避计数器的值递减为0,此时,传感器节点开始发送数据包。这种静态的CSMA/CA接入协议实现起来虽然较为简单,但是,对于无线体域网(WBAN)而言,不同传感器节点的采样率和数据格式(如心率和血压信息)不尽相同,因此,对于不同节点来说,其数据到达率往往相差较大;由于医疗应用需求,同一传感器节点的采样率在人体处于不同生理状态时其数据采样率也略微有些变化,比如,在心电图(ECG)监测中,对于出现可疑的紧急状况时,会提高采样率以提供更为详细的信息,也就是说,对于同一节点其数据包到达率在不同时刻也不太一样。 In the IEEE 802.15.6 protocol, when transmitting a data packet, the sensor node first selects a corresponding contention window CW according to the user priority of the corresponding data packet, and then randomly selects a number from [1, CW] as the value of the backoff counter. Perform a backoff count. In the backoff counter, the sensor node listens to the channel: if the channel state is idle, the backoff counter is decremented by one; if the channel state is busy, the value of the backoff counter is locked until the channel state is idle again, the backoff counter The value of the value continues to be decremented by 1 from the value that was just locked. Until the value of the backoff counter is decremented to zero, the sensor node begins to send packets. Although the static CSMA/CA access protocol is relatively simple to implement, for the wireless body area network (WBAN), the sampling rate and data format (such as heart rate and blood pressure information) of different sensor nodes are not the same, so For different nodes, the data arrival rate often differs greatly; due to medical application requirements, the sampling rate of the same sensor node has a slight change in the data sampling rate when the human body is in different physiological states, for example, in the electrocardiogram (ECG). During monitoring, in the event of a suspicious emergency, the sampling rate is increased to provide more detailed information, that is, the packet arrival rate for the same node is different at different times.
现有CSMA/CA接入协议实现的MAC层接入方法中,缺乏根据各传感器节点数据队列中缓存的数据包长度动态调整发包数的策略,因此,造成了数据包较多的传感器节点不能及时接入信道。此外,当某个传感器节点获得信道使用权时,由于节点发送数据包的个数是一个固定的值,这样,数据包多的传感器节点并不能实时调整以满足发送较多的数据包,不利于高效利用时隙资源,从而浪费了不必要的控制开销。In the MAC layer access method implemented by the existing CSMA/CA access protocol, there is a lack of a policy for dynamically adjusting the number of packets sent according to the length of the data packet buffered in the data queue of each sensor node. Therefore, the sensor nodes with more data packets cannot be timely. Access channel. In addition, when a sensor node obtains the channel usage right, since the number of data packets sent by the node is a fixed value, the sensor nodes with many data packets cannot be adjusted in real time to satisfy the transmission of more data packets, which is disadvantageous for high efficiency. The use of time slot resources wastes unnecessary control overhead.
发明内容Summary of the invention
为了解决上述技术问题,本发明实施例提供一种实现MAC层接入的方法及传感器节点,能够实时调整数据包的发包数,高效利用时隙资源,从而避免不必要的控制开销的浪费。In order to solve the above technical problem, an embodiment of the present invention provides a method for implementing MAC layer access and a sensor node, which can adjust the number of packets sent by a data packet in real time, and efficiently utilize time slot resources, thereby avoiding unnecessary waste of control overhead.
一种实现媒体访问控制MAC层接入的方法,包括:A method for implementing media access control MAC layer access includes:
传感器节点基于当前数据队列中缓存的数据包的数目,确定退避计数器的初始值;The sensor node determines an initial value of the backoff counter based on the number of data packets buffered in the current data queue;
在退避计数过程中,所述传感器节点侦听信道并根据信道状况更新所述退避计数器的值,直至退避计数器的值为0,所述传感器节点发送所述数据包。In the backoff counting process, the sensor node listens to the channel and updates the value of the backoff counter according to the channel condition until the value of the backoff counter is 0, and the sensor node sends the data packet.
可选地,所述确定退避计数器的初始值包括:Optionally, the determining the initial value of the backoff counter includes:
在所述传感器节点发送所述数据包之前,从竞争窗口[1,CW]中随机选取一个值作为所述退避计数器的初始值;其中,Before the sensor node sends the data packet, randomly select a value from the contention window [1, CW] as an initial value of the backoff counter;
竞争窗口值CW等于预先设置的阈值CWmax与当前数据队列中缓存的数据包的数目的值Lnow的差值。Difference threshold number CW CW max contention window value set in advance is equal to the current data packet buffer queue value of L now.
可选地,所述当前数据队列中缓存的数据包的数目Lnow大于或等于阈值CWmax时,所述竞争窗口值CW取值为所述阈值CWmaxAlternatively, the number of L now, the current data packet buffer queue is greater than or equal to the threshold value CW max, the value of the contention window CW value of said threshold value CW max.
可选地,所述直至退避计数器的值为0,所述传感器节点发送所述数据包包括:Optionally, the value of the backoff counter is 0, and the sending, by the sensor node, the data packet includes:
启动所述退避计数器并开始退避计数;Starting the backoff counter and starting the backoff count;
所述传感器节点侦听信道,如果信道空闲,所述退避计数器的值减1; 如果信道忙,锁住所述退避计数器的值,直到再次侦听到信道空闲,从所述退避计数器被锁住的值继续进行减1的计数处理;The sensor node listens to the channel, and if the channel is idle, the value of the backoff counter is decremented by one; If the channel is busy, the value of the backoff counter is locked until the channel is idle again, and the value that is locked from the backoff counter continues to be counted down by one;
直至退避计数器值减到0,所述传感器节点发送所述数据队列中的数据包;其中,所述传感器节点发送的数据包的个数为从[1,Lnow]中随机选取一个值。Until the backoff counter value is reduced to 0, the sensor node sends a data packet in the data queue; wherein the number of data packets sent by the sensor node is randomly selected from [1, L now ].
一种传感器节点,包括预处理模块和处理模块;A sensor node includes a preprocessing module and a processing module;
其中,预处理模块,设置为:基于当前数据队列中缓存的数据包的数目,确定退避计数器的初始值;The pre-processing module is configured to: determine an initial value of the back-off counter based on the number of data packets buffered in the current data queue;
处理模块,设置为:启动所述退避计数器,在退避计数过程中,侦听信道并根据信道状况更新退避计数器的值,直至退避计数器的值为0,发送所述数据包。The processing module is configured to: start the backoff counter, and during the backoff counting process, listen to the channel and update the value of the backoff counter according to the channel condition until the value of the backoff counter is 0, and send the data packet.
可选地,所述预处理模块是设置为:Optionally, the pre-processing module is configured to:
在所述处理模块发送数据包之前,从竞争窗口[1,CW]中随机选取一个值作为退避计数器的初始值;其中,竞争窗口值CW等于预先设置的阈值CWmax与当前数据队列中缓存包的数目Lnow的差值。Before the processing module sends the data packet, a value is randomly selected from the contention window [1, CW] as an initial value of the backoff counter; wherein the contention window value CW is equal to the preset threshold CW max and the cache packet in the current data queue. The difference between the number of L now .
可选地,在所述当前数据队列中缓存包的数目Lnow大于或等于所述阈值CWmax时,所述竞争窗口值CW取值为所述阈值CWmaxOptionally, when the number of cached packets L now in the current data queue is greater than or equal to the threshold CW max , the contention window value CW takes the threshold CW max .
可选地,所述处理模块是设置为:Optionally, the processing module is configured to:
启动所述退避计数器并开始退避计数;Starting the backoff counter and starting the backoff count;
侦听信道,如果信道空闲,所述退避计数器减1;如果信道忙,锁住所述退避计数器的值,直到再次侦听到信道空闲,从所述退避计数器被锁住的值继续进行减1的计数处理;Listening to the channel, if the channel is idle, the backoff counter is decremented by one; if the channel is busy, the value of the backoff counter is locked until the channel is idle again, and the value that is locked from the backoff counter continues to be decremented by one. Counting process
直至退避计数器值减到0,发送数据队列中的数据包;其中,发送的数据包的个数为从[1,Lnow]中随机选取一个值。Until the backoff counter value is reduced to 0, the data packet in the data queue is sent; wherein the number of transmitted data packets is randomly selected from [1, L now ].
本发明实施例还提供一种计算机可读存储介质,存储程序指令,当所述程序指令被执行时可实现上面所述的方法。Embodiments of the present invention also provide a computer readable storage medium storing program instructions that can be implemented when the program instructions are executed.
通过本发明实施例提供的技术方案,使得传感器节点在共享信道中更好 地根据各节点队列中不同的数据业务量进行了发包数的动态调整,实时调整了数据包的发包数,实现了数据包较多的传感器节点能及时接入信道,高效利用了时隙资源,避免了不必要的控制开销的浪费,从而提高了全网吞吐量和减少传输时延。The technical solution provided by the embodiment of the present invention makes the sensor node better in the shared channel. According to different data traffic in each node queue, the number of packets is dynamically adjusted, and the number of packets sent by the data packet is adjusted in real time, so that sensor nodes with more data packets can access the channel in time, and the time slot resources are utilized efficiently. The waste of unnecessary control overhead is avoided, thereby improving the throughput of the entire network and reducing the transmission delay.
而且,传感器节点在发包前,退避过程中使用的退避计数器(Backoff)时长和队列长度相关,传感器节点占用信道的时间也与队列长度相关。这使得传感器节点与中心节点之间的数据传输冲突概率更小,延时更低,交互功耗更低。通信效率更高,同时在实际系统中的实现更便利。Moreover, before the packet is sent, the backoff duration used by the backoff process is related to the queue length, and the time that the sensor node occupies the channel is also related to the queue length. This makes the data transmission collision probability between the sensor node and the central node smaller, the delay is lower, and the interaction power consumption is lower. Communication is more efficient and at the same time more convenient to implement in real systems.
附图概述BRIEF abstract
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为相关技术的无线体域网的组成示意图;1 is a schematic diagram of the composition of a wireless body area network of the related art;
图2为本发明实施例实现MAC层接入的方法的流程图;2 is a flowchart of a method for implementing MAC layer access according to an embodiment of the present invention;
图3为本发明实施例传感器节点的组成结构示意图;3 is a schematic structural diagram of a sensor node according to an embodiment of the present invention;
图4为分别采用相关技术的方法与本发明实施例方法时,传感器节点的数据包在不同到达率下全网吞吐量(Throughput)仿真性能指标的对比示意图;4 is a schematic diagram of comparison of throughput performance indicators of a whole network throughput of a sensor node at different arrival rates when the method of the related art and the method of the embodiment of the present invention are respectively used;
图5为分别采用相关技术的方法与本发明实施例方法时,传感器节点的数据包在不同到达率下的时延(Delay)仿真性能指标的对比示意图。FIG. 5 is a schematic diagram showing a comparison of delay simulation performance indexes of data packets of sensor nodes at different arrival rates when the method of the related art and the method of the embodiment of the present invention are respectively used.
本发明的较佳实施方式Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
为了达到低功耗和低时延的目的,MAC层的接入方法应尽可能减少多个传感器节点在共享信道中传输数据包时所造成的冲突及重传,从而提高全网的吞吐率,同时减少能量消耗以延长网络生存时间。另外,MAC层协议也不应该设计得过于复杂,否则在实际应用中会难以实现。In order to achieve low power consumption and low latency, the MAC layer access method should minimize the collision and retransmission caused by multiple sensor nodes transmitting packets in the shared channel, thereby improving the throughput of the entire network. At the same time reduce energy consumption to extend network survival time. In addition, the MAC layer protocol should not be designed to be too complicated, otherwise it will be difficult to implement in practical applications.
发明人发现,由于医疗场景中的传感器多为周期性采样,数据到达率在 一段时间内相对比较平稳。当传感器节点的数据包到达率较大时,该传感器节点占用信道的概率应该越大,反之亦然。只有这样的经过动态调整后的MAC层接入方法才会提高整个体域网的吞吐量和更小的传输时延。The inventors found that since the sensors in the medical scene are mostly periodically sampled, the data arrival rate is Relatively stable for a while. When the sensor node's packet arrival rate is large, the probability that the sensor node occupies the channel should be greater, and vice versa. Only such a dynamically adjusted MAC layer access method will increase the throughput of the entire body area network and a smaller transmission delay.
图2为本发明实施例实现MAC层接入的方法的流程图,如图2所示,包括:2 is a flowchart of a method for implementing MAC layer access according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
步骤200:传感器节点基于当前数据队列中缓存包的数目,确定退避计数器的初始值。Step 200: The sensor node determines an initial value of the backoff counter based on the number of cached packets in the current data queue.
本步骤包括:在传感器节点发包前,从竞争窗口[1,CW]中随机选取一个值作为退避计数器的初始值。这里,与IEEE 802.15.6中的CSMA/CA方式不同的是,本发明实施例中的竞争窗口值CW不是一个固定的值,而是基于传感器节点当前队列长度由公式(1)确定的:This step includes: randomly selecting a value from the contention window [1, CW] as the initial value of the backoff counter before the sensor node sends the packet. Here, unlike the CSMA/CA method in IEEE 802.15.6, the contention window value CW in the embodiment of the present invention is not a fixed value, but is determined by the formula (1) based on the current queue length of the sensor node:
CW=CWmax-Lnow    (1)CW=CW max -L now (1)
在公式(1)中,按照相关协议规定,CWmax为一个预先设置的阈值,Lnow为当前数据队列中缓存包的数目。In formula (1), according to the relevant protocol, CW max is a preset threshold, and L now is the number of cache packets in the current data queue.
特别地,当当前数据队列中缓存包的数目Lnow大于或等于阈值CWmax时,说明此时该传感器节点的数据包堆积过多,或者其他传感器节点的数据包流量也较大,因此,此时竞争窗口值CW取值为阈值CWmax,保证了各节点间的公平性。In particular, when the number of cached packets in the current data queue, L now, is greater than or equal to the threshold CW max , it indicates that the sensor node has too much data packet accumulation at this time, or the packet traffic of other sensor nodes is also large, therefore, this is The value of the competition window value CW is the threshold CW max , which ensures the fairness between the nodes.
步骤201:在退避计数过程中,传感器节点侦听信道并根据信道状况更新退避计数器的值,直至退避计数器的值为0,传感节点发送数据包。Step 201: In the backoff counting process, the sensor node listens to the channel and updates the value of the backoff counter according to the channel condition until the value of the backoff counter is 0, and the sensing node sends the data packet.
本步骤中,启动确定好的退避计数器并开始退避计数,此时,传感器节点开始侦听信道:如果信道空闲,那么,退避计数器减1;如果信道忙,那么,锁住退避计数器的值,直到再次侦听到信道空闲,从刚才退避计数器被锁住的值继续进行减1的计数处理;In this step, the determined backoff counter is started and the backoff count is started. At this time, the sensor node starts to listen to the channel: if the channel is idle, the backoff counter is decremented by one; if the channel is busy, then the value of the backoff counter is locked until Listening to the channel idle again, and continuing to count down by 1 from the value that the backoff counter is locked;
直至退避计数器值减到0,传感器节点开始发送数据队列中的数据包,此时,传感器节点发送的数据包的个数为从[1,Lnow]中随机选取一个值。Until the backoff counter value is reduced to 0, the sensor node starts to send the data packet in the data queue. At this time, the number of data packets sent by the sensor node is randomly selected from [1, L now ].
本发明实施例的方法中,退避计数器时长和队列长度相关,当数据包堆积较多时,由于竞争窗口值CW选取的值会变小,因此,退避时间也会相应 变小。这样,使得数据包较多的节点实现了及时接入信道。此外,当某个传感器节点获得信道使用权时,发送数据包的个数也与当前数据队列长度有关,传感器节点发送数据包的个数不是一个固定的值,而是随机选择一个1到当前数据队列总的数据包个数之间的一个整数值,如果若选出来的整数大于预先设置的阈值,则将当前发送数据包的个数设置为该阈值,这样,数据包多的传感器节点仅仅是有更大的可能发送较多的数据包,而非必然,因此,这也是一种公平性的体现。同时,这也非常有利于高效利用时隙资源,避免了不必要的控制开销。In the method of the embodiment of the present invention, the backoff counter duration is related to the queue length. When the data packet is accumulated, the value selected by the contention window value CW becomes smaller, and therefore, the backoff time is correspondingly Become smaller. In this way, nodes with more data packets are enabled to access the channel in time. In addition, when a sensor node obtains channel usage rights, the number of transmitted data packets is also related to the current data queue length. The number of data packets sent by the sensor node is not a fixed value, but a random selection of 1 to the current data queue. An integer value between the total number of data packets. If the selected integer is greater than a preset threshold, the number of currently transmitted data packets is set to the threshold, so that the sensor nodes with more data packets only have Larger ones may send more packets, not necessarily, so this is also a manifestation of fairness. At the same time, this is also very beneficial for efficient use of time slot resources, avoiding unnecessary control overhead.
通过本发明实施例提供的技术方案,使得传感器节点在共享信道中更好地根据各节点队列中不同的数据业务量进行了发包数的动态调整,实现了数据包较多的传感器节点能及时接入信道,从而提高了全网吞吐量和减少传输时延。而且,传感器节点占用信道的时间也与队列长度相关。这使得传感器节点与中心节点之间的数据传输冲突概率更小,延时更低,交互功耗更低。通信效率更高,同时在实际系统中的实现更便利。The technical solution provided by the embodiment of the invention enables the sensor node to dynamically adjust the number of packets sent according to different data traffic in each node queue in the shared channel, so that the sensor nodes with more data packets can be connected in time. Incoming channels, thereby increasing overall network throughput and reducing transmission delay. Moreover, the time that the sensor node occupies the channel is also related to the queue length. This makes the data transmission collision probability between the sensor node and the central node smaller, the delay is lower, and the interaction power consumption is lower. Communication is more efficient and at the same time more convenient to implement in real systems.
图3为本发明实施例传感器节点的组成结构示意图,如图3所示,至少包括预处理模块和处理模块,其中,3 is a schematic structural diagram of a sensor node according to an embodiment of the present invention. As shown in FIG. 3, at least a preprocessing module and a processing module are included, where
预处理模块,设置为基于当前数据队列中缓存包的数目,确定退避计数器的初始值;The pre-processing module is configured to determine an initial value of the backoff counter based on the number of cached packets in the current data queue;
处理模块,设置为启动退避计数器,在退避计数过程中,传感器节点侦听信道并根据信道状况更新退避计数器的值,直至退避计数器的值为0,传感节点发送数据包。其中,传感器节点发送的数据包的个数为从[1,Lnow]中随机选取一个值。The processing module is configured to start the backoff counter. During the backoff counting process, the sensor node listens to the channel and updates the value of the backoff counter according to the channel condition until the value of the backoff counter is 0, and the sensing node sends the data packet. The number of data packets sent by the sensor node is randomly selected from [1, L now ].
其中,预处理模块设置为:Among them, the preprocessing module is set to:
在传感器节点发包前,从竞争窗口[1,CW]中随机选取一个值作为退避计数器的初始值;其中,竞争窗口值CW为预先设置的阈值CWmax与当前数据队列中缓存包的数目Lnow的差值。Before the sensor node sends the packet, a value is randomly selected from the contention window [1, CW] as the initial value of the backoff counter; wherein the contention window value CW is a preset threshold CW max and the number of cached packets in the current data queue L now The difference.
特别地,当当前数据队列中缓存包的数目Lnow大于或等于阈值CWmax时,竞争窗口值CW取值为CWmaxParticularly, when the number of L now the current buffer data packet queue is greater than or equal to the threshold value CW max, the value of the contention window CW value of CW max.
其中,处理模块是设置为:Among them, the processing module is set to:
启动退避计数器并开始退避计数;Start the backoff counter and start the backoff count;
侦听信道,如果信道空闲,退避计数器减1;如果信道忙,锁住退避计数器的值,直到再次侦听到信道空闲,从退避计数器被锁住的值继续进行减1的计数处理;Listening channel, if the channel is idle, the backoff counter is decremented by one; if the channel is busy, the value of the backoff counter is locked, until the channel is idle again, and the value of the backoff counter is locked and the counting process is decremented by one;
直至退避计数器值减到0,发送数据队列中的数据包;其中,发送的数据包的个数为从[1,Lnow]中随机选取一个值。Until the backoff counter value is reduced to 0, the data packet in the data queue is sent; wherein the number of transmitted data packets is randomly selected from [1, L now ].
图4为分别采用相关技术的方法与本发明实施例的方法时,传感器节点的数据包在不同到达率下全网吞吐量(Throughput)仿真性能指标的对比示意图,如图4所示,曲线43为固定退避—固定发包个数(Fix Backoff–Fix Transmission)的CSMA/CA方式,也就是原有的CSMA/CA协议条件下的全网吞吐量仿真结果曲线;曲线42为基于实时队列长度的退避—固定发包个数(Queue Backoff–Fix Transmission)的CSMA/CA方式条件下的全网吞吐量仿真结果曲线;曲线41为基于实时队列长度的退避—基于实时队列长度的发包个数(Queu Backoff–Queue Transmission)即本发明实施例的方法条件下的全网吞吐量仿真结果曲线。FIG. 4 is a schematic diagram showing comparison of the throughput performance of the whole network throughput (Throughput) of the sensor node at different arrival rates when the method of the related art and the method of the embodiment of the present invention are respectively used, as shown in FIG. 4, curve 43 The CSMA/CA mode for fixed backoff-fix transmission (Fix Backoff–Fix Transmission) is the whole network throughput simulation result curve under the original CSMA/CA protocol condition; curve 42 is the backoff based on real-time queue length. - Full-network throughput simulation result curve under CSMA/CA mode of Queue Backoff-Fix Transmission; curve 41 is backoff based on real-time queue length - number of packets based on real-time queue length (Queu Backoff– The Queue Transmission is a simulation result of the whole network throughput under the condition of the method of the embodiment of the present invention.
假设传感器(Sensor)节点向中心节点发送数据包以测试各项指标性能。在固定发包策略即固定退避—固定发包个数与基于实时队列长度的退避—固定发包个数,发送数据包的个数为1个;考虑到实际应用中,不可能让某个传感器节点一次发送大量的数据包,因此在本发明实施例的基于实时队列长度的退避—基于实时队列长度的发包个数的策略中,可以设置在一次发包过程中,其发包个数上限为某一正整数值。Assume that the Sensor node sends a packet to the central node to test the performance of each indicator. In the fixed delivery strategy, that is, the fixed backoff—the number of fixed packets and the backoff based on the length of the real-time queue—the number of fixed packets is one, and the number of transmitted packets is one; considering the actual application, it is impossible to send a sensor node once. A large number of data packets, so in the policy of the real-time queue length based on the real-time queue length based on the real-time queue length, the maximum number of packets to be sent is a positive integer value. .
在图4所示的整个仿真时长内,假设定义吞吐量即整个网络的接收正确率
Figure PCTCN2015072592-appb-000001
并假设数据包的时延为:数据包从产生到被中心节点正确接收的时间间隔。对于图4所示的仿真场景,通过仿真计算网络的接收正确率Throughput与数据包的平均时延,仿真性能曲线如图4所示,由图4可知:
Within the entire simulation duration shown in Figure 4, assume that the defined throughput is the correct rate of reception for the entire network.
Figure PCTCN2015072592-appb-000001
It is also assumed that the delay of the data packet is: the time interval from the generation of the data packet to the correct reception by the central node. For the simulation scenario shown in Figure 4, the simulation of the network's receiving accuracy rate Throughput and the average delay of the data packet is simulated. The simulation performance curve is shown in Figure 4. Figure 4 shows:
在低到达率,即λ<1/68(数据包/时隙)的情况下,三种CSMA/CA策略下,接收正确率Throughput近似为1,也就是说sensor节点产生的数据包都能被中心节点正确接收;In the case of low arrival rate, ie λ<1/68 (packet/time slot), under the three CSMA/CA strategies, the reception correct rate Throughput is approximately 1, that is, the data packets generated by the sensor node can be The central node receives correctly;
在中等到达率,即1/68<λ<1/32(数据包/时隙)的情况下,接收正确率Throughput性能为:曲线41>曲线42>曲线43,并且,此时曲线43显示的性能急剧下降,曲线42显示的性能出现下降但接收正确率Throughput仍然大于0.9,而权限41显示的性能几乎不变,仍然保持在1附近;In the case of a medium arrival rate, i.e., 1/68 < λ < 1/32 (packet/time slot), the reception correct rate Throughput performance is: curve 41 > curve 42 > curve 43, and, at this time, curve 43 is displayed. The performance drops sharply, the performance shown by curve 42 decreases, but the reception accuracy rate Throughput is still greater than 0.9, while the performance shown by privilege 41 is almost unchanged, still staying near 1;
在高到达率,即1/32<λ<1/20(数据包/时隙)的情况下,曲线42显示的性能出现急剧恶化,而曲线41显示的性能虽出现略微下降,但仍然大于0.9。In the case of a high arrival rate, i.e., 1/32 < λ < 1/20 (packet/time slot), the performance shown by curve 42 appears to deteriorate sharply, while the performance shown by curve 41 shows a slight decrease, but still greater than 0.9. .
在图4中,三种方式下,即曲线41、曲线42和曲线43显示的接收正确率Throughput在低到达率情况下性能一致,这是因为在低到达率情况下,传感器节点自身的数据队列没有堆积,此时基于队列长度的CSMA/CA策略就退变成现有的静态CSMA/CA策略,所以三者性能一致。但是,随着到达率增高,曲线42显示的性能要好于曲线43的,这是因为前者的退避计数过程基于实时队列长度进行,队列长度越长,退避计数的时间越短,能够更快接入信道。从图4所示的仿真结果可见,曲线41显示的性能最好,这是因为本发明实施例的基于实时队列长度的退避—基于实时队列长度的发包个数的方式不仅仅在退避计数过程中示基于实时队列长度进行,而且节点发送数据包的个数也是基于实时队列长度进行的,数据队列长的传感器节点不仅能够更快接入信道,而且当每次成功接入信道后,也能发送较多的数据包,从而使得数据包尽快得到了传输。由此可见,本发明实施例的基于实时队列长度的动态CSMA/CA方式,提高了网络的接收正确率Throughput。In Figure 4, the three modes, curve 41, curve 42 and curve 43, show the correct rate of reception. The throughput is consistent at low arrival rates because the sensor node's own data queue is low at low arrival rates. There is no accumulation. At this time, the CSMA/CA strategy based on the queue length is reverted to the existing static CSMA/CA strategy, so the performance of the three is consistent. However, as the arrival rate increases, the curve 42 shows better performance than the curve 43, because the former's backoff counting process is based on the real-time queue length. The longer the queue length, the shorter the backoff count and the faster access. channel. It can be seen from the simulation results shown in FIG. 4 that the curve 41 shows the best performance because the real-time queue length-based backoff based on the real-time queue length is not only in the back-off counting process. The display is based on the real-time queue length, and the number of packets sent by the node is also based on the real-time queue length. The sensor node with the long data queue can not only access the channel faster, but also can send each time after successfully accessing the channel. More packets, so that packets are transmitted as soon as possible. It can be seen that the dynamic CSMA/CA method based on the real-time queue length in the embodiment of the present invention improves the receiving accuracy of the network.
网络的时延Delay性能是和接收正确率Throughput性能相对应的,当接收正确率Throughput降低时,所有数据包将不能被及时传递到中心节点,堆积在传感器节点的数据队列中,导致了时延增大。图5为分别采用相关技术的方法与本发明实施例的方法时,传感器节点的数据包在不同到达率下的时延(Delay)仿真性能指标的对比示意图,如图5所示,曲线53为固定退避—固定发包个数(Fix Backoff–Fix Transmission)的CSMA/CA方式,也就是原有的CSMA/CA协议条件下的时延仿真结果曲线;曲线42为基于实时队列长 度的退避—固定发包个数(Queue Backoff–Fix Transmission)的CSMA/CA方式条件下的时延仿真结果曲线;曲线41为基于实时队列长度的退避—基于实时队列长度的发包个数(Queu Backoff–Queue Transmission)即本发明方法条件下的时延仿真结果曲线。从图5所示的仿真曲线,本领域技术人员不难看出,与相关技术相比,本发明实施例基于实时队列长度的动态CSMA/CA方式降低了数据包时延。The delay performance of the network corresponds to the receiving accuracy of the Throughput performance. When the receiving accuracy rate is reduced, all packets will not be delivered to the central node in time, accumulating in the data queue of the sensor node, resulting in delay. Increase. FIG. 5 is a schematic diagram showing a comparison of delay performance simulation indexes of data packets of sensor nodes at different arrival rates when the method of the related art and the method of the embodiment of the present invention are respectively used, as shown in FIG. 5, curve 53 is Fixed backoff—Fix Backoff–Fix Transmission CSMA/CA mode, which is the delay simulation result curve under the original CSMA/CA protocol condition; curve 42 is based on real-time queue length Time-delay simulation result curve under CSMA/CA mode of Queue Backoff–Fix Transmission; curve 41 is backoff based on real-time queue length—the number of packets based on real-time queue length (Queu Backoff – Queue Transmission) is the time delay simulation result curve under the condition of the method of the present invention. From the simulation curve shown in FIG. 5, it is not difficult to see by those skilled in the art that the dynamic CSMA/CA method based on the real-time queue length reduces the packet delay compared with the related art.
因此,综合正确接收率Throughput和时延性能来看,本发明实施例的基于实时队列长度的动态CSMA/CA方式的性能均优于原有静态的CSMA/CA策略。Therefore, the performance of the dynamic CSMA/CA mode based on the real-time queue length of the embodiment of the present invention is superior to the original static CSMA/CA strategy.
以上所述,仅为本发明的可选实施例而已,并非用于限定本发明的保护范围。The above is only an alternative embodiment of the present invention and is not intended to limit the scope of the present invention.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
通过本发明实施例提供的技术方案,使得传感器节点在共享信道中更好 地根据各节点队列中不同的数据业务量进行了发包数的动态调整,实时调整了数据包的发包数,实现了数据包较多的传感器节点能及时接入信道,高效利用了时隙资源,避免了不必要的控制开销的浪费,从而提高了全网吞吐量和减少传输时延。 The technical solution provided by the embodiment of the present invention makes the sensor node better in the shared channel. According to different data traffic in each node queue, the number of packets is dynamically adjusted, and the number of packets sent by the data packet is adjusted in real time, so that sensor nodes with more data packets can access the channel in time, and the time slot resources are utilized efficiently. The waste of unnecessary control overhead is avoided, thereby improving the throughput of the entire network and reducing the transmission delay.

Claims (9)

  1. 一种实现媒体访问控制MAC层接入的方法,包括:A method for implementing media access control MAC layer access includes:
    传感器节点基于当前数据队列中缓存的数据包的数目,确定退避计数器的初始值;The sensor node determines an initial value of the backoff counter based on the number of data packets buffered in the current data queue;
    在退避计数过程中,所述传感器节点侦听信道并根据信道状况更新所述退避计数器的值,直至退避计数器的值为0,所述传感器节点发送所述数据包。In the backoff counting process, the sensor node listens to the channel and updates the value of the backoff counter according to the channel condition until the value of the backoff counter is 0, and the sensor node sends the data packet.
  2. 根据权利要求1所述的方法,其中,所述确定退避计数器的初始值包括:The method of claim 1 wherein said determining an initial value of the backoff counter comprises:
    在所述传感器节点发送所述数据包之前,从竞争窗口[1,CW]中随机选取一个值作为所述退避计数器的初始值;其中,Before the sensor node sends the data packet, randomly select a value from the contention window [1, CW] as an initial value of the backoff counter;
    竞争窗口值CW等于预先设置的阈值CWmax与当前数据队列中缓存的数据包的数目的值Lnow的差值。Difference threshold number CW CW max contention window value set in advance is equal to the current data packet buffer queue value of L now.
  3. 根据权利要求2所述的方法,其中,所述当前数据队列中缓存的数据包的数目Lnow大于或等于阈值CWmax时,所述竞争窗口值CW取值为所述阈值CWmaxAccording to the method as claimed in claim 2, wherein the number L now the current data packet buffer queue is greater than or equal to the threshold value CW max, the value of the contention window CW value of said threshold value CW max.
  4. 根据权利要求1~3任一项所述的方法,其中,所述直至退避计数器的值为0,所述传感器节点发送所述数据包包括:The method according to any one of claims 1 to 3, wherein the value of the backoff counter is 0, and the sending, by the sensor node, the data packet comprises:
    启动所述退避计数器并开始退避计数;Starting the backoff counter and starting the backoff count;
    所述传感器节点侦听信道,如果信道空闲,所述退避计数器的值减1;如果信道忙,锁住所述退避计数器的值,直到再次侦听到信道空闲,从所述退避计数器被锁住的值继续进行减1的计数处理;The sensor node listens to the channel, and if the channel is idle, the value of the backoff counter is decremented by one; if the channel is busy, the value of the backoff counter is locked until the channel is idle again, and the backoff counter is locked The value continues to be counted down by 1;
    直至退避计数器值减到0,所述传感器节点发送所述数据队列中的数据包;其中,所述传感器节点发送的数据包的个数为从[1,Lnow]中随机选取一个值。Until the backoff counter value is reduced to 0, the sensor node sends a data packet in the data queue; wherein the number of data packets sent by the sensor node is randomly selected from [1, L now ].
  5. 一种传感器节点,包括预处理模块和处理模块;A sensor node includes a preprocessing module and a processing module;
    其中,预处理模块,设置为:基于当前数据队列中缓存的数据包的数目, 确定退避计数器的初始值;The pre-processing module is configured to: based on the number of data packets buffered in the current data queue, Determining an initial value of the backoff counter;
    处理模块,设置为:启动所述退避计数器,在退避计数过程中,侦听信道并根据信道状况更新退避计数器的值,直至退避计数器的值为0,发送所述数据包。The processing module is configured to: start the backoff counter, and during the backoff counting process, listen to the channel and update the value of the backoff counter according to the channel condition until the value of the backoff counter is 0, and send the data packet.
  6. 根据权利要求5所述的传感器节点,其中,所述预处理模块是设置为:The sensor node of claim 5 wherein said pre-processing module is configured to:
    在所述处理模块发送数据包之前,从竞争窗口[1,CW]中随机选取一个值作为退避计数器的初始值;其中,竞争窗口值CW等于预先设置的阈值CWmax与当前数据队列中缓存包的数目Lnow的差值。Before the processing module sends the data packet, a value is randomly selected from the contention window [1, CW] as an initial value of the backoff counter; wherein the contention window value CW is equal to the preset threshold CW max and the cache packet in the current data queue. the difference between the number of L now.
  7. 根据权利要求6所述的传感器节点,其中,在所述当前数据队列中缓存包的数目Lnow大于或等于所述阈值CWmax时,所述竞争窗口值CW取值为所述阈值CWmaxWhen the sensor node according to claim 6, wherein the number L now in the current data packet buffer queue is greater than or equal to the threshold value CW max, the value of the contention window CW value of said threshold value CW max.
  8. 根据权利要求5~7任一项所述的传感器节点,其中,所述处理模块是设置为:The sensor node according to any one of claims 5 to 7, wherein the processing module is configured to:
    启动所述退避计数器并开始退避计数;Starting the backoff counter and starting the backoff count;
    侦听信道,如果信道空闲,所述退避计数器减1;如果信道忙,锁住所述退避计数器的值,直到再次侦听到信道空闲,从所述退避计数器被锁住的值继续进行减1的计数处理;Listening to the channel, if the channel is idle, the backoff counter is decremented by one; if the channel is busy, the value of the backoff counter is locked until the channel is idle again, and the value that is locked from the backoff counter continues to be decremented by one. Counting process
    直至退避计数器值减到0,发送数据队列中的数据包;其中,发送的数据包的个数为从[1,Lnow]中随机选取一个值。Until the backoff counter value is reduced to 0, the data packet in the data queue is sent; wherein the number of transmitted data packets is randomly selected from [1, L now ].
  9. 一种计算机可读存储介质,存储程序指令,当所述程序指令被执行时可实现权利要求1-4任一项所述的方法。 A computer readable storage medium storing program instructions that, when executed, can implement the method of any of claims 1-4.
PCT/CN2015/072592 2014-11-14 2015-02-09 Method for implementing mac layer access, and sensor node WO2015184854A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410649447.1 2014-11-14
CN201410649447.1A CN105656806A (en) 2014-11-14 2014-11-14 MAC layer access method and sensor node

Publications (1)

Publication Number Publication Date
WO2015184854A1 true WO2015184854A1 (en) 2015-12-10

Family

ID=54766084

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/072592 WO2015184854A1 (en) 2014-11-14 2015-02-09 Method for implementing mac layer access, and sensor node

Country Status (2)

Country Link
CN (1) CN105656806A (en)
WO (1) WO2015184854A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109075831A (en) * 2016-04-18 2018-12-21 高通股份有限公司 Management is used for the multidirectional backoff counter of service quality
CN110958717A (en) * 2019-12-12 2020-04-03 皖西学院 Contention-free random medium access control method and system for centralized wireless local area network
WO2020119195A1 (en) * 2018-12-13 2020-06-18 电信科学技术研究院有限公司 Data transmission method and device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108541076A (en) * 2018-06-08 2018-09-14 上海交通大学 CSMA/CA multiple access methods based on gated polling system
CN108934081B (en) * 2018-06-15 2021-08-17 扬州大学 Wireless vehicle-mounted network channel access method
CN112866130B (en) * 2021-03-31 2023-03-21 中国工商银行股份有限公司 Message packet interval adjusting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585404A (en) * 2004-06-04 2005-02-23 西安电子科技大学 Distributive competition control of withdraw of radio local network
CN101035129A (en) * 2007-01-11 2007-09-12 上海交通大学 Traffic-adapted radio sensor network channel access control method
US20100202354A1 (en) * 2009-01-30 2010-08-12 Texas Instruments Inc. Frame Structure for Medium Access in Body Area Networks (BAN)
CN103957605A (en) * 2014-05-05 2014-07-30 中国科学院微电子研究所 Method and system for controlling radio resource dynamic access in body area network simulation process

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585404A (en) * 2004-06-04 2005-02-23 西安电子科技大学 Distributive competition control of withdraw of radio local network
CN101035129A (en) * 2007-01-11 2007-09-12 上海交通大学 Traffic-adapted radio sensor network channel access control method
US20100202354A1 (en) * 2009-01-30 2010-08-12 Texas Instruments Inc. Frame Structure for Medium Access in Body Area Networks (BAN)
CN103957605A (en) * 2014-05-05 2014-07-30 中国科学院微电子研究所 Method and system for controlling radio resource dynamic access in body area network simulation process

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109075831A (en) * 2016-04-18 2018-12-21 高通股份有限公司 Management is used for the multidirectional backoff counter of service quality
CN109075831B (en) * 2016-04-18 2020-06-05 高通股份有限公司 Method and apparatus for managing a multi-way backoff counter for quality of service
WO2020119195A1 (en) * 2018-12-13 2020-06-18 电信科学技术研究院有限公司 Data transmission method and device
CN111327392A (en) * 2018-12-13 2020-06-23 电信科学技术研究院有限公司 Data transmission method and device
CN111327392B (en) * 2018-12-13 2021-06-01 电信科学技术研究院有限公司 Data transmission method and device
US11832293B2 (en) 2018-12-13 2023-11-28 Datang Mobile Communications Equipment Co., Ltd. Data transmission method and device
CN110958717A (en) * 2019-12-12 2020-04-03 皖西学院 Contention-free random medium access control method and system for centralized wireless local area network

Also Published As

Publication number Publication date
CN105656806A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
WO2015184854A1 (en) Method for implementing mac layer access, and sensor node
US10117222B2 (en) Communication between devices of a neighbor aware network
US9763223B2 (en) Communication between devices of a neighbor aware network
US9059923B2 (en) Devices and methods for beacon communication in ad-hoc networks
KR101812131B1 (en) Communication between devices of a neighbor aware network
JP6076430B2 (en) Reducing power consumption in wireless network stations by optimizing contention period overhead using station grouping, proxy CSMA, and TIM monitoring
US9763221B2 (en) Communication between devices of a neighbor aware network
TWI459754B (en) Method of congestion management in a wireless mesh network
CN112929366B (en) Wireless game protocol
US10820314B2 (en) Traffic advertisement in neighbor aware network (NAN) data path
US10075950B2 (en) Traffic advertisement in neighbor aware network (NAN) data path
US9949236B2 (en) Traffic advertisement in neighbor aware network (NAN) data path
Sun et al. Priority-based medium access control for wireless body area networks with high-performance design
CN107347201A (en) A kind of wireless sensor network polling system control method based on priority
WO2016039931A1 (en) Enhancements for wifi multimedia extensions
WO2015154499A1 (en) Information interaction method, device and system for wban
US20160174137A1 (en) Traffic advertisement in neighbor aware network (nan) data path
Jacob et al. Contention versus polling access in IEEE 802.15. 6: Delay and lifetime analysis
Kamble et al. Improved MAC protocol for emergency handling in WBAN
KR101155049B1 (en) Method for collision avoidance in carrier sense multiple access with collision aviodance
Zou et al. A contention window adaptive MAC protocol for wireless sensor networks
Khan et al. FROG-MAC: A fragmentation based MAC scheme for prioritized heterogeneous traffic in wireless sensor networks
Liu et al. Enhancement objective q-learning mac for emergency transmission
Tan et al. A Real-time MAC Protocol for Event-driven Wireless Sensor Networks
Kim et al. A Contention Delay Minimization Scheme in WiMedia Networks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15803220

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15803220

Country of ref document: EP

Kind code of ref document: A1