[go: up one dir, main page]

CN105101448A - A method of data transmission - Google Patents

A method of data transmission Download PDF

Info

Publication number
CN105101448A
CN105101448A CN201410185286.5A CN201410185286A CN105101448A CN 105101448 A CN105101448 A CN 105101448A CN 201410185286 A CN201410185286 A CN 201410185286A CN 105101448 A CN105101448 A CN 105101448A
Authority
CN
China
Prior art keywords
data
group
max
priority
business
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
CN201410185286.5A
Other languages
Chinese (zh)
Other versions
CN105101448B (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.)
Putian Information Technology Co Ltd
Original Assignee
Putian Information Technology Co Ltd
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 Putian Information Technology Co Ltd filed Critical Putian Information Technology Co Ltd
Priority to CN201410185286.5A priority Critical patent/CN105101448B/en
Publication of CN105101448A publication Critical patent/CN105101448A/en
Application granted granted Critical
Publication of CN105101448B publication Critical patent/CN105101448B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a data transmission method. In a wireless communication network by adopting a CSMA access mechanism, a convergence transmission mechanism is introduced, and thus if data with the service priority is sent in competitive distribution acquired by low user priority service and idle resources still exist, the idle resources can be used for sending data with a higher user priority. By adopting the method of the invention, the transmission resource utilization rate can be improved, and a net channel estimation energy expenditure of a terminal node can be reduced.

Description

一种数据传输方法A method of data transmission

技术领域technical field

本发明涉及无线通信技术,特别是涉及一种数据传输方法。The invention relates to wireless communication technology, in particular to a data transmission method.

背景技术Background technique

随着我国城市化进程与人口老龄化的加剧,老年病和慢性病越来越普遍,除了给患者和社会带来沉重的经济负担外,还严重影响了患者的生活品质和家庭幸福。无线体域网(WirelessBodyAreaNetwork,WBAN)的出现,为老年病和慢性病的居家健康监测提供了一种简单、低成本的短距离通信手段。基于WBAN技术,通过在人体体表或者体内布置相应的感知设备自动采集人体心电、脑电、肌电、体温、血压、血糖、血氧等生命体征参数,支持实时、方便、全天候的人体生命体征监测。WBAN技术已经成为提升医疗诊断效率、提高医疗服务质量,开展新型远程医疗、居家健康监护重要技术手段。With the intensification of my country's urbanization process and population aging, senile diseases and chronic diseases are becoming more and more common. In addition to bringing heavy economic burdens to patients and society, they also seriously affect the quality of life of patients and family happiness. The emergence of Wireless Body Area Network (WBAN) provides a simple and low-cost means of short-distance communication for home health monitoring of geriatric and chronic diseases. Based on WBAN technology, by arranging corresponding sensing devices on the human body surface or in the body, it automatically collects vital sign parameters such as human ECG, EEG, EMG, body temperature, blood pressure, blood sugar, blood oxygen, etc., to support real-time, convenient, and all-weather human life Sign monitoring. WBAN technology has become an important technical means to improve the efficiency of medical diagnosis, improve the quality of medical services, and carry out new telemedicine and home health monitoring.

面对WBAN技术的重要作用和庞大的市场需求,迫切需要针对WBAN技术开展标准化工作,实现人体体征健康信息规范化管理,推动WBAN技术的大规模应用。作为“人体”传感网,WBAN已经成为国际医疗保健界和通信业界一个战略合作科研攻关方向。IEEE802.15于2007年成立了TG6小组,开展WBAN的标准化研究,并于2012年3发布了世界上首个WBAN标准——IEEE802.15.6,成为目前已经发布的唯一的WBAN国际标准。IEEE802.15.6标准定义了WBAN传输的物理(PHY)层和媒质接入控制(MAC)层协议,基本满足了WBAN的要求。在国内,中国通信标准化协会(CCSA)也于2012年11月通过了研究立项“适用于医疗健康应用的无线体域网通信技术要求”,目标是制定适用于我国医疗健康应用频段、应用需求的WBAN标准。从国内外的研究来看,目前WBAN还有很大的研究空间和价值,未来WBAN标准的实用化和产业化的研究还有大量工作要做。Facing the important role of WBAN technology and the huge market demand, it is urgent to carry out standardization work for WBAN technology, realize the standardized management of human body signs and health information, and promote the large-scale application of WBAN technology. As a "human body" sensor network, WBAN has become a strategic research direction for the international medical care and communication industries. IEEE802.15 established the TG6 group in 2007 to carry out WBAN standardization research, and released the world's first WBAN standard - IEEE802.15.6 in March 2012, becoming the only WBAN international standard that has been released so far. The IEEE802.15.6 standard defines the physical (PHY) layer and medium access control (MAC) layer protocol of WBAN transmission, which basically meets the requirements of WBAN. In China, the China Communications Standards Association (CCSA) also passed the research project "Wireless Body Area Network Communication Technology Requirements for Medical and Health Applications" in November 2012. WBAN standard. Judging from domestic and foreign research, there is still a lot of research space and value for WBAN at present, and there is still a lot of work to be done in the research on the practicality and industrialization of WBAN standards in the future.

