CN112566255B - Weighted Huffman tree, primary user bandwidth allocation method and secondary user channel sensing method - Google Patents
Weighted Huffman tree, primary user bandwidth allocation method and secondary user channel sensing method Download PDFInfo
- Publication number
- CN112566255B CN112566255B CN202011353715.7A CN202011353715A CN112566255B CN 112566255 B CN112566255 B CN 112566255B CN 202011353715 A CN202011353715 A CN 202011353715A CN 112566255 B CN112566255 B CN 112566255B
- Authority
- CN
- China
- Prior art keywords
- channel
- node
- branch
- sub
- primary user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/04—Wireless resource allocation
- H04W72/044—Wireless resource allocation based on the type of the allocated resource
- H04W72/0453—Resources in frequency domain, e.g. a carrier in FDMA
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W74/00—Wireless channel access
- H04W74/08—Non-scheduled access, e.g. ALOHA
- H04W74/0808—Non-scheduled access, e.g. ALOHA using carrier sensing, e.g. carrier sense multiple access [CSMA]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及无线网络通信领域,具体涉及一种加权哈夫曼树、主用户带宽分配方法和次级用户信道感知方法。The invention relates to the field of wireless network communication, in particular to a weighted Huffman tree, a bandwidth allocation method for primary users and a channel perception method for secondary users.
背景技术Background technique
随着无线通信技术的飞速发展,越来越多的无线设备和应用被广泛使用,人们对频谱的需求越来越多,致使可利用的无线电频谱资源日益紧张,频谱稀缺问题己成为实现无线通信技术可持续发展的瓶颈。美国联邦通信委员会(FCC)对各频段的使用情况进行大量的调查研究发现,由于授权用户在时间和空间上对频谱使用的不连续,使得已经分配的频谱资源总体利用效率仅有15%-85%.为了解决频谱利用率低下的问题,认知无线电(CR,Cognitive Radio)技术应运而生,已成为下一代网络中提高无线频谱资源利用率的关键技术。在认知无线网络中,拥有授权频谱的用户称为主用户(PU,primary user),而没有授权频谱的用户称为次级用户(SU,secondary user)。With the rapid development of wireless communication technology, more and more wireless devices and applications are widely used, and people's demand for spectrum is increasing, which makes the available radio spectrum resources increasingly tight. The problem of spectrum scarcity has become an important issue in realizing wireless communication. The bottleneck of sustainable technological development. The United States Federal Communications Commission (FCC) has conducted a large number of investigations and studies on the use of frequency bands and found that due to the discontinuous use of spectrum by licensed users in time and space, the overall utilization efficiency of the allocated spectrum resources is only 15%-85%. %. In order to solve the problem of low spectrum utilization, Cognitive Radio (CR, Cognitive Radio) technology emerges as the times require, and has become a key technology for improving the utilization of wireless spectrum resources in the next generation network. In a cognitive wireless network, a user with a licensed spectrum is called a primary user (PU, primary user), and a user without a licensed spectrum is called a secondary user (SU, secondary user).
频谱感知是认知无线网络的关键技术。次级用户(Secondary User,次级用户)需要通过频谱感知算法寻找当前可用的频段中未被主用户(Primary User,主用户)使用频谱空隙(white spaces),并利用这些空隙来传送数据。由于每次频谱感知操作需要耗费时间和能量,且在感知过程中次级用户需要暂停数据传送,因此,尽可能减少次级用户的感知次数,可以有效降低能耗、提高次级用户的数据吞吐量。Spectrum sensing is a key technology in cognitive wireless networks. A secondary user (Secondary User, secondary user) needs to use a spectrum sensing algorithm to find spectrum gaps (white spaces) that are not used by a primary user (Primary User, primary user) in the currently available frequency band, and use these gaps to transmit data. Since each spectrum sensing operation takes time and energy, and the secondary user needs to suspend data transmission during the sensing process, reducing the sensing times of the secondary user as much as possible can effectively reduce energy consumption and improve the data throughput of the secondary user quantity.
一般情况下,频谱空隙在整个带宽范围内是随机出现的,我们把次级用户获取频谱的占用状态所需要的平均感知次数(即,平均感知频度),作为衡量其频谱感知效率的指标。显然,频谱感知效率越高,所消耗的能量就越小、用于数据传送的时间就越多,整个频谱的利用率也越高。因此,如何提高频谱感知效率是认知无线网络通信性能优化的重要目标之一。In general, spectrum gaps appear randomly in the entire bandwidth range, and we take the average sensing times (ie, average sensing frequency) required by secondary users to obtain the spectrum occupancy status as an index to measure their spectrum sensing efficiency. Obviously, the higher the spectrum sensing efficiency is, the less energy is consumed, the more time is used for data transmission, and the higher the utilization rate of the entire spectrum is. Therefore, how to improve the efficiency of spectrum sensing is one of the important goals of cognitive wireless network communication performance optimization.
现有的减少频谱感知次数、提高感知效率的方法主要包括:协作式感知、压缩感知、机器学习感知,等。比如:中国专利CN103326797B提出了一种认知网络合作式频谱感知方法,由多个次级用户分工合作,对频谱进行能量检测后将检测数据发送到控制中心,再由控制中心结合已有的权值矩阵以及门限对当前主用户的活动情况做出判断。协作感知主要是在多个次级用户之间开展协作,分担整体的感知任务,从而减少单个次级用户的频谱感知工作量。然而,全部频段所需的总频谱感知工作量并没有根本性的减少。因此,如果以获取频谱占用状况所需的总的感知次数为频谱感知效率的指标,则协作感知并没有使整体的感知效率得到提高。Existing methods for reducing the frequency of spectrum sensing and improving sensing efficiency mainly include: cooperative sensing, compressed sensing, machine learning sensing, etc. For example: Chinese patent CN103326797B proposes a cognitive network cooperative spectrum sensing method, in which multiple secondary users work together to perform energy detection on the spectrum and send the detection data to the control center, and then the control center combines the existing rights The value matrix and the threshold make a judgment on the activity of the current primary user. Cooperative sensing is mainly to cooperate among multiple secondary users to share the overall sensing task, thereby reducing the spectrum sensing workload of a single secondary user. However, the total spectrum sensing workload required for all frequency bands is not fundamentally reduced. Therefore, if the total number of sensing times required to obtain the spectrum occupancy status is taken as the index of spectrum sensing efficiency, cooperative sensing does not improve the overall sensing efficiency.
专利CN103532645A提出了一种借助压缩感知技术进行频谱感知的新方法,通过降低观测矩阵列向量之间的稀疏度,减少列向量之间的相关性,并联合观测矩阵的自适应性进行整体优化,实现在同等接收操作性能下,降低频谱感知次数。但是,这种方法是以稀疏信号的假设为前提,且稀疏信号重建需要消耗大量计算资源,导致频谱感知所需时间过长。Patent CN103532645A proposes a new method of spectrum sensing with the help of compressed sensing technology, by reducing the sparsity between the column vectors of the observation matrix, reducing the correlation between the column vectors, and combining the adaptiveness of the observation matrix for overall optimization, Realize reducing the number of spectrum sensing times under the same receiving operation performance. However, this method is based on the assumption of sparse signals, and the reconstruction of sparse signals needs to consume a lot of computing resources, resulting in a long time for spectrum sensing.
专利CN104135327B提出一种基于支持向量机的频谱感知方法,将频谱感知问题建模为信号分类问题,选取了信号协方差矩阵的最大最小特征值之比作为分类特征,利用支持向量机作为分类器,来实现频谱感知。但是在实际使用中,如何选择合适的核函数是一种挑战。Patent CN104135327B proposes a spectrum sensing method based on support vector machines, which models the spectrum sensing problem as a signal classification problem, selects the ratio of the maximum and minimum eigenvalues of the signal covariance matrix as the classification feature, and uses the support vector machine as a classifier. for spectrum sensing. But in actual use, how to choose an appropriate kernel function is a challenge.
根据认知无线电的行业规范,次级用户对频谱的访问应该尽可能避免对主用户通信造成影响,由于认知无线网络中可用频谱的时变性、多样性和差异性使得频谱感知存在较高的动态性和复杂性,单纯依赖次级用户的感知操作获得频谱占用状态,往往会导致算法过于复杂。如果主用户与次级用户之间能够有所合作,在充分满足主用户自身带宽需求的前提下,通过优化资源分配策略,对次级用户的频谱感知给予一些配合,则能够显著降低频谱感知的复杂度、提高感知效率。According to the industry norms of cognitive radio, the access of secondary users to spectrum should avoid affecting the communication of primary users as much as possible. Due to the time-varying, diversity and difference of available spectrum in cognitive wireless network, there is a high risk of spectrum sensing. Due to the dynamics and complexity, simply relying on the secondary user's perception operation to obtain the spectrum occupancy status often leads to an overly complex algorithm. If there is cooperation between the primary user and the secondary user, on the premise of fully meeting the bandwidth requirements of the primary user, by optimizing the resource allocation strategy and giving some cooperation to the spectrum sensing of the secondary user, the spectrum sensing cost can be significantly reduced. Complexity, improve perception efficiency.
常见的主用户与次级用户之间的合作方式主要是基于频谱租赁和频谱共享。主用户具有频谱的所有权,因此可以根据自身的情况将未使用的频谱租借给次级用户使用;作为回报,次级用户协助主用户传输数据。比如:中国专利CN102316465A提出一种认知无线网络中频谱博弈分配方法,次用户检测到空闲频谱后请求租借频谱,频谱管理中心收到次用户的租借请求信息和详细参数信息,调用主用户的博弈算法,确定为次用户提供频谱的主用户。专利CN104270768A提出了一种协作认知无线网络中基于斯塔克伯格博弈的频谱共享方法,将以主用户为主导者,多个非合作的认知发送用户为从属者的两级斯塔克伯格博弈模型引入到频谱共享中,提升次级用户通信的连续性。Common cooperation methods between primary users and secondary users are mainly based on spectrum leasing and spectrum sharing. The primary user has the ownership of the spectrum, so it can lease the unused spectrum to the secondary user according to its own situation; in return, the secondary user assists the primary user to transmit data. For example: Chinese patent CN102316465A proposes a spectrum game allocation method in a cognitive wireless network. The secondary user requests to lease the spectrum after detecting the idle spectrum. The spectrum management center receives the lease request information and detailed parameter information of the secondary user, and calls the game Algorithm to determine the primary user who provides spectrum for the secondary user. Patent CN104270768A proposes a spectrum sharing method based on the Stackelberg game in a cooperative cognitive wireless network, which uses a two-level Stark system in which the primary user is the leader and multiple non-cooperative cognitive sending users are the slaves. The Berg game model is introduced into spectrum sharing to improve the continuity of secondary user communication.
然而,上述频谱租赁和共享机制主要是以改善频带的整体利用率为目标,并没有显著提高次级用户的频谱感知效率;同时,主用户对带宽需求的大小随时间不断变化,如何在满足这种动态变化需求的同时,最大程度地提高频谱整体利用率,仍然是一个挑战。However, the above-mentioned spectrum leasing and sharing mechanism is mainly aimed at improving the overall utilization rate of the frequency band, and does not significantly improve the spectrum sensing efficiency of the secondary user; at the same time, the bandwidth demand of the primary user changes with time, how to meet this It remains a challenge to maximize the overall utilization of the spectrum while meeting this dynamically changing demand.
本发明关注的是如何综合考虑主用户的频谱分配策略和次级用户的频谱感知策略,在充分满足主用户频谱需求的前提下,优化次级用户的频谱感知效率,提升频谱的整体利用率。The present invention focuses on how to comprehensively consider the spectrum allocation strategy of the primary user and the spectrum sensing strategy of the secondary user, optimize the spectrum sensing efficiency of the secondary user and improve the overall utilization rate of the spectrum on the premise of fully meeting the spectrum requirements of the primary user.
发明内容Contents of the invention
为了克服现有技术存在的缺点与不足,本发明的第一目的是提供一种加权哈夫曼树(Weighted Huffman Tree);In order to overcome the shortcomings and deficiencies of the prior art, the first object of the present invention is to provide a weighted Huffman tree (Weighted Huffman Tree);
第二目的是提供一种基于加权哈夫曼树的认知无线通信的信道划分及分配方法。The second object is to provide a channel division and allocation method for cognitive wireless communication based on weighted Huffman tree.
第三目的是提供一种基于加权哈夫曼树的主用户信道分配方法。The third object is to provide a primary user channel allocation method based on weighted Huffman tree.
第四目的是提供一种基于加权哈夫曼树的次级用户信道感知方法。The fourth object is to provide a secondary user channel sensing method based on weighted Huffman tree.
本发明的第一目的采用如下技术方案:First object of the present invention adopts following technical scheme:
本发明提出一种加权哈夫曼树(Weighted Huffman tree),优选地,在哈夫曼树(Huffman Tree)的基础上,为所有结点及分支新增了一种权重属性,为所有分支新增了一种占用状态的属性。The present invention proposes a weighted Huffman tree (Weighted Huffman tree), preferably, on the basis of the Huffman tree (Huffman Tree), a new weight attribute is added for all nodes and branches, and a new weight attribute is added for all branches Added an occupancy state property.
新增的属性满足如下条件:The newly added attributes meet the following conditions:
(a)新增属性独立于结点和分支的原有属性;(a) The new attributes are independent of the original attributes of nodes and branches;
(b)根结点和每个中间结点的权重等于其左、右子结点权重之中的最小值;(b) The weight of the root node and each intermediate node is equal to the minimum value among the weights of its left and right child nodes;
(c)根结点和每个中间结点的分支权重等于其左、右子结点的权重之差的绝对值。(c) The branch weight of the root node and each intermediate node is equal to the absolute value of the difference between the weights of its left and right child nodes.
(d)新增的分支占用状态的取值包括“空闲”和“占用”两种状态。(d) The value of the newly added branch occupation state includes two states of "idle" and "occupied".
进一步地,分别用结点的左分支和右分支来区分“空闲”和“占用”两种状态。不失一般性,本发明中统一用结点的左分支代表信道的“空闲”状态,用结点的右分支代表信道的“占用”状态。Further, the left and right branches of the node are used to distinguish the two states of "idle" and "occupied". Without loss of generality, in the present invention, the left branch of the node is used to represent the "idle" state of the channel, and the right branch of the node is used to represent the "occupied" state of the channel.
本发明第二目的提出一种基于加权哈夫曼树的认知无线信道划分及分配方法,首先将主用户(Primary User)和次级用户(Secondary User)可用的带宽资源划分为一系列子信道;每个信道由若干子信道聚合而成;主用户和次级用户能够使用多个信道完成数据传输;本发明中所划分的所有子信道的带宽都相等,都等于固定值。The second object of the present invention proposes a method for dividing and allocating cognitive wireless channels based on a weighted Huffman tree. Firstly, the available bandwidth resources of primary users (Primary User) and secondary users (Secondary User) are divided into a series of sub-channels ; Each channel is aggregated by a number of sub-channels; primary users and secondary users can use multiple channels to complete data transmission; the bandwidth of all sub-channels divided in the present invention are equal, equal to a fixed value.
不失一般性,本发明以子信道带宽为单位将主用户的带宽需求离散化,将主用户的带宽需求以所需的子信道数目来表示。Without loss of generality, the present invention discretizes the bandwidth requirement of the primary user in units of sub-channel bandwidth, and expresses the bandwidth requirement of the primary user by the number of required sub-channels.
每一个带宽需求的取值用一个叶子结点来标记,将该取值出现的概率标记为叶子结点的概率,将该带宽需求取值作为叶子结点的权重。The value of each bandwidth requirement is marked with a leaf node, the probability of occurrence of the value is marked as the probability of the leaf node, and the value of the bandwidth requirement is used as the weight of the leaf node.
进一步地,把离散化的主用户带宽需求作为一组叶子结点的权重属性,基于其概率分布在该组叶子结点上构建哈夫曼树,构建过程需保证结点和分支的权重属性满足权利要求1所述条件,即:根结点和每个中间结点的权重等于其左、右子结点权重之中的最小值;根结点和每个中间结点的分支权重等于其左、右子结点的权重之差的绝对值。Furthermore, the discretized primary user bandwidth demand is used as the weight attribute of a group of leaf nodes, and the Huffman tree is constructed on the group of leaf nodes based on its probability distribution. The construction process needs to ensure that the weight attributes of nodes and branches satisfy The described condition of
叶子结点的总数等于主用户带宽需求离散化后所有取值的总数。从根结点到该叶子结点的路径来代表实现该带宽需求的信道划分及信道分配方案;路径中包含的分支数等于该方案包含的信道总数;其中的每个分支对应一个信道,分支权重代表该信道的带宽,分支的占用状态代表该信道是否在该信道分配方案中被使用。The total number of leaf nodes is equal to the total number of all values after discretization of the bandwidth demand of primary users. The path from the root node to the leaf node represents the channel division and channel allocation scheme to achieve the bandwidth requirement; the number of branches contained in the path is equal to the total number of channels contained in the scheme; each branch corresponds to a channel, and the branch weight represents the bandwidth of the channel, and the occupied state of the branch represents whether the channel is used in the channel allocation scheme.
从根结点到任意一个中间结点的路径,代表了该中间结点的所有下属叶子结点共享的部分信道划分及分配方案,该中间结点的权重代表了该共享部分为主用户提供的带宽。The path from the root node to any intermediate node represents part of the channel division and allocation scheme shared by all subordinate leaf nodes of the intermediate node, and the weight of the intermediate node represents the shared part provided by the main user. bandwidth.
加权哈夫曼树的构建过程包含如下具体步骤:The construction process of the weighted Huffman tree includes the following specific steps:
S1设主用户带宽需求为R.不失一般性,首先将R进行离散化,方法是按子信道带宽d将R的取值离散化(向上取整),获得 S1 assumes that the bandwidth requirement of the primary user is R. Without loss of generality, firstly, R is discretized, and the method is to discretize the value of R according to the sub-channel bandwidth d (round up), and obtain
S2将Rd取值范围标记为Qr={r0,r1,…,rm-1},概率分布Pr={p0,p1,…,pm-1},即P(Rd=ri)=pi(0≤i≤m-1),其中P(·)为概率函数。S2 marks the value range of R d as Q r ={r 0 ,r 1 ,…,r m-1 }, and the probability distribution P r ={p 0 ,p 1 ,…,p m-1 }, that is, P( R d = ri )=p i (0≤i≤m-1), where P(•) is a probability function.
S3根据Qr和Pr建立结点列表Lv={v0,v1,…,vm-1},并为每个结点vi(0≤i≤m-1)设置两个属性,权重w(vi)=ri∈Qr和概率P(vi)=pi∈Pr,分别表示为ri的带宽需求以及ri的出现概率。S3 establishes a node list L v ={v 0 ,v 1 ,…,v m-1 } according to Q r and P r , and sets two attributes for each node v i (0≤i≤m-1) , the weight w(v i )= ri ∈Q r and the probability P(v i )=p i ∈P r , respectively expressed as the bandwidth requirement of ri and the occurrence probability of ri .
S4创建一个新的结点v.S4 creates a new node v.
S5从结点列表Lv中选取概率最小的两个结点vx和vy,对vx和vy的权重进行比较,根据比较结果决定左、右子结点。不失一般性,本发明中统一把权重较小的结点作为左子结点,权重较大的结点则作为右子结点。S5 selects two nodes v x and v y with the lowest probability from the node list L v , compares the weights of v x and v y , and determines the left and right child nodes according to the comparison result. Without loss of generality, in the present invention, a node with a smaller weight is used as a left child node, and a node with a larger weight is used as a right child node.
S6计算左子结点与右子结点的概率之和,作为新结点v的概率;将左子结点带宽与右子结点权重中的最小值,作为新结点v的权重;将左、右子结点的权重之差的绝对值,作为新结点v的左、右分支的权重。S6 calculates the sum of the probability of the left child node and the right child node as the probability of the new node v; uses the minimum value of the bandwidth of the left child node and the weight of the right child node as the weight of the new node v; The absolute value of the difference between the weights of the left and right child nodes is used as the weight of the left and right branches of the new node v.
S7将新结点v插入列表Lv,同时将两个子结点vx和vy从结点列表Lv中移除。S7 inserts a new node v into the list L v , and removes two child nodes v x and v y from the node list L v at the same time.
S8检查结点列表Lv当前的元素个数,如果元素数量大于1,转到S4继续执行;否则,构造过程结束。S8 checks the current number of elements in the node list L v , if the number of elements is greater than 1, go to S4 to continue execution; otherwise, the construction process ends.
本发明提出的信道划分及信道分配方法,所述方法适用的信道为频域信道、空域信道以及上述信道的组合。In the channel division and channel allocation method proposed by the present invention, the applicable channels of the method are frequency domain channels, space domain channels and combinations of the above channels.
本发明提出基于加权哈夫曼树的主用户信道分配方法,采用如下方式描述主用户信道分配模式:每一个主用户带宽需求ri(0≤i≤m-1),有唯一的信道分配方案Si与之对应;全体信道分配方案构成主用户信道分配模式S={S0,S1,…,Sm-1}.信道分配方案Si描述了从根结点到ri对应的叶子结点的完整路径;具体地,信道分配方案Si描述了组成该路径的分支序列,信道分配方案Si描述了分支序列中的每一个分支的占用状态和该分支所代表的信道的带宽。The present invention proposes a primary user channel allocation method based on a weighted Huffman tree, and uses the following method to describe the primary user channel allocation mode: each primary user bandwidth requirement r i (0≤i≤m-1), has a unique channel allocation scheme S i corresponds to it; the overall channel allocation scheme constitutes the primary user channel allocation pattern S={S 0 , S 1 ,...,S m-1 }. The channel allocation scheme S i describes the leaf corresponding to r i from the root node The complete path of a node; specifically, the channel allocation scheme S i describes the branch sequence that makes up the path, and the channel allocation scheme S i describes the occupancy state of each branch in the branch sequence and the bandwidth of the channel represented by the branch.
不失一般性,本发明采用加权比特序列来描述信道分配方案Si,(0≤i≤m-1),其中每一个加权位(0≤j≤n-1)中的bj标记了第(j+1)个信道的占用状态,bj=1代表第(j+1)个信道当前已被占用,bj=0则代表(j+1)个信道当前为空闲状态;权重wj的值代表第(j+1)个信道的带宽。Si的总带宽等于所有bj值为1的所有信道的带宽之和,即且w(Si)=ri(0≤i≤m-1)。Without loss of generality, the present invention uses a weighted bit sequence to describe the channel allocation scheme S i , (0≤i≤m-1), where each weighted bit b j in (0≤j≤n-1) marks the occupancy state of the (j+1)th channel, b j =1 means that the (j+1)th channel is currently occupied, b j =0 means It means that the (j+1) channel is currently idle; the value of the weight w j represents the bandwidth of the (j+1)th channel. The total bandwidth of S i is equal to the sum of the bandwidths of all channels with b j value of 1, namely And w(S i )= ri (0≤i≤m-1).
本发明提出的主用户信道分配方法,获取主用户信道分配模式的步骤为:首先,根据主用户流量的带宽需求选择权重与之相等的叶子结点,然后沿着加权哈夫曼树上溯至根结点,所经过的路径代表满足该带宽需求的主用户信道分配方案。进一步地,所有主用户信道分配方案的集合构成主用户信道分配模式。In the primary user channel allocation method proposed by the present invention, the steps of obtaining the primary user channel allocation mode are as follows: firstly, according to the bandwidth requirement of the primary user flow, select a leaf node with an equal weight, and then trace back to the root along the weighted Huffman tree node, and the path traversed represents the primary user channel allocation scheme that satisfies the bandwidth requirement. Further, the set of all primary user channel allocation schemes constitutes a primary user channel allocation pattern.
具体地,信道分配方案Si(0≤i≤m-1)生成方法包含如下步骤:Specifically, the generation method of the channel allocation scheme S i (0≤i≤m-1) includes the following steps:
S1设Qr={r0,r1,…,rm-1},w(·)为获得结点权重的函数,wb(·)为获得该结点的分支权重的函数;令i←0,j←0;S1 Let Q r ={r 0 , r 1 ,…,r m-1 }, w(·) is a function to obtain the weight of a node, w b (·) is a function to obtain the weight of a branch of the node; let i ←0, j←0;
S2选取加权哈夫曼树中的叶子结点v使之满足w(v)=ri;S2 selects the leaf node v in the weighted Huffman tree so that it satisfies w(v)= ri ;
S3沿着加权哈夫曼树上溯至v的父结点v',同时令j←j+1;S3 traces back to the parent node v' of v along the weighted Huffman tree, and at the same time make j←j+1;
S4令wj代表分支权重,wj←wb(vk).如果v是父结点v'的左分支,则令bj等于0;否则,令bj等于1;S4 Let w j represent the branch weight, w j ←w b (v k ). If v is the left branch of the parent node v', set b j equal to 0; otherwise, set b j equal to 1;
S5如果v'为根结点,令j←0,转下一步;否则,转S2继续执行;S5 If v' is the root node, set j←0, go to the next step; otherwise, go to S2 to continue execution;
S6如果i<m-1,则i←i+1,转S2;否则,输出主用户带宽分配模式{S0,S1,…,Sm-1},其中(0≤i≤m-1),结束。S6 If i<m-1, then i←i+1, turn to S2; otherwise, output the primary user bandwidth allocation mode {S 0 , S 1 ,...,S m-1 }, where (0≤i≤m-1), end.
本发明提出的主用户信道分配方法,按照主用户信道分配方案Si为给定的主用户带宽需求Rd分配信道的过程是:从Si的最左边第一个加权比特位开始,如果该比特位为零,即bn-(j+1)=0(0≤j≤n-1),表明该信道不被主用户占用,则跳过该信道所包含的全部wn-(j+1)个子信道;如果bn-(j+1)=1表明该信道为主用户占用,则分配该信道所包含的wn-(j+1)个子信道给主用户用于数据传输。In the primary user channel allocation method proposed by the present invention, the process of allocating channels for a given primary user bandwidth requirement Rd according to the primary user channel allocation scheme S i is: starting from the first weighted bit on the leftmost side of S i , if the bit is zero, that is, b n-(j+1) = 0 (0≤j≤n-1), indicating that the channel is not occupied by the primary user, then skip all w n-(j+ 1) sub-channels; if b n-(j+1) =1 indicates that the channel is occupied by the primary user, then allocate w n-(j+1) sub-channels included in the channel to the primary user for data transmission.
本发明提出的基于加权哈夫曼树的次级用户信道状态感知方法,用于获取主用户信道占用状态,从中选择空闲信道用于数据传输。优选地,从加权哈夫曼树的根结点开始,依次感知当前结点的分支所代表的信道的占用状态;如果该信道的状态为“占用”,则表明该信道正在为主用户所使用,因此,次级用户需跳过该信道,并且选择当前结点的右子结点作为后继结点,继续下一个信道的状态感知;如果该信道的状态为“空闲”,则将该信道标记为空闲信道,能够被次级用户用于数据传输,此时,选择当前结点的左子结点作为后继结点,继续下一个信道的状态感知;当遇到叶子结点时,感知过程终止。The weighted Huffman tree-based secondary user channel state perception method proposed by the present invention is used to obtain the channel occupation state of the primary user, and select an idle channel for data transmission therefrom. Preferably, starting from the root node of the weighted Huffman tree, the occupancy state of the channel represented by the branch of the current node is perceived sequentially; if the state of the channel is "occupied", it indicates that the channel is being used by the main user , therefore, the secondary user needs to skip this channel, and select the right child node of the current node as the successor node, and continue to perceive the state of the next channel; if the state of the channel is "idle", mark the channel It is an idle channel and can be used by secondary users for data transmission. At this time, the left child node of the current node is selected as the successor node to continue the state perception of the next channel; when a leaf node is encountered, the perception process terminates .
具体地,次级用户的信道感知方法包含如下步骤:Specifically, the channel sensing method of the secondary user includes the following steps:
S1令v指向根结点,j←0,wb(·)为获得该结点的分支权重的函数;用cj代表第j+1个信道,并将所有叶子结点的左、右子结点设为空值;S1 Let v point to the root node, j←0, w b ( ) is a function to obtain the branch weight of the node; use c j to represent the j+1th channel, and the left and right children of all leaf nodes Node is set to null value;
S2次级用户通过感知获取第j个信道cj的占用状态。根据前述描述可知,cj包含wb(v)个子信道,信道内的所有子信道的占用状态相同。因此,次级用户可以从wb(v)个子信道任选一个作为感知对象;S2 The secondary user acquires the occupancy status of the jth channel c j through perception. According to the foregoing description, it can be known that c j includes w b (v) sub-channels, and all sub-channels in the channel have the same occupancy state. Therefore, the secondary user can choose one of w b (v) sub-channels as the sensing object;
S3如果cj状态为空闲,表明cj当前没有被主用户占用,因此分配cj给次级用户用于数据传输,并且用v的左子结点代替v;否则,表明cj当前正在被主用户使用,因此需要跳过该信道,并且用v的右子结点代替v;S3 If the state of c j is idle, it indicates that c j is currently not occupied by the primary user, so allocate c j to the secondary user for data transmission, and replace v with the left child node of v; otherwise, it indicates that c j is currently being occupied by It is used by the primary user, so the channel needs to be skipped, and v is replaced by the right child node of v;
S4判断v是否为空,如果不为空,转S2继续执行;否则,终止程序。S4 judges whether v is empty, if not empty, go to S2 to continue execution; otherwise, terminate the program.
本发明的有益效果:Beneficial effects of the present invention:
对于交织型(interweaving)访问模式下的认知无线电,本发明能够在给定带宽损失约束条件下,最小化次级用户的平均感知次数,从而最大化次级用户的信道感知效率。For a cognitive radio in an interweaving access mode, the present invention can minimize the average sensing times of secondary users under a given bandwidth loss constraint condition, thereby maximizing the channel sensing efficiency of secondary users.
其原因在于,从加权哈夫曼树的构造过程可知,除了为结点和分支新增了权重属性和分支占用状态属性之外,加权哈夫曼树保持了标准哈夫曼树的平均深度最优的性质。假设次级用户数据量较大,每次都需要找出全部空闲信道,则其平均感知次数等于加权哈夫曼树的平均深度,因此平均感知次数是最少的。The reason is that, from the construction process of the weighted Huffman tree, in addition to adding weight attributes and branch occupancy state attributes for nodes and branches, the weighted Huffman tree maintains the minimum average depth of the standard Huffman tree. excellent nature. Assuming that the secondary user has a large amount of data and needs to find all idle channels each time, the average number of times of sensing is equal to the average depth of the weighted Huffman tree, so the average number of times of sensing is the least.
通过提高次级用户的频谱感知效率,能够降低频谱感知环节消耗的时间和能量,促进次级用户传输效率的提高。By improving the spectrum sensing efficiency of the secondary user, the time and energy consumed in the spectrum sensing link can be reduced, and the transmission efficiency of the secondary user can be improved.
附图说明Description of drawings
图1本实施例的加权哈夫曼树构建过程示意图。FIG. 1 is a schematic diagram of the construction process of the weighted Huffman tree in this embodiment.
图2本实施例的加权哈夫曼树结构示意图。FIG. 2 is a schematic diagram of a weighted Huffman tree structure in this embodiment.
图3本实施例的主用户信道占用状态列表。FIG. 3 is a list of channel occupancy states of the primary user in this embodiment.
图4 Rd=2时的主用户信道分配过程及信道占用状态示意图。Fig. 4 is a schematic diagram of the primary user channel allocation process and channel occupancy state when R d = 2.
图5 Rd=2时的次级用户依据加权哈夫曼树完成信道感知的步骤示意图。FIG. 5 is a schematic diagram of the steps for the secondary user to complete channel sensing according to the weighted Huffman tree when R d =2.
图6 Rd=2时的次级用户对实际信道的信道感知过程示意图。FIG. 6 is a schematic diagram of a secondary user's channel sensing process for an actual channel when R d =2.
具体实施方式Detailed ways
下面结合实施例及附图,对本发明作进一步地详细说明,但本发明的实施方式不限于此。The present invention will be described in further detail below in conjunction with the embodiments and the accompanying drawings, but the embodiments of the present invention are not limited thereto.
实施例Example
本发明包括如下操作,具体是:构造加权哈夫曼树、主用户信道分配,和次级用户信道感知。The present invention includes the following operations, specifically: constructing a weighted Huffman tree, channel allocation for primary users, and channel perception for secondary users.
如图1-图6所示,本实施例中的主用户和次级用户都是多信道传输模式,即可以将流量分配到多个信道上,利用多个信道并行完成数据传输;每个信道由子信道聚合而成,且这种聚合是动态的。信道容量等于子信道容量的叠加。As shown in Figures 1-6, both the primary user and the secondary user in this embodiment are in multi-channel transmission mode, that is, traffic can be allocated to multiple channels, and data transmission can be completed in parallel using multiple channels; each channel It is formed by aggregation of sub-channels, and this aggregation is dynamic. The channel capacity is equal to the superposition of the sub-channel capacities.
每个叶子结点代表一个主用户流量的带宽需求在离散化后的取值,叶子结点的权重代表了传输该流量所需的带宽;不失一般性,本发明将该取值设为传输该主用户流量所需要的子信道数目。Each leaf node represents the discretized value of the bandwidth requirement of a primary user's traffic, and the weight of the leaf node represents the bandwidth required to transmit the traffic; without loss of generality, the present invention sets the value as transmission The number of subchannels required by the primary user traffic.
叶子结点的总数等于主用户带宽需求所有可能的取值的总数;从根结点到该叶子结点的路径代表了满足该流量值所需带宽的信道划分及信道分配方案。The total number of leaf nodes is equal to the total number of all possible values of the primary user's bandwidth requirements; the path from the root node to the leaf node represents the channel division and channel allocation scheme to meet the bandwidth required by the traffic value.
路径中包含的分支数等于该方案包含的信道总数,每个分支对应一个信道,分支权重代表该信道的带宽,分支的占用状态代表该信道是否在该信道分配方案中被使用。The number of branches included in the path is equal to the total number of channels included in the scheme, each branch corresponds to a channel, the branch weight represents the bandwidth of the channel, and the occupied state of the branch represents whether the channel is used in the channel allocation scheme.
从根结点到任意一个中间结点的路径,代表了该中间结点的所有下属叶子结点共享的部分信道划分及分配方案,该中间结点的权重代表了该共享部分为主用户提供的带宽。The path from the root node to any intermediate node represents part of the channel division and allocation scheme shared by all subordinate leaf nodes of the intermediate node, and the weight of the intermediate node represents the shared part provided by the main user. bandwidth.
(1)一种基于加权哈夫曼树的构造方法,具体为:(1) A construction method based on weighted Huffman tree, specifically:
S1.设R为主用户带宽需求,W为可用频谱。将W划分为一系列等带宽的子信道,d为子信道带宽。将R以d为单位取整后获得不失一般性,设S1. Let R be the bandwidth requirement of the primary user, and W be the available frequency spectrum. Divide W into a series of equal-bandwidth sub-channels, and d is the sub-channel bandwidth. After rounding R to an integer in units of d, we get Without loss of generality, let
Rd∈QR={r0,r1,…,r15}={0,1,...,15},R d ∈ Q R ={r 0 ,r 1 ,...,r 15 }={0,1,...,15},
具体如表1所示。The details are shown in Table 1.
表1:主用户流量取值范围.Table 1: Value range of primary user traffic.
QR对应的概率分布为PR={p0,p2,...,p15}。其中pi(0≤i≤15)的取值如表2所示。显然,有 The probability distribution corresponding to Q R is P R ={p 0 ,p 2 ,...,p 15 }. The values of p i (0≤i≤15) are shown in Table 2. Obviously, there are
表2:主用户流量取值的概率分布Table 2: Probability distribution of primary user traffic values
S2.设立结点列表Lv={v0,v2,…,v15},其中每个结点的权重满足:wi=ri(0≤i≤15),具体如表3所示。S2. Set up a node list L v ={v 0 ,v 2 ,...,v 15 }, where the weight of each node satisfies: w i = ri (0≤i≤15), as shown in Table 3 .
表3:叶子结点的概率和权重属性Table 3: Probability and weight attributes of leaf nodes
S3.创建一个新结点。S3. Create a new node.
S4.从集合Lv中概率最小的两个值为p2=0.011和p7=0.012,对应v2和v7的权重分别为w2=2和w7=7.由于w2<w7,选择结点v2作为新结点的左子结点,v7作为新结点的右子结点,使左子结点的权重小于右子结点的权重。S4. From the set L v, the two values with the smallest probability are p 2 =0.011 and p 7 =0.012, and the weights corresponding to v 2 and v 7 are respectively w 2 =2 and w 7 =7. Since w 2 <w 7 , select node v 2 as the left child node of the new node, and v 7 as the right child node of the new node, so that the weight of the left child node is less than the weight of the right child node.
计算新结点的参数:Compute the parameters of the new node:
1)新结点的概率为p2+p7=0.011+0.012=0.023;,1) The probability of a new node is p 2 +p 7 =0.011+0.012=0.023;,
2)新结点的权重为min{w2,w7}=w2=2;2) The weight of the new node is min{w 2 ,w 7 }=w 2 =2;
3)新结点的分支权重为|w7-w2|=|7-2|=5.3) The branch weight of the new node is |w 7 -w 2 |=|7-2|=5.
将新结点记为v(0.023,2),其下标(0.023,2)标记该结点的概率和权重;分支权重 Record the new node as v (0.023,2) , and its subscript (0.023,2) marks the probability and weight of the node; the branch weight
S5.将新结点v(0.023,2)插入列表Lv,同时将v2和v7从Lv中移除.S5. Insert the new node v (0.023,2) into the list L v , and remove v 2 and v 7 from L v at the same time.
S6.检查当前列表Lv的元素个数|Lv|=14>1,因此,继续创建一个新结点。S6. Check that the number of elements in the current list L v |L v |=14>1, therefore, continue to create a new node.
选取此时Lv中概率最小的两个值,分别为p4=0.014,p12=0.015,对应结点v4和v12的权重分别为w4=4和w12=12.由于w4<w12,选择结点v4作为新结点的左子结点,v12作为新结点的右子结点,以确保左子结点权重小于右子结点的权重。Select the two values with the smallest probability in L v at this time, which are respectively p 4 =0.014 and p 12 =0.015, and the weights corresponding to nodes v 4 and v 12 are respectively w 4 =4 and w 12 =12. Since w 4 <w 12 , select node v 4 as the left child node of the new node, and v 12 as the right child node of the new node, to ensure that the weight of the left child node is less than the weight of the right child node.
计算新结点参数:Calculate new node parameters:
1)新结点的概率为p4+p12=0.014+0.015=0.029,1) The probability of a new node is p 4 +p 12 =0.014+0.015=0.029,
2)新结点的权重为min{w4,w12}=w4=4,2) The weight of the new node is min{w 4 ,w 12 }=w 4 =4,
3)新结点的分支权重为|w12-w4|=12-4=8.3) The branch weight of the new node is |w 12 -w 4 |=12-4=8.
将新结点记为v(0.029,4),其下标(0.029,4)标记该结点的概率和权重;分支权重 Record the new node as v (0.029,4) , and its subscript (0.029, 4) marks the probability and weight of the node; the branch weight
S7.将新结点v(0.029,4)插入列表Lv,同时将v4和v12从Lv中移除。S7. Insert a new node v (0.029,4) into the list L v , and remove v 4 and v 12 from L v at the same time.
继续执行类似S4~S5和S6~S7的算法,直到当前列表Lv的元素个数|Lv|=1。算法执行过程如图1所示。完成上述步骤之后,获得图2所示加权哈夫曼树。Continue to execute algorithms similar to S4-S5 and S6-S7 until the number of elements in the current list L v |L v |=1. The algorithm execution process is shown in Figure 1. After completing the above steps, the weighted Huffman tree shown in Figure 2 is obtained.
(2)一种基于加权哈夫曼树的主用户带宽分配方法,包括,针对给定的主用户带宽需求ri,为其分配一组信道,对应的信道分配方案Si用一个由加权比特序列来描述,(0≤i≤m-1),其中每一个加权位(0≤j≤n-1)中的bj标记信道的占用状态:bj=1代表信道当前已被占用,bj=0则代表信道当前为空闲状态;权重wj的值代表第j个信道的带宽,Si的总带宽等于所有bj值为1的所有信道的带宽之和,即且满足w(Si)=ri.(2) A primary user bandwidth allocation method based on a weighted Huffman tree, including, for a given primary user bandwidth requirement r i , assigning a group of channels to it, and the corresponding channel allocation scheme S i uses a weighted bit sequence to describe, (0≤i≤m-1), where each weighted bit b j in (0≤j≤n-1) marks the occupancy state of the channel: b j =1 means that the channel is currently occupied, b j =0 means that the channel is currently idle; the value of weight w j represents the jth The bandwidth of channels, the total bandwidth of S i is equal to the sum of the bandwidths of all channels with b j value of 1, that is And satisfy w(S i )= ri .
根据主用户流量获取信道分配模式Obtain channel allocation mode based on primary user traffic
S1.已知Rd∈Qr={r0,r1,…,r15}={0,1,…,15},令i←0;S1. It is known that R d ∈ Q r ={r 0 ,r 1 ,…,r 15 }={0,1,…,15}, let i←0;
S2.令j←0,从图2所示的加权哈夫曼树中选择权重为ri的叶子结点,记为vj;S2. Let j←0, select the leaf node whose weight is r i from the weighted Huffman tree shown in Figure 2, denoted as v j ;
S3.获取vj的父结点vj p;S3. Obtain the parent node v j p of v j ;
S4.如果vj是vj p的左分支,则设bj←0,代表该信道为空闲状态;否则,设bj←1,代表该信道为被占用状态。S4. If v j is the left branch of v j p , then set b j ←0, which means the channel is idle; otherwise, set b j ←1, which means the channel is occupied.
S5.令bj的权重wj等于父结点vj p的分支权重。S5. Let the weight w j of b j be equal to the branch weight of the parent node v j p .
S6.判读vj p是否是根结点。如果是,则输出转S7;否则,j←j+1,转S2继续执行.S6. Determine whether v j p is the root node. If yes, output Go to S7; otherwise, j←j+1, go to S2 to continue execution.
S7.令i←i+1,判断是否有i>15.如果是,则输出分配模式表{S0,S1,...,S15},算法结束。否则,转S2继续执行。S7. Make i←i+1, and judge whether there is i>15. If yes, output the distribution pattern table {S 0 , S 1 ,...,S 15 }, and the algorithm ends. Otherwise, go to S2 to continue execution.
算法结束后,获得如图3所示信道分配模式表,用于主用户的信道分配。After the algorithm ends, the channel allocation pattern table shown in Figure 3 is obtained, which is used for channel allocation of the primary user.
(3)主用户信道分配(3) Primary user channel allocation
S1.设主用户带宽需求为R,将其按照最小信道容量d离散化,获得 S1. Set the bandwidth requirement of the primary user as R, discretize it according to the minimum channel capacity d, and obtain
S2.在本实施例中,不失一般性,以Rd=2为例,显然,满足0≤Rd≤15.从图3所示主用户带宽分配模式中,检索Rd=2对应的分配模式Si=11020130121105,其中1和0左上角的数字代表信道带宽(即信道所包含的子信道个数)。S2. In this embodiment, without loss of generality, taking R d = 2 as an example, obviously, it satisfies 0≤R d ≤15. From the primary user bandwidth allocation mode shown in Figure 3, retrieve the corresponding Rd = 2 Allocation mode S i =1 1 0 2 0 13 0 12 1 1 0 5 , where the number in the upper left corner of 1 and 0 represents the channel bandwidth (that is, the number of sub-channels included in the channel).
S3.令j←0,从左至右依次读取Si=11020130121105的数字;对于j=0,由于b5=1,w5=1,则主用户占用该信道(该信道包含1个子信道,因此,相当于主用户从第1个子信道开始,跨过1个子信道,下一个信道从第1+1=2个子信道开始),仍然保持该信道为空闲状态。S3. Make j←0, read the numbers of S i =1 1 0 2 0 13 0 12 1 1 0 5 sequentially from left to right; for j=0, since b 5 =1, w 5 =1, the main The user occupies the channel (the channel contains 1 subchannel, therefore, it is equivalent to the primary user starting from the 1st subchannel, crossing 1 subchannel, and the next channel starts from the 1st+1=2 subchannel), and still maintains the channel is idle.
S4.对于j=1,令j←1,由于b4=0,w4=2,则主用户跳过该信道(该信道包含2个子信道,下一个信道从第1+2+1=4个子信道开始分配);S4. For j=1, let j←1, since b 4 =0, w 4 =2, then the primary user skips this channel (this channel contains 2 sub-channels, and the next channel starts from 1+2+1=4 sub-channels start to allocate);
S5.对于j=2,由于b3=0w3=13,则主用户跳过该信道(该信道包含13个子信道,因此,相当于主用户跳过了13个子信道,下一个信道从第1+2+13+1=17个子信道开始分配);S5. For j=2, since b 3 =0w 3 =13, the primary user skips the channel (this channel contains 13 sub-channels, therefore, it is equivalent to the primary user skipping 13 sub-channels, and the next channel starts from the first +2+13+1=17 sub-channels start to be allocated);
S6.对于j=3,由于b2=0w2=12,则主用户跳过该信道(该信道包含12个子信道,因此,相当于主用户跳过12个子信道,下一个信道从第1+2+13+12+1=29个子信道开始分配);S6. For j=3, since b 2 =0w 2 =12, the primary user skips this channel (this channel contains 12 sub-channels, therefore, it is equivalent to the primary user skipping 12 sub-channels, and the next channel starts from 1+ 2+13+12+1=29 sub-channels start to allocate);
S7.对于j=4,由于b1=0w1=1,则主用户跳过该信道(该信道包含1子信道,因此,相当于主用户跳过1个子信道,下一个信道从第1+2+13+12+1+1=30个子信道开始分配);S7. For j=4, since b 1 =0w 1 =1, the primary user skips the channel (this channel contains 1 subchannel, therefore, it is equivalent to the primary user skipping 1 subchannel, and the next channel starts from 1+ 2+13+12+1+1=30 sub-channels start to allocate);
S8.对于j=5,由于b0=1w0=5,则主用户占用该信道(该信道包含5子信道,因此,相当于主用户占用了5个子信道)。S8. For j=5, since b 0 =1w 0 =5, the primary user occupies the channel (this channel includes 5 sub-channels, therefore, it is equivalent to the primary user occupying 5 sub-channels).
至此,整个Si=11020130121105解析完毕,主用户的带宽分配完成,所分配的带宽容量为2个子信道带宽,满足主用户当前Rd=2的带宽需求。对于Rd取值等于0~15内的其它整数,则按照相应的Si,遵循类似的流程进行主用户带宽的分配。So far, the analysis of the entire S i =1 1 0 2 0 13 0 12 1 1 0 5 is completed, and the bandwidth allocation of the primary user is completed. The allocated bandwidth capacity is 2 sub-channel bandwidths, which meets the current bandwidth requirement of the primary user R d =2 . For the value of R d equal to other integers within 0-15, according to the corresponding S i , follow a similar process to allocate the bandwidth of the primary user.
当Rd=2的情况下,依据加权哈夫曼树完成主用户带宽分配后的频谱占用状况如图4所示。When R d =2, the spectrum occupancy status after the primary user bandwidth allocation is completed according to the weighted Huffman tree is shown in FIG. 4 .
(4)次级用户信道感知获取空闲信道(4) Secondary user channel sensing to obtain idle channels
从加权哈夫曼树根结点开始到某个叶子结点结束,所经过的路径如果包含占用状态为0的分支则表示是空闲信道,占用状态为1分支则表示该信道已被占用;信道带宽大小等于分支的权重。From the root node of the weighted Huffman tree to the end of a leaf node, if the path passed through contains a branch with an occupancy state of 0, it means it is an idle channel, and a branch with an occupancy state of 1 means that the channel is already occupied; The bandwidth size is equal to the weight of the branch.
以Rd=2为例,进行次级用户信道感知的算法说明。虽然次级用户对于当前的频谱资源占用状态(图4所示)并不知晓,但次级用户能够根据主用户流量的统计特性,以及预设的子信道带宽,估算出主用户带宽需求的统计特性,并根据该统计特性构造出加权哈夫曼树。不失一般性,假设次级用户与主用户拥有相同的加权哈夫曼树,从而,次级用户能够依据该加权哈夫曼树,并通过信道感知过程逐步获取主用户当前的信道占用状态。其主要步骤如下:Taking R d =2 as an example, the algorithm of secondary user channel sensing is described. Although the secondary user is not aware of the current spectrum resource occupancy status (as shown in Figure 4), the secondary user can estimate the statistical characteristics of the primary user's bandwidth demand based on the statistical characteristics of the primary user's traffic and the preset sub-channel bandwidth. characteristics, and construct a weighted Huffman tree according to the statistical characteristics. Without loss of generality, it is assumed that the secondary user and the primary user have the same weighted Huffman tree, so that the secondary user can gradually obtain the current channel occupancy status of the primary user through the channel sensing process according to the weighted Huffman tree. Its main steps are as follows:
S1.从当前加权哈夫曼树的根结点开始,首先确认当前结点不是叶子结点,因此检测第一个信道状态,方法是次级用户利用信道感知功能获取第一个信道的第一个子信道状态(因为每个信道至少包含一个子信道),用获得的第一个子信道的占用状态代表整个信道的状态。S1. Starting from the root node of the current weighted Huffman tree, first confirm that the current node is not a leaf node, so detect the state of the first channel, the method is that the secondary user uses the channel sensing function to obtain the first channel of the first channel sub-channel states (because each channel contains at least one sub-channel), and the obtained occupancy state of the first sub-channel represents the state of the entire channel.
S2.根据频谱感知结果,由于当前信道是处于被占用状态,因此在加权哈夫曼树中选择当前结点的右分支。当前分支权重为1,因此次级用户需跳过1个子信道,从第1+1=2个子信道开始下一轮的检测。S2. According to the spectrum sensing result, since the current channel is in an occupied state, select the right branch of the current node in the weighted Huffman tree. The current branch weight is 1, so the secondary user needs to skip 1 sub-channel, and start the next round of detection from the 1st+1=2 sub-channel.
S3.根据频谱感知结果,由于当前信道处于空闲状态,因此在加权哈夫曼树中选择当前结点的左分支。当前分支权重为2,因此次级用户需跳过2个子信道,从第1+2+1=4个信道开始下一轮的检测。S3. According to the spectrum sensing result, since the current channel is in an idle state, select the left branch of the current node in the weighted Huffman tree. The current branch weight is 2, so the secondary user needs to skip 2 sub-channels, and start the next round of detection from the 1st+2+1=4th channel.
S4.根据频谱感知结果,由于当前信道处于空闲状态,因此在加权哈夫曼树中选择当前结的左分支,并沿着左分支到达下一个结点。当前分支权重为13,因此次级用户需跳过13个子信道,从第1+2+13+1=17个信道开始下一轮的检测。S4. According to the spectrum sensing result, since the current channel is in an idle state, select the left branch of the current node in the weighted Huffman tree, and reach the next node along the left branch. The current branch weight is 13, so the secondary user needs to skip 13 sub-channels, and start the next round of detection from the 1+2+13+1=17th channel.
S5.根据频谱感知结果,由于当前信道处于空闲状态,因此在加权哈夫曼树中选择当前结点的左分支,并沿着左分支到达下一个结点。当前分支权重为12,因此次级用户需跳过12个子信道,从第1+2+13+12+1=29个信道开始下一轮的检测。S5. According to the spectrum sensing result, since the current channel is in an idle state, select the left branch of the current node in the weighted Huffman tree, and reach the next node along the left branch. The current branch weight is 12, so the secondary user needs to skip 12 sub-channels, and start the next round of detection from the 1+2+13+12+1=29th channel.
S6.根据频谱感知结果,由于当前信道处于被占用状态,因此在加权哈夫曼树中选择当前结点的右分支,并沿着右分支到达下一个结点。当前分支权重为1,因此次级用户需跳过1个子信道,从第1+2+13+12+1+1=30个信道开始下一轮的检测。S6. According to the spectrum sensing result, since the current channel is in an occupied state, select the right branch of the current node in the weighted Huffman tree, and reach the next node along the right branch. The current branch weight is 1, so the secondary user needs to skip 1 sub-channel, and start the next round of detection from the 1+2+13+12+1+1=30th channel.
S7.根据频谱感知结果,由于当前信道处于空闲状态,因此在加权哈夫曼树中选择当前结点的左分支,并沿着左分支到达下一个结点。当前分支权重为5,因此次级用户需跳过5个子信道。S7. According to the spectrum sensing result, since the current channel is in an idle state, select the left branch of the current node in the weighted Huffman tree, and reach the next node along the left branch. The current branch weight is 5, so the secondary user needs to skip 5 sub-channels.
S8.由于发现当前结点已经是叶子结点,整个频谱感知过程结束.在整个感知过程中,次级用户依次发现了分别包含2个、13个、12个、5个子信道的4个空闲信道,因此次级用户可以利用这4个空闲信道传送自己的数据。S8. Since the current node is found to be a leaf node, the entire spectrum sensing process ends. During the entire sensing process, the secondary user sequentially discovers 4 idle channels containing 2, 13, 12, and 5 sub-channels respectively , so secondary users can use these 4 idle channels to transmit their own data.
上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受所述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiment is a preferred embodiment of the present invention, but the embodiment of the present invention is not limited by the embodiment, and any other changes, modifications, substitutions and combinations made without departing from the spirit and principle of the present invention , simplification, all should be equivalent replacement methods, and are all included in the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011353715.7A CN112566255B (en) | 2020-11-26 | 2020-11-26 | Weighted Huffman tree, primary user bandwidth allocation method and secondary user channel sensing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011353715.7A CN112566255B (en) | 2020-11-26 | 2020-11-26 | Weighted Huffman tree, primary user bandwidth allocation method and secondary user channel sensing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112566255A CN112566255A (en) | 2021-03-26 |
| CN112566255B true CN112566255B (en) | 2022-11-18 |
Family
ID=75045710
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011353715.7A Expired - Fee Related CN112566255B (en) | 2020-11-26 | 2020-11-26 | Weighted Huffman tree, primary user bandwidth allocation method and secondary user channel sensing method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112566255B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104144427A (en) * | 2014-07-23 | 2014-11-12 | 华南理工大学 | Method for distributing frequency band of cognitive radio network |
| CN107565973A (en) * | 2017-08-01 | 2018-01-09 | 中国人民解放军国防科学技术大学 | The implementation method and circuit structure of a kind of expansible Huffman encoding of node |
| CN110602756A (en) * | 2019-09-16 | 2019-12-20 | 山东科技大学 | Method for balancing energy consumption of wireless sensor network nodes based on Huffman tree |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8774111B2 (en) * | 2011-05-06 | 2014-07-08 | Dynamic Invention Llc | Fair and efficient channel allocation and spectrum sensing for cognitive OFDMA networks |
-
2020
- 2020-11-26 CN CN202011353715.7A patent/CN112566255B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104144427A (en) * | 2014-07-23 | 2014-11-12 | 华南理工大学 | Method for distributing frequency band of cognitive radio network |
| CN107565973A (en) * | 2017-08-01 | 2018-01-09 | 中国人民解放军国防科学技术大学 | The implementation method and circuit structure of a kind of expansible Huffman encoding of node |
| CN110602756A (en) * | 2019-09-16 | 2019-12-20 | 山东科技大学 | Method for balancing energy consumption of wireless sensor network nodes based on Huffman tree |
Non-Patent Citations (1)
| Title |
|---|
| A non-uniform bandwidth allocation scheme for efficient cognitive spectrum access;Song Huang et al.;《2015 IEEE International Conference on Communications (ICC)》;20151110;全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112566255A (en) | 2021-03-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103200689B (en) | A kind of link allocation method for multi-Channel Wireless Mesh Network | |
| CN102316594B (en) | Method for cross layer resource distribution and grouped dispatch in cognitive wireless network | |
| CN103686865B (en) | The decision making device and method of Internet usage | |
| CN113099328B (en) | Resource allocation method of multi-core elastic optical network based on node and crosstalk perception | |
| CN104836751A (en) | Spectrum sensing-based single-path service partitioning-merging optical network frequency allocation method | |
| CN108377220B (en) | A Node Importance Aware Transparent Virtual Optical Network Collaborative Mapping Method | |
| CN103428805B (en) | The virtual mapping method of a kind of wireless network based on link anti-interference | |
| CN107820321A (en) | Large-scale consumer intelligence Access Algorithm in a kind of arrowband Internet of Things based on cellular network | |
| CN107770874A (en) | Cluster-dividing method and channel allocation method in super-intensive network | |
| CN114363738A (en) | Virtual network mapping method facing data center resource perception | |
| CN102256362B (en) | A link allocation method for multi-channel wireless network | |
| CN108880709A (en) | Distributed multi-user dynamic spectrum access method in a kind of cognition wireless network | |
| CN103326984B (en) | A kind of channel allocation method based on conflict threshold restriction | |
| CN112566255B (en) | Weighted Huffman tree, primary user bandwidth allocation method and secondary user channel sensing method | |
| CN103281784B (en) | A kind of resource allocation methods and device being total to community based on RRU | |
| CN105592563B (en) | A kind of multi-user's opportunistic spectrum access method | |
| CN101312429A (en) | Time-frequency resource distribution method for OFDM access system | |
| CN104144427B (en) | A kind of wireless cognition network band allocating method | |
| CN103648099A (en) | QoE (Quality of Experience) driven cognitive wireless network spectrum allocation device | |
| CN103167619B (en) | A kind of method for channel allocation for multi-channel wireless sensor network | |
| CN104320772B (en) | D2D communication nodes clustering method and device based on degree of belief and physical distance | |
| CN106506362A (en) | A multi-link fault probabilistic protection method for elastic optical network with minimum fault risk loss | |
| CN103079275B (en) | Aggregated spectrum distribution method based on many knapsack problems | |
| CN103269514B (en) | Based on Secondary Users' power distribution method and the device of frequency spectrum perception | |
| CN105992358B (en) | A kind of resource allocation methods, base station and related network elements |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for 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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20221118 |