CN102572847B - Spectrum allocation method and system - Google Patents
Spectrum allocation method and system Download PDFInfo
- Publication number
- CN102572847B CN102572847B CN201110000398.5A CN201110000398A CN102572847B CN 102572847 B CN102572847 B CN 102572847B CN 201110000398 A CN201110000398 A CN 201110000398A CN 102572847 B CN102572847 B CN 102572847B
- Authority
- CN
- China
- Prior art keywords
- channel
- transmission
- probability
- time
- perception cycle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明涉及一种频谱分配方法及系统。所述频谱分配方法包括以下步骤:将注册频段分成多个信道,获取当前感知周期内每个信道的状态;根据所述当前周期内每个信道的状态预测下一感知周期内每个信道的状态;获取认知用户的传输需求量及每个信道的基本参数,根据所述认知用户的传输需求量及每个信道的基本参数预测认知用户在每个信道上的期望传输时间;计算下一感知周期内多个信道的可用的总传输量;计算下一感知周期内信道满足传输需求的概率;设定约束条件,在约束条件下,计算下一感知周期内多个信道的总带宽的最小值,得出下一感知周期内多个信道的分配结果。上述频谱分配方法及系统,能合理分配多个信道,提高了频谱的利用率。
The invention relates to a spectrum allocation method and system. The spectrum allocation method includes the following steps: dividing the registered frequency band into multiple channels, obtaining the state of each channel in the current sensing cycle; predicting the state of each channel in the next sensing cycle according to the state of each channel in the current cycle Obtain the transmission demand of the cognitive user and the basic parameters of each channel, predict the expected transmission time of the cognitive user on each channel according to the transmission demand of the cognitive user and the basic parameters of each channel; calculate The total available transmission capacity of multiple channels in a sensing period; calculate the probability that the channel meets the transmission demand in the next sensing period; set constraints, and calculate the total bandwidth of multiple channels in the next sensing period under the constraints The minimum value is used to obtain the allocation results of multiple channels in the next sensing cycle. The above frequency spectrum allocation method and system can rationally allocate multiple channels and improve the utilization rate of frequency spectrum.
Description
【技术领域】 【Technical field】
本发明涉及无线通信领域,特别涉及一种频谱分配方法及系统。The present invention relates to the field of wireless communication, in particular to a frequency spectrum allocation method and system.
【背景技术】 【Background technique】
频率是不可再生资源,因此频谱利用率一直以来是大家所关注的问题。目前的频谱分配机制一般都是固定方式的,这种机制的优点在于通信设备在某个固定频段工作,同时也能够得到每个接入网络的系统参数,设备复杂性较小。但是固定频谱分配方法使得大量频谱未得到充分利用,因为某些频谱只能用于特定的地理环境或时间段,而在其他地区或其他时间段频谱资源则处于空闲状态。因此如果能引入新的频谱机制,根据特定的地理条件及用户的实时需求等,达到动态频谱分配,将能极大提高频谱利用率。Frequency is a non-renewable resource, so spectrum utilization has always been a concern of everyone. The current spectrum allocation mechanism is generally fixed. The advantage of this mechanism is that the communication equipment works in a certain fixed frequency band, and at the same time, the system parameters of each access network can be obtained, and the complexity of the equipment is small. However, the fixed spectrum allocation method makes a large amount of spectrum underutilized, because some spectrum can only be used in a specific geographical environment or time period, while spectrum resources are idle in other regions or other time periods. Therefore, if a new spectrum mechanism can be introduced to achieve dynamic spectrum allocation according to specific geographical conditions and real-time needs of users, the spectrum utilization rate will be greatly improved.
传统的频谱分配的方法主要是在数据传输前用马尔科夫链(Markovian)模型预测频谱是否可用,但该种方法可能会造成给需求小的认知用户分配的带宽多,而给需求多的认知用户分配的带宽小,从而造成频谱资源分配的严重不均衡。The traditional spectrum allocation method mainly uses the Markov chain (Markovian) model to predict whether the spectrum is available before data transmission. The bandwidth allocated to cognitive users is small, resulting in a serious imbalance in the allocation of spectrum resources.
【发明内容】 【Content of invention】
基于此,有必要提供一种频谱分配方法,合理分配频谱,提高频谱的利用率。Based on this, it is necessary to provide a spectrum allocation method to rationally allocate spectrum and improve spectrum utilization.
一种频谱分配方法,包括以下步骤:A spectrum allocation method, comprising the following steps:
将注册频段分成多个信道,获取当前感知周期内每个信道的状态;Divide the registered frequency band into multiple channels, and obtain the status of each channel in the current sensing cycle;
根据所述当前周期内每个信道的状态预测下一感知周期内每个信道的状态;predicting the state of each channel in the next sensing cycle according to the state of each channel in the current cycle;
获取认知用户的传输需求量及每个信道的基本参数,根据所述认知用户的传输需求量及每个信道的基本参数预测认知用户在每个信道的期望传输时间,所述基本参数包括信道的正向传输率和反馈传输率、信道的带宽、信道上传输的信息总量;Obtain the transmission demand of the cognitive user and the basic parameters of each channel, predict the expected transmission time of the cognitive user on each channel according to the transmission demand of the cognitive user and the basic parameters of each channel, the basic parameters Including the forward transmission rate and feedback transmission rate of the channel, the bandwidth of the channel, and the total amount of information transmitted on the channel;
根据所述预测的下一感知周期内每个信道的状态、每个信道的带宽及认知用户在每个信道的期望传输时间,计算下一感知周期内多个信道的可用的总传输量;According to the state of each channel in the predicted next sensing period, the bandwidth of each channel and the expected transmission time of cognitive users on each channel, calculate the available total transmission capacity of multiple channels in the next sensing period;
计算下一感知周期内信道满足传输需求的概率;Calculate the probability that the channel meets the transmission requirements in the next sensing cycle;
根据所述下一感知周期内信道满足传输需求的概率及多个信道的可用的总传输量设定约束条件,在所述约束条件下,计算下一感知周期内多个信道的总带宽的最小值,得出下一感知周期内多个信道的分配结果。According to the probability that the channel meets the transmission demand in the next sensing period and the available total transmission capacity of the multiple channels, the constraint condition is set, and under the constraint condition, the minimum of the total bandwidth of the multiple channels in the next sensing period is calculated value, and obtain the allocation results of multiple channels in the next sensing period.
优选地,所述约束条件为下一感知周期内信道满足传输需求的概率大于条件阈值,且下一感知周期内多个信道的可用的总传输量大于等于所述认知用户的传输需求量。Preferably, the constraint condition is that the probability that the channel meets the transmission requirement in the next sensing period is greater than a conditional threshold, and the total available transmission capacity of multiple channels in the next sensing period is greater than or equal to the transmission demand of the cognitive user.
优选地,所述根据当前周期内每个信道的状态预测下一感知周期内每个信道的状态的具体步骤包括:Preferably, the specific step of predicting the state of each channel in the next sensing cycle according to the state of each channel in the current cycle includes:
建立信道状态的马尔科夫链模型,所述信道状态包括空闲状态和占用状态,所述信道状态的空闲状态和占用状态采用指数分布函数表示;Establishing a Markov chain model of the channel state, the channel state includes an idle state and an occupied state, and the idle state and the occupied state of the channel state are represented by an exponential distribution function;
设置状态阈值,根据所述当前感知周期内信道状态计算下一感知周期内每个信道的可用概率,将每个信道的可用概率与所述状态阈值比较,若所述信道的可用概率大于等于所述状态阈值,所述下一感知周期内信道状态为空闲状态,否则所述下一感知周期内信道状态为占用状态。Set the state threshold, calculate the available probability of each channel in the next sensing cycle according to the channel state in the current sensing cycle, compare the available probability of each channel with the state threshold, if the available probability of the channel is greater than or equal to the specified The state threshold, the channel state in the next sensing period is an idle state, otherwise the channel state in the next sensing cycle is an occupied state.
优选地,所述计算下一感知周期的信道满足传输需求的概率具体包括:Preferably, the calculation of the probability that the channel in the next sensing period meets the transmission requirement specifically includes:
比较认知用户在每个信道的期望传输时间得出最大期望传输时间,计算信道的空闲状态的时间小于最大期望传输时间的概率;Comparing the expected transmission time of cognitive users in each channel to obtain the maximum expected transmission time, and calculating the probability that the idle state time of the channel is less than the maximum expected transmission time;
根据所述计算得到的信道的空闲状态的时间小于最大期望传输时间的概率,得出下一感知周期内该信道满足传输需求的概率。According to the calculated probability that the idle state time of the channel is less than the maximum expected transmission time, the probability that the channel meets the transmission requirement in the next sensing period is obtained.
优选地,所述获取信道的正向传输率或反馈传输率的具体步骤为:Preferably, the specific steps of obtaining the forward transmission rate or feedback transmission rate of the channel are:
设定时间窗口和发送探测包的间隔时间;Set the time window and the interval between sending probe packets;
根据时间窗口及间隔时间计算得出发送探测包的数量;Calculate the number of probe packets sent according to the time window and interval;
获取在所述设定时间窗口内接收到的探测包的数量;Obtain the number of detection packets received within the set time window;
计算接收到的探测包的数量与发送的探测包的数量之比,得出信道的正向传输率或反馈传输率。The ratio of the number of probe packets received to the number of probe packets sent is calculated to obtain the forward transmission rate or feedback transmission rate of the channel.
优选地,所述信道的期望传输时间的计算公式为:Preferably, the calculation formula of the expected transmission time of the channel is:
其中,ETTi为信道i的期望传输时间,Mi是信道i上传输的信息总量,Bi是信道i的带宽,γ为信道i容量的修正参数,为信道i的正向传输率,为信道i的反馈传输率,SINRi为信道i的信噪比。Among them, ETT i is the expected transmission time of channel i, M i is the total amount of information transmitted on channel i, B i is the bandwidth of channel i, γ is the correction parameter of channel i capacity, is the forward transmission rate of channel i, is the feedback transmission rate of channel i, and SINR i is the signal-to-noise ratio of channel i.
此外,还有必要提供一种频谱分配系统,合理分配频谱,提高频谱的利用率。In addition, it is also necessary to provide a spectrum allocation system to rationally allocate spectrum and improve spectrum utilization.
一种频谱分配系统,包括:A spectrum allocation system comprising:
扫描模块,用于将注册频段分成多个信道,获取当前感知周期内每个信道的状态;The scanning module is used to divide the registered frequency band into multiple channels, and obtain the status of each channel in the current sensing period;
预测模块,用于根据所述当前周期内每个信道的状态预测下一感知周期内每个信道的状态;A prediction module, configured to predict the state of each channel in the next sensing cycle according to the state of each channel in the current cycle;
参数获取模块,用于获取认知用户的传输需求量及每个信道的基本参数,所述基本参数包括信道的正向传输率和反馈传输率、信道的带宽、信道上传输的信息总量;The parameter acquisition module is used to obtain the transmission demand of cognitive users and the basic parameters of each channel, the basic parameters include the forward transmission rate and feedback transmission rate of the channel, the bandwidth of the channel, and the total amount of information transmitted on the channel;
计算模块,用于根据所述认知用户的传输需求量及每个信道的基本参数计算认知用户在每个信道的期望传输时间,根据所述预测的下一感知周期内每个信道的状态、每个信道的带宽及认知用户在每个信道的期望传输时间,计算下一感知周期内多个信道的可用的总传输量,并计算下一感知周期内信道满足传输需求的概率;A calculation module, configured to calculate the expected transmission time of the cognitive user on each channel according to the transmission demand of the cognitive user and the basic parameters of each channel, and according to the state of each channel in the predicted next sensing period , the bandwidth of each channel and the expected transmission time of cognitive users in each channel, calculate the total available transmission capacity of multiple channels in the next sensing cycle, and calculate the probability that the channel meets the transmission demand in the next sensing cycle;
信道分配模块,用于根据所述下一感知周期内信道满足传输需求的概率及多个信道的可用的总传输量设定约束条件,在所述约束条件下,计算下一感知周期内多个信道的总带宽的最小值,得出下一感知周期内多个信道的分配结果。The channel allocation module is configured to set constraint conditions according to the probability that the channel meets the transmission demand in the next sensing period and the available total transmission capacity of multiple channels, and under the constraint conditions, calculate multiple channels in the next sensing period The minimum value of the total bandwidth of the channel is used to obtain the allocation result of multiple channels in the next sensing cycle.
优选地,所述约束条件为下一感知周期的信道满足传输需求的概率大于条件阈值,且下一感知周期的多个信道的可用的总传输量大于等于所述认知用户的传输需求量。Preferably, the constraint condition is that the probability that the channel in the next sensing period meets the transmission requirement is greater than a conditional threshold, and the total available transmission capacity of the multiple channels in the next sensing period is greater than or equal to the transmission demand of the cognitive user.
优选地,所述预测模块包括建模单元、设置单元、计算单元和判断单元,所述建模单元用于建立信道状态的马尔科夫链模型,所述信道状态包括空闲状态和占用状态,所述信道状态的空闲状态和占用状态采用指数分布函数表示;所述设置单元设置状态阈值;所述计算单元根据所述当前感知周期内信道状态计算下一感知周期内每个信道的可用概率;所述判断单元用于比较每个信道的可用概率与所述状态阈值,若所述信道的可用概率大于等于所述状态阈值,所述下一感知周期内信道状态为空闲状态,否则所述下一感知周期内信道状态为占用状态。Preferably, the prediction module includes a modeling unit, a setting unit, a calculation unit, and a judging unit, the modeling unit is used to establish a Markov chain model of a channel state, and the channel state includes an idle state and an occupied state, so The idle state and the occupied state of the channel state are represented by an exponential distribution function; the setting unit sets a state threshold; the calculation unit calculates the available probability of each channel in the next sensing cycle according to the channel state in the current sensing cycle; The judging unit is used to compare the available probability of each channel with the state threshold, if the available probability of the channel is greater than or equal to the state threshold, the channel state in the next sensing cycle is idle state, otherwise the next During the sensing period, the channel state is occupied state.
优选地,所述计算模块还用于比较认知用户在每个信道的期望传输时间得出最大期望传输时间,计算信道的空闲状态的时间小于最大期望传输时间的概率,并根据所述计算得到的信道的空闲状态的时间小于最大期望传输时间的概率,得出下一感知周期内该信道满足传输需求的概率。Preferably, the calculation module is also used to compare the expected transmission time of cognitive users on each channel to obtain the maximum expected transmission time, calculate the probability that the idle state time of the channel is less than the maximum expected transmission time, and obtain according to the calculation The probability that the idle state time of the channel is less than the maximum expected transmission time is obtained, and the probability that the channel meets the transmission demand in the next sensing cycle is obtained.
优选地,所述参数获取模块包括传输率处理单元,所述传输率处理单元设定时间窗口和发送探测包的间隔时间,根据时间窗口及间隔时间计算得出发送探测包的数量,获取在所述设定时间窗口内接收到的探测包的数量,计算得出接收到的探测包的数量与发送的探测包的数量之比,得出信道的正向传输率或反馈传输率。Preferably, the parameter acquisition module includes a transmission rate processing unit, the transmission rate processing unit sets the time window and the interval time for sending probe packets, calculates the number of send probe packets according to the time window and interval time, and obtains the The number of probe packets received within the set time window is calculated to obtain the ratio of the number of received probe packets to the number of sent probe packets to obtain the forward transmission rate or feedback transmission rate of the channel.
优选地,所述计算模块计算所述信道的期望传输时间的公式为:Preferably, the formula for calculating the expected transmission time of the channel by the calculation module is:
其中,ETTi为信道i的期望传输时间,Mi是信道i上传输的信息总量,Bi是信道i的带宽,γ为信道i容量的修正参数,为信道i的正向传输率,为信道i的反馈传输率,SINRi为信道i的信噪比。Among them, ETT i is the expected transmission time of channel i, M i is the total amount of information transmitted on channel i, B i is the bandwidth of channel i, γ is the correction parameter of channel i capacity, is the forward transmission rate of channel i, is the feedback transmission rate of channel i, and SINR i is the signal-to-noise ratio of channel i.
上述频谱分配方法及系统,采用获取当前感知周期内每个信道的状态,预测下一感知周期内的每个信道的状态,计算认知用户在每个信道的期望传输时间,再计算下一周期内多个信道的可用的总传输量和信道满足传输需求的概率,设定约束条件,在约束条件下求解多个信道的总带宽的最小值,从而得出下一周期内多个信道的分配结果,如此,能合理分配多个信道,提高了频谱的利用率。The spectrum allocation method and system above adopts the method of obtaining the state of each channel in the current sensing cycle, predicting the state of each channel in the next sensing cycle, calculating the expected transmission time of the cognitive user on each channel, and then calculating the next cycle The available total transmission capacity of multiple channels and the probability that the channel meets the transmission demand, set constraints, and solve the minimum value of the total bandwidth of multiple channels under the constraints, so as to obtain the allocation of multiple channels in the next cycle As a result, in this way, a plurality of channels can be reasonably allocated, and the utilization rate of spectrum is improved.
【附图说明】 【Description of drawings】
图1为一个实施例中频谱分配方法的流程图;Fig. 1 is a flowchart of a spectrum allocation method in an embodiment;
图2为一个实施例中获取信道的正向传输率的方法流程图;Fig. 2 is a flow chart of the method for obtaining the forward transmission rate of the channel in one embodiment;
图3为一个实施例中频谱分配系统的结构示意图;FIG. 3 is a schematic structural diagram of a spectrum allocation system in an embodiment;
图4为图3中预测模块的内部结构示意图。FIG. 4 is a schematic diagram of the internal structure of the prediction module in FIG. 3 .
【具体实施方式】 【Detailed ways】
下面结合具体的实施例及附图对技术方案进行详细的描述。The technical solution will be described in detail below in conjunction with specific embodiments and accompanying drawings.
如图1所示,一个实施例中,一种频谱分配方法,包括以下步骤:As shown in Figure 1, in one embodiment, a spectrum allocation method includes the following steps:
步骤S10,将注册频段分成多个信道,获取当前感知周期内每个信道的状态。Step S10, divide the registered frequency band into multiple channels, and obtain the status of each channel in the current sensing period.
在步骤S10中,频谱为无线电频谱资源,通常指长波、中波、短波、超短波和微波,一般指9KHz~3000GHz(频率单位为:赫兹Hz)频率范围内发射无线电波的无线电频率的总称。整个频谱有部分已被注册使用,该频谱称为注册频段。将注册频段分成多个信道,信道i的带宽为Bi。该多个信道都已经被授权给主用户,为注册信道。注册用户是指授权的用户,具有频谱的优先使用权。认知用户是指未授权的用户,动态跟踪用户的频谱占用情况,在未使用的空闲频谱上通信,当注册用户重新使用频谱时,认知用户需将频谱归还给注册用户使用。认知用户在当前感知周期内,扫描多个信道,可获取当前感知周期内每个信道的状态。认知用户只需扫描一次,获取当前周期内每个信道的状态,后续每个周期内每个信道的状态可通过预测得到。感知周期为认知用户定期扫描的间隔时间,感知周期刚开始可由用户自行设定,实际进行数据传输后可根据传输结果进行调整。In step S10, the frequency spectrum is a radio frequency spectrum resource, usually referring to long wave, medium wave, short wave, ultrashort wave and microwave, generally referring to the general term for radio frequencies emitting radio waves within the frequency range of 9KHz to 3000GHz (frequency unit: Hertz Hz). Part of the entire frequency spectrum has been registered for use, and this frequency spectrum is called a registered frequency band. The registered frequency band is divided into multiple channels, and the bandwidth of channel i is B i . The multiple channels have been authorized to the primary user, and are registered channels. Registered users refer to authorized users who have priority to use the spectrum. Cognitive users refer to unauthorized users, who dynamically track the user's spectrum occupancy and communicate on the unused idle spectrum. When the registered user reuses the spectrum, the cognitive user needs to return the spectrum to the registered user. Cognitive users can scan multiple channels in the current sensing cycle to obtain the status of each channel in the current sensing cycle. Cognitive users only need to scan once to obtain the status of each channel in the current period, and the status of each channel in each subsequent period can be obtained through prediction. The perception cycle is the interval time for the cognitive user to regularly scan. The perception cycle can be set by the user at the beginning, and can be adjusted according to the transmission result after the actual data transmission.
步骤S20,根据该当前周期内每个信道的状态预测下一感知周期内每个信道的状态。认知用户扫描获取到当前感知周期内每个信道的状态,可以预测与当前感知周期相邻的下一感知周期内每个信道的状态。Step S20, predicting the state of each channel in the next sensing cycle according to the state of each channel in the current cycle. Cognitive user scans to obtain the state of each channel in the current sensing cycle, and can predict the state of each channel in the next sensing cycle adjacent to the current sensing cycle.
在一个实施例中,步骤S20具体步骤包括:In one embodiment, the specific steps of step S20 include:
(I)建立信道状态的马尔科夫链模型,该信道状态包括空闲状态和占用状态,且信道状态的空闲状态和占用状态采用指数分布函数表示。(1) Set up the Markov chain model of channel state, this channel state comprises idle state and occupied state, and the idle state of channel state and occupied state adopts exponential distribution function to represent.
信道的空闲状态是指信道未被注册用户专用,占用状态是指信道被注册用户专用,建立信道状态的马尔科夫链模型预测信道的两个状态的转换。信道的状态采用Si表示,Si∈(0(BUSY),1(IDLE))。信道的空闲状态和占用状态的时间长度用随机变量表示,空闲状态时空闲的时间长度采用随机变量Yi表示;占用状态时占用的时间长度采用随机变量Xi表示。信道状态的时间持续长度呈独立的指数分布,这个随机过程形成了一个连续时间的马尔科夫链。The idle state of the channel means that the channel is not dedicated to the registered user, and the occupied state means that the channel is dedicated to the registered user. The Markov chain model of the channel state is established to predict the conversion of the two states of the channel. The state of the channel is represented by S i , S i ∈ (0(BUSY), 1(IDLE)). The time length of the idle state and the occupied state of the channel is represented by a random variable, the idle time length in the idle state is represented by a random variable Y i ; the occupied time length in the occupied state is represented by a random variable Xi . The time durations of channel states are independently exponentially distributed, and this stochastic process forms a continuous-time Markov chain.
对于每个信道i,每次空闲状态(即空闲状态)的时间长度yi遵循均值为的指数分布,如式(1):For each channel i, the time length y i of each idle state (i.e. idle state) follows the mean value The exponential distribution of , such as formula (1):
对于每个信道i,每次占用状态(忙状态)的时间长度xi遵循均值为的指数分布,如式(2):For each channel i, the time length x i of each occupied state (busy state) follows the mean value The exponential distribution of , such as formula (2):
(II)设置状态阈值,根据当前感知周期内信道状态计算下一感知周期内每个信道的可用概率,将每个信道的可用概率与该状态阈值比较,若信道的可用概率大于等于该状态阈值,则下一感知周期内该信道的状态为空闲状态,否则为占用状态。状态阈值可由用户设定,然后根据实验进行的结果对其进行调整。(II) Set the state threshold, calculate the available probability of each channel in the next sensing cycle according to the channel state in the current sensing cycle, compare the available probability of each channel with the state threshold, if the available probability of the channel is greater than or equal to the state threshold , then the state of the channel in the next sensing period is idle state, otherwise it is occupied state. Status thresholds can be set by the user, and then adjusted based on the results of experiments performed.
根据注册用户的静态通信模型,预测信道的可用概率。信道的可用概率即为信道空闲的概率。下一感知周期内信道i空闲的概率,计算公式如下:According to the static communication model of the registered users, the available probability of the channel is predicted. The available probability of the channel is the probability that the channel is idle. The probability of channel i being idle in the next sensing cycle is calculated as follows:
式(3)中,Pi idle为下一感知周期内信道i空闲的概率,Δti为相邻两次观察时隙的间隔时间,Si=IDLE或Si=BUSY为当前感知周期内信道的状态。In formula (3), P i idle is the probability of channel i being idle in the next sensing period, Δt i is the interval between two adjacent observation time slots, S i =IDLE or S i =BUSY is the channel i in the current sensing period status.
将计算得出的下一感知周期内信道的可用概率与状态阈值比较,可得出下一感知周期内该信道的状态。Comparing the calculated available probability of the channel in the next sensing cycle with the state threshold, the state of the channel in the next sensing cycle can be obtained.
步骤S30,获取认知用户的传输需求量及每个信道的基本参数,根据认知用户的传输需求量及每个信道的基本参数预测认知用户在每个信道的期望传输时间,该基本参数包括信道的正向传输率和反馈传输率、信道的带宽、信道上传输的信息总量。Step S30, obtain the cognitive user's transmission demand and the basic parameters of each channel, predict the cognitive user's expected transmission time in each channel according to the cognitive user's transmission demand and the basic parameters of each channel, the basic parameters Including the forward transmission rate and feedback transmission rate of the channel, the bandwidth of the channel, and the total amount of information transmitted on the channel.
在步骤S30中,认知用户的传输需求量采用M表示。信道的基本参数包括信道的正向传输率和反馈传输率、信道的带宽、信道上传输的信息总量。In step S30, the transmission demand of the cognitive user is represented by M. The basic parameters of the channel include the forward transmission rate and feedback transmission rate of the channel, the bandwidth of the channel, and the total amount of information transmitted on the channel.
其中,信道的正向传输率和反馈传输率为成功传输的概率。认知用户在传输数据包的时候,并非每次传输都会成功,需要多次传输才会成功,因此存在一个传输次数的期望值(ETX),即指成功传递一个数据包所需次数的期望值。传输次数的期望值可通过正向传输率和反馈的传输率来计算。正向传输率df代表一个数据包成功到达接收端的概率,反馈传输率dr是指成功收到ACK(TCP数据包首部中的确认标志,对已接收到的TCP报文进行确认)包的概率。因此,一个数据包被成功的接收并且反馈的概率为df*dr,若发送端未接收到ACK包,就会重新传输数据包。Among them, the forward transmission rate and the feedback transmission rate of the channel are the probability of successful transmission. When the cognitive user transmits a data packet, not every transmission will be successful, and multiple transmissions are required to succeed. Therefore, there is an expected value of transmission times (ETX), which refers to the expected value of the number of times required to successfully deliver a data packet. The expected value of the number of transmissions can be calculated by the forward transmission rate and the feedback transmission rate. The forward transmission rate d f represents the probability that a data packet successfully arrives at the receiving end, and the feedback transmission rate d r refers to the successful reception of the ACK (the confirmation flag in the header of the TCP data packet, which confirms the received TCP message) packet probability. Therefore, the probability that a data packet is successfully received and fed back is d f *d r , and if the sender does not receive the ACK packet, it will retransmit the data packet.
每次传输尝试可看作是一次伯努利实验,传输次数的期望值可用下式计算:Each transmission attempt can be regarded as a Bernoulli experiment, and the expected value of the number of transmissions can be calculated by the following formula:
式(4)中,ETX为传输次数的期望值,df为正向传输率,dr为反馈传输率。In formula (4), ETX is the expected value of transmission times, d f is the forward transmission rate, and d r is the feedback transmission rate.
优选的实施例中,如图2所示,获取信道的正向传输率df或反馈传输率dr具体包括以下步骤:In a preferred embodiment, as shown in FIG. 2, obtaining the forward transmission rate d f or the feedback transmission rate d r of the channel specifically includes the following steps:
步骤S300,设定时间窗口和发送探测包的间隔时间。设定时间窗口w,发送探测包的间隔时间τ。Step S300, setting a time window and an interval for sending detection packets. Set the time window w, the interval time τ between sending probe packets.
步骤S310,根据时间窗口及间隔时间计算得出发送探测包的数量。w/τ是在设定时间窗口内发送探测包的个数。Step S310, calculate and obtain the number of sending detection packets according to the time window and the interval time. w/τ is the number of probe packets sent within the set time window.
步骤S320,获取在所述设定时间窗口内接收到的探测包的数量。在设定时间窗口w内,在接收端接收到的探测包的数量为Count(t-w,t)。Step S320, acquiring the number of probe packets received within the set time window. Within the set time window w, the number of probe packets received at the receiving end is Count(t-w, t).
步骤S330,计算接收到的探测包的数量与发送的探测包的数量之比,得出信道的正向传输率或反馈传输率。信道正向传输率的计算公式如式(5):Step S330, calculating the ratio of the number of received probe packets to the number of sent probe packets to obtain the forward transmission rate or feedback transmission rate of the channel. The calculation formula of channel forward transmission rate is as formula (5):
采用同样的方法求得反馈传输率。Use the same method to obtain the feedback transmission rate.
多个信道设为N个,信道i的带宽为Bi。信道i上传输的信息总量为Mi,即N个信道上传输的信息总量为认知用户的传输需求量M。The number of channels is set as N, and the bandwidth of channel i is B i . The total amount of information transmitted on channel i is M i , That is, the total amount of information transmitted on N channels is the transmission demand M of cognitive users.
根据认知用户的传输需求量及每个信道的基本参数预测认知用户在每个信道的期望传输时间,认知用户在每个信道的期望传输时间计算公式如式(6)所示:According to the transmission demand of cognitive users and the basic parameters of each channel, the expected transmission time of cognitive users in each channel is predicted. The calculation formula of expected transmission time of cognitive users in each channel is shown in formula (6):
式(6)中,ETTi为信道i的期望传输时间,Mi是信道i上传输的信息总量,Bi是信道i的带宽,γ为信道i容量的修正参数,为信道i的正向传输率,为信道i的反馈传输率,SINRi为信道i的信噪比,Bilog(1+SINRi)为计算信道容量的香浓公式。In formula (6), ETT i is the expected transmission time of channel i, M i is the total amount of information transmitted on channel i, B i is the bandwidth of channel i, γ is the correction parameter of channel i capacity, is the forward transmission rate of channel i, is the feedback transmission rate of channel i, SINR i is the signal-to-noise ratio of channel i, and B i log(1+SINR i ) is the Shannon formula for calculating channel capacity.
步骤S40,根据预测的下一感知周期内每个信道的状态、每个信道的带宽及认知用户在每个信道的期望传输时间,计算下一感知周期内多个信道的可用的总传输量。Step S40, according to the predicted state of each channel in the next sensing cycle, the bandwidth of each channel and the expected transmission time of cognitive users on each channel, calculate the total available transmission capacity of multiple channels in the next sensing cycle .
在步骤S40中,根据预测的下一感知周期内每个信道的状态、每个信道的带宽及认知用户在每个信道的期望传输时间,可计算得出N个信道的可用的总传输量。计算公式如式(7):In step S40, according to the predicted state of each channel in the next sensing period, the bandwidth of each channel and the expected transmission time of cognitive users on each channel, the total available transmission capacity of N channels can be calculated . The calculation formula is as formula (7):
式(7)中,J为N个信道的总传输量。In formula (7), J is the total transmission capacity of N channels.
步骤S50,计算下一感知周期内信道满足传输需求的概率。其中,信道满足传输需求的概率是指信道的可用传输的时间满足认知用户传输需求的概率。Step S50, calculating the probability that the channel meets the transmission requirement in the next sensing cycle. Wherein, the probability that the channel satisfies the transmission requirement refers to the probability that the available transmission time of the channel meets the transmission requirement of the cognitive user.
在步骤S50中计算信道满足传输需求的概率的具体步骤包括:The specific steps for calculating the probability that the channel meets the transmission requirement in step S50 include:
a.比较认知用户在每个信道的期望传输时间得出最大期望传输时间,计算信道的空闲状态的时间小于最大期望传输时间的概率。a. Comparing the expected transmission time of cognitive users in each channel to obtain the maximum expected transmission time, and calculating the probability that the idle state time of the channel is less than the maximum expected transmission time.
最大的期望传输时间Tmax为:The maximum expected transmission time T max is:
当授权信道的空闲状态时间(空闲时间)小于最大的期望传输时间的时候,就会发生信道切换。因此,频谱切换发生在的时候,其中是信道i的空闲时间。When the idle state time (idle time) of the licensed channel is less than the maximum expected transmission time, channel switching will occur. Therefore, spectrum switching occurs at when is the idle time of channel i.
注册用户的空闲时间可以通过参数为λ的指数分布来估计,所以信道切换概率可以表示为:The idle time of registered users can be estimated by an exponential distribution with parameter λ, so the channel switching probability can be expressed as:
式(9)中,Pi为信道i的切换概率。In formula (9), Pi is the switching probability of channel i.
b.根据计算得到的信道的空闲状态的时间小于最大期望传输时间的概率,得出下一感知周期内该信道满足传输需求的概率。b. According to the calculated probability that the idle state time of the channel is less than the maximum expected transmission time, the probability that the channel meets the transmission requirement in the next sensing cycle is obtained.
信道满足传输需求的概率,即信道的空闲时间大于等于最大期望传输时间的概率,也就是不需要进行频谱切换的概率,采用Pa表示,计算公式如式(10):The probability that the channel meets the transmission requirements, that is, the probability that the idle time of the channel is greater than or equal to the maximum expected transmission time, that is, the probability that spectrum switching is not required, is represented by Pa, and the calculation formula is as follows:
Pa=P(Tidel≥Tmax)=1-P(Tidel<Tmax) (10)Pa=P(T idel ≥ T max )=1-P(T idel <T max ) (10)
步骤S60,根据下一感知周期内信道满足传输需求的概率及多个信道的可用的总传输量设定约束条件,在该约束条件下,计算下一感知周期内多个信道的总带宽的最小值,得出下一感知周期内多个信道的分配结果。Step S60, set the constraint condition according to the probability that the channel meets the transmission demand in the next sensing period and the total available transmission capacity of multiple channels, under the constraint condition, calculate the minimum of the total bandwidth of the multiple channels in the next sensing period value, and obtain the allocation results of multiple channels in the next sensing cycle.
在步骤S60中,约束条件为下一感知周期内信道满足传输需求的概率大于条件阈值,且下一感知周期内多个信道的可用的总传输量大于等于认知用户的传输需求量。其中,下一感知周期内信道满足传输需求的概率Pa大于条件阈值δ的公式如式(11):In step S60, the constraint condition is that the probability that the channel meets the transmission demand in the next sensing period is greater than the condition threshold, and the total available transmission capacity of multiple channels in the next sensing period is greater than or equal to the transmission demand of the cognitive user. Among them, the formula for the probability Pa that the channel meets the transmission demand in the next sensing period is greater than the conditional threshold δ is as in formula (11):
Pa=P(Tidel≥Tmax)=1-P(Tidel<Tmax)>δ (11)Pa=P(T idel ≥T max )=1-P(T idel <T max )>δ (11)
条件阈值δ由用户设定,再根据信道使用的结果进行调整。The conditional threshold δ is set by the user, and then adjusted according to the results of channel usage.
下一感知周期内多个信道的可用的总传输量J大于等于认知用户的传输需求量M,计算公式如式(12):The total available transmission capacity J of multiple channels in the next sensing period is greater than or equal to the transmission demand M of the cognitive user, and the calculation formula is as follows (12):
在两个约束条件下,求得多个信道的总带宽的最小值,即 Under the two constraints, the minimum value of the total bandwidth of multiple channels is obtained, namely
多个信道分配后,该求得的感知周期内,认知用户若被分配了信道,则进行数据传输,若没有分配信道,则继续预测与该下一感知周期相邻的下一感知周期,重新预测信道,进行重新分配。After a plurality of channels are allocated, within the obtained sensing period, if the cognitive user is allocated a channel, data transmission will be performed; if no channel is allocated, the next sensing period adjacent to the next sensing period will continue to be predicted, Re-predict the channel and perform reallocation.
在一个实施例中,如图3所示,一种频谱分配系统,包括扫描模块10、预测模块20、参数获取模块30、计算模块40和信道分配模块50。In one embodiment, as shown in FIG. 3 , a spectrum allocation system includes a scanning module 10 , a prediction module 20 , a parameter acquisition module 30 , a calculation module 40 and a channel allocation module 50 .
扫描模块10用于将注册频段分成多个信道,扫描所述多个信道,获取当前感知周期内每个信道的状态。整个频谱有部分分配给注册用户使用,该频谱称为注册频段。将注册频段分成多个信道,信道i的带宽为Bi。该多个信道都已经被授权给主用户,为注册信道。注册用户是指授权的用户,具有频谱的优先使用权。认知用户是指未授权的用户,动态跟踪用户的频谱占用情况,在未使用的空闲频谱上通信,当注册用户重新使用频谱时,认知用户需将频谱归还给注册用户使用。认知用户在当前感知周期内,通过扫描模块10扫描多个信道,可获取当前感知周期内每个信道的状态。扫描模块10只需扫描一次,获取当前周期内每个信道的状态,后续每个周期内每个信道的状态可通过预测得到。感知周期为认知用户定期扫描的间隔时间,感知周期刚开始可由用户自行设定,实际进行数据传输后可根据传输结果进行调整。The scanning module 10 is used to divide the registered frequency band into multiple channels, scan the multiple channels, and obtain the status of each channel in the current sensing period. Part of the entire spectrum is allocated to registered users, and this spectrum is called a registered frequency band. The registered frequency band is divided into multiple channels, and the bandwidth of channel i is B i . The multiple channels have been authorized to the primary user, and are registered channels. Registered users refer to authorized users who have priority to use the spectrum. Cognitive users refer to unauthorized users, who dynamically track the user's spectrum occupancy and communicate on the unused idle spectrum. When the registered user reuses the spectrum, the cognitive user needs to return the spectrum to the registered user. The cognitive user scans a plurality of channels through the scanning module 10 in the current sensing period, and can obtain the status of each channel in the current sensing period. The scanning module 10 only needs to scan once to obtain the state of each channel in the current cycle, and the state of each channel in each subsequent cycle can be obtained through prediction. The perception cycle is the interval time for the cognitive user to regularly scan. The perception cycle can be set by the user at the beginning, and can be adjusted according to the transmission result after the actual data transmission.
预测模块20用于根据当前周期内每个信道的状态预测下一感知周期内每个信道的状态。认知用户扫描获取到当前感知周期内每个信道的状态,预测模块20可以预测与当前感知周期相邻的下一感知周期内每个信道的状态。The prediction module 20 is used to predict the state of each channel in the next sensing cycle according to the state of each channel in the current cycle. The state of each channel in the current sensing period is acquired through scanning by the cognitive user, and the prediction module 20 may predict the state of each channel in the next sensing period adjacent to the current sensing period.
优选的实施例中,如图4所示,预测模块20包括建模单元200、设置单元210、计算单元220和判断单元230。In a preferred embodiment, as shown in FIG. 4 , the forecasting module 20 includes a modeling unit 200 , a setting unit 210 , a calculating unit 220 and a judging unit 230 .
建模单元200用于建立信道状态的马尔科夫链模型,信道状态包括空闲状态和占用状态,信道状态的空闲状态和占用状态采用指数分布函数表示。The modeling unit 200 is used to establish a Markov chain model of the channel state. The channel state includes an idle state and an occupied state, and the idle state and the occupied state of the channel state are represented by an exponential distribution function.
信道的空闲状态为空闲,占用状态为忙(信道被注册用户专用),建立信道状态的马尔科夫链模型预测信道的两个状态的转换。信道的状态采用Si表示,Si∈(0(BUSY),1(IDLE))。信道的空闲状态和占用状态的时间长度用随机变量表示,空闲状态为空闲,空闲的时间长度采用随机变量Yi表示;占用状态为忙,忙的时间长度采用随机变量Xi表示。信道状态的时间持续长度呈独立的指数分布,这个随机过程形成了一个连续时间的马尔科夫链。The idle state of the channel is idle, and the occupied state is busy (the channel is dedicated to registered users), and the Markov chain model of the channel state is established to predict the conversion of the two states of the channel. The state of the channel is represented by S i , S i ∈ (0(BUSY), 1(IDLE)). The time length of the idle state and the occupied state of the channel is represented by a random variable, the idle state is idle, and the idle time length is represented by a random variable Y i ; the occupied state is busy, and the busy time length is represented by a random variable Xi . The time durations of channel states are independently exponentially distributed, and this stochastic process forms a continuous-time Markov chain.
对于每个信道i,每次空闲状态(即空闲状态)的时间长度yi遵循均值为的指数分布,如式(1):For each channel i, the time length y i of each idle state (i.e. idle state) follows the mean value The exponential distribution of , such as formula (1):
对于每个信道i,每次占用状态(忙状态)的时间长度xi遵循均值为的指数分布,如式(2):For each channel i, the time length x i of each occupied state (busy state) follows the mean value The exponential distribution of , such as formula (2):
设置单元210设置状态阈值。状态阈值可由用户设定,然后根据实验进行结果,对其进行调整。The setting unit 210 sets a status threshold. The status threshold can be set by the user, and then adjusted according to the results of the experiment.
计算单元220根据当前感知周期内信道状态计算下一感知周期内每个信道的可用概率。根据注册用户的静态通信模型,预测信道的可用概率。信道的可用概率即为信道空闲的概率。下一感知周期内信道i空闲的概率,计算公式如下:The calculation unit 220 calculates the availability probability of each channel in the next sensing period according to the channel state in the current sensing period. According to the static communication model of the registered users, the available probability of the channel is predicted. The available probability of the channel is the probability that the channel is idle. The probability of channel i being idle in the next sensing period is calculated as follows:
式(3)中,Pi idle为下一感知周期内信道i空闲的概率,Δti为上相邻两次观察时隙的间隔时间,Si=IDLE或Si=BUSY为当前感知周期内信道的状态。In formula (3), P i idle is the probability that channel i is idle in the next sensing cycle, Δt i is the interval between two adjacent observation time slots, and S i =IDLE or S i =BUSY is the probability of channel i being idle in the current sensing cycle The state of the channel.
判断单元230用于比较每个信道的可用概率与状态阈值,若信道的可用概率大于等于所述状态阈值,下一感知周期内该信道状态为空闲状态,否则下一感知周期内该信道状态为占用状态。The judging unit 230 is used to compare the available probability of each channel with the state threshold, if the available probability of the channel is greater than or equal to the state threshold, the channel state in the next sensing cycle is idle state, otherwise the channel state in the next sensing cycle is occupancy state.
参数获取模块30用于获取认知用户的传输需求量及每个信道的基本参数,该基本参数包括信道的正向传输率和反馈传输率、信道的带宽、信道上传输的信息总量。The parameter acquisition module 30 is used to acquire the transmission demand of cognitive users and the basic parameters of each channel, the basic parameters include the forward transmission rate and feedback transmission rate of the channel, the bandwidth of the channel, and the total amount of information transmitted on the channel.
其中,信道的正向传输率和反馈传输率为成功传输的概率。认知用户在传输数据包的时候,并非每次传输都会成功,需要多次传输才会成功,因此存在一个传输次数的期望值(ETX),即指成功传递一个数据包所需次数的期望值。传输次数的期望值可通过正向传输率和反馈的传输率来计算。正向传输率df代表一个数据包成功到达接收端的概率,反馈传输率dr是指成功收到ACK(TCP数据包首部中的确认标志,对已接收到的TCP报文进行确认)包的概率。因此,一个数据包被成功的接收并且反馈的概率为df*dr,若发送端未接收到ACK包,就会重新传输数据包。Among them, the forward transmission rate and the feedback transmission rate of the channel are the probability of successful transmission. When the cognitive user transmits a data packet, not every transmission will be successful, and multiple transmissions are required to succeed. Therefore, there is an expected value of transmission times (ETX), which refers to the expected value of the number of times required to successfully deliver a data packet. The expected value of the number of transmissions can be calculated by the forward transmission rate and the feedback transmission rate. The forward transmission rate d f represents the probability that a data packet successfully arrives at the receiving end, and the feedback transmission rate d r refers to the successful reception of the ACK (the confirmation flag in the header of the TCP data packet, which confirms the received TCP message) packet probability. Therefore, the probability that a data packet is successfully received and fed back is d f *d r , and if the sender does not receive the ACK packet, it will retransmit the data packet.
每次传输尝试可看作是一次伯努利实验,传输次数的期望值可用下式计算:Each transmission attempt can be regarded as a Bernoulli experiment, and the expected value of the number of transmissions can be calculated by the following formula:
式(4)中,ETX为传输次数的期望值,df为正向传输率,dr为反馈传输率。In formula (4), ETX is the expected value of transmission times, d f is the forward transmission rate, and d r is the feedback transmission rate.
优选的实施例中,参数获取模块30包括传输率处理单元,所述传输率处理单元用于获取信道的正向传输率df或反馈传输率dr。具体过程包括:In a preferred embodiment, the parameter acquisition module 30 includes a transmission rate processing unit, and the transmission rate processing unit is configured to acquire the forward transmission rate d f or the feedback transmission rate d r of the channel. The specific process includes:
(a1)设定时间窗口和发送探测包的间隔时间。设定时间窗口w,发送探测包的间隔时间τ。(a1) Set the time window and the interval for sending probe packets. Set the time window w, the interval time τ between sending probe packets.
(a2)根据时间窗口及间隔时间计算得出发送探测包的数量。w/τ是在设定时间窗口内发送探测包的个数。(a2) Calculate the number of sending detection packets according to the time window and the interval time. w/τ is the number of probe packets sent within the set time window.
(a3)获取在所述设定时间窗口内接收到的探测包的数量。在设定时间窗口w内,在接收端接收到的探测包的数量为Count(t-w,t)。(a3) Obtain the number of detection packets received within the set time window. Within the set time window w, the number of probe packets received at the receiving end is Count(t-w, t).
(a4)计算接收到的探测包的数量与发送的探测包的数量之比,得出信道的正向传输率或反馈传输率。信道正向传输率的计算公式如式(5):(a4) Calculate the ratio of the number of probe packets received to the number of probe packets sent to obtain the forward transmission rate or feedback transmission rate of the channel. The formula for calculating the channel forward transmission rate is shown in formula (5):
采用同样的方式求得反馈传输率。The feedback transmission rate is obtained in the same way.
多个信道设为N个,信道i的带宽为Bi。信道i上传输的信息总量为Mi,即N个信道上传输的信息总量为认知用户的传输需求量M。The number of channels is set as N, and the bandwidth of channel i is B i . The total amount of information transmitted on channel i is M i , That is, the total amount of information transmitted on N channels is the transmission demand M of cognitive users.
计算模块40用于根据该认知用户的传输需求量及每个信道的基本参数预测认知用户在每个信道的期望传输时间,根据预测的下一感知周期内每个信道的状态、每个信道的带宽及认知用户在每个信道的期望传输时间,计算下一感知周期内多个信道的可用的总传输量,并计算下一感知周期内信道满足传输需求的概率。The calculation module 40 is used to predict the expected transmission time of the cognitive user in each channel according to the transmission demand of the cognitive user and the basic parameters of each channel, and according to the state of each channel in the predicted next sensing cycle, each Based on the bandwidth of the channel and the expected transmission time of the cognitive user in each channel, the total available transmission capacity of multiple channels in the next sensing period is calculated, and the probability that the channel meets the transmission demand in the next sensing period is calculated.
计算模块40根据认知用户的传输需求量及每个信道的基本参数预测认知用户在每个信道的期望传输时间,认知用户在每个信道的期望传输时间计算公式如式(6)所示:Calculation module 40 predicts the expected transmission time of cognitive users on each channel according to the transmission demand of cognitive users and the basic parameters of each channel, and the calculation formula of expected transmission time of cognitive users on each channel is as shown in formula (6) Show:
式(6)中,ETTi为信道i的期望传输时间,Mi是信道i上传输的信息总量,Bi是信道i的带宽,γ为信道i容量的修正参数,为信道i的正向传输率,为信道i的反馈传输率,SINRi为信道i的信噪比,Bilog(1+SINRi)为计算信道容量的香浓公式。In formula (6), ETT i is the expected transmission time of channel i, M i is the total amount of information transmitted on channel i, B i is the bandwidth of channel i, γ is the correction parameter of channel i capacity, is the forward transmission rate of channel i, is the feedback transmission rate of channel i, SINR i is the signal-to-noise ratio of channel i, and B i log(1+SINR i ) is the Shannon formula for calculating channel capacity.
计算模块40根据预测的下一感知周期内每个信道的状态、每个信道的带宽及认知用户在每个信道的期望传输时间,可计算得出N个信道的可用的总传输量。计算公式如式(7):The calculation module 40 can calculate the available total transmission capacity of the N channels according to the predicted state of each channel in the next sensing period, the bandwidth of each channel and the expected transmission time of the cognitive user on each channel. The calculation formula is as formula (7):
式(7)中,J为N个信道的总传输量。In formula (7), J is the total transmission capacity of N channels.
计算模块40计算信道满足传输需求的概率的具体过程包括:The specific process of calculation module 40 calculating the probability that the channel satisfies the transmission requirement includes:
(b1)比较认知用户在每个信道的期望传输时间得出最大期望传输时间,计算信道的空闲状态的时间小于最大期望传输时间的概率。(b1) Comparing the expected transmission time of cognitive users in each channel to obtain the maximum expected transmission time, and calculating the probability that the idle state time of the channel is less than the maximum expected transmission time.
最大的期望传输时间Tmax为:The maximum expected transmission time T max is:
当授权信道的空闲状态时间(空闲时间)小于最大的期望传输时间的时候,就会发生信道切换。因此,频谱切换发生在的时候,其中是信道i的空闲时间。When the idle state time (idle time) of the licensed channel is less than the maximum expected transmission time, channel switching will occur. Therefore, spectrum switching occurs at when is the idle time of channel i.
注册用户的空闲时间可以通过参数为λ的指数分布来估计,所以信道切换概率可以表示为:The idle time of registered users can be estimated by an exponential distribution with parameter λ, so the channel switching probability can be expressed as:
式(9)中,Pi为信道i的切换概率。In formula (9), Pi is the switching probability of channel i.
(b2)根据计算得到的信道的空闲状态的时间小于最大期望传输时间的概率,得出下一感知周期内该信道满足传输需求的概率。(b2) According to the calculated probability that the idle state time of the channel is less than the maximum expected transmission time, obtain the probability that the channel meets the transmission requirement in the next sensing cycle.
信道满足传输需求的概率,即信道的空闲时间大于等于最大期望传输时间的概率,也就是不需要进行频谱切换的概率,采用Pa表示,计算公式如式(10):The probability that the channel meets the transmission requirements, that is, the probability that the idle time of the channel is greater than or equal to the maximum expected transmission time, that is, the probability that spectrum switching is not required, is represented by Pa, and the calculation formula is as follows:
Pa=P(Tidel≥Tmax)=1-P(Tidel<Tmax) (10)Pa=P(T idel ≥ T max )=1-P(T idel <T max ) (10)
信道分配模块50用于根据下一感知周期内信道满足传输需求的概率及多个信道的可用的总传输量设定约束条件,在该约束条件下,计算下一感知周期内多个信道的总带宽的最小值,得出下一感知周期内多个信道的分配结果。The channel allocation module 50 is used to set constraint conditions according to the probability that the channel satisfies the transmission demand in the next sensing period and the available total transmission capacity of multiple channels, and under the constraint conditions, calculate the total The minimum value of the bandwidth is used to obtain the allocation results of multiple channels in the next sensing period.
其中,下一感知周期内信道满足传输需求的概率Pa大于条件阈值δ的公式如式(11):Among them, the formula for the probability Pa that the channel meets the transmission demand in the next sensing period is greater than the conditional threshold δ is as in formula (11):
Pa=P(Tidel≥Tmax)=1-P(Tidel<Tmax)>δ (11)Pa=P(T idel ≥T max )=1-P(T idel <T max )>δ (11)
条件阈值δ由用户设定,再根据信道使用的结果进行调整。The conditional threshold δ is set by the user, and then adjusted according to the results of channel usage.
下一感知周期内多个信道的可用的总传输量J大于等于认知用户的传输需求量M,计算公式如式(12):The total available transmission capacity J of multiple channels in the next sensing period is greater than or equal to the transmission demand M of the cognitive user, and the calculation formula is as follows (12):
在两个约束条件下,求得多个信道的总带宽的最小值,即 Under the two constraints, the minimum value of the total bandwidth of multiple channels is obtained, namely
多个信道分配后,该求得的感知周期内,认知用户若被分配了信道,则进行数据传输,若没有分配信道,则继续预测与该下一感知周期相邻的下一感知周期,重新预测信道,进行重新分配。After a plurality of channels are allocated, within the obtained sensing period, if the cognitive user is allocated a channel, data transmission will be performed; if no channel is allocated, the next sensing period adjacent to the next sensing period will continue to be predicted, Re-predict the channel and perform reallocation.
上述频谱分配方法及系统可应用于认知无线电网络、无线Mesh网、ad hoc网络等。认知无线电是可以根据通信环境自适应地改变通信的频率、带宽、调制技术和传输功率等以满足通信的要求,由认知无线电接点互联而成的网络就是认知无线电网络。无线Mesh网络即无线网格网络,它是一个无线多跳网络。ad hoc网络是点对点模式的网络。The spectrum allocation method and system above can be applied to cognitive radio networks, wireless Mesh networks, ad hoc networks, and the like. Cognitive radio can adaptively change the frequency, bandwidth, modulation technology and transmission power of communication according to the communication environment to meet the requirements of communication. The network formed by the interconnection of cognitive radio nodes is the cognitive radio network. A wireless mesh network is a wireless mesh network, which is a wireless multi-hop network. An ad hoc network is a peer-to-peer network.
另外,衡量一个认知无线电网络频谱分配好坏的指标主要包括频谱切换率,频谱利用率和认知用户的吞吐量。In addition, indicators to measure the spectrum allocation of a cognitive radio network mainly include spectrum switching rate, spectrum utilization rate and throughput of cognitive users.
频谱切换率psh,即认知用户由于注册用户的到来,而切换到其他可用信道的概率。假设注册用户出现的几率服从泊松分布λ,其出现概率为P。在多信道分配的情况下,本技术方案与贪婪算法比较,贪婪算法是指认知用户选择期望传输时间(ETT)最大的信道作为传输信道,从实验结果可以看出,随着认知用户累积流量的增加,贪婪算法分配方法的切换率显著上升。本技术方案与单信道的分配方法相比较,多信道的频谱分配方法的切换率降低了90%。因此本技术方案降低了频谱切换次数,也即降低了数据传输过程中,通信被打断的次数,对频谱利用率有较大提高。Spectrum switching rate p sh , that is, the probability that a cognitive user switches to another available channel due to the arrival of a registered user. Assume that the probability of registered users appearing obeys the Poisson distribution λ, and its appearance probability is P. In the case of multi-channel allocation, this technical solution is compared with the greedy algorithm. The greedy algorithm means that the cognitive user selects the channel with the largest expected transmission time (ETT) as the transmission channel. It can be seen from the experimental results that as the cognitive user accumulates As the traffic increases, the switching rate of the greedy algorithm allocation method increases significantly. Compared with the single-channel allocation method, the switching rate of the multi-channel frequency spectrum allocation method is reduced by 90%. Therefore, the technical solution reduces the number of spectrum switching times, that is, reduces the number of communication interruptions during the data transmission process, and greatly improves the spectrum utilization rate.
本技术方案的频谱利用率的情况。假设认知用户选中的第i个信道上传输的信息总量为Mi,A为被选中用于传输的信道集合。频谱利用率定义为:Spectrum utilization of this technical solution. Assume that the total amount of information transmitted on the i-th channel selected by the cognitive user is M i , and A is the set of channels selected for transmission. Spectrum utilization is defined as:
同贪婪算法和随机分配的频谱方法相比,本技术方案在频谱利用率上的表现较好。Compared with the greedy algorithm and the spectrum method of random allocation, the technical scheme has a better performance in spectrum utilization.
本技术方案的平均吞吐量至少提高100%。The average throughput of the technical solution is increased by at least 100%.
上述频谱分配方法及系统,采用获取当前感知周期内每个信道的状态,预测下一感知周期内的每个信道的状态,计算认知用户在每个信道的期望传输时间,再计算下一周期内多个信道的可用的总传输量和信道满足传输需求的概率,设定约束条件,在约束条件下求解多个信道的总带宽的最小值,从而得出下一周期内多个信道的分配结果,如此,合理分配多个信道,提高了频谱的利用率。The spectrum allocation method and system above adopts the method of obtaining the state of each channel in the current sensing cycle, predicting the state of each channel in the next sensing cycle, calculating the expected transmission time of the cognitive user on each channel, and then calculating the next cycle The available total transmission capacity of multiple channels and the probability that the channel meets the transmission demand, set constraints, and solve the minimum value of the total bandwidth of multiple channels under the constraints, so as to obtain the allocation of multiple channels in the next cycle As a result, in this way, a plurality of channels are allocated reasonably, and the utilization rate of the frequency spectrum is improved.
另外,采用约束条件为下一感知周期内信道满足传输需求的概率大于条件阈值,且下一感知周期内多个信道的可用的总传输量大于等于所述认知用户的传输需求量,保证了信道的可用的总传输量大于等于认知用户的传输需求量,也保证了信道满足传输需求的概率,求解的信道的分配更加准确,降低频谱的切换率,提高了频谱利用率。In addition, the constraint condition is that the probability that the channel meets the transmission demand in the next sensing period is greater than the conditional threshold, and the total available transmission capacity of multiple channels in the next sensing period is greater than or equal to the transmission demand of the cognitive user, ensuring The total available transmission capacity of the channel is greater than or equal to the transmission demand of the cognitive user, which also ensures the probability that the channel meets the transmission demand. The channel allocation obtained by the solution is more accurate, the switching rate of the spectrum is reduced, and the spectrum utilization rate is improved.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110000398.5A CN102572847B (en) | 2011-01-04 | 2011-01-04 | Spectrum allocation method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110000398.5A CN102572847B (en) | 2011-01-04 | 2011-01-04 | Spectrum allocation method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102572847A CN102572847A (en) | 2012-07-11 |
CN102572847B true CN102572847B (en) | 2015-04-15 |
Family
ID=46417053
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110000398.5A Active CN102572847B (en) | 2011-01-04 | 2011-01-04 | Spectrum allocation method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102572847B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10080159B2 (en) * | 2014-06-24 | 2018-09-18 | Qualcomm Incorporated | Dynamic bandwidth management for load-based equipment in unlicensed spectrum |
CN107396370A (en) * | 2017-06-30 | 2017-11-24 | 杭州清本科技有限公司 | Frequency spectrum device for planning |
CN111510927B (en) * | 2020-04-28 | 2023-09-05 | 深圳中科国威信息系统技术有限公司 | Television frequency band selection method for cognitive WiFi |
CN114071546B (en) * | 2021-11-04 | 2023-06-06 | 中国联合网络通信集团有限公司 | A data transmission method, device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101242333A (en) * | 2008-02-29 | 2008-08-13 | 浙江大学 | A Multiple Access Method Based on Channel Sensing and Prediction |
CN101800623A (en) * | 2010-01-29 | 2010-08-11 | 华中科技大学 | Throughput-maximized cognitive radio system |
EP2225904A2 (en) * | 2007-11-27 | 2010-09-08 | Koninklijke Philips Electronics N.V. | Network entry and device discovery for cognitive radio networks |
WO2010137777A1 (en) * | 2009-05-28 | 2010-12-02 | Lg Electronics Inc. | Apparatus and method for determination of frame structure for reducing interference in frequency reuse system using cognitive radio |
-
2011
- 2011-01-04 CN CN201110000398.5A patent/CN102572847B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2225904A2 (en) * | 2007-11-27 | 2010-09-08 | Koninklijke Philips Electronics N.V. | Network entry and device discovery for cognitive radio networks |
CN101242333A (en) * | 2008-02-29 | 2008-08-13 | 浙江大学 | A Multiple Access Method Based on Channel Sensing and Prediction |
WO2010137777A1 (en) * | 2009-05-28 | 2010-12-02 | Lg Electronics Inc. | Apparatus and method for determination of frame structure for reducing interference in frequency reuse system using cognitive radio |
CN101800623A (en) * | 2010-01-29 | 2010-08-11 | 华中科技大学 | Throughput-maximized cognitive radio system |
Also Published As
Publication number | Publication date |
---|---|
CN102572847A (en) | 2012-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Jia et al. | HC-MAC: A hardware-constrained cognitive MAC for efficient spectrum management | |
Shrestha et al. | Distributed and centralized hybrid CSMA/CA-TDMA schemes for single-hop wireless networks | |
Shah et al. | Cognitive adaptive medium access control in cognitive radio sensor networks | |
Rigazzi et al. | Aggregation and trunking of M2M traffic via D2D connections | |
Zhuo et al. | iQueue-MAC: A traffic adaptive duty-cycled MAC protocol with dynamic slot allocation | |
Jamal et al. | CR-WSN MAC: An energy efficient and spectrum aware MAC protocol for cognitive radio sensor network | |
Li et al. | A cluster based on-demand multi-channel MAC protocol for wireless multimedia sensor networks | |
CN102572847B (en) | Spectrum allocation method and system | |
Verma et al. | A novel hybrid medium access control protocol for inter-M2M communications | |
Kamruzzaman | An energy efficient multichannel MAC protocol for cognitive radio ad hoc networks | |
Stepanova et al. | On the joint usage of target wake time and 802.11 ba wake-up radio | |
Kuo et al. | A CSMA-based MAC protocol for WLANs with automatic synchronization capability to provide hard quality of service guarantees | |
Singh et al. | Sticky CSMA/CA: Implicit synchronization and real-time QoS in mesh networks | |
CN112584405B (en) | A multi-user full-duplex channel access method in a wireless network | |
Monica et al. | A wave-based request-response protocol for latency minimization in WSNs | |
CN103237353B (en) | Guarantee service ensures the acquisition of time slot, distribution method and radio sensing network | |
Zhu et al. | A station regrouping method for contention based IEEE 802.11 ah wireless LAN | |
Kai et al. | An effective channel allocation algorithm to maximize system utility in heterogeneous DCB WLANs | |
Behara et al. | Performance analysis and energy efficiency of MU-(OFDMA & MIMO) based hybrid MAC protocol of IEEE 802.11 ax WLANs | |
woon Ahn et al. | A fair transmission opportunity by detecting and punishing the malicious wireless stations in IEEE 802.11 e EDCA network | |
Morshed et al. | Traffic-adaptive duty cycle adaptation in TR-MAC protocol for Wireless Sensor Networks | |
Ahmed et al. | Channel access mechanism for IEEE 802.11 ah-based relay networks | |
Lim et al. | Dynamic duty cycle adaptation to real-time data in IEEE 802.15. 4 based WSN | |
Krasilov et al. | A dynamic channel reservation method for multimedia streaming in Wi-Fi mesh networks | |
Kaburaki et al. | LBT-Based Resource Allocation Methods Utilizing Periodicity of Traffic in LPWAN |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |