[go: up one dir, main page]

CN101489304A - Media access control method based on differentiate service of wireless multimedia sensor network - Google Patents

Media access control method based on differentiate service of wireless multimedia sensor network Download PDF

Info

Publication number
CN101489304A
CN101489304A CNA2009100249757A CN200910024975A CN101489304A CN 101489304 A CN101489304 A CN 101489304A CN A2009100249757 A CNA2009100249757 A CN A2009100249757A CN 200910024975 A CN200910024975 A CN 200910024975A CN 101489304 A CN101489304 A CN 101489304A
Authority
CN
China
Prior art keywords
data
node
subframe
state
time slot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2009100249757A
Other languages
Chinese (zh)
Other versions
CN101489304B (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.)
Nanjing Post and Telecommunication University
Original Assignee
Nanjing Post and Telecommunication 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 Nanjing Post and Telecommunication University filed Critical Nanjing Post and Telecommunication University
Priority to CN2009100249757A priority Critical patent/CN101489304B/en
Publication of CN101489304A publication Critical patent/CN101489304A/en
Application granted granted Critical
Publication of CN101489304B publication Critical patent/CN101489304B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

基于无线多媒体传感器网络区分服务的媒体访问控制方法涉及无线多媒体传感器网络MAC层协议的设计,主要用于针对不同的业务提供区分服务。多媒体传感器网络存在音频、视频信息,同时有可能存在文本信息时,不同的应用要求不同的QoS,这时要求设计的MAC协议能针对不同业务提供区分服务,同时在全网范围内实现资源的有效利用。本发明方法提出了基于无线多媒体传感器网络的区分服务的MAC协议,采用根据服务等级来设定动态时隙分配方案,从而达到基于TDMA的区分服务MAC协议,通过划分多层时隙根据服务来调整时隙分配,同时动态调整服务等级,并增加不活跃节点的休眠,从而延长了无线多媒体传感器网络的寿命并提高了传感器网络的协调性和服务质量。

Figure 200910024975

The media access control method based on the differentiated service of the wireless multimedia sensor network relates to the design of the MAC layer protocol of the wireless multimedia sensor network, and is mainly used for providing differentiated services for different services. When there are audio and video information in the multimedia sensor network, and there may be text information at the same time, different applications require different QoS. At this time, it is required to design a MAC protocol that can provide differentiated services for different services, and at the same time realize the effective use of resources in the entire network. use. The method of the present invention proposes a MAC protocol based on a differentiated service of a wireless multimedia sensor network, adopts a dynamic time slot allocation scheme according to a service level, thereby achieving a differentiated service MAC protocol based on TDMA, and adjusts according to a service by dividing multi-layer time slots Time slot allocation, while dynamically adjusting the service level, and increasing the dormancy of inactive nodes, thus prolonging the life of the wireless multimedia sensor network and improving the coordination and quality of service of the sensor network.

Figure 200910024975

Description

基于无线多媒体传感器网络区分服务的媒体访问控制方法 Media Access Control Method Based on Differentiated Services in Wireless Multimedia Sensor Networks

技术领域 technical field

本发明涉及无线多媒体传感器网络MAC层协议的设计,主要用于针对不同的业务提供区分服务。The invention relates to the design of the MAC layer protocol of the wireless multimedia sensor network, and is mainly used for providing differentiated services for different services.

背景技术 Background technique

无线多媒体传感器网络是由一组具有感知、计算和通信能力的多媒体传感器节点组成的分布式传感器网络。它通过节点上多媒体传感器采集周边环境的多种媒体信息(音频、视频、图像等),通过多跳方式将数据汇集到汇聚节点,实现全面、有效的环境监测。Wireless multimedia sensor network is a distributed sensor network composed of a group of multimedia sensor nodes with perception, computing and communication capabilities. It collects various media information (audio, video, image, etc.) of the surrounding environment through the multimedia sensor on the node, and collects the data to the aggregation node through multi-hop mode to realize comprehensive and effective environmental monitoring.

在无线多媒体传感器网络中,传输的数据主要是音频和视频数据。视频数据的信息量非常巨大,如果在无线链路上持续传输视频数据,则无线信道带宽将成为系统的瓶颈,同时,视频信息的传输和处理需要耗费大量的能量,这将导致能量有限的传感器网络迅速耗尽能量,网络的生存周期将大为缩短。媒体访问控制(MAC,medium access control)协议是用于建立可靠的点到点、点到多点或多点共享的通信链路技术,处于无线传感器网络协议栈的底层部分,是所有数据报文和控制消息在无线信道上进行发送和接收的直接控制者,解决无线传感器网络中节点以怎样的规则共享媒体才能保证满意的网络性能问题,MAC协议能否高效地使用无线信道是保证无线多媒体传感器网络通信的最关键的因数之一。In wireless multimedia sensor networks, the transmitted data is mainly audio and video data. The amount of video data information is huge. If the video data is continuously transmitted on the wireless link, the wireless channel bandwidth will become the bottleneck of the system. The network will quickly run out of energy, and the life cycle of the network will be greatly shortened. The medium access control (MAC, medium access control) protocol is used to establish a reliable point-to-point, point-to-multipoint or multi-point shared communication link technology. It is the direct controller who sends and receives control messages on the wireless channel, solves the problem of how the nodes in the wireless sensor network share the media to ensure satisfactory network performance, and whether the MAC protocol can efficiently use the wireless channel is the guarantee for wireless multimedia sensors. One of the most critical factors of network communication.

多媒体传感器网络存在音频、视频信息,同时有可能存在文本信息时,不同的应用要求不同的QoS,这时要求设计的MAC协议能针对不同业务提供区分服务,同时在全网范围内实现资源的有效利用。When there are audio and video information in the multimedia sensor network, and there may be text information at the same time, different applications require different QoS. At this time, it is required to design a MAC protocol that can provide differentiated services for different services, and at the same time realize the effective use of resources in the entire network. use.

现有无线传感器网络MAC协议研究大都假定基于单一的“尽力而为”(best effort)数据传输服务模型,各类业务平等竞争网络资源,网络拥塞时,业务被不加区分地丢弃,因而不利于服务质量要求高的业务传输。Most of the existing wireless sensor network MAC protocol research assumes that it is based on a single "best effort" (best effort) data transmission service model, and all kinds of services compete equally for network resources. Service transmission with high quality of service requirements.

基于竞争的MAC协议,如S-MAC,T-MAC,Sift等,通过解决碰撞重传、空闲侦听以及控制信息过多等问题,大幅度减少冲突的机会,达到降低能耗的目的,但它们通常很难保证实时性要求,适用于一些对可预见性要求不高的网络,并不适应于多媒体传感器网络。Competition-based MAC protocols, such as S-MAC, T-MAC, Sift, etc., can greatly reduce the chance of collisions and achieve the purpose of reducing energy consumption by solving problems such as collision retransmission, idle listening, and excessive control information. They are usually difficult to guarantee real-time requirements, and are suitable for some networks that do not require high predictability, and are not suitable for multimedia sensor networks.

无竞争单信道MAC协议主要基于TDMA机制,没有竞争机制中的碰撞重传问题,并且数据传输时不需要过多的控制信息,节点在空闲时槽可以及时进入睡眠而节省能量,通过改进可以应用到多媒体传感器网络。分簇TDMA,DEANA,TRAMA等基于TDMA,但是静态固定分配时隙,难以适应服务区分要求。The contention-free single-channel MAC protocol is mainly based on the TDMA mechanism. There is no collision and retransmission problem in the contention mechanism, and there is no need for too much control information during data transmission. The node can go to sleep in time when the slot is idle to save energy. It can be applied through improvement to multimedia sensor networks. Clustered TDMA, DEANA, TRAMA, etc. are based on TDMA, but statically and fixedly allocate time slots, so it is difficult to meet the requirements of service differentiation.

发明内容 Contents of the invention

技术问题:本发明的目的是提供基于无线多媒体传感器网络区分服务的媒体访问控制方法,用于解决现有无线传感器网络MAC协议业务不均衡传输,可调节性差。本发明针对多媒体传感器网络的不同应用提供区分服务,显著提高多媒体传感器网络的资源利用率和传输效率。Technical problem: The purpose of the present invention is to provide a media access control method based on differentiated services in wireless multimedia sensor networks, which is used to solve the unbalanced transmission of MAC protocol services in existing wireless sensor networks and poor adjustability. The invention provides differentiated services for different applications of the multimedia sensor network, and significantly improves resource utilization and transmission efficiency of the multimedia sensor network.

技术方案:时分复用是实现信道分配的简单成熟的机制,在传感器网络中采用TDMA机制,就是为每个节点分配独立的用于数据发送或接收的时槽,而节点在其他空闲时槽转入睡眠状态。TDMA机制没有竞争机制的碰撞重传问题,但需要节点比较严格的时间同步,多数传感器网络都使用了侦听/睡眠的能量唤醒机制,利用时间同步来实现节点状态的自动转化。TDMA机制在网络扩展性方面存在不足:很难调整时间帧的长度和时槽的分配。Technical solution: Time division multiplexing is a simple and mature mechanism for realizing channel allocation. The TDMA mechanism is adopted in the sensor network, which is to allocate an independent time slot for data transmission or reception for each node, and the nodes switch to other idle time slots. to sleep. The TDMA mechanism does not have the collision retransmission problem of the competition mechanism, but requires strict time synchronization of nodes. Most sensor networks use the energy wake-up mechanism of listening/sleeping, and use time synchronization to realize automatic conversion of node states. The TDMA mechanism has shortcomings in network scalability: it is difficult to adjust the length of the time frame and the allocation of time slots.

本发明针对TDMA的网络扩展性不足,在TDMA的基础上设计了一种动态时隙控制方法,达到多媒体传感器网络可以根据业务类型提供不同的服务。Aiming at the lack of network expansion of TDMA, the present invention designs a dynamic time slot control method on the basis of TDMA, so that the multimedia sensor network can provide different services according to business types.

方法流程:Method flow:

基于无线多媒体传感器网络的区分服务的MAC协议设计流程所包含的步骤如下:The steps included in the MAC protocol design process of differentiated service based on wireless multimedia sensor network are as follows:

1.一种基于无线多媒体传感器网络区分服务的媒体访问控制方法,其特征在于该方法包括以下步骤:1. a kind of medium access control method based on wireless multimedia sensor network differentiated service, it is characterized in that the method comprises the following steps:

步骤1)定义服务优先级:根据当前应用的音频,视频,文本信息的服务质量的要求,将数据延迟,数据丢包率设定相应的服务等级,即服务优先级;Step 1) Define the service priority: according to the requirements of the service quality of the audio, video and text information of the current application, the data is delayed and the data packet loss rate is set to the corresponding service level, that is, the service priority;

步骤2)定义帧结构:时分复用给每个节点分配固定的时隙用来收发数据,在此基础上设计一种帧结构,此帧结构包含3个子帧:State(状态)子帧,Allocate(分配)子帧,Action(行为)子帧;Step 2) Define the frame structure: time division multiplexing assigns fixed time slots to each node for sending and receiving data, and on this basis, a frame structure is designed, which includes 3 subframes: State (state) subframe, Allocate (allocation) subframe, Action (behavior) subframe;

步骤3)设计State子帧:依次包含SNodeID(源节点号),SendFlag(发送数据标志位),DataSize(数据分组大小),PRI(数据优先级标志),此优先级根据步骤1)设计的服务优先级获取,时隙占用标志TimeUsed(时隙占用标志);Step 3) Design State subframe: include SNodeID (source node number), SendFlag (send data flag bit), DataSize (data packet size), PRI (data priority flag) successively, and this priority is based on the service designed in step 1) Priority acquisition, time slot occupancy flag TimeUsed (time slot occupancy flag);