一种典型的WBAN网络拓扑结构如图1所示。WBAN具有星型网络拓扑结构,其中有且只有一个中心节点,负责管理多个终端节点的接入,协调无线资源的分配。WBAN中终端节点的数目可以是1个或多个,IEEE802.15.6标准规定一个WBAN中的终端节点数目的最大值是256。中心节点和终端节点之间以1跳(1-Hop)链路直接进行帧传输。A typical WBAN network topology is shown in Figure 1. WBAN has a star network topology, in which there is only one central node, which is responsible for managing the access of multiple terminal nodes and coordinating the allocation of wireless resources. The number of terminal nodes in a WBAN can be one or more, and the IEEE802.15.6 standard stipulates that the maximum number of terminal nodes in a WBAN is 256. Frame transmission is directly performed on a 1-hop (1-Hop) link between the central node and the terminal node.

终端节点通常是穿戴式或植入体内的,设备尺寸小且能量受限,对能耗提出了极高的要求,因此需要进行超低功耗设计。终端节点由各种传感器构成,用于监测各种人体体征参数,WBAN网络中主要是上行数据。IEEE802.15.6采用载波侦听多点接入/冲突避免(CSMA/CA)的随机接入技术获得上行资源,发送上行数据。CSMA/CA的工作原理是:终端节点首先进行净信道评估(ClearChannelAssessment,CCA),检测无线信道是否被占用,只有检测出信道空闲时,才能发送上行数据。Terminal nodes are usually wearable or implanted in the body, and the equipment is small in size and limited in energy, which puts forward extremely high requirements on energy consumption, so ultra-low power consumption design is required. The terminal nodes are composed of various sensors, which are used to monitor various physical parameters, and the WBAN network mainly contains uplink data. IEEE802.15.6 uses carrier sense multipoint access/collision avoidance (CSMA/CA) random access technology to obtain uplink resources and send uplink data. The working principle of CSMA/CA is: the terminal node first performs Clear Channel Assessment (CCA) to detect whether the wireless channel is occupied, and only when it detects that the channel is idle can it send uplink data.

在IEEE802.15.6标准中,无线体域网的终端节点采用基于CSMA/CA的信道接入方式获得上行资源,发送上行数据。如图2所示,一个完整的CSMA/CA过程包括三个阶段。In the IEEE802.15.6 standard, the terminal nodes of the wireless body area network adopt the channel access method based on CSMA/CA to obtain uplink resources and send uplink data. As shown in Figure 2, a complete CSMA/CA process includes three stages.

(1)阶段1:CSMA/CA参数初始化(1) Phase 1: CSMA/CA parameter initialization

CSMA/CA参数包括竞争窗(ContentionWindow,CW)、最小竞争窗CWmin和最大竞争窗CWmax。CWmin和CWmax的取值由业务类型决定,终端节点根据待发送业务的用户优先级(UserPriority,UP)设置CWmin和CWmax,CSMA/CA参数与UP的映射关系如表1所示。CSMA/CA parameters include contention window (ContentionWindow, CW), minimum contention window CWmin and maximum contention window CWmax. The values of CWmin and CWmax are determined by the service type. The terminal node sets CWmin and CWmax according to the user priority (UserPriority, UP) of the service to be sent. The mapping relationship between CSMA/CA parameters and UP is shown in Table 1.

用户优先级user priority CWminwxya CWmaxCWmax NmaxNmax 业务类型business type 11 1616 3232 22 尽力而为do your best 22 88 3232 22 优越服务Excellent service 33 88 1616 22 视频video 44 44 1616 22 话音voice 55 44 88 22 普通医疗数据general medical data 66 22 88 44 高优先级医疗数据High Priority Medical Data 77 11 44 44 紧急医疗事件上报Reporting of medical emergencies

表1Table 1

CW值的初始值除了与业务类型有关外,还与终端节点以前的随机接入及数据发送状况有关。CW值的初始值设置方法如下:The initial value of the CW value is not only related to the service type, but also related to the previous random access and data transmission status of the terminal node. The initial value setting method of CW value is as follows:

如果终端节点以前从未获得过竞争分配,将CW值设置为CWmin[UP]。CWmin[UP]是用户优先级为UP的业务对应的CWmin。Set the CW value to CWmin[UP] if the terminal node has never received a competing allocation before. CWmin[UP] is the CWmin corresponding to the service whose user priority is UP.

如果终端节点在上一次的竞争分配内成功发送了一个MAC帧(即收到了该MAC帧的确认ACK),将CW值设置为CWmin[UP]。If the terminal node successfully sent a MAC frame in the last contention allocation (ie received the acknowledgment ACK of the MAC frame), set the CW value to CWmin[UP].

如果终端节点在上一次的竞争分配内发送的MAC帧失败(即没有收到该MAC帧的ACK),CW的值设置如下:If the MAC frame sent by the terminal node in the last competition allocation fails (that is, the ACK of the MAC frame is not received), the value of CW is set as follows:

如果这是终端节点第m次发送失败,那么维持CW的值不变。其中,m是奇数;If this is the mth transmission failure of the terminal node, then keep the value of CW unchanged. Among them, m is an odd number;

如果这是终端节点第n次发送失败,那么CW的值加倍。其中,n是偶数。If this is the nth failure of the end node to send, then the value of CW is doubled. Wherein, n is an even number.

