CN-115665812-B - Roaming control method based on Mesh network
Abstract
The invention mainly relates to the field of wireless equipment roaming, and aims to solve the problem that roaming based on equipment in a multi-AP Mesh network is mainly decided based on an RSSI single index, and misjudgment is easily caused under the factors of large environmental interference or poor antenna core performance of a terminal and the like; the method comprises the steps of firstly configuring a Mesh network to determine master-slave APs, enabling STA terminals to associate with a certain slave AP in the Mesh network, namely AP1, notifying the master AP of association information of the STA terminals, determining whether the STA terminals enter a decision state to be roamed or not through RSSI of the STA terminals and packet loss rate of the STA terminals sent by the AP1, enabling the AP1 to continuously measure wireless air interface packet rates and corresponding air interface message times of a plurality of periods of the STA terminals, calculating weighted average rates, comparing the weighted average rates with the highest rates negotiated between the STA terminals and the AP1, judging whether the STA terminals meet the condition of entering the roaming decision state, and selecting a roaming destination AP according to RSSI of the STA terminals, acoustic channel load of the AP and bottom noise after the STA terminals enter the roaming decision state, and connecting the STA terminals with the destination AP.
Inventors
- DAI QILIN
- LIU RUIFENG
- CAI XINHAO
- OUYANG PING
- MIN JIANCHUN
- WANG HAIJUN
- YANG HAOWEI
- FANG DINGWEI
Assignees
- 成都长虹网络科技有限责任公司
Dates
- Publication Date
- 20260512
- Application Date
- 20221021
Claims (4)
- 1. The Mesh network-based roaming control method is characterized by comprising the following steps of: step 1, configuring a Mesh network, and determining master-slave APs, wherein the number of the slave APs is more than or equal to 1; Step 2, associating the STA terminal with one slave AP in the Mesh network, recording as AP1, informing the information of the STA terminal to the master AP by the AP1, and continuously recording the RSSI of the STA terminal by the AP 1; Step 3, the AP1 judges whether the STA terminal enters a decision state to be roamed according to the RSSI of the STA terminal and the packet loss rate of the broadcast packet sent to the STA terminal by itself; After the STA terminal enters the decision state to be roamed, the AP1 continuously measures the wireless air interface packet rate of the STA terminal and the corresponding air interface message times of a plurality of measurement periods, and judges whether the STA terminal enters the decision state to be roamed, specifically comprises the steps that after the STA terminal enters the decision state to be roamed, the AP1 continuously measures the wireless air interface packet rate of the STA terminal in a plurality of measurement periods, calculates the weighted average rate according to the wireless air interface packet rate and the air interface message times corresponding to the wireless air interface packet, compares the weighted average rate with the highest rate negotiated by the STA terminal and the AP1, and if the weighted average rate is smaller than the highest rate of a certain proportion, and meets the condition that any one STA terminal enters the decision state to be roamed, the STA terminal enters the decision state to be roamed, otherwise, returns to the initial state; Step 5, after the STA terminal enters a roaming decision state, the AP1 sends a roaming notice to the main AP, and the main AP which receives the notice initiates roaming measurement and notifies all the auxiliary APs to carry out roaming measurement; And 6, establishing connection between the STA terminal and the destination AP.
- 2. The Mesh network-based roaming control method as claimed in claim 1, wherein the method for determining whether to enter the to-be-roamed decision state in step 3 specifically includes calculating an RSSI average value RSSI avg of the STA terminal in a plurality of measurement periods and a packet loss Ratio pkt_loss of the AP1 for transmitting a broadcast packet to the STA terminal; 1) The RSSI average value RSSI avg is smaller than a set RSSI threshold RSSI thres1 , and the AP1 sends a packet loss rate Ratio pkt_loss to the STA terminal to be larger than a set packet loss rate threshold Ratio pkt_loss_thres ; 2) The RSSI average RSSIavg is less than the set RSSI threshold RSSI thres2 .
- 3. The Mesh network-based roaming control method as claimed in claim 1, wherein the specific method for selecting the destination AP to which the STA terminal needs to roam in step 5 includes: 1) Selecting M APs with the largest measured RSSI mean value with the STA terminal as a target AP set for the first round of screening, wherein the target AP set comprises an AP1; 2) Calculating the ratio of the maximum rate which can be supported by the M APs for the STA terminal to the inherent maximum rate of the STA terminal, and selecting the AP with the maximum N ratio; 3) Collecting channel load and bottom noise values measured by the N APs respectively, and calculating interference factor values according to weights occupied by the channel load and the bottom noise values; 4) Calculating respective terminal load factor values Road endpoint = α * Num endpoint; of the N APs according to the number of the STA terminals mounted by the APs and the corresponding speed calculation factors of the bandwidths supported by the APs, and respectively calculating terminal load factors by taking each frequency band as an independent AP if the APs support double-frequency unification; 5) Sorting the sum of the interference factor values of all the frequency bands of all the APs and the terminal load factor values according to the weight occupied by each of the interference factor and the terminal load factor, and selecting the AP with the smallest result as a first target AP, wherein: If the first target AP is the same frequency band as the current frequency band of the STA terminal, the first target AP is used as a final target AP, namely AP1 is used as a target AP; If the first target AP and the STA terminal are in the same frequency band, the interference factor value, the terminal load factor value and the minimum AP in the same frequency band as the STA terminal are taken as the second target AP, and the AP1 is taken as the first target AP, wherein the target AP is determined according to specific roaming actions.
- 4. The Mesh network-based roaming control method as claimed in claim 3, wherein the STA terminal and destination AP connection method in step 6 specifically includes: If the destination AP is AP1, the main AP sends roaming notice to all APs to inform the MAC of the destination AP and the STA terminal, and the AP1 sends a BTM request to the STA terminal according to whether the STA terminal supports the IEEE802.11 kv communication protocol, and the destination AP is connected; If the STA terminal supports the IEEEE802.11kv communication protocol and the STA terminal receives the BTM request of the AP1, the main AP notifies the destination AP to start timing and waits for the association of the STA terminal, and notifies the non-destination AP to add the STA terminal into a timing blacklist; If the STA terminal supports the IEEEE802.11kv communication protocol and the STA terminal refuses the BTM request of the AP1, the roaming process is exited; If the STA terminal does not support the IEEEE802.11kv communication protocol, the main AP notifies the destination AP to start timing and waits for the association of the STA terminal, notifies the non-destination AP to add the STA terminal into a timing blacklist, and the AP1 initiates a Deauth flow; If the same frequency band as the STA terminal is adopted, the interference factor value, the terminal load factor and the smallest AP are taken as a second target AP, and the AP1 is taken as a first target AP, the first target AP is firstly set as a target AP, and the main AP sends roaming notification to all the APs; If the STA terminal supports the IEEEE802.11kv communication protocol and the STA terminal receives the BTM request of the AP1, the main AP notifies the destination AP to start timing and waits for the association of the STA terminal, and notifies the non-destination AP to add the STA terminal into a timing blacklist; If the STA terminal supports the IEEEE802.11kv communication protocol and the STA terminal refuses the BTM request of the AP1, switching the target AP into a second target AP, and retrying connection; If the STA terminal does not support the IEEEE802.11kv communication protocol, the main AP notifies the destination AP to start timing and wait for the association of the STA terminal, notifies the non-destination AP to add the STA terminal into a timing blacklist, and the AP1 initiates a Deauth flow.
Description
Roaming control method based on Mesh network Technical Field The invention mainly relates to the field of wireless equipment roaming, in particular to a roaming control method based on a Mesh network. Background With popularization of home wireless networks, the speed of a home optical fiber network is increased, more intelligent devices access the Internet through APs, single AP coverage is often limited, mesh networking is generated, mesh distributed routing generates a Mesh network through networking, wired direct-plug networking can be adopted, networking can be performed through wireless, multi-AP Mesh networking greatly expands signal coverage, roaming of equipment in a Mesh environment is mainly determined based on RSSI single index, RSSI is likely to cause misjudgment under the influence of factors such as larger environmental interference or poor terminal antenna performance. Disclosure of Invention The invention aims to solve the technical problems that: The roaming control method based on the Mesh network solves the problem that roaming of equipment in the multi-AP Mesh network is mainly decided based on an RSSI single index, and misjudgment is easily caused under the factors of large environmental interference or poor antenna core performance of a terminal and the like. The invention solves the technical problems by adopting the technical scheme that: a roaming control method based on a Mesh network comprises the following steps: step 1, configuring a Mesh network, and determining master-slave APs, wherein the number of the slave APs is more than or equal to 1; Step 2, associating the STA terminal with one slave AP in the Mesh network, recording as AP1, informing the information of the STA terminal to the master AP by the AP1, and continuously recording the RSSI of the STA terminal by the AP 1; Step 3, the AP1 judges whether to enter a decision state to be roamed or not according to the RSSI of the STA terminal and the packet loss rate of the broadcast packet sent to the STA terminal by itself; Step 4, after the STA terminal enters a to-be-roamed decision state, the AP1 continuously measures the wireless air interface packet rate and the corresponding air interface message times of the STA terminal in a plurality of measurement periods, and judges whether the STA terminal enters the roaming decision state; Step 5, after the STA terminal enters a roaming decision state, the AP1 sends a roaming notice to the main AP, the main AP which receives the notice initiates roaming measurement, and notifies all the auxiliary APs to carry out roaming measurement, and the main AP continuously measures a plurality of periods, gathers the measurement results of all the APs, and selects a destination AP which the STA terminal needs to roam; And 6, establishing connection between the STA terminal and the destination AP. Further, the method for judging whether to enter the decision state to be roamed in step 3 specifically includes calculating an RSSI average value RSSI avg of the STA terminal in a plurality of measurement periods and an AP1 sending a packet loss rate Ratio pkt_loss of a broadcast packet to the STA terminal; 1) The RSSI average value RSSI avg is smaller than a set RSSI threshold RSSI thres1, and the AP1 sends a packet loss rate Ratio pkt_loss to the STA terminal to be larger than a set packet loss rate threshold Ratio pkt_loss_thres; 2) The RSSI average RSSIavg is less than the set RSSI threshold RSSI thres2. Further, the step 4 of determining whether the STA terminal enters the roaming decision state specifically includes that after the STA terminal enters the roaming decision state, the AP1 continuously measures wireless air interface packet rates of the STA terminal in a plurality of measurement periods, calculates a weighted average rate according to the rates of the wireless air interface packets and the times of air interface messages corresponding to the wireless air interface packets, compares the weighted average rate with a highest rate negotiated by the STA terminal and the AP1, and if the weighted average rate is smaller than a certain proportion of the highest rate, and satisfies a condition that any STA terminal enters the roaming decision state, the STA terminal enters the roaming decision state, otherwise returns to the initial state. Further, the specific method for selecting the destination AP to which the STA terminal needs to roam in step 5 includes: 1) Selecting M APs with the largest measured RSSI mean value with the STA terminal as a target AP set for the first round of screening, wherein the target AP set comprises an AP1; 2) Calculating the ratio of the maximum rate which can be supported by the M APs for the STA terminal to the inherent maximum rate of the STA terminal, and selecting the AP with the maximum N ratio; 3) Collecting channel load and bottom noise values measured by the N APs respectively, and calculating interference factor values according to weights occupie