步骤4)设计Allocate子帧:依次包含SNodeID(源节点号),DNodeID(目标节点号),DataNum(数据分组编号);Step 4) design Allocate subframe: comprise SNodeID (source node number), DNodeID (target node number), DataNum (data grouping number) successively;

步骤5)设计Action子帧:包含发送数据Data(发送的数据);Step 5) Designing the Action subframe: including sending data Data (sent data);

步骤6)时隙初始化:假设在此无线多媒体传感器网络中有N个节点,将步骤2)中提及的3类子帧各划成为N个子时隙,即有3*N个子时隙;宏观上按照State->Allocate->Action的顺序排列,微观上各子帧按各节点时隙顺序排列,子时隙i即为节点i的主时隙;Step 6) time slot initialization: assuming that there are N nodes in this wireless multimedia sensor network, the three types of subframes mentioned in step 2) are each divided into N sub-slots, that is, there are 3*N sub-slots; Arranged in the order of State->Allocate->Action, microscopically, each subframe is arranged in the order of each node time slot, and sub-slot i is the main time slot of node i;

步骤7)State帧初始化:完成State子帧当前节点状态确认行为,若此节点有发送数据要求,填充源节点号,发送数据标志位,数据分组大小,数据优先级标志;若无数据发送要求,填充发送数据标志位,数据分组大小,数据优先级标志为0,在此期间其他节点处于休眠状态,根据时间的处理依次自动唤醒重复执行步骤7);Step 7) State frame initialization: complete the current node state confirmation behavior of the State subframe, if this node has a request to send data, fill in the source node number, send data flag, data packet size, data priority flag; if there is no data transmission request, Fill in the sending data flag, the data packet size, and the data priority flag are 0, during which other nodes are in a dormant state, and automatically wake up in sequence according to the time processing and repeat step 7);

步骤8)完成动态时隙分配过程:根据步骤7最终得到State子帧,设一个Action时隙能发送K个数据分组;首先定位SendFlag=1且PRI最高的节点,查看其数据分组大小,若小于K,则确认此时隙被占用,设置TimeUsed=1;若大于K,则表示此子时隙一次性不够发送完整个数据分组,需要占用其他时隙来进行发送,首先在其他节点的State子帧中查询SendFlag=0且TimeUsed=0的节点,若存在,则占用此时隙发送剩余数据,并将此时隙的SNodeID设置为当前节点的SNodeID且TimeUsed设置为1表示已经占用;若不存在,查询PRI最小,DataSize最小且TimeUsed=0的节点,占用此节点的时隙,并设置TimeUsed=1,并将SNodeID设置为当前节点的SNodeID;若剩余数据大小仍然超过K,则循环执行此步骤,直到所有数据都被分配到低优先级的时隙中;当时隙占用完成后,必然会有一部分优先级低的数据不能发送,仍然保存在数据发送缓冲区中,为了避免此类数据发生死锁,永远不能被发送,在下一次State状态时将优先级自提升一级以提高竞争能力;Step 8) complete the dynamic time slot allocation process: finally obtain the State subframe according to step 7, set an Action time slot to send K data packets; first locate the node with the highest SendFlag=1 and PRI, check its data packet size, if less than K, then confirm that this slot is occupied, and set TimeUsed=1; if it is greater than K, it means that this sub-slot is not enough to send the entire data packet at one time, and other time slots need to be occupied for sending. Query the node with SendFlag=0 and TimeUsed=0 in the frame, if it exists, use this slot to send the remaining data, and set the SNodeID of this slot to the SNodeID of the current node and TimeUsed to 1 to indicate that it is already occupied; if it does not exist , query the node with the smallest PRI, the smallest DataSize and TimeUsed=0, occupy the time slot of this node, set TimeUsed=1, and set SNodeID to the SNodeID of the current node; if the remaining data size still exceeds K, execute this step in a loop , until all the data is assigned to the low priority time slot; when the slot occupancy is completed, there must be some data with low priority that cannot be sent, and will still be stored in the data sending buffer. In order to avoid such data from dying Locks can never be sent, and the priority will be raised by one level in the next State state to improve competitiveness;

步骤9)Allocate阶段:所有的时隙分配信息在State帧中都有所体现;Allocate阶段即根据State帧中的信息填充Allocate帧结构,按照节点顺序依次访问,State帧中SendFlag=0的节点被访问到时仍然处于休眠状态;若当前节点号和State子帧中的SNodeID相同,假设State子帧中SNodeID的数量为n,将待发送数据包分成n份,按照节点访问顺序依次填充到Allocate子帧中对应的时隙,具体填充源节点号SNodeID,目标节点号DNodeID,数据发送编号DataNum,按照如上操作依次访问每个节点从而完成Allocate子帧分配;Step 9) Allocate phase: all time slot allocation information is reflected in the State frame; the Allocate phase fills the Allocate frame structure according to the information in the State frame, and visits sequentially according to the order of nodes, and the node of SendFlag=0 in the State frame is It is still in a dormant state when accessing; if the current node number is the same as the SNodeID in the State subframe, assuming that the number of SNodeIDs in the State subframe is n, divide the data packet to be sent into n parts, and fill them in the Allocate subframe according to the order of node access In the corresponding time slot in the frame, specifically fill in the source node number SNodeID, the destination node number DNodeID, and the data transmission number DataNum, and visit each node in turn according to the above operation to complete the allocation of the Allocate subframe;