如果对CW值的加倍操作使得CW的值超过了CWmax[UP],终端节点将CW的值设置为CWmax[UP]。CWmax[UP]是用户优先级为UP的业务对应的CWmax。If the doubling of the CW value causes the value of CW to exceed CWmax[UP], the terminal node sets the value of CW to CWmax[UP]. CWmax[UP] is the CWmax corresponding to the service whose user priority is UP.

(2)阶段2:生成并维护回退计数器。(2) Phase 2: Generate and maintain rollback counters.

a、生成回退计数器a. Generate a rollback counter

终端节点生成一个在[1,CW]范围内服从均匀分布的随机整数,并将这个数的值赋给回退计数器。The terminal node generates a uniformly distributed random integer in the range [1,CW] and assigns the value of this number to the backoff counter.

b、维护回退计数器(锁定、解锁、递减)b. Maintenance rollback counter (lock, unlock, decrement)

锁定回退计数器:当下面任意一个条件满足时,终端节点锁定回退计数器:Lock Backoff Counter: The endpoint locks backoff counter when any of the following conditions are met:

条件1、信道繁忙;Condition 1. The channel is busy;

条件2、当前时刻处于竞争接入期之外;Condition 2. The current moment is outside the competitive access period;

条件3、当前时刻处于竞争接入期之内,但是当前CSMA时隙的结束时刻竞争接入期结束时刻之间的间隔不足以发送一个MAC帧。Condition 3: The current moment is within the contention access period, but the interval between the end times of the current CSMA time slot and the end times of the contention access period is not enough to send a MAC frame.

解锁回退计数器:当前CSMA时隙的结束时刻与竞争接入期结束时刻之间的时间间隔足够发送一个MAC帧,终端节点解锁回退计数器。Unlocking the backoff counter: The time interval between the end of the current CSMA slot and the end of the contention access period is enough to send a MAC frame, and the terminal node unlocks the backoff counter.

回退计数器值递减:若回退计数器处于解锁状态,每经过一个空闲的CSMA时隙,终端节点将回退计数器的值减1。判定信道空闲的准则是:如果CSMA时隙开始后的pCCATime(63/符号速率)时间内信道空闲,终端节点认定该CSMA时隙空闲。Decrementing the value of the backoff counter: If the backoff counter is unlocked, the terminal node will decrement the value of the backoff counter by 1 every time an idle CSMA time slot passes. The criterion for judging that the channel is idle is: if the channel is idle within pCCATime (63/symbol rate) after the start of the CSMA time slot, the terminal node determines that the CSMA time slot is idle.

(3)阶段3:获得竞争分配,发送MAC帧(3) Phase 3: Obtain competitive allocation and send MAC frame

如果在当前CSMA时隙内回退计数器的值减为0,那么终端节点获得了一个竞争分配,该竞争分配起始于当前CSMA时隙的结束时刻,终止于竞争接入期的结束时刻。在竞争分配的起始时刻,终端节点开始发送MAC帧。终端节点在收到一个期望的ACK之后,可以继续发送其他MAC帧(重传或新传),只要该MAC帧的UP值不低于获得本次竞争分配使用的UP值。If the value of the backoff counter is reduced to 0 in the current CSMA slot, then the terminal node has obtained a contention allocation, which starts at the end of the current CSMA slot and ends at the end of the contention access period. At the start of the contention allocation, the terminal node starts sending MAC frames. After receiving an expected ACK, the terminal node can continue to send other MAC frames (retransmission or new transmission), as long as the UP value of the MAC frame is not lower than the UP value used to obtain this competition allocation.

从上述CSMA/CA流程可以看出,UP值与竞争接入的时延成反比:UP值越大,接入信道的时延越小;UP值越小,接入信道的时延越大。IEEE802.15.6标准规定,终端节点在竞争分配内发送的MAC帧的UP值不能低于获得该竞争分配时使用的UP值,即终端节点获得竞争分配后,在该竞争分配内只能发送优先级大于等于UP的MAC帧。设置该规定的目的是为了避免恶意的终端节点长期占用信道资源,影响其他设备的正常数据发送。如果不受该准则的约束,每个终端都会倾向于使用高用户优先级值抢占信道资源,占用信道资源后却用来发送低用户优先级的数据。根据该规定,UP值越小,被发送的机会越少;UP值越大,被发送的机会越大。It can be seen from the above CSMA/CA process that the UP value is inversely proportional to the contention access delay: the larger the UP value, the smaller the channel access delay; the smaller the UP value, the greater the channel access delay. The IEEE802.15.6 standard stipulates that the UP value of the MAC frame sent by the terminal node in the contention allocation cannot be lower than the UP value used when obtaining the contention allocation, that is, after the terminal node obtains the contention allocation, it can only send priority frames in the contention allocation. MAC frames greater than or equal to UP. The purpose of setting this regulation is to prevent malicious terminal nodes from occupying channel resources for a long time and affecting the normal data transmission of other devices. If not constrained by this criterion, each terminal will tend to use a high user priority value to seize channel resources, and use the channel resources to send data with low user priority after occupying the channel resources. According to this regulation, the smaller the UP value, the less chance of being sent; the larger the UP value, the greater the chance of being sent.

