CN106793151A - Distributed random handshake method and its system in a kind of wireless built network - Google Patents
Distributed random handshake method and its system in a kind of wireless built network Download PDFInfo
- Publication number
- CN106793151A CN106793151A CN201611168718.7A CN201611168718A CN106793151A CN 106793151 A CN106793151 A CN 106793151A CN 201611168718 A CN201611168718 A CN 201611168718A CN 106793151 A CN106793151 A CN 106793151A
- Authority
- CN
- China
- Prior art keywords
- channel
- channels
- accessible
- terminal device
- access
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000004364 calculation method Methods 0.000 claims description 22
- 238000001514 detection method Methods 0.000 claims description 12
- 230000001174 ascending effect Effects 0.000 claims description 6
- 230000006854 communication Effects 0.000 abstract description 24
- 238000004891 communication Methods 0.000 abstract description 23
- 230000008859 change Effects 0.000 abstract description 9
- 108091006146 Channels Proteins 0.000 abstract 13
- 238000004088 simulation Methods 0.000 description 15
- 238000004422 calculation algorithm Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 238000002474 experimental method Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000010606 normalization Methods 0.000 description 4
- 238000011156 evaluation Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000001228 spectrum Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000000844 transformation Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W74/00—Wireless channel access
- H04W74/08—Non-scheduled access, e.g. ALOHA
- H04W74/0833—Random access procedures, e.g. with 4-step access
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/69—Spread spectrum techniques
- H04B1/713—Spread spectrum techniques using frequency hopping
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种无线嵌入式网络中分布式随机握手方法及其系统,所述方法包括:步骤1、在第t个时隙内,检测终端设备所有可接入信道形成所述终端设备可接入信道集合;步骤2、根据所述终端设备可接入信道集合中每个信道的历史可利用率、顺序排列每个信道形成终端设备可接入信道顺序排列集合;步骤3、为所述终端设备可接入信道顺序排列集合中的每个信道分配接入选择概率;步骤4、根据接入选择概率选择所述终端设备可接入信道顺序排列集合中的每个信道尝试握手,直到握手成功,否则返回步骤1、且使t=t+1。本发明提供的技术方案,能有效地使通信终端在无线信道动态变化环境导致可接入通道动态变化时、实现设备间握手进而实现顺畅有效通信。
The present invention discloses a distributed random handshake method and system in a wireless embedded network. The method includes: Step 1. In the tth time slot, detect all accessible channels of the terminal equipment to form the accessible channels of the terminal equipment. access channel set; step 2, according to the historical availability of each channel in the terminal equipment accessible channel set, arrange each channel in order to form a terminal equipment accessible channel sequence arrangement set; step 3, for the described Each channel in the sequentially arranged set of channels that the terminal device can access is assigned an access selection probability; step 4, select each channel in the sequentially arranged set of channels that the terminal device can access according to the access selection probability, and try to shake hands until the handshake If successful, otherwise return to step 1 and make t=t+1. The technical scheme provided by the invention can effectively enable the communication terminal to realize handshaking between devices and thus realize smooth and effective communication when the wireless channel dynamic change environment causes the dynamic change of the accessable channel.
Description
技术领域technical field
本发明涉及无线嵌入式网络通信技术领域,尤其涉及的是一种无线嵌入式网络中分布式随机握手方法及其系统。The invention relates to the technical field of wireless embedded network communication, in particular to a distributed random handshake method and system in a wireless embedded network.
背景技术Background technique
嵌入式系统(Embedded System)是一种以微控制单元为核心的具有特定功能的计算机系统。随着物联网的普及与发展,嵌入式系统被广泛地应用于工业控制、电子商务、信息家电等领域,并且对嵌入式终端设备之间的无线通信的要求越来越高,因此,无线嵌入式网络(Wireless Embedded Networks,WENs)的通信技术的研究是该领域研究的重要课题之一。Embedded system (Embedded System) is a kind of computer system with specific functions centered on micro control unit. With the popularity and development of the Internet of Things, embedded systems are widely used in industrial control, e-commerce, information appliances and other fields, and the requirements for wireless communication between embedded terminal devices are getting higher and higher. Therefore, wireless embedded The research on the communication technology of Wireless Embedded Networks (WENs) is one of the important topics in this field.
无线嵌入式网络由嵌入式终端设备(Embedded Terminal Device,ETD)组成,通过无线通信的技术,终端设备通过接入由可用频谱分解成的无线信道实现通信,无线通信对无线嵌入式网络的正常运行起到关键作用。在通信过程中,嵌入式终端设备感知频谱的可利用状态,通过跳频(Channel Hopping,CH)技术接入某一可接入无线信道,从而与其他接入相同信道的嵌入式终端设备进行通信,我们将嵌入式终端设备通过跳频技术接入同一信道称为握手。只有通过握手,嵌入式终端设备之间才能建立相应的通信链路,进而实现通信。因此,其中的握手方法更是重中之重,研究无线嵌入式网络中的握手问题对提高无线嵌入式网络的效能具有重要的现实意义。The wireless embedded network is composed of embedded terminal devices (Embedded Terminal Device, ETD). Through wireless communication technology, terminal devices realize communication by accessing wireless channels decomposed by available spectrum. Wireless communication has a great impact on the normal operation of wireless embedded networks. play a key role. During the communication process, the embedded terminal device perceives the available state of the spectrum, accesses an accessible wireless channel through frequency hopping (Channel Hopping, CH) technology, and communicates with other embedded terminal devices accessing the same channel , we refer to embedded terminal devices accessing the same channel through frequency hopping technology as handshaking. Only through handshaking can the corresponding communication link be established between embedded terminal devices, and then the communication can be realized. Therefore, the handshake method is the most important. Researching the handshake problem in the wireless embedded network has important practical significance for improving the performance of the wireless embedded network.
根据网络结构的不同,无线嵌入式网络中的握手方法可分为集中式和分布式两类。集中式握手方法大多需要通过一个提前配置好的中央控制器,辅以一个控制信道来实现无线通信设备之间的握手,但是,无线嵌入式网络的动态变化的特性使得集中式握手方法难以实现。According to different network structures, handshake methods in wireless embedded networks can be divided into centralized and distributed. Most of the centralized handshake methods require a pre-configured central controller and a control channel to realize the handshake between wireless communication devices. However, the dynamic characteristics of wireless embedded networks make the centralized handshake method difficult to implement.
不同于集中式握手方法,分布式握手方法不采用任何中央控制器辅助握手,从而避免了单点故障以及在控制信道上的拥堵。然而,目前大多数对无线嵌入式网络握手问题的研究只考虑可接入信道处于稳定状态的情况,而实际情况是ETD的可接入信道会随时间和地点的变化而变化,无线信道环境具有动态变化的特性,例如,由于附近设备对信道的占用所形成的干扰,使得一些原本可接入的信道变得不能使用,从而影响设备间通信。Unlike the centralized handshaking method, the distributed handshaking method does not use any central controller to assist handshaking, thus avoiding single point of failure and congestion on the control channel. However, most of the current research on the handshake problem in wireless embedded networks only considers the case that the accessible channel is in a stable state, but the actual situation is that the accessible channel of ETD will change with time and place, and the wireless channel environment has Dynamically changing characteristics, for example, due to interference caused by channel occupancy by nearby devices, some originally accessible channels become unusable, thereby affecting communication between devices.
因此,现有技术还有待于改进和发展。Therefore, the prior art still needs to be improved and developed.
发明内容Contents of the invention
鉴于上述现有技术的不足之处,本发明的目的在于提供一种无线嵌入式网络中分布式随机握手方法及其系统,旨在解决无线嵌入式网络中分布式可接入信道动态变化影响设备间通信的问题。In view of the shortcomings of the above-mentioned prior art, the purpose of the present invention is to provide a distributed random handshake method and system in a wireless embedded network, aiming at solving the problem of the dynamic change of distributed accessible channels in the wireless embedded network affecting the equipment communication problem.
本发明采用的技术方案如下:The technical scheme that the present invention adopts is as follows:
一种无线嵌入式网络中分布式随机握手方法,包括以下步骤:A distributed random handshake method in a wireless embedded network, comprising the following steps:
步骤1、在第t个时隙内,检测终端设备所有可接入信道形成所述终端设备可接入信道集合;Step 1. In the tth time slot, detect all accessible channels of the terminal equipment to form a set of accessible channels of the terminal equipment;
步骤2、根据所述终端设备可接入信道集合中每个信道的历史可利用率、顺序排列每个信道形成终端设备可接入信道顺序排列集合;Step 2, according to the historical availability of each channel in the set of channels accessible to the terminal equipment, arrange each channel in order to form a sequential arrangement set of channels accessible to the terminal equipment;
步骤3、为所述终端设备可接入信道顺序排列集合中的每个信道分配接入选择概率;Step 3, assigning an access selection probability to each channel in the sequentially arranged set of channels accessible to the terminal device;
步骤4、根据接入选择概率选择所述终端设备可接入信道顺序排列集合中的每个信道尝试握手,直到握手成功,否则返回步骤1、且使t=t+1。Step 4. According to the access selection probability, select each channel in the sequentially arranged set of channels accessible to the terminal device to try handshaking until the handshake succeeds, otherwise return to step 1, and set t=t+1.
所述的无线嵌入式网络中分布式随机握手方法,其中,所述的步骤1包括:Distributed random handshake method in the described wireless embedded network, wherein, described step 1 comprises:
步骤11、统计无线嵌入式网络中的可接入信道总数;Step 11, counting the total number of accessible channels in the wireless embedded network;
步骤12、在第t个时隙内,检测无线嵌入式网络中终端设备所有可接入信道、形成所述终端设备可接入信道集合,用下列公式表示:Step 12. In the tth time slot, detect all accessible channels of the terminal equipment in the wireless embedded network, and form a set of accessible channels of the terminal equipment, expressed by the following formula:
公式(1)是一个布尔向量,表示在第t个时隙内,终端设备A的可接入信道情况,其中,n表示无线嵌入式网络中的可接入信道总数,t表示第t个时隙,t=1,2,...,∞,ci表示第i个信道,表示终端设备A可以在第t个时隙内接入信道ci,表示终端设备A不能在第t个时隙内接入信道ci;Formula (1) is a Boolean vector, which represents the accessible channels of the terminal device A in the tth time slot, where n represents the total number of accessible channels in the wireless embedded network, and t represents the tth time slot slot, t=1,2,...,∞, c i represents the i-th channel, Indicates that terminal device A can access channel c i in the tth time slot, Indicates that terminal device A cannot access channel c i in the tth time slot;
公式(2)中表示在第t个时隙内,终端设备A的可接入信道集合,ci表示第i个信道,表示终端设备A可以在第t个时隙内接入信道ci。In formula (2) Indicates the set of accessible channels of terminal device A in the tth time slot, c i indicates the i-th channel, Indicates that terminal device A can access channel c i in the tth time slot.
所述的无线嵌入式网络中分布式随机握手方法,其中,所述的步骤2具体包括:Distributed random handshake method in the described wireless embedded network, wherein, described step 2 specifically comprises:
步骤21、计算在第t个时隙内,第i个信道ci对于终端设备A的历史可利用率计算公式为: Step 21. Calculate the historical availability of the i -th channel ci for the terminal equipment A in the t-th time slot The calculation formula is:
公式(3)中,其中,t'为(1,t)的整数,即表示第t'个时隙。In the formula (3), t' is an integer of (1, t), which means the t'th time slot.
步骤22、形成在第t个时隙内,信道ci对于终端设备A的历史可利用率集合 Step 22, forming a set of historical availability ratios of channel ci for terminal equipment A in the tth time slot
步骤23、将所述的中的信道元素,根据每个信道ci的历史可利用率降序或升序排列,得到终端设备A可接入信道顺序排列集合即其中,信道…,ci,cj,ck,…,对应的信道历史可利用率关系为或 Step 23, the described The channel elements in , according to the historical availability of each channel ci Arrange in descending or ascending order to obtain the sequenced set of channels that terminal device A can access which is Among them, the channel ..., c i , c j , c k , ..., the corresponding channel historical availability ratio relationship is or
所述的无线嵌入式网络中分布式随机握手方法,其中,所述的步骤11具体为:Distributed random handshake method in the described wireless embedded network, wherein, described step 11 is specifically:
若则 like but
若则 like but
其中,表示终端设备A可以在第t个时隙内接入信道ci,表示终端设备A不能在第t个时隙内接入信道ci。in, Indicates that terminal device A can access channel c i in the tth time slot, Indicates that terminal device A cannot access channel c i in the tth time slot.
所述的无线嵌入式网络中分布式随机握手方法,其中,所述的步骤3具体为:Distributed random handshake method in the described wireless embedded network, wherein, described step 3 is specifically:
终端设备可接入信道顺序排列集合中的每个信道分配接入选择概率计算方法为:设终端设备A可接入信道顺序排列集合按照中可接入信道对应的历史可利用率作为权重分配概率,计算得到信道...,ci,cj和ck...,的被选择的概率分别为 和且 The method for calculating the access selection probability of each channel in the sequentially arranged set of channels that terminal equipment can access is as follows: Set the sequentially arranged set of channels that terminal equipment A can access according to The historical availability rate corresponding to the accessible channel in As the weight assignment probability, the calculated probabilities of channels ..., c i , c j and c k ..., being selected are respectively with and
所述的无线嵌入式网络中分布式随机握手方法,其中,所述的步骤3具体为:Distributed random handshake method in the described wireless embedded network, wherein, described step 3 is specifically:
终端设备A可接入信道顺序排列集合中的每个信道分配接入选择概率基于类指数分布计算方法为:设终端设备A可接入信道顺序排列集合 Each channel in the sequentially arranged set of channels that terminal device A can access is assigned the access selection probability based on the class exponential distribution.
ej-1 (6);e j-1 (6);
公式(6)表示中第j个信道元素分配权重, Formula (6) expresses The jth channel element assigns weights in
公式(7)表示中第j个信道元素被选择的概率, Formula (7) shows The probability that the jth channel element is selected in
其中,e是欧拉数。where e is Euler's number.
所述的无线嵌入式网络中分布式随机握手方法,其中,所述的步骤3具体为:Distributed random handshake method in the described wireless embedded network, wherein, described step 3 is specifically:
终端设备A可接入信道顺序排列集合中的每个信道分配接入选择概率基于类几何分布计算方法为:设终端设备A可接入信道顺序排列集合 Each channel in the sequentially arranged set of channels that terminal device A can access is assigned the access selection probability based on the class geometric distribution.
λ(1-λ)j-1 (8);λ(1-λ) j-1 (8);
公式(8)表示中第j个信道元素的分配权重,其中,λ∈(0,1)为标准几何分布的常数参数;Formula (8) expresses The distribution weight of the jth channel element in , where, λ∈(0,1) is a constant parameter of the standard geometric distribution;
公式(9)表示中第j个信道元素对应的被选择概率, Formula (9) expresses The probability of being selected corresponding to the jth channel element in
一种无线嵌入式网络中分布式随机握手系统,包括:A distributed random handshake system in a wireless embedded network, comprising:
检测模块,用于在第t个时隙内,检测终端设备所有可接入信道形成所述终端设备可接入信道集合;A detection module, configured to detect all accessible channels of the terminal equipment in the tth time slot to form a set of accessible channels of the terminal equipment;
排序模块,用于根据所述终端设备可接入信道集合中每个信道的历史可利用率、顺序排列每个信道形成终端设备可接入信道顺序排列集合;A sorting module, configured to arrange each channel in sequence according to the historical availability of each channel in the set of channels accessible to the terminal device to form a sequential arrangement set of channels accessible to the terminal device;
选择概率分配模块,用于为所述终端设备可接入信道顺序排列集合中的每个信道分配接入选择概率;A selection probability allocation module, configured to allocate an access selection probability to each channel in the sequentially arranged set of accessible channels for the terminal device;
握手模块,用于根据接入选择概率选择所述终端设备可接入信道顺序排列集合中的每个信道尝试握手,直到握手成功,否则返回检测模块、且使t=t+1。The handshaking module is used to select each channel in the sequentially arranged set of channels accessible to the terminal device according to the access selection probability, and try to handshake until the handshake is successful, otherwise return to the detection module and set t=t+1.
所述的无线嵌入式网络中分布式随机握手系统,其中,所述的检测模块包括:Distributed random handshake system in the described wireless embedded network, wherein, the described detection module comprises:
统计单元,用于统计无线嵌入式网络中的可接入信道总数;A statistical unit, used to count the total number of accessible channels in the wireless embedded network;
检测单元,用于在第t个时隙内,检测无线嵌入式网络中终端设备所有可接入信道、形成所述终端设备可接入信道集合,用下列公式表示:The detection unit is used to detect all accessible channels of the terminal equipment in the wireless embedded network in the tth time slot, and form a set of accessible channels of the terminal equipment, expressed by the following formula:
公式(1)是一个布尔向量,表示在第t个时隙内,终端设备A的可接入信道情况,其中,n表示无线嵌入式网络中的可接入信道总数,t表示第t个时隙,t=1,2,...,∞,ci表示第i个信道,表示终端设备A可以在第t个时隙内接入信道ci,表示终端设备A不能在第t个时隙内接入信道ci;Formula (1) is a Boolean vector, which represents the accessible channels of the terminal device A in the tth time slot, where n represents the total number of accessible channels in the wireless embedded network, and t represents the tth time slot slot, t=1,2,...,∞, c i represents the i-th channel, Indicates that terminal device A can access channel c i in the tth time slot, Indicates that terminal device A cannot access channel c i in the tth time slot;
公式(2)中表示在第t个时隙内,终端设备A的可接入信道集合,ci表示第i个信道,表示终端设备A可以在第t个时隙内接入信道ci。In formula (2) Indicates the set of accessible channels of terminal device A in the tth time slot, c i indicates the i-th channel, Indicates that terminal device A can access channel c i in the tth time slot.
所述的无线嵌入式网络中分布式随机握手系统,其中,所述的排序模块包括:Distributed random handshake system in the described wireless embedded network, wherein, the described ordering module comprises:
计算单元,用于计算在第t个时隙内,第i个信道ci对于终端设备A的历史可利用率计算公式为: A calculation unit, used to calculate the historical availability of the i -th channel ci for the terminal device A in the t-th time slot The calculation formula is:
公式(3)中,其中,t'为(1,t)的整数,即表示第t'个时隙。In the formula (3), t' is an integer of (1, t), which means the t'th time slot.
信道历史可利用率集合单元,用于形成在第t个时隙内,信道ci对于终端设备A的历史可利用率集合 The channel historical availability collection unit is used to form the historical availability collection of the channel ci for the terminal device A in the tth time slot
排序单元,用于将所述的中的信道元素,根据每个信道ci的历史可利用率降序或升序排列,得到终端设备A可接入信道顺序排列集合即其中,信道…,ci,cj,ck,…,对应的信道历史可利用率关系为或 sorting unit for the The channel elements in , according to the historical availability of each channel ci Arrange in descending or ascending order to obtain the sequenced set of channels that terminal device A can access which is Among them, the channel ..., c i , c j , c k , ..., the corresponding channel historical availability ratio relationship is or
所述的选择概率分配模块包括:The described selection probability distribution module includes:
选择概率第一计算单元,用于终端设备可接入信道顺序排列集合中的每个信道分配接入选择概率计算方法为:设终端设备A可接入信道顺序排列集合按照中可接入信道对应的历史可利用率作为权重分配概率,计算得到信道...,ci,cj和ck...,的被选择的概率分别为和且 The first calculation unit of selection probability is used for the calculation method of each channel allocation access selection probability in the sequential arrangement set of accessible channels of the terminal equipment as follows: suppose that the terminal equipment A can access the sequential arrangement set of channels according to The historical availability rate corresponding to the accessible channel in As the weight assignment probability, the calculated probabilities of channels ..., c i , c j and c k ..., being selected are respectively with and
选择概率第二计算单元,用于终端设备A可接入信道顺序排列集合中的每个信道分配接入选择概率基于类指数分布计算方法为:设终端设备A可接入信道顺序排列集合 The second calculation unit of selection probability is used for each channel in the sequentially arranged set of accessible channels for terminal equipment A.
ej-1 (6);e j-1 (6);
公式(6)表示中第j个信道元素分配权重, Formula (6) expresses The jth channel element assigns weights in
公式(7)表示中第j个信道元素被选择的概率, Formula (7) shows The probability that the jth channel element is selected in
其中,e是欧拉数;Among them, e is Euler's number;
选择概率第三计算单元,用于终端设备A可接入信道顺序排列集合中的每个信道分配接入选择概率基于类几何分布计算方法为:设终端设备A可接入信道顺序排列集合 The third calculation unit of selection probability is used for assigning access selection probability to each channel in the sequentially arranged set of channels that terminal equipment A can access.
λ(1-λ)j-1 (8);λ(1-λ) j-1 (8);
公式(8)表示中第j个信道元素的分配权重,其中,λ∈(0,1)为标准几何分布的常数参数;Formula (8) expresses The distribution weight of the jth channel element in , where, λ∈(0,1) is a constant parameter of the standard geometric distribution;
公式(9)表示中第j个信道元素对应的被选择概率, Formula (9) expresses The probability of being selected corresponding to the jth channel element in
有益效果:相较于现有技术,本发明提供的一种无线嵌入式网络中分布式随机握手方法及其系统,针对无线嵌入式网络中无线信道环境动态变化的特性和网络的分布式特性,提出了基于启发式的嵌入式终端设备的分布式握手方法,所述方法利用的无线信道历史可利用率,通过合理地为当前可利用信道分配随机选择概率,无线嵌入式终端设备在每一个时间片随机选择并且接入某一信道,在所述信道上尝试握手,能有效地使拟通信终端设备在可接入信道动态变化的情况下实现设备间握手进而实现顺畅有效通信。Beneficial effects: Compared with the prior art, the present invention provides a distributed random handshake method in a wireless embedded network and its system, aiming at the characteristics of the dynamic change of the wireless channel environment in the wireless embedded network and the distributed characteristics of the network, A heuristic-based distributed handshake method for embedded terminal devices is proposed. The method utilizes the historical availability of wireless channels, and by reasonably assigning random selection probabilities to currently available channels, wireless embedded terminal devices at each time The chip randomly selects and accesses a certain channel, and tries to shake hands on the channel, which can effectively enable the intended communication terminal device to achieve handshake between devices under the condition that the accessable channel changes dynamically, thereby realizing smooth and effective communication.
附图说明Description of drawings
图1为本发明提供的无线嵌入式网络中分布式随机握手方法较佳实施例流程图Fig. 1 is the flow chart of a preferred embodiment of the distributed random handshake method in the wireless embedded network provided by the present invention
图2为本发明提供的无线嵌入式网络中分布式随机握手系统较佳实施例功能模块图。Fig. 2 is a functional block diagram of a preferred embodiment of a distributed random handshake system in a wireless embedded network provided by the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention more clear and definite, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明通过统计信道状态,针对无线嵌入式网络中分布式信道动态环境下的嵌入式终端设备,提出了基于启发式算法的分布式握手方法,并通过仿真实验对所述方法效能进行分析,以下进行详细解释。The present invention proposes a distributed handshake method based on a heuristic algorithm for embedded terminal devices in a distributed channel dynamic environment in a wireless embedded network by counting channel states, and analyzes the effectiveness of the method through simulation experiments, as follows Explain in detail.
请参见图1,图1是本发明提供的无线嵌入式网络中分布式随机握手方法较佳实施例流程图,包括步骤:Please refer to Fig. 1, Fig. 1 is a flow chart of a preferred embodiment of the distributed random handshake method in the wireless embedded network provided by the present invention, comprising steps:
S100、在第t个时隙内,检测终端设备所有可接入信道形成所述终端设备可接入信道集合;S100. In the tth time slot, detect all channels accessible to the terminal device to form a set of channels accessible to the terminal device;
用一个数学问题来描述,举例来说,在一个无线嵌入式网络中,假如有两个嵌入式终端设备A和B,拟通过接入一个相同的无线信道建立通信链路,设可接入无线信道集合C={c1,c2,...,cn}中,其中,表示第i个信道。不失一般性,我们假设无线信道两两正交(正交频分复用技术,即Orthogonal Frequency Division Multiplexing,OFDM,是将信道分成若干正交子信道,将高速数据信号转换成并行的低速子数据流,调制到在每个子信道上进行传输。),我们将时间离散化称一个个等长的时间片,用t表示第t个时间片,用Δt表示每一个时间片的长度,所述的时间长度Δt可以根据需要预先来确定,则第t个时间片即为第t个时隙内。需要说明的是,时间片,即时隙的长度,可以根据不同的实际环境需要具体设定,在此不做限定。Describe it with a mathematical problem. For example, in a wireless embedded network, if there are two embedded terminal devices A and B, it is intended to establish a communication link by accessing the same wireless channel. Channel set C={c 1 ,c 2 ,...,c n }, where, represents the i-th channel. Without loss of generality, we assume that the wireless channels are orthogonal in pairs (orthogonal frequency division multiplexing technology, that is, Orthogonal Frequency Division Multiplexing, OFDM, is to divide the channel into several orthogonal sub-channels, and convert high-speed data signals into parallel low-speed sub-channels. The data stream is modulated to be transmitted on each sub-channel.), we discretize the time as time slices of equal length, use t to represent the tth time slice, and use Δt to represent the length of each time slice, the The time length Δt of can be pre-determined according to needs, then the tth time slice is within the tth time slot. It should be noted that the time slice, that is, the length of the slot, can be specifically set according to the needs of different actual environments, and is not limited here.
同时,考虑信道的动态特性,令布尔变量和分别为:在第t个时间片,信道ci对终端设备A和B的可接入情况,例如,表示在第t个时隙内信道ci可以被终端设备A接入。对于任意一个时间片t,终端设备A(或B)选择当前的一个可接入信道(即跳频操作),尝试握手。我们用δ表示任意用户对从尝试握手到握手成功所需要的最小时间,则有Δt≥δ。由无线嵌入式网络的分布式特性可知,终端设备A和B分别只知道各自的可接入信道情况。我们称之为成功握手,当且仅当终端设备A和B选择相同的信道,比如同时选择信道ci,则终端设备A和B可以成功握手,从而实现通信。我们假设在任何时刻终端设备A和B存在至少一个相同的可接入的信道。At the same time, considering the dynamic characteristics of the channel, let the Boolean variable with Respectively: in the tth time slice, channel c i is accessible to terminal equipment A and B, for example, Indicates that channel ci can be accessed by terminal device A in the tth time slot. For any time slot t, the terminal device A (or B) selects a current accessible channel (ie frequency hopping operation) and tries to shake hands. We use δ to denote the minimum time required by any user pair from attempting to shake hands to successfully shaking hands, then Δt≥δ. It can be known from the distributed nature of the wireless embedded network that the terminal devices A and B only know the conditions of their respective accessible channels. We call it a successful handshake. If and only if terminal devices A and B select the same channel, for example, select channel ci at the same time, then terminal devices A and B can successfully handshake to achieve communication. We assume that at any moment there is at least one same accessible channel for terminal devices A and B.
实施时,本步骤S100具体包括:During implementation, this step S100 specifically includes:
S110、统计无线嵌入式网络中的可接入信道总数;S110, counting the total number of accessible channels in the wireless embedded network;
S120、在第t个时隙内,检测无线嵌入式网络中终端设备所有可接入信道、形成所述终端设备可接入信道集合,用下列公式表示:S120. In the tth time slot, detect all accessible channels of the terminal equipment in the wireless embedded network, and form a set of accessible channels of the terminal equipment, which is expressed by the following formula:
公式(1)是一个布尔向量,表示在第t个时隙内,终端设备A的可接入信道情况,其中,n表示无线嵌入式网络中的可接入信道总数,t表示第t个时隙,t=1,2,...,∞,ci表示第i个信道,表示终端设备A可以在第t个时隙内接入信道ci,表示终端设备A不能在第t个时隙内接入信道ci;Formula (1) is a Boolean vector, which represents the accessible channels of the terminal device A in the tth time slot, where n represents the total number of accessible channels in the wireless embedded network, and t represents the tth time slot slot, t=1,2,...,∞, c i represents the i-th channel, Indicates that terminal device A can access channel c i in the tth time slot, Indicates that terminal device A cannot access channel c i in the tth time slot;
公式(2)中表示在第t个时隙内,终端设备A的可接入信道集合,ci表示第i个信道,表示终端设备A可以在第t个时隙内接入信道ci。In formula (2) Indicates the set of accessible channels of terminal device A in the tth time slot, c i indicates the i-th channel, Indicates that terminal device A can access channel c i in the tth time slot.
具体实施时,实际应用中,无线嵌入式网络中的可接入信道总数n取决于具体的应用系统环境,信道数目n取决于因素:1)、可以利用的频带范围;2)、每个信道所分配的频段带宽。举例说明,嵌入式设备在WiFi场景下,802.11b/g/n协议的频带是2.412Ghz~2.472Ghz,一共60Mhz,802.11a/n在中国可用的频带是5.745Ghz~5.825Ghz,同样也是60Mhz。这里如果一个信道是20MHz,那么大约只有3个信道;如果一个信道分配10MHz,那么大约有6个信道,因此信道在每个系统中是固定的,只需要在具体的系统环境下进行检测统计即可,在此不再赘述。During specific implementation, in practical applications, the total number n of accessible channels in the wireless embedded network depends on the specific application system environment, and the number of channels n depends on factors: 1), the available frequency band range; 2), each channel The allocated frequency band bandwidth. For example, in the WiFi scenario of embedded devices, the frequency band of the 802.11b/g/n protocol is 2.412Ghz-2.472Ghz, a total of 60Mhz, and the available frequency band of 802.11a/n in China is 5.745Ghz-5.825Ghz, which is also 60Mhz. Here, if a channel is 20MHz, then there are only about 3 channels; if a channel is allocated 10MHz, then there are about 6 channels, so the channel is fixed in each system, and only needs to be detected and counted in the specific system environment. Yes, no more details here.
检测无线嵌入式网络中信道在第t个时隙内是否可接入,可采用现有技术判断,在此不再赘述。Detecting whether the channel in the wireless embedded network is accessible within the tth time slot can be judged by using the existing technology, and will not be repeated here.
S200、根据所述终端设备可接入信道集合中每个信道的历史可利用率、顺序排列每个信道形成终端设备可接入信道顺序排列集合;S200. According to the historical availability rate of each channel in the channel set accessible to the terminal device, arrange each channel in order to form a sequential arrangement set of channels accessible to the terminal device;
基于无线嵌入式网络的特性,本专利申请提出无线信道动态变化环境下的分布式自适应随机握手方法,在所述握手方法下,在每个时间片伊始,即每个时隙开始,每个嵌入式终端设备首先统计n个信道的历史可接入次数,基于各个信道的历史可接入频率,亦即信道的历史开放率,为当前可接入信道分配随机选择的概率,最后基于所述随机选择概率分布随机选择一个信道进行握手尝试。具体来说,所述的步骤S200包括:Based on the characteristics of wireless embedded networks, this patent application proposes a distributed adaptive random handshake method under the environment of dynamic wireless channel changes. Under the handshake method, at the beginning of each time slice, that is, at the beginning of each time slot, each The embedded terminal device first counts the historical access times of n channels, based on the historical access frequency of each channel, that is, the historical opening rate of the channel, assigns the probability of random selection to the currently accessible channel, and finally based on the The random selection probability distribution randomly selects a channel for a handshake attempt. Specifically, the step S200 includes:
S210、计算在第t个时隙内,第i个信道ci对于终端设备A的历史可利用率计算公式为: S210. Calculate the historical availability of the i -th channel ci for the terminal device A in the t-th time slot The calculation formula is:
公式(3)中,其中,t'为(1,t)的整数,即表示第t'个时隙。In the formula (3), t' is an integer of (1, t), which means the t'th time slot.
S220、形成在第t个时隙内,信道ci对于终端设备A的历史可利用率集合 S220, forming a set of historical availability ratios of channel ci for terminal device A in the tth time slot
S230、将所述的中的信道元素,根据每个信道ci的历史可利用率降序或升序排列,得到终端设备A可接入信道顺序排列集合即其中,信道…,ci,cj,ck,…,对应的信道历史可利用率关系为或 S230, the said The channel elements in , according to the historical availability of each channel ci Arrange in descending or ascending order to obtain the sequenced set of channels that terminal device A can access which is Among them, the channel ..., c i , c j , c k , ..., the corresponding channel historical availability ratio relationship is or
进一步的,所述的步骤S210具体为:Further, the step S210 is specifically:
若则 like but
若则 like but
其中,表示终端设备A可以在第t个时隙内接入信道ci,表示终端设备A不能在第t个时隙内接入信道ci。in, Indicates that terminal device A can access channel c i in the tth time slot, Indicates that terminal device A cannot access channel c i in the tth time slot.
实施时,优选的根据每个信道ci的历史可利用率降序顺序排列,得到终端设备A可接入信道顺序排列集合这样,有利于在后续步骤中优先选择握手成功几率大的信道进行尝试,从而也尽可能缩短任意用户对从尝试握手到握手成功所需要的时间,更加有利提高终端设备间通信的效率。During implementation, it is preferable to use the historical availability of each channel ci Arrange in descending order to obtain the orderly arrangement set of channels that terminal device A can access In this way, it is beneficial to preferentially select a channel with a high probability of handshake success in the subsequent steps to try, thereby shortening the time required by any user from trying to handshake to successfully handshaking as much as possible, and more conducive to improving the efficiency of communication between terminal devices.
S300、为所述终端设备可接入信道顺序排列集合中的每个信道分配接入选择概率;S300. Allocate an access selection probability for each channel in the sequentially arranged set of channels accessible to the terminal device;
比如,为所述终端设备A可接入信道顺序排列集合中的每个信道分配接入选择概率,这是本技术方案核心的步骤,正是基于此接入选择概率的大小,进而分析确定哪个信道能使终端设备间握手成功的几率大,从而选择哪个信道尝试握手,提高终端设备间握手成功信道选择的几率。For example, orderly arrange the set of channels accessible to the terminal device A Each channel in the distribution access selection probability, which is the core step of this technical solution, is based on the size of the access selection probability, and then analyzes and determines which channel can make the handshake between terminal devices have a higher probability of success, so as to choose which The channel tries to shake hands to improve the probability of successful channel selection between terminal devices.
具体来说,所述的步骤S300为每个信道分配接入选择概率具体有三种方案,具体实施时,可根据实际需要任意选择其中一种,以下分别详细论述:Specifically, there are three specific schemes for assigning access selection probabilities for each channel in the step S300, and during specific implementation, one of them can be arbitrarily selected according to actual needs, which are discussed in detail below:
方案①、终端设备可接入信道顺序排列集合中的每个信道分配接入选择概率计算方法为:设终端设备A可接入信道顺序排列集合按照中可接入信道对应的历史可利用率作为权重分配概率,计算得到...,ci,cj和ck...,的概率分别为 和且 Scheme ①. The method for calculating the access selection probability of each channel in the sequentially arranged set of accessible channels for terminal equipment is as follows: Set the sequentially arranged set of accessible channels for terminal equipment A according to The historical availability rate corresponding to the accessible channel in As the weight distribution probability, the calculated probabilities of ..., c i , c j and c k ..., are respectively with and
此种接入选择概率分配方法,是按照中信道元素对应的历史可利用率作为权重分配概率,下面举例说明,假如包含3个信道ci,cj,ck,按照他们各自的信道历史可利用率,可以计算得到排列以降序顺序排列为例,也即我们将作为权重作线性归一化处理,计算得到ci,cj和ck的概率分别为 和这实则是一种归一化处理,因此这样分配能保证中的元素的概率和为1,上述例子中,显然,我们知道后续仿真试验中,以降序顺序排列为例来验证此信道分配接入选择概率的有效性。This access selection probability allocation method is based on The historical availability rate corresponding to the medium channel element As a weight distribution probability, the following example illustrates, if Contains 3 channels c i , c j , c k , which can be calculated and arranged according to their respective channel historical availability ratios Take descending order as an example, that is, we will As a weight for linear normalization, the calculated probabilities of c i , c j and c k are respectively with This is actually a normalization process, so this distribution can guarantee The sum of the probabilities of the elements in is 1. In the above example, obviously, we know In the follow-up simulation experiment, the descending order is taken as an example to verify the validity of the channel allocation access selection probability.
方案②、终端设备A可接入信道顺序排列集合中的每个信道分配接入选择概率基于类指数分布计算方法为:设终端设备A可接入信道顺序排列集合 Scheme ②, each channel in the sequentially arranged set of channels that terminal equipment A can access is assigned the access selection probability based on the class exponential distribution.
ej-1 (6);e j-1 (6);
公式(6)表示中第j个信道元素分配权重, Formula (6) expresses The jth channel element assigns weights in
公式(7)表示中第j个信道元素被选择的概率, Formula (7) shows The probability that the jth channel element is selected in
其中,e是欧拉数。where e is Euler's number.
需要说明的是,之所以称之为“类指数分布”的原因,是因为中的元素个数是有限的,而通常意义下的指数分布考虑无穷大的随机变量取值范围。It should be noted that the reason why it is called "exponential-like distribution" is because The number of elements in is limited, and the exponential distribution in the usual sense considers an infinite range of random variables.
具体来说,基于类指数分布为A的可接入信道分配随机选择接入的概率,先为中第j个元素(信道)分配权重ej-1,其中,e是欧拉数;分配完权重后通过归一化处理计算各信道的随机选择概率,则第j个元素对应的被选择概率为这种方式能保证中元素的概率和等于1,进而保证选择的信道属于后续仿真试验中将验证此信道分配接入选择概率的有效性。Specifically, based on the exponential distribution, the access channel of A is randomly selected to access the probability, first for The jth element (channel) in the assignment weight e j-1 , Among them, e is the Euler number; after allocating the weights, the random selection probability of each channel is calculated through normalization processing, then the selection probability corresponding to the jth element is This way can guarantee The probability sum of the elements in is equal to 1, thus ensuring that the selected channel belongs to The effectiveness of this channel allocation access selection probability will be verified in subsequent simulation experiments.
方案③、终端设备A可接入信道顺序排列集合中的每个信道分配接入选择概率基于类几何分布计算方法为:设终端设备A可接入信道顺序排列集合 Scheme ③. Each channel in the sequentially arranged set of channels that terminal device A can access is allocated and selected based on the class geometric distribution. The calculation method is as follows: Set the sequenced set of channels that terminal device A can access
λ(1-λ)j-1 (8);λ(1-λ) j-1 (8);
公式(8)表示中第j个信道元素的分配权重,其中,λ∈(0,1)为标准几何分布的常数参数;Formula (8) expresses The distribution weight of the jth channel element in , where, λ∈(0,1) is a constant parameter of the standard geometric distribution;
公式(9)表示中第j个信道元素对应的被选择概率, Formula (9) expresses The probability of being selected corresponding to the jth channel element in
同样,之所以称之为“类几何分布”的原因,是因为中的元素个数是有限的,而通常意义下的几何分布考虑无穷大的随机变量取值范围。Again, the reason it's called a "geometric-like distribution" is because The number of elements in is limited, and the geometric distribution in the usual sense considers an infinite range of random variables.
此种接入选择概率分配方法是基于类几何分布为A的可接入信道分配随机选择接入的概率,具体来说,先为中第j个元素(信道)的分配权重λ(1-λ)j-1,其中,λ∈(0,1)为标准几何分布的常数参数;分配完权重后,通过归一化处理计算各信道的随机选择概率,保证中元素的概率和等于1,第j个元素对应的概率为这种方式能保证中元素的概率和等于1,进而保证该方案的有效性。后续仿真试验中将验证此信道分配接入选择概率的有效性。This access selection probability allocation method is based on the access channel with class geometric distribution A to allocate the probability of random access selection. Specifically, first The distribution weight λ(1-λ) j-1 of the jth element (channel) in Among them, λ∈(0,1) is a constant parameter of the standard geometric distribution; after the weights are assigned, the random selection probability of each channel is calculated through normalization processing to ensure that The probability sum of the elements in is equal to 1, and the probability corresponding to the jth element is This way can guarantee The probability sum of the elements in is equal to 1, thus ensuring the effectiveness of the scheme. The effectiveness of this channel allocation access selection probability will be verified in subsequent simulation experiments.
S400、根据接入选择概率选择所述终端设备可接入信道顺序排列集合中的每个信道尝试握手,直到握手成功,否则返回步骤S100、且使t=t+1。S400. Select each channel in the sequentially arranged set of channels accessible to the terminal device according to the access selection probability, and try to handshake until the handshake is successful; otherwise, return to step S100, and set t=t+1.
具体实施时,比如,按照所述终端设备A可接入信道顺序排列集合中的每个信道分配的接入选择概率分布按顺序逐个选择中的信道,一般情况下,按照接入选择概率从大到小来尝试,并在所选择的信道上尝试握手。如果终端设备A和终端设备B能够同时接入同一个信道建立通信连接,则终端设备A和终端设备B握手成功,否则,如果终端设备A和终端设备B的可接入信道顺序排列集合中每个信道都无法使终端设备A和终端设备B同时接入同一个信道,则没有握手成功,表明在同一第t个时隙内,终端设备A和终端设备B没有可接入的相同信道,则返回步骤S100,使t=t+1进入下一个循环继续尝试,直到终端设备A和终端设备B尝试握手成功建立通信连接。During specific implementation, for example, arrange the sets according to the sequence of channels accessible by the terminal device A The access selection probability distribution for each channel assignment in is selected one by one in order The channels in , generally, try according to the access selection probability from large to small, and try to shake hands on the selected channel. If terminal device A and terminal device B can access the same channel at the same time to establish a communication connection, then terminal device A and terminal device B successfully shake hands; None of the channels can make terminal equipment A and terminal equipment B access the same channel at the same time, then the handshake is not successful, indicating that in the same tth time slot, terminal equipment A and terminal equipment B do not have the same channel that can be accessed, then Return to step S100, let t=t+1 enter the next cycle and continue trying until terminal device A and terminal device B try to shake hands and successfully establish a communication connection.
为了更清楚的理解此技术方案和验证无线嵌入式网络握手方法的可行性和有效性,现利用MATLAB程序设计语言模拟真实无线嵌入式网络中的握手情境,对上述技术方案进行了仿真实验,并可以比较为每个信道分配接入选择概率三种方法的优劣,具体过程如下:In order to understand this technical solution more clearly and verify the feasibility and effectiveness of the wireless embedded network handshake method, the MATLAB programming language is used to simulate the handshake situation in the real wireless embedded network, and the above technical solution is simulated and tested. The advantages and disadvantages of the three methods of assigning access selection probability for each channel can be compared, and the specific process is as follows:
(1).问题的数学描述:数学问题描述如上所述,在此不再赘述。需要说明的是,本仿真实验选择握手时间T作为一个握手方法的评价参数。这里,定义T为从终端设备A和B第一次同时尝试握手到最终握手所需要的时间片的数量。具体地,考虑握手时间的期望值E(T)和最大值M(T)作为一个握手方法的评价指标。(1). Mathematical description of the problem: the description of the mathematical problem is as described above, and will not be repeated here. It should be noted that this simulation experiment selects the handshake time T as an evaluation parameter of a handshake method. Here, T is defined as the number of time slices required from the first simultaneous handshake attempt of terminal devices A and B to the final handshake. Specifically, the expected value E(T) and the maximum value M(T) of the handshake time are considered as an evaluation index of a handshake method.
(2).本发明技术方案基本描述:下面以嵌入式终端设备A为例,给出具体的算法描述:(2). The basic description of the technical solution of the present invention: the following takes the embedded terminal device A as an example, and provides a specific algorithm description:
符号描述:Symbol description:
n:无线嵌入式网络中的可接入信道总数;n: the total number of accessible channels in the wireless embedded network;
C:可接入无线信道集合C={c1,c2,...,cn}中,其中,表示第i个信道;C: Accessible wireless channel set C={c 1 ,c 2 ,...,c n }, where, Indicates the i-th channel;
ci:第i个信道(这里我们给信道赋予相应的标号);c i : the i-th channel (here we give the corresponding label to the channel);
t:第t个时间片,t=1,2,...,∞;t: the tth time slice, t=1,2,...,∞;
一个布尔向量,表示在第t个时间片,A的可接入信道的情况;例如,表示终端设备A可以在第t个时间片接入信道c1,则表示终端设备A不能在第t个时间片接入信道c1。 A Boolean vector representing the situation of A's accessible channels in the tth time slice; for example, Indicates that terminal device A can access channel c 1 in the tth time slot, It means that the terminal device A cannot access the channel c 1 in the tth time slot.
在第t个时间片,A的可接入信道集合, In the tth time slice, A’s accessible channel set,
表示终端设备A在t时间片的可接入信道数,也即 Indicates the number of channels that terminal device A can access in time slice t, that is,
在第t个时间片,终端设备A的信道可利用率, In the tth time slice, the channel availability of terminal device A,
在第t个时间片,信道ci对于终端设备A的历史可利用率,也即 In the tth time slice, the historical availability of channel ci for terminal equipment A, that is,
信道的历史可利用率集合, A collection of historical availability of the channel,
算法过程:Algorithm process:
第1步:输入n和C,初始化t=0, Step 1: Input n and C, initialize t=0,
第2步:更新时间片数t=t+1,Step 2: Update the number of time slices t=t+1,
第3步:感知信道可接入情况,计算得到At;Step 3: Perceive the channel availability and calculate A t ;
第4步:计算这里,用一个内存变量存储从而降低空间复杂度;Step 4: Calculate Here, a memory variable is used to store to reduce space complexity;
//若则 //like but
//若则 //like but
第5步:根据At,计算得到 Step 5: According to A t , calculate
第6步:将中的信道元素,根据各自的信道历史可利用率降序排列,得到排列(这里,);Step 6: Put The channel elements in , according to their respective channel history availability Sort in descending order, get sorted (here, );
第7步:为中的元素分配随机选择接入的概率,采用上述步骤S300中为每个信道分配接入选择概率的三种方法作为三种概率分配方案;Step 7: For The elements in are assigned the probability of random selection access, and the three methods of assigning access selection probability for each channel in the above step S300 are used as three probability allocation schemes;
第8步:按第7步中的概率分布按顺序逐一选择中的信道,此仿真实验中按概率从大到小,并在所选择的信道上尝试握手;Step 8: Select one by one in order according to the probability distribution in step 7 In this simulation experiment, the probability is from large to small, and a handshake is attempted on the selected channel;
第9步:如果没有实现握手,则执行第2步;否则,结束算法。Step 9: If the handshake is not implemented, then execute Step 2; otherwise, end the algorithm.
(3).仿真实验及结果分析:设信道总数为n,不失一般性,假设对任意t,即在任意一个时间片内,A和B的可接入信道数目相同且恒定(但可接入信道集合不一定相同),也即信道可利用率为了模拟真实环境下无线嵌入式网络中不同握手情境可接入信道集合动态变化的特性,我们引入信道动态变化率η这个实验参数,从而在大量的实验中模拟出不同实验环境下的不同信道集合,分别验证不同信道集合下本发明技术方案的有效性,从而验证本发明技术方案针对实际通信中信道环境动态变化导致不同握手情境下的有效性,。(3). Simulation experiment and result analysis: Let the total number of channels be n, without loss of generality, assuming that for any t, That is, in any time slice, the number of accessible channels of A and B is the same and constant (but the set of accessible channels is not necessarily the same), that is, the channel availability In order to simulate the dynamic change characteristics of the access channel set in different handshake scenarios in the wireless embedded network in the real environment, we introduce the experimental parameter of channel dynamic change rate η, so as to simulate different channel sets in different experimental environments in a large number of experiments , respectively verifying the effectiveness of the technical solution of the present invention under different channel sets, thereby verifying the effectiveness of the technical solution of the present invention in different handshake scenarios caused by dynamic changes in the channel environment in actual communication.
我们把每个时间片变化了的可接入信道(与上一时间片相比)比上可接入信道总数,定义为信道动态变化率η,不失一般性,我们假设η恒定。仿真实验中,在第t个时间片(以A为例),我们等概率地从中选择个信道,令其在第t+1个时间片仍然可利用;同时等概率地从集合中选择个信道,在第t-1个时间片可利用。这些选择的信道都会出现在中。在每个时间片伊始(以第t个时间片为例),我们比较和如果为了保证A和B有机会在该时间片握手成功,我们替换或中的某个元素(信道)使得其中,需要说明的是,的情况在现实中极少出现;再者,若那么本发明的算法将失去基本的可行前提,将不予考虑这种情形。We compare the number of accessible channels changed in each time slot (compared with the previous time slot) to the total number of accessible channels, and define it as channel dynamic change rate η. Without loss of generality, we assume that η is constant. In the simulation experiment, at the tth time slice (taking A as an example), we equally probabilistically start from choose from channel, so that it is still available in the t+1th time slice; at the same time, from the set with equal probability choose from channel, available in the t-1th time slice. These selected channels will appear in the middle. At the beginning of each time slice (take the tth time slice as an example), we compare with if In order to ensure that A and B have a chance to successfully shake hands in this time slice, we replace or An element (channel) in such that Among them, it should be noted that, The situation rarely occurs in reality; moreover, if Then the algorithm of the present invention will lose the basic feasible premise, and will not consider this situation.
根据信道可利用情况,我们可以将嵌入式终端设备分为对称和非对称两种情况。对于对称的嵌入式终端设备,他们在每个时间片的信道可利用情况相同,也即对于非对称的嵌入式终端设备而言,在同一个时间片,和可能不同。因为对称和非对称这两种情况在实际场景中都有可能发生,因此仿真实验中有必要对它们情况进行实验和分析。According to the availability of the channel, we can divide the embedded terminal equipment into two types: symmetrical and asymmetrical. For symmetrical embedded terminal devices, their channel availability in each time slice is the same, that is, For asymmetric embedded terminal devices, in the same time slice, with may be different. Because both symmetric and asymmetric situations may occur in the actual scene, it is necessary to experiment and analyze their situations in the simulation experiment.
如上所述,算法表现的评价指标是握手时间的期望值E(T)和最大值M(T)。因为实验设定和算法存在随机性,为了得到更客观的结果,本发明通过大量实验,即重复每个实验500次来计算E(T)和M(T),验证本发明中所提出的三种概率分配方案的有效性。As mentioned above, the evaluation index of the algorithm performance is the expected value E(T) and the maximum value M(T) of the handshake time. Because there is randomness in the experimental settings and algorithms, in order to obtain more objective results, the present invention calculates E(T) and M(T) through a large number of experiments, that is, repeats each experiment 500 times, and verifies the three proposed in the present invention. The effectiveness of a probability assignment scheme.
在对称和非对称终端设备下,测试了本发明所提出的三种概率分配方案,得到实验结果如下表1~6所示:Under symmetrical and asymmetrical terminal equipment, three kinds of probability allocation schemes proposed by the present invention were tested, and the experimental results were obtained as shown in Tables 1-6 below:
表1.无线嵌入式对称终端设备执行方案①的仿真实验结果Table 1. Simulation experiment results of implementation scheme ① of wireless embedded symmetrical terminal equipment
表2.无线嵌入式非对称终端设备执行方案①的仿真实验结果Table 2. Simulation experiment results of wireless embedded asymmetric terminal equipment execution scheme ①
表3.无线嵌入式对称终端设备执行方案②的仿真实验结果Table 3. The simulation experiment results of the wireless embedded symmetric terminal equipment execution scheme ②
表4.无线嵌入式非对称终端设备执行方案②的仿真实验结果Table 4. Simulation results of wireless embedded asymmetric terminal equipment execution scheme ②
表5.无线嵌入式对称终端设备执行方案③的仿真实验结果Table 5. The simulation experiment results of the wireless embedded symmetrical terminal equipment execution scheme ③
表6.无线嵌入式非对称终端设备执行方案③的仿真实验结果Table 6. Simulation results of wireless embedded asymmetric terminal equipment execution scheme ③
从实验结果可观察到,所有实验都最终成功实现握手,说明本发明所提出的无线嵌入式网络的三种概率分配方案是针对信道环境动态变化情境下的有效方法。From the experimental results, it can be observed that all the experiments have successfully achieved the handshake, which shows that the three probability allocation schemes of the wireless embedded network proposed by the present invention are effective methods for the dynamic change of the channel environment.
请参见图2,图2是本发明提供的无线嵌入式网络中分布式随机握手系统的系统较佳实施例功能模块图,包括:Please refer to Fig. 2, Fig. 2 is the functional block diagram of the preferred embodiment of the distributed random handshake system in the wireless embedded network provided by the present invention, including:
检测模块10,用于在第t个时隙内,检测终端设备所有可接入信道形成所述终端设备可接入信道集合,具体如上述方法所述;The detection module 10 is configured to detect all accessible channels of the terminal device in the tth time slot to form a set of accessible channels of the terminal device, specifically as described in the above method;
排序模块20,用于根据所述终端设备可接入信道集合中每个信道的历史可利用率、顺序排列每个信道形成终端设备可接入信道顺序排列集合,具体如上述方法所述;The sorting module 20 is configured to arrange each channel in order according to the historical availability of each channel in the set of channels accessible to the terminal device to form a sequential arrangement set of channels accessible to the terminal device, specifically as described in the above method;
选择概率分配模块30,用于为所述终端设备可接入信道顺序排列集合中的每个信道分配接入选择概率,具体如上述方法所述;A selection probability allocation module 30, configured to allocate access selection probabilities to each channel in the sequentially arranged set of channels accessible to the terminal device, specifically as described in the above method;
握手模块40,用于根据接入选择概率选择所述终端设备可接入信道顺序排列集合中的每个信道尝试握手,直到握手成功,否则返回检测模块、且使t=t+1,具体如上述方法所述。The handshake module 40 is used to select each channel in the sequentially arranged set of accessible channels of the terminal device according to the access selection probability to try to shake hands until the handshake is successful, otherwise return to the detection module and make t=t+1, specifically as described above method.
所述的无线嵌入式网络中分布式随机握手系统,其中,所述的检测模块10包括:Distributed random handshake system in the described wireless embedded network, wherein, described detection module 10 comprises:
统计单元,用于统计无线嵌入式网络中的可接入信道总数,具体如上述方法所述;A statistical unit, configured to count the total number of accessible channels in the wireless embedded network, specifically as described in the above method;
检测单元,用于在第t个时隙内,检测无线嵌入式网络中终端设备所有可接入信道、形成所述终端设备可接入信道集合,用下列公式表示:The detection unit is used to detect all accessible channels of the terminal equipment in the wireless embedded network in the tth time slot, and form a set of accessible channels of the terminal equipment, expressed by the following formula:
公式(1)是一个布尔向量,表示在第t个时隙内,终端设备A的可接入信道情况,其中,n表示无线嵌入式网络中的可接入信道总数,t表示第t个时隙,t=1,2,...,∞,ci表示第i个信道,表示终端设备A可以在第t个时隙内接入信道ci,表示终端设备A不能在第t个时隙内接入信道ci;Formula (1) is a Boolean vector, which represents the accessible channels of the terminal device A in the tth time slot, where n represents the total number of accessible channels in the wireless embedded network, and t represents the tth time slot slot, t=1,2,...,∞, c i represents the i-th channel, Indicates that terminal device A can access channel c i in the tth time slot, Indicates that terminal device A cannot access channel c i in the tth time slot;
公式(2)中表示在第t个时隙内,终端设备A的可接入信道集合,ci表示第i个信道,表示终端设备A可以在第t个时隙内接入信道ci,具体如上述方法所述。In formula (2) Indicates the set of accessible channels of terminal device A in the tth time slot, c i indicates the i-th channel, Indicates that the terminal device A can access the channel c i in the tth time slot, specifically as described in the above method.
所述的无线嵌入式网络中分布式随机握手系统,其中,所述的排序模块20包括:Distributed random handshake system in the described wireless embedded network, wherein, the described sorting module 20 comprises:
计算单元,用于计算在第t个时隙内,第i个信道ci对于终端设备A的历史可利用率计算公式为: A calculation unit, used to calculate the historical availability of the i -th channel ci for the terminal device A in the t-th time slot The calculation formula is:
公式(3)中,其中,t'为(1,t)的整数,即表示第t'个时隙,具体如上述方法所述;In the formula (3), wherein, t' is an integer of (1, t), which means the t'th time slot, specifically as described in the above method;
信道历史可利用率集合单元,用于形成在第t个时隙内,信道ci对于终端设备A的历史可利用率集合具体如上述方法所述;The channel historical availability collection unit is used to form the historical availability collection of the channel ci for the terminal device A in the tth time slot Specifically as described above;
排序单元,用于将所述的中的信道元素,根据每个信道ci的历史可利用率降序或升序排列,得到终端设备A可接入信道顺序排列集合即其中,信道…,ci,cj,ck,…,对应的信道历史可利用率关系为或具体如上述方法所述。sorting unit for the The channel elements in , according to the historical availability of each channel ci Arrange in descending or ascending order to obtain the sequenced set of channels that terminal device A can access which is Among them, channel..., ci ,c j , c k ,..., the corresponding channel historical availability ratio relationship is or Specifically as described above.
所述的选择概率分配模块30包括:Described selection probability assignment module 30 comprises:
选择概率第一计算单元,用于终端设备可接入信道顺序排列集合中的每个信道分配接入选择概率计算方法为:设终端设备A可接入信道顺序排列集合按照中可接入信道对应的历史可利用率作为权重分配概率,计算得到...,ci,cj和ck...,的概率分别为和且 The first calculation unit of selection probability is used for the calculation method of each channel allocation access selection probability in the sequential arrangement set of accessible channels of the terminal equipment as follows: suppose that the terminal equipment A can access the sequential arrangement set of channels according to The historical availability rate corresponding to the accessible channel in As the weight distribution probability, the calculated probabilities of ..., c i , c j and c k ..., are respectively with and
具体如上述方法所述;Specifically as described above;
选择概率第二计算单元,用于终端设备A可接入信道顺序排列集合中的每个信道分配接入选择概率基于类指数分布计算方法为:设终端设备A可接入信道顺序排列集合 The second calculation unit of selection probability is used for each channel in the sequentially arranged set of accessible channels for terminal equipment A.
ej-1 (6);e j-1 (6);
公式(6)表示中第j个信道元素分配权重, Formula (6) expresses The jth channel element assigns weights in
公式(7)表示中第j个信道元素被选择的概率,其中,e是欧拉数,具体如上述方法所述;Formula (7) shows The probability that the jth channel element is selected in Wherein, e is Euler's number, specifically as described in the above method;
选择概率第三计算单元,用于终端设备A可接入信道顺序排列集合中的每个信道分配接入选择概率基于类几何分布计算方法为:设终端设备A可接入信道顺序排列集合 The third calculation unit of selection probability is used for assigning access selection probability to each channel in the sequentially arranged set of channels that terminal equipment A can access.
λ(1-λ)j-1 (8);λ(1-λ) j-1 (8);
公式(8)表示中第j个信道元素的分配权重,其中,λ∈(0,1)为标准几何分布的常数参数;Formula (8) expresses The distribution weight of the jth channel element in , where, λ∈(0,1) is a constant parameter of the standard geometric distribution;
公式(9)表示中第j个信道元素对应的被选择概率, Formula (9) expresses The probability of being selected corresponding to the jth channel element in
综上所述,本发明所提供的无线嵌入式网络中分布式随机握手方法及其系统,针对无线嵌入式网络中分布式无线可接入信道动态环境下的嵌入式终端设备分布式握手自适应随机握手方法,通过统计信道状态,提出的基于启发式的嵌入式终端设备的分布式握手方法,能有效地使拟通信终端设备在可接入信道动态变化的情况下实现设备间握手进而实现顺畅有效通信。To sum up, the distributed random handshake method and its system in the wireless embedded network provided by the present invention aim at the distributed handshake self-adaption of the embedded terminal equipment under the dynamic environment of the distributed wireless accessible channel in the wireless embedded network. The random handshake method, through statistical channel status, proposes a heuristic-based distributed handshake method for embedded terminal equipment, which can effectively enable the intended communication terminal equipment to achieve handshake between devices under the condition of dynamic changes in the access channel and thus achieve smooth communication. Communicate effectively.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关硬件(如处理器,控制器等)来完成,所述的程序可存储于一计算机可读取的存储介质中,该程序在执行时可包括如上述各方法实施例的流程。其中所述的存储介质可为存储器、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized by instructing related hardware (such as processors, controllers, etc.) through computer programs, and the programs can be stored in a computer. In the read storage medium, the program may include the processes of the above-mentioned method embodiments when executed. The storage medium mentioned herein may be a memory, a magnetic disk, an optical disk, and the like.
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that the application of the present invention is not limited to the above examples, and those skilled in the art can make improvements or transformations according to the above descriptions, and all these improvements and transformations should belong to the protection scope of the appended claims of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611168718.7A CN106793151B (en) | 2016-12-16 | 2016-12-16 | Distributed random handshake method and its system in a kind of wireless built network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611168718.7A CN106793151B (en) | 2016-12-16 | 2016-12-16 | Distributed random handshake method and its system in a kind of wireless built network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106793151A true CN106793151A (en) | 2017-05-31 |
CN106793151B CN106793151B (en) | 2019-11-26 |
Family
ID=58892238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611168718.7A Expired - Fee Related CN106793151B (en) | 2016-12-16 | 2016-12-16 | Distributed random handshake method and its system in a kind of wireless built network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106793151B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110113769A (en) * | 2018-02-01 | 2019-08-09 | 中兴通讯股份有限公司 | A kind of WiFi channel screening technique, device and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101697635A (en) * | 2009-09-16 | 2010-04-21 | 重庆大学 | Access method and control method of cognitive wireless MESH network |
CN102170643A (en) * | 2011-03-10 | 2011-08-31 | 北京邮电大学 | Zigbee information channel dynamic selection method based on real-time availability |
WO2013177984A1 (en) * | 2012-05-28 | 2013-12-05 | 索尼公司 | Cognitive radio system, resource allocation apparatus thereof and method therefor |
US9203611B1 (en) * | 2013-03-07 | 2015-12-01 | Facebook, Inc. | Techniques for handshake-free encrypted communication using symmetric key caching during application backgrounding |
-
2016
- 2016-12-16 CN CN201611168718.7A patent/CN106793151B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101697635A (en) * | 2009-09-16 | 2010-04-21 | 重庆大学 | Access method and control method of cognitive wireless MESH network |
CN102170643A (en) * | 2011-03-10 | 2011-08-31 | 北京邮电大学 | Zigbee information channel dynamic selection method based on real-time availability |
WO2013177984A1 (en) * | 2012-05-28 | 2013-12-05 | 索尼公司 | Cognitive radio system, resource allocation apparatus thereof and method therefor |
US9203611B1 (en) * | 2013-03-07 | 2015-12-01 | Facebook, Inc. | Techniques for handshake-free encrypted communication using symmetric key caching during application backgrounding |
Non-Patent Citations (2)
Title |
---|
MARJAN ZANDI ; MIN DONG ; ALI GRAMI: "Dynamic Spectrum Access via Channel-Aware", 《IEEE》 * |
胡罡: "无线认知网络频谱感知与接入关键技术研究", 《中国博士学位论文全文数据库》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110113769A (en) * | 2018-02-01 | 2019-08-09 | 中兴通讯股份有限公司 | A kind of WiFi channel screening technique, device and computer readable storage medium |
CN110113769B (en) * | 2018-02-01 | 2021-10-29 | 中兴通讯股份有限公司 | WiFi channel screening method and device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106793151B (en) | 2019-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Yang et al. | Timely-throughput optimal coded computing over cloud networks | |
CN113490184B (en) | Random access resource optimization method and device for intelligent factory | |
WO2017041492A1 (en) | Resource allocation method and device, and computer-readable storage medium | |
CN108462999B (en) | Method and equipment for resource allocation | |
CN108809452B (en) | Optimal sensing channel selection method in dynamic spectrum access system | |
Gafni et al. | Distributed learning over Markovian fading channels for stable spectrum access | |
CN116541106B (en) | Calculation task offloading method, computing device and storage medium | |
CN113138802B (en) | Command distribution device, method, chip, computer device and storage medium | |
CN105721123A (en) | User matching and power allocation method and apparatus | |
CN106992823A (en) | A Spectrum Sensing Method for Cognitive Radio Networks | |
CN109548161A (en) | A kind of method, apparatus and terminal device of wireless resource scheduling | |
CN112383485A (en) | Network congestion control method and device | |
WO2018006762A1 (en) | Method, device and system for processing pseudo random sequence, and storage medium | |
CN111262638A (en) | Dynamic Spectrum Access Method Based on Efficient Sample Learning | |
CN106793151B (en) | Distributed random handshake method and its system in a kind of wireless built network | |
US12218842B2 (en) | Data communication method, server device, client device and medium | |
CN104968051B (en) | A kind of resource allocation methods and device of partial wideband uplink | |
CN112822786B (en) | Data processing method and device | |
Hou et al. | Modeling and analysis of spectrum handoffs for real-time traffic in cognitive radio networks | |
WO2020030157A1 (en) | Transport block (tb) scheduling method and device, storage medium and electronic device | |
CN108471619B (en) | A Channel Selection Method for Cognitive Wireless Sensor Networks | |
CN103249052B (en) | Based on the frequency spectrum distributing method optimizing access cognitive user number in cognitive radio system | |
CN107888540B (en) | Network anti-attack method and network equipment | |
CN112764791B (en) | Incremental update malicious software detection method and system | |
Ren et al. | Learning-driven service caching in MEC networks with bursty data traffic and uncertain delays |
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 |
Granted publication date: 20191126 |
|
CF01 | Termination of patent right due to non-payment of annual fee |