步骤10)Action阶段:依次访问每个当节点,当此节点对应State子帧中SendFlag=0时候,根据设计的休眠时间计算从而在这段时间中休眠;反之,根据Allocate对应帧的SNodeID,DNodeID和DataNum填充数据包项,同时根据DNodeID唤醒目标节点接收数据;Step 10) Action stage: visit each current node in turn, when this node corresponds to SendFlag=0 in the State subframe, calculate according to the sleep time designed so as to sleep in this period of time; otherwise, according to the SNodeID and DNodeID of the Allocate corresponding frame Fill data packet items with DataNum, and wake up the target node to receive data according to DNodeID;

按照如上操作访问每个节点从而完成所有节点的数据发送和数据接收。Follow the above operations to visit each node to complete the data sending and data receiving of all nodes.

有益效果:本发明方法提出了基于无线多媒体传感器网络的区分服务的MAC协议,采用根据服务等级来设定动态时隙分配方案,从而达到基于TDMA的区分服务MAC协议,具有以下的有益效果。Beneficial effects: the method of the present invention proposes a MAC protocol based on differentiated services in wireless multimedia sensor networks, and adopts a dynamic time slot allocation scheme according to service levels to achieve a differentiated services MAC protocol based on TDMA, which has the following beneficial effects.

(1)将单个时隙细分多个时隙,划分出一些细微的控制时隙来完成时隙分配的前期准备和动态时隙分配过程,增加了时隙分配的灵活度,方便自定义服务等级适应区分服务的应用,并保证了服务质量。(1) A single time slot is subdivided into multiple time slots, and some fine control time slots are divided to complete the preliminary preparation and dynamic time slot allocation process of time slot allocation, which increases the flexibility of time slot allocation and facilitates custom services The grades are adapted to differentiated service applications and guarantee the quality of service.

(2)时隙的细分,增加了不活跃节点的休眠时间,减少了节点资源的浪费,延长了无线多媒体传感器的生命周期。(2) The subdivision of time slots increases the sleep time of inactive nodes, reduces the waste of node resources, and prolongs the life cycle of wireless multimedia sensors.

(3)动态服务优先级的设定,有效保证了所有传感数据可以安全发送出去,不会产生发送死锁。(3) The setting of dynamic service priority effectively ensures that all sensory data can be sent out safely without sending deadlock.

附图说明 Description of drawings

图1MAC层宏观帧结构图。Figure 1 MAC layer macro frame structure diagram.

图2MAC层微观帧结构图。Figure 2 MAC layer micro frame structure diagram.

图3基于无线多媒体传感器网络的区分服务的MAC协议设计流程图。Fig. 3 is based on the MAC protocol design flowchart of the differentiated service of the wireless multimedia sensor network.

具体实施方式 Detailed ways

基于无线多媒体传感器网络的区分服务的MAC协议具体过程如下:The specific process of the MAC protocol based on the differentiated services of the wireless multimedia sensor network is as follows:

步骤1)定义服务优先级。Step 1) Define service priority.

根据当前应用(音频,视频,文本信息等)服务质量的要求,如数据延迟,数据丢包率等设定相应的服务等级,即服务优先级。按照多媒体传感器网络的一般应用,避免音视频信息的高延迟,影响接收效果,在这里我们将视频数据定义为最高优先级3,音频数据的优先级定义为2,文本信息定义为1。当然这些设定可以根据不同的应用做相应的修改。According to the current application (audio, video, text information, etc.) service quality requirements, such as data delay, data packet loss rate, etc., set the corresponding service level, that is, the service priority. According to the general application of multimedia sensor networks, to avoid the high delay of audio and video information and affect the reception effect, here we define the video data as the highest priority 3, the audio data as 2, and the text information as 1. Of course, these settings can be modified according to different applications.

步骤2)定义帧结构。Step 2) Define the frame structure.

时分复用给每个节点分配固定的时隙用来收发数据,在此基础上设计一种帧结构,此帧结构包含3个子帧:State子帧,Allocate子帧,Action子帧。Time-division multiplexing assigns each node a fixed time slot for sending and receiving data. On this basis, a frame structure is designed. This frame structure includes 3 subframes: State subframe, Allocate subframe, and Action subframe.

a)设计State子帧:State子帧主要记录各节点的是否需要发送数据及其发送数据时候所需要的一些具体的信息。依次包含源节点号SNodeID,发送数据标志位SendFlag,数据分组大小DataSize,数据优先级标志PRI,时隙占用标志TimeUsed。a) Design the State subframe: the State subframe mainly records whether each node needs to send data and some specific information required when sending data. It includes the source node number SNodeID, the sending data flag SendFlag, the data packet size DataSize, the data priority flag PRI, and the time slot occupancy flag TimeUsed.

帧结构详细信息:Frame structure details:

SendFlag:=1表示有数据要发送;SendFlag: = 1 indicates that there is data to be sent;

          =0表示无数据发送。= 0 means no data is sent.

PRI:根据步骤1设计的服务优先级获取。PRI: Acquired according to the service priority designed in step 1.

TimeUsed:=1表示此时隙已经被占用;TimeUsed: = 1 indicates that this slot has been occupied;

          =0表示此时隙尚没有被占用。= 0 means that the slot is not occupied yet.

b)设计Allocate子帧:Allocate子帧主要根据State子帧记录的各时隙的信息,按照设计的时隙分配算法确定各时隙的占用情况。依次包含源节点号SNodeID,目标节点号DNodeID,数据分组编号DataNum。b) Design the Allocate subframe: the Allocate subframe mainly determines the occupancy of each time slot according to the designed time slot allocation algorithm based on the information of each time slot recorded in the State subframe. Contains the source node number SNodeID, the target node number DNodeID, and the data packet number DataNum in turn.

c)设计Action子帧:Action子帧包含发送数据Datac) Design Action subframe: Action subframe contains sending data Data

步骤3)时隙初始化。Step 3) Timeslot initialization.