由此可见,当缓存中同时存在多种具有不同UP值的业务时,需要采用合理的信道接入策略:一方面,采用较大的UP值能够减少接入信道的时延;另一方面,采用较小的UP值能够减少低优先级数据的排队时延。因此,当终端节点的缓存内存储了多种具有不同用户优先级的数据时,如何通过设置CSMA/CA参数以及采用合理的信道接入方法,提高数据传输的能量效率,减少传输时延,是一个需要深入研究的问题。It can be seen that when there are multiple services with different UP values in the cache, it is necessary to adopt a reasonable channel access strategy: on the one hand, using a larger UP value can reduce the delay in accessing the channel; on the other hand, Using a smaller UP value can reduce the queuing delay of low-priority data. Therefore, when a variety of data with different user priorities are stored in the cache of the terminal node, how to improve the energy efficiency of data transmission and reduce the transmission delay by setting CSMA/CA parameters and adopting a reasonable channel access method is an important issue. A question that needs to be studied in depth.

通过对CSMA/CA的能耗分析研究发现:对于用户优先级固定的业务,一次无论发送多少数据量,都要耗费相同的CCA能量。这样,只有每次传输时传输最大可传输数据的MAC帧时,才可以实现数据传输能量效率的最大化。现有的数据传输方法采用的独立传输机制,即每种业务使用自身的UP值进行竞争接入,在获得的竞争分配内只发送自身对应的业务数据,而在实际应用中,一个用户需要传输的业务数据并不一定是在每次竞争接入内能够发送的最大MAC帧数量Nmax的整数倍,这样,就会造成实际传输的数据量小于可传输的数据量,从而造成传输资源利用率的降低,进而造成系统内竞争接入总数的增加,最终导致系统CCA能量开销的增加。Through the energy consumption analysis of CSMA/CA, it is found that for services with fixed user priority, no matter how much data is sent at a time, the same CCA energy will be consumed. In this way, the energy efficiency of data transmission can be maximized only when the MAC frame with the maximum transmittable data is transmitted in each transmission. The existing data transmission method adopts an independent transmission mechanism, that is, each service uses its own UP value to compete for access, and only sends its corresponding service data within the obtained competition allocation. In practical applications, a user needs to transmit The business data is not necessarily an integer multiple of the maximum number of MAC frames N max that can be sent in each contention access. In this way, the actual amount of transmitted data is less than the amount of data that can be transmitted, resulting in transmission resource utilization. , which in turn leads to an increase in the total number of competing accesses in the system, which ultimately leads to an increase in system CCA energy overhead.

由此可见,对于引入CSMA接入机制的无线通信网络,由于存在每次竞争接入内能够发送的最大MAC帧数量Nmax这一限定,终端节点采用现有的数据传输方法,会存在传输资源利用率的降低,净信道评估的能量开销大的问题。It can be seen that for a wireless communication network that introduces the CSMA access mechanism, due to the limitation of the maximum number of MAC frames N max that can be sent in each contention access, the terminal node adopts the existing data transmission method, and there will be transmission resources The reduction of utilization rate and the large energy consumption of net channel assessment.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种数据传输方法,该方法应用于对于采用CSMA接入机制的无线通信网络,可以提高上行数据的传输资源利用率,降低终端的净信道评估的能量开销。In view of this, the main purpose of the present invention is to provide a data transmission method, which is applied to a wireless communication network using a CSMA access mechanism, can improve the utilization rate of transmission resources of uplink data, and reduce the energy of terminal net channel evaluation overhead.

为了达到上述目的,本发明提出的技术方案为:In order to achieve the above object, the technical scheme proposed by the present invention is:

一种数据传输方法,包括:A data transmission method comprising:

a、对于缓存中每类业务i的数据,终端节点根据业务在一个竞争分配内最多能够发送的介质访问控制层MAC帧数量Nmax_i,将该业务i的所述数据进行分组,得到Ti组数据;其中,所述所述Ni为业务i的所述数据包含的MAC帧数;a. For the data of each type of service i in the cache, the terminal node groups the data of the service i according to the maximum number N max_i of MAC frames of the medium access control layer that the service can send in one competition allocation, and obtains the Ti group data ; wherein, the The N i is the number of MAC frames contained in the data of the service i;

b、对于所包含的MAC帧数达不到所属业务的Nmax_i的所有组数据,根据数据所属业务的优先级,按照高优先级业务数据尽量与低优先级业务数据组合的原则,进行重组,其中,重组后的各组数据满足:组内的MAC帧数量小于Nmax_k,所述Nmax_k为组内数据对应的最小优先级业务k在一个竞争分配内最多能够发送的MAC帧数量;b. For all group data whose number of MAC frames does not reach the N max_i of the service to which it belongs, according to the priority of the service to which the data belongs, reorganize according to the principle of combining high-priority service data with low-priority service data as much as possible, Wherein, each group of data after reorganization satisfies: the number of MAC frames in the group is less than N max_k , and said N max_k is the maximum number of MAC frames that can be sent in one competition allocation for the minimum priority service k corresponding to the data in the group;

c、对于当前的每组数据,将该组数据对应的业务的最大优先级作为该组数据的优先级;按照数据组优先级的降序,将所有组数据进行排序;c. For each current set of data, the maximum priority of the business corresponding to the set of data is used as the priority of the set of data; sort all sets of data according to the descending order of the priority of the data set;

d、对于排序后的每组数据,利用该组数据的优先级进行竞争接入,并在获得的竞争分配内发送该组数据的MAC帧。d. For each set of sorted data, use the priority of the set of data to compete for access, and send the MAC frame of the set of data within the obtained contention allocation.

综上所述,本发明提出的数据传输方法,引入汇聚传输机制,在采用CSMA接入机制的无线通信网络中,引入汇聚传输机制,使得如果在低用户优先级业务获得的竞争分配内发送本业务优先级的数据时还有空闲资源,则可以利用该空闲资源发送具有更高业务优先级的数据,从而可以提高传输资源的利用率,进而降低终端节点的净信道评估能量开销。In summary, the data transmission method proposed by the present invention introduces a converged transmission mechanism. In a wireless communication network using a CSMA access mechanism, a converged transmission mechanism is introduced so that if the data transmission method is sent within the contention allocation obtained by a low user priority service If there are idle resources for service priority data, the idle resources can be used to send data with a higher service priority, thereby improving the utilization of transmission resources and reducing the net channel assessment energy overhead of terminal nodes.

附图说明Description of drawings

图1为WBAN星型网络拓扑结构示意图;FIG. 1 is a schematic diagram of a WBAN star network topology;

图2为CSMA/CA流程示意图;Figure 2 is a schematic diagram of the CSMA/CA process;

图3为本发明实施例一的流程示意图。FIG. 3 is a schematic flow chart of Embodiment 1 of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

本发明的核心思想是:在采用CSMA接入机制的无线通信网络中,引入汇聚传输机制,使得如果在低用户优先级业务获得的竞争分配内发送本业务优先级的数据时还有空闲资源,则可以利用该空闲资源发送具有更高业务优先级的数据,从而可以提高传输资源的利用率,进而降低终端节点的净信道评估能量开销。The core idea of the present invention is: in the wireless communication network adopting the CSMA access mechanism, introduce the convergence transmission mechanism, so that if there are idle resources when sending the data of this service priority in the contention allocation obtained by the low user priority service, Then, the idle resource can be used to send data with a higher service priority, so that the utilization rate of the transmission resource can be improved, and the net channel evaluation energy cost of the terminal node can be reduced.

图3为本发明实施例一的流程示意图,如图3所示,该实施例主要包括:Fig. 3 is a schematic flow chart of Embodiment 1 of the present invention, as shown in Fig. 3, this embodiment mainly includes:

步骤301、对于缓存中每类业务i的数据,终端节点根据业务在一个竞争分配内最多能够发送的介质访问控制MAC帧数量Nmax_i,将该业务i的所述数据进行分组,得到Ti组数据。Step 301. For the data of each type of service i in the buffer, the terminal node groups the data of the service i according to the maximum number N max_i of MAC frames that can be sent by the service in one competition allocation, and obtains the T i group data.

其中,所述所述Ni为业务i的所述数据包含的MAC帧数,表示向上取整函数。Among them, the The N i is the number of MAC frames contained in the data of the service i, Represents the round-up function.

本步骤中,将以业务在一个竞争分配内最多能够发送的MAC帧数量Nmax_i作为单位组包含的标准MAC帧数量,对终端节点当前缓存中的各类业务的数据进行分组。In this step, the maximum number N max_i of MAC frames that can be sent by the service in one competition allocation is used as the number of standard MAC frames included in the unit group, and the data of various services in the current cache of the terminal node are grouped.

当一类业务的数据包含的MAC帧数达不到该业务的Nmax_i时,则分组后只能得到一组数据,当超过Nmax_i时,则会得到多组数据,该情况下,如果一类业务的数量包含的MAC帧数不是Nmax_i的整数倍时,则会存在一组数据包含的MAC帧数达不到Nmax_i,对于该数据组需要在后续步骤中进行数据重组,以提高数据传输资源的利用率。When the number of MAC frames contained in the data of a class of business does not reach the N max_i of the business, only one set of data can be obtained after grouping. When it exceeds N max_i , multiple sets of data will be obtained. In this case, if one When the number of MAC frames included in the number of business types is not an integer multiple of N max_i , there will be a group of data whose number of MAC frames does not reach N max_i . For this data group, data reorganization needs to be performed in subsequent steps to improve data Utilization of transmission resources.

具体地,当Ti=1时,该Ti组数据包含的MAC帧数为Ni;当Ti>1时,如果Ni%Nmax_i≠0,%表示求余函数,则前Ti-1组数据包含的MAC帧数为Nmax_i,第Ti组数据包含的MAC帧数为Ni%Nmax_i,否则,每组数据包含的MAC帧数均为Nmax_i;所述Ni为业务i的所述数据包含的MAC帧数;所述Nmax_i为所述业务i在一个竞争分配内最多能够发送的MAC帧数量。Specifically, when T i =1, the number of MAC frames contained in the T i group of data is N i ; when T i >1, if N i %N max_i ≠0, % represents the remainder function, then the previous T i The number of MAC frames contained in -1 group of data is N max_i , the number of MAC frames contained in the Ti-th group of data is N i %N max_i , otherwise, the number of MAC frames contained in each group of data is N max_i ; said N i is the business The number of MAC frames contained in the data of i; the N max_i is the maximum number of MAC frames that can be sent by the service i in one contention allocation.