假设在此无线多媒体传感器网络中有N个节点,将步骤2中提及的3类子帧各划成为N个子时隙,即有3*N个子时隙。宏观上按照State->Allocate->Action的顺序排列,微观上各子帧按各节点编号顺序排列,子时隙i即为节点i的主时隙。Assuming that there are N nodes in the wireless multimedia sensor network, each of the three types of subframes mentioned in step 2 is divided into N subslots, that is, there are 3*N subslots. Macroscopically, it is arranged in the order of State->Allocate->Action, and microscopically, each subframe is arranged in the order of each node number, and sub-slot i is the main time slot of node i.

步骤4)State帧初始化Step 4) State frame initialization

完成State子帧当前节点状态确认行为,按照节点编号顺序依次访问单个节点,此节点按照时分复用自动唤醒,其他节点保持休眠状态。监测唤醒节点有无发送数据要求,填充State帧结构。Complete the state confirmation behavior of the current node in the State subframe, visit a single node in sequence according to the node number, this node will automatically wake up according to time division multiplexing, and other nodes will remain in a dormant state. Monitor whether the wake-up node has a request to send data, and fill in the State frame structure.

有数据发送请求:SendFlag=1;There is a data sending request: SendFlag=1;

DataSize根据实际数据分组大小填充;DataSize is filled according to the actual data packet size;

PRI根据当前发送的数据类型填充;PRI is filled according to the currently sent data type;

TimeUsed=0。TimeUsed = 0.

无数据发送请求:SendFlag=0;No data sending request: SendFlag=0;

DataSize=0;DataSize=0;

PRI=0;PRI = 0;

TimeUsed=0。TimeUsed = 0.

监测完毕此唤醒节点进入休眠状态,继续按序自动唤醒并按此过程处理其他节点,直至所有节点均完成State帧状态确认。After monitoring, the awakened node enters the dormant state, continues to wake up automatically in sequence and processes other nodes according to this process, until all nodes complete the State frame status confirmation.

步骤5)完成动态时隙分配过程Step 5) Complete the dynamic slot allocation process

根据步骤4最终得到State子帧,设一个Action时隙能发送K个数据分组。首先定位SendFlag=1且PRI最高的节点,查看其数据分组大小,若小于K,则确认此时隙被占用,设置TimeUsed=1;若大于K,则表示此子时隙一次性不够发送完整个数据分组,需要占用其他时隙来进行发送,首先在其他节点的State子帧中查询SendFlag=0且TimeUsed=0的节点,若存在,则占用此时隙发送剩余数据,并将此时隙的SNodeID设置为当前节点的SNodeID且TimeUsed设置为1表示已经占用;若不存在,查询PRI最小,DataSize最小且TimeUsed=0的节点,占用此节点的时隙,并设置TimeUsed=1,并将SNodeID设置为当前节点的SNodeID。若剩余数据大小仍然超过K,则循环执行此步骤,直到所有数据都被分配到低优先级的时隙中。当时隙占用完成后,必然会有一部分优先级低的数据不能发送,仍然保存在数据发送缓冲区中,为了避免此类数据发生死锁,永远不能被发送,在下一次State状态时将优先级自提升一级以提高竞争能力。The State subframe is finally obtained according to step 4, and K data packets can be sent in one Action time slot. First locate the node with SendFlag=1 and the highest PRI, check the size of its data packet, if it is less than K, then confirm that this slot is occupied, and set TimeUsed=1; if it is greater than K, it means that this sub-slot is not enough to send a complete packet at one time Data packets need to occupy other time slots for sending. Firstly, query the node with SendFlag=0 and TimeUsed=0 in the State subframe of other nodes. SNodeID is set to the SNodeID of the current node and TimeUsed is set to 1, indicating that it is already occupied; if it does not exist, query the node with the smallest PRI, the smallest DataSize and TimeUsed=0, occupy the time slot of this node, set TimeUsed=1, and set SNodeID It is the SNodeID of the current node. If the size of the remaining data still exceeds K, execute this step in a loop until all data are allocated to low-priority time slots. When the slot occupation is completed, there will inevitably be some data with low priority that cannot be sent and will still be stored in the data sending buffer. In order to avoid deadlock of this kind of data, it will never be sent. In the next State state, the priority will be set automatically Move up a level to increase your competitiveness.

步骤6)Allocate阶段Step 6) Allocate stage

完成时隙动态分配过程,所有的时隙分配信息在State帧中都有所体现。Allocate阶段即根据State帧中的信息填充Allocate帧结构。按照节点顺序依次访问,State帧中SendFlag=0的节点被访问到时仍然处于休眠状态。若当前节点号和State子帧中的SNodeID相同,假设State子帧中SNodeID的数量为n,将待发送数据包分成n份,按照节点访问顺序依次填充到Allocate子帧中对应的时隙,具体填充源节点号SNodeID,目标节点号DNodeID,数据发送编号DataNum。按照如上操作依次访问每个节点从而完成Allocate子帧分配。After completing the dynamic slot allocation process, all slot allocation information is reflected in the State frame. In the Allocate stage, the Allocate frame structure is filled according to the information in the State frame. The nodes are visited sequentially, and the nodes with SendFlag=0 in the State frame are still in the dormant state when they are visited. If the current node number is the same as the SNodeID in the State subframe, assuming that the number of SNodeIDs in the State subframe is n, divide the data packet to be sent into n parts, and fill them in the corresponding time slots in the Allocate subframe according to the order of node access. Fill in the source node ID SNodeID, destination node ID DNodeID, and data sending ID DataNum. Follow the above operations to visit each node in turn to complete the Allocate subframe allocation.

步骤7)Action阶段Step 7) Action stage

此阶段为数据发送阶段,依次访问每个当节点,当此节点对应State子帧中SendFlag=0时候,根据设计的休眠时间计算从而在这段时间中休眠。反之,根据Allocate对应帧的SNodeID,DNodeID和DataNum填充数据包项,同时根据DNodeID唤醒目标节点接收数据。按照如上操作访问每个节点从而完成所有节点的数据发送和数据接收。This stage is the data sending stage, and each current node is visited in turn. When SendFlag=0 in the corresponding State subframe of this node, it is calculated according to the designed sleep time to sleep during this time. On the contrary, according to the SNodeID, DNodeID and DataNum of the frame corresponding to Allocate, the data packet item is filled, and at the same time, the target node is awakened to receive data according to the DNodeID. Follow the above operations to visit each node to complete the data sending and data receiving of all nodes.

Claims (1)

1. media access control (MAC) method applicable based on the wireless multimedia sensor network Differentiated Services is characterized in that this method may further comprise the steps:
Step 1) definition service priority: according to the audio frequency of current application, video, the requirement of the service quality of text message, with data delay, the data packet loss is set the corresponding grade of service, i.e. service priority;
Step 2) definition frame structure: time division multiplexing distributes fixing time slot to be used for transceive data for each node, designs a kind of frame structure on this basis, and this frame structure comprises 3 subframes: the state subframe, distribute subframe, the behavior subframe;
Step 3) design point subframe: comprise source node SNodeID successively, send Data Labels position SendFlag, data packet size DataSize, data priority mark P RI, this priority is obtained Time Slot Occupancy sign TimeUsed according to the service priority of step 1) design;
The step 4) design distributes subframe: comprise source node SNodeID successively, destination node DNodeID, packet numbering DataNum;
Step 5) design behavior subframe: comprise transmission data Data;
The initialization of step 6) time slot: supposing has N node in this wireless multimedia sensor network, with step 2) in the 3 class subframes mentioned respectively be divided into and be N sub-slots, 3*N sub-slots promptly arranged; On the macroscopic view according to state State-distribute Allocate-the sequence arrangement of behavior Action, each subframe is arranged by each node time-slot sequence on the microcosmic, sub-slots i is the main time slot of node i;
The initialization of step 7) state subframe: the behavior of completion status subframe present node state confirmation, if this node has the transmission data demand, fill source node number, send the Data Labels position, data packet size, data priority sign; If free of data sends requirement, fill and send the Data Labels position, data packet size, data priority is masked as 0, other nodes are in resting state during this period, wake repeated execution of steps 7 successively automatically up according to the processing of time);
Step 8) is finished the dynamic slot assigning process: finally obtain the state subframe according to step 7, establish an Action time slot and can send K data grouping; At first locate SendFlag=1 and the highest node of PRI, check its data packet size,, confirm that then this time slot is occupied, TimeUsed=1 is set if less than K; If greater than K, representing then that this sub-slots is disposable sends whole packet inadequately, need take other time slots sends, at first in the State of other nodes subframe, inquire about the node of SendFlag=0 and TimeUsed=0, if exist, then take this time slot and send remaining data, and the SNodeID of this time slot is set to the SNodeID of present node and TimeUsed and is set to 1 expression and takies; If do not exist, inquiry PRI minimum, the node of DataSize minimum and TimeUsed=0 takies the time slot of this node, and TimeUsed=1 is set, and SNodeID is set to the SNodeID of present node; If the remaining data size still surpasses K, then this step is carried out in circulation, all is assigned in the time slot of low priority up to all data; When time slot take finish after, will inevitably the low data of some priority can not send, still be kept at data and send in the buffering area, for fear of this type of data generation deadlock, can not be sent out forever, when State state next time with priority from promoting one-level to improve the competitiveness;
The step 9) allocated phase: all time slot allocation information all embody in the State frame to some extent; The Allocate stage is promptly filled the Allocate subframe structure according to the information in the State subframe, visits successively according to node sequence, still is in resting state when the node of SendFlag=0 is accessed in the State subframe; If present node number is identical with SNodeID in the State subframe, the quantity of supposing SNodeID in the State subframe is n, packet to be sent is divided into n part, be filled into time slot corresponding in the Allocate subframe successively according to the node visit order, the concrete source node SNodeID that fills, destination node DNodeID, data send numbering DataNum, finish the Allocate sub-frame allocation thereby visit each node successively according to as above operation;
Step 10) behavioral phase: visit each successively and work as node,, thereby calculate dormancy in during this period of time according to the dormancy time of design when in this node corresponding states subframe SendFlag=0 the time; Otherwise according to the SNodeID of the corresponding frame of Allocate, DNodeID and DataNum padding data bag item receive data according to DNodeID wake up target node simultaneously;
Thereby the data of finishing all nodes according to as above each node of operational access send and Data Receiving.
CN2009100249757A 2009-02-27 2009-02-27 Media access control method based on differentiate service of wireless multimedia sensor network Expired - Fee Related CN101489304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100249757A CN101489304B (en) 2009-02-27 2009-02-27 Media access control method based on differentiate service of wireless multimedia sensor network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100249757A CN101489304B (en) 2009-02-27 2009-02-27 Media access control method based on differentiate service of wireless multimedia sensor network

Publications (2)

Publication Number Publication Date
CN101489304A true CN101489304A (en) 2009-07-22
CN101489304B CN101489304B (en) 2010-12-29

Family

ID=40891923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100249757A Expired - Fee Related CN101489304B (en) 2009-02-27 2009-02-27 Media access control method based on differentiate service of wireless multimedia sensor network

Country Status (1)