步骤302、对于所包含的MAC帧数达不到所属业务的Nmax_i的所有组数据,根据数据所属业务的优先级,按照高优先级业务数据尽量与低优先级业务数据组合的原则,进行重组,其中,重组后的各组数据满足:组内的MAC帧数量小于Nmax_k,所述Nmax_k为组内数据对应的最小优先级业务k在一个竞争分配内最多能够发送的MAC帧数量。Step 302: For all group data whose number of MAC frames does not reach the N max_i of the service to which the data belongs, according to the priority of the service to which the data belongs, reorganize according to the principle of combining high-priority service data with low-priority service data as much as possible , wherein, each group of data after recombination satisfies: the number of MAC frames in the group is less than N max_k , and N max_k is the maximum number of MAC frames that can be sent by the minimum priority service k corresponding to the data in the group in one competition allocation.

本步骤中,用于根据数据所属业务的优先级,按照高优先级业务数据尽量与低优先级业务数据组合的原则,对于包含的MAC帧数达不到所属业务的Nmax_i的所有组数据进行重新分组。如此,可以充分利用低优先级业务的空闲资源携带高优先级业务数据,如此,可以充分利用竞争分配内的传输资源,提高传输效率,避免独立传输机制下的资源浪费问题。In this step, according to the priority of the business to which the data belongs, according to the principle of combining high-priority business data with low-priority business data as much as possible, all group data containing MAC frames that do not reach the N max_i of the business to which they belong Regroup. In this way, idle resources of low-priority services can be fully utilized to carry high-priority service data. In this way, transmission resources within contention allocation can be fully utilized to improve transmission efficiency and avoid resource waste under an independent transmission mechanism.

较佳地,步骤302可以采用下述步骤实现:Preferably, step 302 can be implemented by the following steps:

步骤3021、对于所包含的MAC帧数达不到所属业务的Nmax_i的所有组数据,按照所对应业务的优先级的降序进行排序,得到一个重组队列,将重组数据集合初始化为空。Step 3021 : For all group data whose number of MAC frames does not reach the N max_i of the service to which it belongs, sort them in descending order of the priority of the corresponding service to obtain a reassembly queue, and initialize the reassembly data set to be empty.

步骤3022、判断所述重组队列队首位置的一组数据放入当前的重组数据集合中后是否满足:重组数据集合中的MAC帧总数不大于Nmax_k,所述Nmax_k为业务k在一个竞争分配内最多能够发送的MAC帧数量,所述业务k为所述队首位置的一组数据对应的业务,如果满足,则执行步骤3023;否则执行3024。Step 3022, judging whether a set of data at the head of the reassembly queue is put into the current reassembly data set and whether the total number of MAC frames in the reassembly data set is not greater than N max_k , and the N max_k is that service k is in a competition The maximum number of MAC frames that can be sent within the allocation, the service k is the service corresponding to a group of data at the head of the team, if satisfied, go to step 3023; otherwise go to step 3024.

本步骤,用于判断队首位置的一组数据是否可以与当前的重组数据集合中的数据进行重组,该判断条件即是否满足:其加入重组数据集合后集合内的MAC帧总数是否不大于该组数据对应业务的Nmax_kThis step is used to judge whether a group of data at the head of the team can be reorganized with the data in the current reorganized data set, whether the judgment condition is satisfied: whether the total number of MAC frames in the set after it is added to the reorganized data set is not greater than the The group data corresponds to N max_k of the service.

如果不大于Nmax_k,则说明其与当前重组数据集合中的数据进行组合后满足步骤302中的重组条件之一,即可以确保组内的MAC帧数量小于组内数据对应的最小优先级业务在一个竞争分配内最多能够发送的MAC帧数量,另外,由于这里是在步骤3021中按照业务优先级进行排序后的基础上,逐一从队首判断,因此,可以确保队首位置的一组数据与已存在于重组数据集合中的数据组相比是低优先级的,从而也可以确保满足高优先级业务数据尽量与低优先级业务数据组合的原则。因此,这里在判断出不大于Nmax_k时执行3023将该队首的数据组加入到重组数据集合中。If it is not greater than N max_k , it means that it meets one of the reassembly conditions in step 302 after being combined with the data in the current reassembly data set, that is, it can ensure that the number of MAC frames in the group is less than the minimum priority service corresponding to the data in the group. The maximum number of MAC frames that can be sent in a competition allocation. In addition, since it is based on sorting according to the business priority in step 3021, it is judged from the head of the team one by one. Compared with the data groups existing in the reorganized data set, the priority is low, so that the principle of combining high-priority service data with low-priority service data as much as possible can also be ensured. Therefore, here, when it is judged that it is not greater than N max_k , execute 3023 to add the data group of the head of the team into the reorganized data set.

如果大于Nmax_k,则说明该组数据不能与当前重组数据集合中的数据进行重组,因此,需要执行步骤3024,将当前重组数据集合中的数据进行重新组合得到一个新的数据分组。If it is greater than N max_k , it means that the group of data cannot be reorganized with the data in the current reorganized data set. Therefore, step 3024 needs to be performed to recombine the data in the current reorganized data set to obtain a new data group.

步骤3023、将所述队首位置的一组数据放入所述重组数据集合中,并从所述重组队列中删除,执行步骤3025。Step 3023. Put a set of data at the head of the queue into the reorganized data set, and delete it from the reorganized queue, and execute step 3025.

步骤3024、将所述重组数据集合中的数据重新组成一组数据,并取消对应的原有分组,将重组数据集合置空。Step 3024, reorganize the data in the reorganized data set into a set of data, cancel the corresponding original grouping, and make the reorganized data set empty.

本步骤,将当前重组数据集合中的数据重新组合,得到新的一组数据,这些数据之前所分别对应的数据分组也将不存在,此后将基于新的数据分组进行这些数据的传输。In this step, the data in the current reorganized data set is reassembled to obtain a new set of data, and the data packets corresponding to these data before do not exist, and then these data will be transmitted based on the new data packets.

步骤3025、判断所述重组队列当前是否为空,如果是,则执行步骤303,否则,执行3022。Step 3025 , judging whether the reassembly queue is currently empty, if yes, go to step 303 , otherwise, go to step 3022 .

本步骤,用于在得到一新的数据分组后,如果当前重组队列中存在未被重组的数据,则执行步骤3022继续进行新的一组数据的重组,直到队列中的所有数据组被重组完毕,即队列为空,则执行步骤303,基于当前的所有数据分组进行数据的发送。This step is used to perform step 3022 to continue reorganizing a new set of data until all data groups in the queue are reorganized if there is unreorganized data in the current reorganization queue after obtaining a new data packet , that is, the queue is empty, then step 303 is executed, and data is sent based on all current data packets.

步骤303、对于当前的每组数据,将该组数据对应的业务的最大优先级作为该组数据的优先级;按照数据组优先级的降序,将所有组数据进行排序。Step 303 , for each current group of data, use the highest priority of the service corresponding to the group of data as the priority of the group of data; sort all the group data according to the descending order of the priority of the data group.

这里,由于通过步骤302后当前的一些数据分组是由多个业务的数据组合在一起的,因此,需要确定这些分组对应的业务优先级。本步骤中,将一组数据对应的业务的最大优先级作为该组数据的优先级,以确保满足组内高优先级业务的传输需要。Here, since some current data packets after step 302 are combined by data of multiple services, it is necessary to determine the service priorities corresponding to these packets. In this step, the maximum priority of the service corresponding to a group of data is taken as the priority of the group of data, so as to ensure that the transmission needs of high-priority services in the group are met.

步骤304、对于排序后的各组数据,利用该组数据的优先级进行竞争接入,并在获得的竞争分配内发送该组数据的MAC帧。Step 304 , for each group of sorted data, use the priority of the group of data to compete for access, and send the MAC frame of the group of data within the obtained contention allocation.

在上述技术方案中通过引入汇聚传输机制,使得如果在低用户优先级业务获得的竞争分配内发送本业务优先级的数据时还有空闲资源,则可以利用该空闲资源发送具有更高业务优先级的数据,从而可以提高传输资源的利用率,进而降低终端的净信道评估的能量开销。需要说明的是,本发明不仅适用于无线体域网,在实际应用中只是采用CSMA接入机制,便会存在上述资源浪费的问题,因此,本发明适用于所有采用CSMA接入机制的无线通信网络中。In the above technical solution, the aggregation transmission mechanism is introduced so that if there are idle resources when sending the data of this service priority within the contention allocation obtained by the low user priority service, the idle resource can be used to send data with a higher service priority. data, so that the utilization rate of transmission resources can be improved, and the energy cost of net channel estimation of the terminal can be reduced. It should be noted that the present invention is not only applicable to wireless body area networks, but in practical applications only using the CSMA access mechanism, there will be the above-mentioned problem of waste of resources. Therefore, the present invention is applicable to all wireless communications using the CSMA access mechanism in the network.

综上所述,以上仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。To sum up, the above are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (3)

1. a data transmission method, is characterized in that, comprising:
A, data for class business i every in buffer memory, the media access control layer mac frame quantity N that terminal node can send at most in a competitory assignment according to business max_i, the described data of this business i are divided into groups, obtain T igroup data; Wherein, described in described N ifor the mac frame number that the described packet of business i contains;
B, comprised mac frame number is not reached to the N of affiliated business max_iall groups of data, the priority of business belonging to data, according to high-priority service data as far as possible with the principle of low priority traffice data assemblies, recombinate, wherein, each group of data after restructuring meet: the mac frame quantity in group is less than N max_k, described N max_kfor organizing the mac frame quantity that minimum priority service k corresponding to interior data can send at most in a competitory assignment;
C, for current often group data, using the priority of the greatest priority of business corresponding for these group data as these group data; According to the descending of data group priority, all groups of data are sorted;
D, for the often group data after sequence, utilize the priority of these group data to be at war with access, and send the mac frame of these group data in the competitory assignment of acquisition.
2. method according to claim 1, is characterized in that, described step b comprises further:
B1, comprised mac frame number is not reached to the N of affiliated business max_iall groups of data, sort according to the descending of the priority of corresponding business, obtain one restructuring queue, recombination data set is initialized as sky;
B2, judge whether one group of data of described restructuring queue Head-of-line meet after putting into current recombination data set: the mac frame sum of recombination data set is not more than N max_k, described N max_kfor the mac frame quantity that business k can send at most in a competitory assignment, described business k is business corresponding to one group of data of described Head-of-line, if met, then performs step b3; Otherwise perform b4;
B3, one of described Head-of-line group of data is put into described recombination data set, and delete from described restructuring queue, perform step b5;
B4, the data in described recombination data set are reformulated one group of data, and cancel corresponding original grouping, sky is put in recombination data set;
B5, judge described restructuring queue current be whether empty, if so, then perform step c, otherwise, perform b2.
3. method according to claim 1, is characterized in that, works as T iwhen=1, this T ithe mac frame number that group packet contains is N i; Work as T iduring >1, if N i%N max_i≠ 0, then T before ithe mac frame number that-1 group packet contains is N max_i, the mac frame number that Ti group packet contains is N i%N max_i, otherwise the mac frame number that often group packet contains is N max_i.
CN201410185286.5A 2014-05-05 2014-05-05 A kind of data transmission method Expired - Fee Related CN105101448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410185286.5A CN105101448B (en) 2014-05-05 2014-05-05 A kind of data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410185286.5A CN105101448B (en) 2014-05-05 2014-05-05 A kind of data transmission method