Country Link
CN (1) CN101489304B (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827417A (en) * 2010-04-23 2010-09-08 南京邮电大学 Routing method based on differentiated services of internet of things
CN101945430A (en) * 2010-08-26 2011-01-12 湘潭大学 Time sensitive transmission and bandwidth optimization utilization-based method used under IEEE802.15.4 network environment
CN102118832A (en) * 2011-01-27 2011-07-06 广州海格通信集团股份有限公司 Dynamic time slot allocation access method for networking of frequency-hopping radio station
CN102123439A (en) * 2011-02-24 2011-07-13 山东大学 Media access control (MAC) protocol of traffic adaptive wireless sensor network
CN102196598A (en) * 2011-05-30 2011-09-21 北京理工大学 Self-adaptive hybrid MAC (Media Access Control) protocol of wireless sensor network
CN102196578A (en) * 2011-05-30 2011-09-21 北京理工大学 Cross timeslot allocation method for wireless sensor network
CN102238651A (en) * 2011-07-01 2011-11-09 中国电力科学研究院 Quality-of-service-based secure communication method for wireless sensor network
CN102905287A (en) * 2012-02-14 2013-01-30 展讯通信(上海)有限公司 Communication terminal, and measuring method and device of same
CN103457990A (en) * 2013-05-28 2013-12-18 大连理工大学 Wireless data collecting method based on dynamic time slot allocation
CN103974440A (en) * 2013-01-29 2014-08-06 电信科学技术研究院 Processing method and device for time slot resources in Internet of vehicles
CN104009829A (en) * 2014-06-11 2014-08-27 沈阳中科博微自动化技术有限公司 Wireless network retransmission algorithm of intelligent meter reading system
CN104703207A (en) * 2015-02-25 2015-06-10 济南大学 Intelligent sensing equipment-based traversal search method
CN104780563A (en) * 2014-01-14 2015-07-15 广州航天海特系统工程有限公司 Congestion control method for sensor network
CN106060955A (en) * 2016-05-17 2016-10-26 杨志军 Method and system for controlling wireless sensor network MAC protocol polling based on three types of services
CN106569886A (en) * 2016-10-26 2017-04-19 曙光信息产业(北京)有限公司 Strategy scheduling method and strategy scheduling system
CN107347201A (en) * 2017-07-07 2017-11-14 云南大学 A kind of wireless sensor network polling system control method based on priority
CN108243485A (en) * 2016-12-26 2018-07-03 北京邮电大学 A time division multiple access channel access method and device in a wireless sensor network
CN108495182A (en) * 2018-03-23 2018-09-04 山西大学 A kind of audio quality self-adjusting control method
CN108810842A (en) * 2018-05-23 2018-11-13 华南理工大学 A kind of wireless sensor network node and the MAC protocol method for the node
CN109413699A (en) * 2010-12-29 2019-03-01 通用电气公司 The system and method for dynamic data management in wireless network
CN109818704A (en) * 2017-11-21 2019-05-28 华为技术有限公司 Data transmission method and device
US10568108B2 (en) 2015-07-10 2020-02-18 Huawei Technologies Co., Ltd. Channel access period allocation method, apparatus, and system
CN115037965A (en) * 2022-06-10 2022-09-09 苏州华兴源创科技股份有限公司 Multi-channel data transmission method and device based on occupation coordination mechanism

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014179952A1 (en) * 2013-05-08 2014-11-13 华为终端有限公司 Method, device and system for querying for information

Cited By (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827417A (en) * 2010-04-23 2010-09-08 南京邮电大学 Routing method based on differentiated services of internet of things
CN101827417B (en) * 2010-04-23 2012-06-27 南京邮电大学 Routing method based on differentiated services of internet of things
CN101945430B (en) * 2010-08-26 2013-04-17 湘潭大学 Time sensitive transmission and bandwidth optimization utilization-based method used under IEEE802.15.4 network environment
CN101945430A (en) * 2010-08-26 2011-01-12 湘潭大学 Time sensitive transmission and bandwidth optimization utilization-based method used under IEEE802.15.4 network environment
CN109413699B (en) * 2010-12-29 2023-09-29 通用电气公司 System and method for dynamic data management in a wireless network
CN109413699A (en) * 2010-12-29 2019-03-01 通用电气公司 The system and method for dynamic data management in wireless network
CN102118832A (en) * 2011-01-27 2011-07-06 广州海格通信集团股份有限公司 Dynamic time slot allocation access method for networking of frequency-hopping radio station
CN102118832B (en) * 2011-01-27 2013-09-18 广州海格通信集团股份有限公司 Dynamic time slot allocation access method for networking of frequency-hopping radio station
CN102123439A (en) * 2011-02-24 2011-07-13 山东大学 Media access control (MAC) protocol of traffic adaptive wireless sensor network
CN102196598A (en) * 2011-05-30 2011-09-21 北京理工大学 Self-adaptive hybrid MAC (Media Access Control) protocol of wireless sensor network
CN102196598B (en) * 2011-05-30 2013-11-27 北京理工大学 An Adaptive Hybrid MAC Protocol for Wireless Sensor Networks
CN102196578B (en) * 2011-05-30 2014-02-19 北京理工大学 A Cross-Slot Allocation Method for Wireless Sensor Networks
CN102196578A (en) * 2011-05-30 2011-09-21 北京理工大学 Cross timeslot allocation method for wireless sensor network
CN102238651A (en) * 2011-07-01 2011-11-09 中国电力科学研究院 Quality-of-service-based secure communication method for wireless sensor network
CN102238651B (en) * 2011-07-01 2016-09-28 中国电力科学研究院 Quality-of-service based safety communicating method in a kind of wireless sensor network
CN102905287A (en) * 2012-02-14 2013-01-30 展讯通信(上海)有限公司 Communication terminal, and measuring method and device of same
US9014044B2 (en) 2012-02-14 2015-04-21 Spreadtrum Communications (Shanghai) Co., Ltd. Communications terminal and method and apparatus for testing
CN103974440A (en) * 2013-01-29 2014-08-06 电信科学技术研究院 Processing method and device for time slot resources in Internet of vehicles
CN103974440B (en) * 2013-01-29 2017-10-20 电信科学技术研究院 The processing method and processing device of time interval resource in a kind of car networking
CN103457990A (en) * 2013-05-28 2013-12-18 大连理工大学 Wireless data collecting method based on dynamic time slot allocation
CN104780563A (en) * 2014-01-14 2015-07-15 广州航天海特系统工程有限公司 Congestion control method for sensor network
CN104009829A (en) * 2014-06-11 2014-08-27 沈阳中科博微自动化技术有限公司 Wireless network retransmission algorithm of intelligent meter reading system
CN104703207A (en) * 2015-02-25 2015-06-10 济南大学 Intelligent sensing equipment-based traversal search method
CN104703207B (en) * 2015-02-25 2017-09-22 济南大学 A kind of traversal search method based on intelligent sensing equipment
US10568108B2 (en) 2015-07-10 2020-02-18 Huawei Technologies Co., Ltd. Channel access period allocation method, apparatus, and system
CN106060955A (en) * 2016-05-17 2016-10-26 杨志军 Method and system for controlling wireless sensor network MAC protocol polling based on three types of services
CN106060955B (en) * 2016-05-17 2019-12-13 杨志军 wireless sensor network MAC protocol polling control method based on three types of services
CN106569886A (en) * 2016-10-26 2017-04-19 曙光信息产业(北京)有限公司 Strategy scheduling method and strategy scheduling system
CN106569886B (en) * 2016-10-26 2020-10-16 曙光信息产业(北京)有限公司 Policy scheduling method and policy scheduling system
CN108243485B (en) * 2016-12-26 2020-08-04 北京邮电大学 Time division multiple access channel access method and device in wireless sensor network
CN108243485A (en) * 2016-12-26 2018-07-03 北京邮电大学 A time division multiple access channel access method and device in a wireless sensor network
CN107347201B (en) * 2017-07-07 2021-11-05 杨志军 Wireless sensor network polling system control method based on priority
CN107347201A (en) * 2017-07-07 2017-11-14 云南大学 A kind of wireless sensor network polling system control method based on priority
CN109818704A (en) * 2017-11-21 2019-05-28 华为技术有限公司 Data transmission method and device
US11412508B2 (en) 2017-11-21 2022-08-09 Huawei Technologies Co., Ltd. Data transmission method and device
CN108495182A (en) * 2018-03-23 2018-09-04 山西大学 A kind of audio quality self-adjusting control method
CN108810842B (en) * 2018-05-23 2021-01-19 华南理工大学 Wireless sensor network node and MAC protocol method for node
CN108810842A (en) * 2018-05-23 2018-11-13 华南理工大学 A kind of wireless sensor network node and the MAC protocol method for the node
CN115037965A (en) * 2022-06-10 2022-09-09 苏州华兴源创科技股份有限公司 Multi-channel data transmission method and device based on occupation coordination mechanism
CN115037965B (en) * 2022-06-10 2024-01-19 苏州华兴源创科技股份有限公司 Multichannel data transmission method and device based on occupation coordination mechanism

Also Published As

Publication number Publication date
CN101489304B (en) 2010-12-29

Similar Documents

Publication Publication Date Title
CN101489304B (en) Media access control method based on differentiate service of wireless multimedia sensor network
CN107347201B (en) Wireless sensor network polling system control method based on priority
CN102946631B (en) A kind of based on beacon frame synchronously with the MAC node layer dispatching method of communicating by letter asynchronous
CN100547978C (en) A kind of energy-saving method of medium access control layer of wireless mesh network
CN102695265B (en) Hybrid mechanism media access control (MAC) protocol communication method based on wireless sensor network
CN102026099B (en) Self-adaptive low-delay media access control method in WBAN (wireless body area network)
CN103874172B (en) Data transmission method and system in wireless body area network
CN100550808C (en) Utilize the method for extended superframe transmission data in a kind of short-distance radio territory net
Pandit et al. An energy-efficient multiconstrained QoS aware MAC protocol for body sensor networks
Verma et al. Survey of MAC protocol for wireless sensor networks
CN101741713B (en) Dynamic distribution method for radio local area network uplink bandwidth
CN105163394B (en) The implementation method of service-aware SQ-MAC agreements for wireless sensor network
CN102006670A (en) Dynamic polling medium access control method of emergency response supported sensor network
CN104640159B (en) Semi-static scheduling method
CN102123439A (en) Media access control (MAC) protocol of traffic adaptive wireless sensor network
CN105208671B (en) The implementation method of high channel utilization rate H-MAC agreements for wireless sensor network
US9436271B2 (en) System and method for providing power-save operation in an in-home communication network
Rao et al. A survey and comparison of GTS allocation and scheduling algorithms in IEEE 802.15. 4 wireless sensor networks
Xia et al. Heterogeneous slot scheduling for real-time industrial wireless sensor networks
Ambigavathi et al. A review of channel access techniques in wireless body area network
Xia et al. Ada-MAC: An adaptive MAC protocol for real-time and reliable health monitoring
Kang et al. An energy-efficient real-time scheduling scheme on dual-channel networks
Zhou et al. A low-latency GTS strategy in IEEE802. 15.4 for industrial applications
CN104796994A (en) Resource scheduling method for wireless communication system
CN105704842A (en) Event-driven wireless sensor network real-time 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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20090722

Assignee: Jiangsu Nanyou IOT Technology Park Ltd.

Assignor: Nanjing Post & Telecommunication Univ.

Contract record no.: 2016320000217

Denomination of invention: Media access control method based on differentiate service of wireless multimedia sensor network

Granted publication date: 20101229

License type: Common License

Record date: 20161118

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
EC01 Cancellation of recordation of patent licensing contract

Assignee: Jiangsu Nanyou IOT Technology Park Ltd.

Assignor: Nanjing Post & Telecommunication Univ.

Contract record no.: 2016320000217

Date of cancellation: 20180116

EC01 Cancellation of recordation of patent licensing contract
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101229

Termination date: 20180227

CF01 Termination of patent right due to non-payment of annual fee