Publications (2)

Publication Number Publication Date
CN105101448A true CN105101448A (en) 2015-11-25
CN105101448B CN105101448B (en) 2018-11-23

Family

ID=54580689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410185286.5A Expired - Fee Related CN105101448B (en) 2014-05-05 2014-05-05 A kind of data transmission method

Country Status (1)

Country Link
CN (1) CN105101448B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587692A (en) * 2017-09-29 2019-04-05 中国石油天然气股份有限公司 Oil well condition data acquisition method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030103521A1 (en) * 2001-06-18 2003-06-05 Itran Communications Ltd. Channel access method for powerline carrier based media access control protocol
CN101056258A (en) * 2006-04-10 2007-10-17 高事达科技(北京)有限公司 Method capable of reducing the information exchange redundancy in the WLAN 802.11
CN101341775A (en) * 2005-12-22 2009-01-07 高通股份有限公司 Methods and apparatus for communicating control information
WO2011149154A1 (en) * 2010-05-27 2011-12-01 경희대학교 산학협력단 Dynamic cfp allocation method for mac protocol in a wireless body area network and a communication method using the same
WO2013037324A1 (en) * 2011-09-15 2013-03-21 华为技术有限公司 Method, device, system, and node for performing nav control on node

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030103521A1 (en) * 2001-06-18 2003-06-05 Itran Communications Ltd. Channel access method for powerline carrier based media access control protocol
CN101341775A (en) * 2005-12-22 2009-01-07 高通股份有限公司 Methods and apparatus for communicating control information
CN101056258A (en) * 2006-04-10 2007-10-17 高事达科技(北京)有限公司 Method capable of reducing the information exchange redundancy in the WLAN 802.11
WO2011149154A1 (en) * 2010-05-27 2011-12-01 경희대학교 산학협력단 Dynamic cfp allocation method for mac protocol in a wireless body area network and a communication method using the same
WO2013037324A1 (en) * 2011-09-15 2013-03-21 华为技术有限公司 Method, device, system, and node for performing nav control on node

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587692A (en) * 2017-09-29 2019-04-05 中国石油天然气股份有限公司 Oil well condition data acquisition method and device

Also Published As

Publication number Publication date
CN105101448B (en) 2018-11-23

Similar Documents

Publication Publication Date Title
Singh et al. Performance evaluation of an IEEE 802.15. 4 sensor network with a star topology
CN101489304B (en) Media access control method based on differentiate service of wireless multimedia sensor network
CN103327615B (en) Resource allocation indicating method, resource allocation methods and equipment
WO2022095863A1 (en) Micropower wireless access method and apparatus for internet of things of power transmission and transformation device
CN102625466B (en) Distributed medium access method for wireless local area network
CN105656806A (en) MAC layer access method and sensor node
Jeon et al. DCA: Duty-cycle adaptation algorithm for IEEE 802.15. 4 beacon-enabled networks
CN1794687A (en) Adaptive dormancy method of network data chain circuit layer of cluster structured radio sensor
CN109890085B (en) Method for determining random access back-off parameters of priority-classified machine type communication
CN101795498A (en) Data priority-based channel contention access method for wireless sensor network
CN111294775A (en) Resource allocation method based on H2H dynamic characteristics in large-scale MTC and H2H coexistence scene
CN101141406A (en) Distributed flow control method, system and device
CN105873233B (en) IEEE802.11ax based on layering scheduling accesses Enhancement Method
CN106533833B (en) A method of reducing Carrier Sense Multiple Access resource contention
CN107105506B (en) A Time Slot Allocation Method Based on Multi-factor Priority in Body Area Network
Palacios et al. Analysis of an energy-efficient MAC protocol based on polling for IEEE 802.11 WLANs
CN105376830B (en) The up-link access method that a kind of channel bonding and orthogonal frequency-time multiple access are combined
CN104640159A (en) Semi-static scheduling method
CN105163394A (en) Method for realizing service perception of SQ-MAC protocol for wireless sensor network
CN105101448B (en) A kind of data transmission method
CN104640213B (en) A kind of connection method for building up of wireless body area network
CN110337125A (en) A workstation regrouping method in 5G network
CN104640156A (en) Data distributive acquisition storage method based on cabled and wireless hybrid network
CN104349493B (en) Accidental access method
Tseng et al. Rotational listening strategy for IEEE 802.15. 4 wireless body networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181123

Termination date: 20210505

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