Message processing method, device, electronic device and storage medium
By monitoring wireless terminal signals on the AC side and using the 802.11k/v protocol to obtain neighboring AP information, terminal table entries are switched in advance and data packets are cached, solving the packet loss problem during wireless terminal roaming and improving user experience.
Patent Information
- Application Number
- CN202411030384.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2044-07-29
AI Technical Summary
In a wireless LAN, during roaming, data packets sent from the AC to the wireless terminal may be lost because the online entry for the wireless terminal is not switched, affecting user experience.
The AC monitors the signal strength of wireless terminals. When the signal is weaker than the threshold, it uses the 802.11k/v protocol to obtain neighboring AP information, pre-switches the terminal table entry, and caches data packets to ensure data transmission continuity.
This reduces packet loss during roaming of wireless terminals and improves user experience.
Smart Images

Figure CN119031427B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a message processing method, device, electronic device and storage medium. Background Art
[0002] In a wireless local area network (WLAN), a wireless terminal often roams from an access point (AP) managed by an access controller (AC) to another AP managed by the AC.
[0003] During roaming, if the AC needs to send data packets to the wireless terminal, the data packets will be sent to the AP before roaming because the online table of the wireless terminal has not been switched. This will cause packet loss and affect the user experience. Summary of the Invention
[0004] In order to overcome the problems existing in the related art, the present application provides a message processing method, device, electronic device and storage medium.
[0005] According to a first aspect of an embodiment of the present application, a message processing method is provided. The method is applied to an AC and includes:
[0006] When it is detected that the signal strength of the wireless terminal is less than a set threshold, if the wireless terminal supports the 802.11k / v protocol, obtaining neighbor information of the first AP from the wireless terminal through the first AP to which the wireless terminal accesses, wherein the neighbor information includes the signal strength and Basic Service Set Identifier (BSSID) corresponding to the neighbor AP of the first AP scanned by the wireless terminal;
[0007] Determine a second AP with the greatest signal strength based on the acquired neighbor information, and send a Basic Service Set Transition Management Request (BTM Request) message carrying the BSSID of the second AP to the wireless terminal through the first AP;
[0008] If a first BTM response message sent by the wireless terminal and indicating that the wireless terminal accepts the roaming suggestion is received through the first AP, switching the terminal table entry of the wireless terminal to the second AP, and sending a first notification message to the second AP to notify the second AP to create a terminal table entry for the wireless terminal;
[0009] After receiving the second notification message sent by the second AP to notify the AC that the terminal table entry of the wireless terminal has been created, if a first data message for the wireless terminal is received, processing the first data message based on the local terminal table entry of the wireless terminal;
[0010] sending the processed data packet to the second AP, so that the second AP caches the processed data packet when it determines that the wireless terminal has not successfully roamed to the second AP and a terminal entry for the wireless terminal exists locally, and sends the locally cached data packet for the wireless terminal to the wireless terminal when it determines that the wireless terminal has successfully roamed to the second AP;
[0011] The first BTM Response message is sent by the wireless terminal when the wireless terminal receives the BTM Request message sent by the first AP and confirms that it accepts the roaming suggestion.
[0012] According to a second aspect of an embodiment of the present application, a message processing device is provided. The device is applied to an AC, and the device includes:
[0013] an acquisition module, configured to, when the signal strength of the wireless terminal is detected to be less than a set threshold, acquire neighbor information of the first AP from the wireless terminal through the first AP to which the wireless terminal accesses, if the wireless terminal supports the 802.11k / v protocol, wherein the neighbor information includes signal strengths and BSSIDs corresponding to neighbor APs of the first AP scanned by the wireless terminal;
[0014] A determination module, configured to determine a second AP with the greatest signal strength based on the acquired neighbor information, and send a BTM Request message (second AP message) carrying a BSSID of the second AP to the wireless terminal through the first AP;
[0015] a first switching notification module, configured to, upon receiving, through the first AP, a first BTM Response message sent by the wireless terminal and indicating that the wireless terminal accepts a roaming suggestion, switch the terminal table entry of the wireless terminal to the second AP, and send to the second AP a first notification message for notifying the second AP to create a terminal table entry for the wireless terminal;
[0016] a first processing module, after receiving the second notification message sent by the second AP to notify the AC that the terminal table entry of the wireless terminal has been created, processing the first data message based on the local terminal table entry of the wireless terminal if a first data message for the wireless terminal is received;
[0017] a first sending module, configured to send the processed data packet to the second AP, so that the second AP caches the processed data packet when it determines that the wireless terminal has not successfully roamed to the second AP and a terminal entry for the wireless terminal exists locally, and sends the locally cached data packet for the wireless terminal to the wireless terminal when it determines that the wireless terminal has successfully roamed to the second AP;
[0018] The first BTM Response message is sent by the wireless terminal when the wireless terminal receives the BTM Request message sent by the first AP and confirms that it accepts the roaming suggestion.
[0019] According to the third aspect of an embodiment of the present application, an electronic device is provided, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps of the above-mentioned message processing method.
[0020] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of the above-mentioned message processing method are implemented.
[0021] The technical solutions provided by the embodiments of the present application may have the following beneficial effects:
[0022] In an embodiment of the present application, by monitoring the signal strength of the wireless terminal on the AC side, and when it is detected that the signal strength of the wireless terminal is less than the signal threshold and the wireless terminal supports the 802.11k / v protocol, the AC interacts with the AP before the wireless terminal roams and the AP to which the wireless terminal needs to roam, thereby realizing the early creation of terminal table entries and the caching of data packets during the roaming process, thereby reducing the packet loss of the wireless terminal during the roaming process, thereby improving the user experience.
[0023] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0025] Figure 1 A flowchart of a message processing method provided in an embodiment of the present application;
[0026] Figure 2 A schematic diagram of the WLAN network architecture provided in an embodiment of the present application;
[0027] Figure 3 A schematic diagram of the structure of a message processing device provided in an embodiment of the present application;
[0028] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0030] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. As used in this application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0031] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words "if" or "if" as used herein may be interpreted as "when" or "when".
[0032] Next, the embodiments of the present application are described in detail.
[0033] The embodiment of the present application provides a message processing method, which is applied to AC, such as Figure 1 As shown, the method may include the following steps:
[0034] S11. When it is monitored that the signal strength of the wireless terminal is less than a set threshold, if the wireless terminal supports the 802.11k / v protocol, obtain neighbor information of the first AP from the wireless terminal through the first AP to which the wireless terminal accesses.
[0035] In this step, the neighbor information includes the signal strength and BSSID corresponding to the neighbor AP of the first AP scanned by the wireless terminal.
[0036] S12: Determine a second AP with the greatest signal strength based on the acquired neighbor information, and send a BTM Request message carrying the BSSID of the second AP to the wireless terminal through the first AP.
[0037] S13. If a first BTM Response message sent by the wireless terminal and indicating that the wireless terminal accepts the roaming suggestion is received through the first AP, the terminal table entry of the wireless terminal is switched to the second AP, and a first notification message is sent to the second AP to notify the second AP to create a terminal table entry for the wireless terminal.
[0038] In this step, the first BTM Response message is sent by the wireless terminal when it receives the BTM Request message sent by the first AP and confirms that it accepts the roaming suggestion.
[0039] S14. After receiving the second notification message sent by the second AP to notify the AC that the terminal table entry of the wireless terminal has been created, if a first data message for the wireless terminal is received, process the first data message based on the local terminal table entry of the wireless terminal.
[0040] S15. Send the processed data message to the second AP, so that when the second AP determines that the wireless terminal has not successfully roamed to the second AP and there is a terminal table entry for the wireless terminal locally, the second AP caches the processed data message, and when it determines that the wireless terminal has successfully roamed to the second AP, the second AP sends the locally cached data message for the wireless terminal to the wireless terminal.
[0041] It should be noted that, in the embodiment of the present application, the specific monitoring process of the AC monitoring the signal strength of the wireless terminal is an existing technology and will not be described in detail here.
[0042] Specifically, in the above step S11, the AC obtains the neighbor information of the first AP in the following manner:
[0043] Sending, through the first AP, a scan message for scanning neighbor information of neighbor APs of the first AP to the wireless terminal;
[0044] Receive neighbor information of neighbor APs of the first AP reported by the wireless terminal.
[0045] Of course, the first AP may also use other methods to obtain the neighbor information of the first AP, which are not listed here one by one.
[0046] In addition, in step S11, the AC may determine the second AP with the greatest signal strength in the following manner:
[0047] An AP with the greatest signal strength is selected from the acquired neighbor information, and the selected AP is determined as the second AP.
[0048] It should be noted that by having the AC perform steps S11 to S14, packet loss of data packets exchanged during roaming between wireless terminals that support the 802.11k / v protocol and accept roaming suggestions can be reduced.
[0049] Furthermore, when the second AP receives the first notification message sent by the AC, it creates a terminal table entry of the wireless terminal locally based on the first notification message, and sends the second notification message to the AC.
[0050] Here, the terminal table entry includes information such as the IP address of the wireless terminal, the MAC address of the wireless terminal, the VLAN to which the wireless terminal belongs, and the Basic Service Set (BSS) port carried in the first notification message.
[0051] For the AC, once receiving the second notification message, it processes the subsequently received data messages for the wireless terminal based on the local terminal table entry of the wireless terminal and then sends the processed data messages to the second AP.
[0052] Subsequently, once the second AP determines that the wireless terminal has successfully roamed to itself, it directly sends the processed data message to the wireless terminal.
[0053] Furthermore, in the embodiment of the present application, the AC may further perform the following operations:
[0054] If a second BTMResponse message sent by the wireless terminal and indicating that the wireless terminal rejects the roaming suggestion is received through the first AP, the first AP is notified to reduce its own transmit power according to a preset power reduction policy, and a first deauthentication message is sent to the wireless terminal through the first AP to cause the wireless terminal to disconnect from the first AP. The wireless terminal then determines a third AP to roam to and sends a first authentication request message to the third AP.
[0055] If a second data message for the wireless terminal is received, caching the second data message;
[0056] Upon receiving the first authentication request message sent by the third AP, switching the terminal table entry of the wireless terminal to the third AP, and sending a third notification message to the third AP for notifying the third AP to create a terminal table entry of the wireless terminal;
[0057] Upon receiving a fourth notification message sent by the third AP and used to notify the AC that the terminal table entry of the wireless terminal has been created, processing the locally cached data message for the wireless terminal based on the local terminal table entry of the wireless terminal;
[0058] sending the processed data packet to the third AP, so that when the third AP determines that the wireless terminal has not successfully roamed to the third AP and a terminal entry for the wireless terminal exists locally, the third AP caches the processed data packet, and when the third AP determines that the wireless terminal has successfully roamed to the third AP, the third AP sends the locally cached data packet for the wireless terminal to the wireless terminal;
[0059] The second BTM Response message is sent by the wireless terminal when it receives the BTM Request message and confirms that it does not accept the roaming suggestion.
[0060] By executing this operation process by the AC, packet loss of data packets exchanged during roaming by wireless terminals that support the 802.11k / v protocol and reject the roaming proposal can be reduced.
[0061] Furthermore, in the embodiment of the present application, the AC may further perform the following operations:
[0062] If the wireless terminal does not support the 802.11k / v protocol, the first AP is notified to reduce its own transmit power according to a preset power reduction policy, and a second deauthentication message is sent to the wireless terminal through the first AP, so that the wireless terminal disconnects the wireless connection with the first AP, and determines a fourth AP to roam to, and sends a second authentication request message to the fourth AP;
[0063] If a third data message for the wireless terminal is received, the third data message is cached;
[0064] Upon receiving the second authentication request message sent by the fourth AP, switching the terminal table entry of the wireless terminal to the fourth AP, and sending a fifth notification message to the fourth AP for notifying the fourth AP to create a terminal table entry of the wireless terminal;
[0065] Upon receiving the sixth notification message sent by the fourth AP to notify the AC that the terminal table entry of the wireless terminal has been created, processing the locally cached data message for the wireless terminal based on the local terminal table entry of the wireless terminal;
[0066] The processed data packet is sent to the fourth AP, so that when the fourth AP determines that the wireless terminal has not successfully roamed to itself and there is a terminal table entry for the wireless terminal locally, the processed data packet is cached, and when it is determined that the wireless terminal has successfully roamed to itself, the locally cached data packet for the wireless terminal is sent to the wireless terminal.
[0067] By executing this operation process through the AC, packet loss of data packets exchanged between wireless terminals that do not support the 802.11k / v protocol during roaming can be reduced.
[0068] It should be noted that, in the embodiment of the present application, the preset power reduction strategy may be a power reduction strategy according to a set power reduction ratio or a power reduction strategy according to a set power level.
[0069] Furthermore, for any one of the second AP, the third AP, and the fourth AP, if the AP receives a wireless acknowledgment (ACK) message for an Address Resolution Protocol (ARP) Response message sent by the wireless terminal, it is determined that the wireless terminal has successfully roamed to the AP.
[0070] In addition, in the embodiment of the present application, the specific process of determining the third AP or the fourth AP by the wireless terminal is an existing technology and will not be described in detail here.
[0071] It should be further explained that, in the embodiment of the present application, the above-mentioned threshold value can be set by the administrator based on network experience and pre-set on the AC and the AP managed by the AC.
[0072] The above message processing method is described in detail below with reference to specific embodiments.
[0073] exist Figure 2 In the WLAN network shown, at time 1, AC detects access to AP1 ( Figure 2 The signal strength of wireless terminal 1 (denoted as cleint1) on the wireless terminal 1 (not shown) is less than the set threshold. At this time, assuming that wireless terminal 1 supports the 802.11k / v protocol, in this case, the AC obtains AP1's neighbor information from wireless terminal 1 through AP1 and determines the AP with the maximum signal strength based on the obtained neighbor information.
[0074] Assume that the determined AP is Figure 3 As shown in AP2, AC sends BTM Request message 1 carrying BSSID of AP2 to wireless terminal 1 through AP1.
[0075] When wireless terminal 1 receives BTM Request message 1, assuming that wireless terminal 1 accepts the roaming suggestion, it sends BTM Response message 1 indicating acceptance of the roaming suggestion to AC1 through AP1, and sends Authentication Request message 1 to AP2.
[0076] When AP1 receives BTM Response message 1, it sends it to AC through a switching device (denoted as SWITCH).
[0077] When receiving the BTM Response message 1 , the AC switches the terminal table entry of the wireless terminal 1 to the AP 2 , and sends a notification message 1 to the AP 2 to notify the AP 2 to create a terminal table entry for the wireless terminal 1 .
[0078] When receiving notification message 1 , AP2 creates a terminal table entry for wireless terminal 1 locally based on notification message 1 , and sends notification message 2 to the AC to notify the AC that the terminal table entry for wireless terminal 1 has been created.
[0079] After receiving notification message 2, if AC receives a data message for wireless terminal 1, it processes data message 1 based on the local terminal table entry of wireless terminal 1 and sends the processed data message to AP2.
[0080] When AP2 receives the processed data packet, it determines that wireless terminal 1 has not successfully roamed to itself and that there is a terminal table entry for wireless terminal 1 locally. At this time, AP2 caches the processed data packet and, when it determines that wireless terminal 1 has successfully roamed to itself, sends the locally cached data packet for wireless terminal 1 to wireless terminal 1 to reduce packet loss.
[0081] Here, it is assumed that AP2 receives a wireless ACK message in response to an ARP Response message sent by wireless terminal 1 after interacting with a DHCP server, confirming that wireless terminal 1 has successfully roamed to AP2.
[0082] In addition, for the wireless terminal 1, when receiving the BTM Request message 1, assuming that the wireless terminal 1 rejects the roaming suggestion, in this case, the wireless terminal 1 sends a BTMResponse message 2 to the AC through the AP1, indicating that the roaming suggestion is rejected.
[0083] When the AC receives the BTM Response message 2, it notifies AP1 to reduce its own transmit power according to the preset power reduction policy, and sends a deauthentication message 1 to the wireless terminal 1 through AP1.
[0084] When receiving the de-authentication message, wireless terminal 1 disconnects the wireless connection with the first AP and determines the AP to roam to. Assume that the determined roaming AP is AP3 ( Figure 2 (not shown), at this time, wireless terminal 1 sends an authentication request message to AP3.
[0085] After the AC sends the deauthentication message, if it receives the data message 2 for the wireless terminal 1, it caches the data message 2.
[0086] When receiving the authentication request message 1 sent by AP3, the AC switches the terminal table entry of the wireless terminal 1 to AP3, and sends a notification message 3 to AP3 to notify AP3 to create a terminal table entry for the wireless terminal 1.
[0087] When receiving notification message 3 , AP3 creates a terminal table entry for wireless terminal 1 locally based on notification message 3 , and sends notification message 4 to the AC to notify the AC that the terminal table entry for wireless terminal 1 has been created.
[0088] When AC receives notification message 4 sent by AP3 to notify AC that the terminal table entry of wireless terminal 1 has been created, AC processes the locally cached data message for wireless terminal 1 based on the local terminal table entry of wireless terminal 1 and sends the processed data message to AP3.
[0089] After receiving the processed data message, AP3 caches the processed data message when it determines that wireless terminal 1 has not successfully roamed to itself and there is a terminal table entry for wireless terminal 1 locally. When it determines that wireless terminal 1 has successfully roamed to itself, AP3 sends the locally cached data message for wireless terminal 1 to wireless terminal 1.
[0090] Furthermore, assuming that the AC detects that the signal strength of wireless terminal 1 is less than the set threshold and wireless terminal 1 does not support the 802.11k / v protocol, in this case, the AC directly notifies AP1 to reduce its own transmit power according to the preset power reduction strategy, and sends de-authentication message 2 to wireless terminal 1 through AP1. The subsequent processing flow is similar to the processing flow after the AC sends de-authentication message 1, and will not be described in detail here.
[0091] It can be seen from the above technical solution that in an embodiment of the present application, by monitoring the signal strength of the wireless terminal on the AC side, and when it is monitored that the signal strength of the wireless terminal is less than the signal threshold and the wireless terminal supports the 802.11k / v protocol, the AC interacts with the AP before the wireless terminal roams and the AP to which the wireless terminal needs to roam, thereby realizing the advance creation operation of the terminal table entry and the caching operation of the data message during the roaming process, so as to reduce the packet loss of the wireless terminal during the roaming process, thereby improving the user experience.
[0092] Based on the same inventive concept, the present application also provides a message processing device, which is applied to AC, and its structural diagram is shown as follows: Figure 3 , specifically including:
[0093] an acquisition module 31 configured to, when the signal strength of the wireless terminal is detected to be less than a set threshold, acquire neighbor information of the first AP from the wireless terminal through the first AP to which the wireless terminal accesses, if the wireless terminal supports the 802.11k / v protocol, wherein the neighbor information includes signal strengths and BSSIDs corresponding to neighbor APs of the first AP scanned by the wireless terminal;
[0094] a determining module 32 configured to determine a second AP with the greatest signal strength based on the acquired neighbor information, and to send a BTM Request message carrying a BSSID of the second AP to the wireless terminal through the first AP;
[0095] a first switching notification module 33 configured to, upon receiving, through the first AP, a first BTM Response message sent by the wireless terminal and indicating that the wireless terminal accepts a roaming suggestion, switch the terminal table entry of the wireless terminal to the second AP, and send to the second AP a first notification message for notifying the second AP to create a terminal table entry for the wireless terminal;
[0096] The first processing module 34, after receiving the second notification message sent by the second AP to notify the AC that the terminal table entry of the wireless terminal has been created, processes the first data message based on the local terminal table entry of the wireless terminal if a first data message for the wireless terminal is received;
[0097] a first sending module 35 configured to send the processed data packet to the second AP, so that the second AP caches the processed data packet when it determines that the wireless terminal has not successfully roamed to the second AP and a terminal entry for the wireless terminal exists locally, and sends the locally cached data packet for the wireless terminal to the wireless terminal when it determines that the wireless terminal has successfully roamed to the second AP;
[0098] The first BTM Response message is sent by the wireless terminal when the wireless terminal receives the BTM Request message sent by the first AP and confirms that it accepts the roaming suggestion.
[0099] Preferably, the acquiring module 31 is specifically configured to acquire the neighbor information of the first AP in the following manner, specifically including:
[0100] Sending, through the first AP, a scan message for scanning neighbor information of neighbor APs of the first AP to the wireless terminal;
[0101] Receiving neighbor information of a neighbor AP of the first AP reported by the wireless terminal;
[0102] Preferably, the determining module 32 is specifically configured to determine the second AP with the greatest signal strength by:
[0103] An AP with the greatest signal strength is selected from the acquired neighbor information, and the selected AP is determined as the second AP.
[0104] Preferably, the device further comprises:
[0105] The first notification module ( Figure 3 (not shown), configured to, upon receiving, through the first AP, a second BTM Response message sent by the wireless terminal and used to indicate that the wireless terminal has rejected the roaming proposal, notify the first AP to reduce its own transmit power according to a preset power reduction policy, and send a first deauthentication message to the wireless terminal through the first AP, so that the wireless terminal disconnects the wireless connection with the first AP, and determines a third AP to roam to, and sends a first authentication request message to the third AP;
[0106] The first cache module ( Figure 3 (not shown) for caching a second data message for the wireless terminal if a second data message for the wireless terminal is received;
[0107] The second switching notification module ( Figure 3 (not shown) for, upon receiving the first authentication request message sent by the third AP, switching the terminal table entry of the wireless terminal to the third AP, and sending a third notification message to the third AP for notifying the third AP to create a terminal table entry for the wireless terminal;
[0108] The second processing module ( Figure 3 ), configured to process the locally cached data message for the wireless terminal based on the local terminal table entry of the wireless terminal when receiving a fourth notification message sent by the third AP to notify the AC that the terminal table entry of the wireless terminal has been created;
[0109] The second sending module ( Figure 3(not shown), configured to send the processed data packet to the third AP, so that when the third AP determines that the wireless terminal has not successfully roamed to the third AP and a terminal entry for the wireless terminal exists locally, the third AP caches the processed data packet, and when the third AP determines that the wireless terminal has successfully roamed to the third AP, the third AP sends the locally cached data packet for the wireless terminal to the wireless terminal;
[0110] The second BTM Response message is sent by the wireless terminal when it receives the BTM Request message and confirms that it does not accept the roaming suggestion.
[0111] Preferably, the device further comprises:
[0112] The second notification module ( Figure 3 (not shown) for, if the wireless terminal does not support the 802.11k / v protocol, notifying the first AP to reduce its own transmit power according to a preset power reduction policy, and sending a second de-authentication message to the wireless terminal through the first AP, so that the wireless terminal disconnects the wireless connection with the first AP, and determines a fourth AP to roam to, and sends a second authentication request message to the fourth AP;
[0113] The second cache module ( Figure 3 (not shown) for caching the third data message if a third data message for the wireless terminal is received;
[0114] The third switching notification module ( Figure 3 (not shown), for, upon receiving the second authentication request message sent by the fourth AP, switching the terminal table entry of the wireless terminal to the fourth AP, and sending a fifth notification message to the fourth AP for notifying the fourth AP to create a terminal table entry for the wireless terminal;
[0115] The third processing module ( Figure 3 ), configured to process the locally cached data message for the wireless terminal based on the local terminal table entry of the wireless terminal when receiving a sixth notification message sent by the fourth AP to notify the AC that the terminal table entry of the wireless terminal has been created;
[0116] The third sending module ( Figure 3(not shown) is used to send the processed data message to the fourth AP, so that when the fourth AP determines that the wireless terminal has not successfully roamed to itself and there is a terminal table entry for the wireless terminal locally, the processed data message is cached, and when it determines that the wireless terminal has successfully roamed to itself, the locally cached data message for the wireless terminal is sent to the wireless terminal.
[0117] It can be seen from the above technical solution that in an embodiment of the present application, by monitoring the signal strength of the wireless terminal on the AC side, and when it is monitored that the signal strength of the wireless terminal is less than the signal threshold and the wireless terminal supports the 802.11k / v protocol, the AC interacts with the AP before the wireless terminal roams and the AP to which the wireless terminal needs to roam, thereby realizing the advance creation operation of the terminal table entry and the caching operation of the data message during the roaming process, so as to reduce the packet loss of the wireless terminal during the roaming process, thereby improving the user experience.
[0118] The present application also provides an electronic device, such as Figure 4 As shown, it includes a processor 41 and a machine-readable storage medium 42, wherein the machine-readable storage medium 42 stores machine-executable instructions that can be executed by the processor 41, and the processor 41 is prompted by the machine-executable instructions to implement the steps of the above-mentioned message processing method.
[0119] The machine-readable storage medium may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Alternatively, the machine-readable storage medium may be at least one storage device located remote from the processor.
[0120] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0121] In another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned message processing method are implemented.
[0122] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A message processing method, characterized in that: The method is applied to an access controller AC, and includes: When the signal strength of the wireless terminal is detected to be less than a set threshold, if the wireless terminal supports the 802.11k / v protocol, obtaining neighbor information of the first AP from the wireless terminal through the first AP to which the wireless terminal accesses, wherein the neighbor information includes the signal strength and basic service set identifier (BSSID) corresponding to the neighbor AP of the first AP scanned by the wireless terminal; Determine a second AP with the greatest signal strength based on the acquired neighbor information, and send a Basic Service Set Switching Management Request (BTM Request) message carrying a BSSID of the second AP to the wireless terminal through the first AP; If a first BTM response message sent by the wireless terminal and indicating that the wireless terminal accepts the roaming suggestion is received through the first AP, switching the terminal table entry of the wireless terminal to the second AP, and sending a first notification message to the second AP to notify the second AP to create a terminal table entry for the wireless terminal; After receiving the second notification message sent by the second AP to notify the AC that the terminal table entry of the wireless terminal has been created, if a first data message for the wireless terminal is received, processing the first data message based on the local terminal table entry of the wireless terminal; sending the processed data packet to the second AP, so that the second AP caches the processed data packet when it determines that the wireless terminal has not successfully roamed to the second AP and a terminal entry for the wireless terminal exists locally, and sends the locally cached data packet for the wireless terminal to the wireless terminal when it determines that the wireless terminal has successfully roamed to the second AP; The first BTM Response message is sent by the wireless terminal when the wireless terminal receives the BTM Request message sent by the first AP and confirms that it accepts the roaming suggestion.
2. The method according to claim 1, characterized in that The neighbor information of the first AP is obtained by: Sending, through the first AP, a scan message for scanning neighbor information of neighbor APs of the first AP to the wireless terminal; Receive neighbor information of a neighbor AP of the first AP reported by the wireless terminal.
3. The method according to claim 1, characterized in that Determine the second AP with the strongest signal strength using the following methods: An AP with the greatest signal strength is selected from the acquired neighbor information, and the selected AP is determined as the second AP.
4. The method according to claim 1, wherein The method further comprises: If a second BTM Response message sent by the wireless terminal and indicating that the wireless terminal rejects the roaming suggestion is received through the first AP, the first AP is notified to reduce its own transmit power according to a preset power reduction policy, and a first deauthentication message is sent to the wireless terminal through the first AP to cause the wireless terminal to disconnect from the first AP, and the wireless terminal determines a third AP to roam to, and sends a first authentication request message to the third AP; If a second data packet targeting the wireless terminal is received, caching the second data packet; Upon receiving the first authentication request message sent by the third AP, switching the terminal table entry of the wireless terminal to the third AP, and sending a third notification message to the third AP for notifying the third AP to create a terminal table entry of the wireless terminal; Upon receiving a fourth notification message sent by the third AP and used to notify the AC that the terminal table entry of the wireless terminal has been created, processing the locally cached data message for the wireless terminal based on the local terminal table entry of the wireless terminal; sending the processed data packet to the third AP, so that when the third AP determines that the wireless terminal has not successfully roamed to the third AP and a terminal entry for the wireless terminal exists locally, the third AP caches the processed data packet, and when the third AP determines that the wireless terminal has successfully roamed to the third AP, the third AP sends the locally cached data packet for the wireless terminal to the wireless terminal; The second BTM Response message is sent by the wireless terminal when it receives the BTM Request message and confirms that it does not accept the roaming suggestion.
5. The method according to claim 1, characterized in that The method further comprises: If the wireless terminal does not support the 802.11k / v protocol, instruct the first AP to reduce its own transmit power according to a preset power reduction policy, and send a second deauthentication message to the wireless terminal through the first AP, so that the wireless terminal disconnects the wireless connection with the first AP, determines a fourth AP to roam to, and sends a second authentication request message to the fourth AP; If a third data message for the wireless terminal is received, cache the third data message; Upon receiving the second authentication request message sent by the fourth AP, switching the terminal table entry of the wireless terminal to the fourth AP, and sending a fifth notification message to the fourth AP for notifying the fourth AP to create a terminal table entry of the wireless terminal; Upon receiving a sixth notification message sent by the fourth AP to notify the AC that the terminal table entry of the wireless terminal has been created, processing the locally cached data message for the wireless terminal based on the local terminal table entry of the wireless terminal; The processed data packet is sent to the fourth AP, so that when the fourth AP determines that the wireless terminal has not successfully roamed to itself and there is a terminal table entry for the wireless terminal locally, the processed data packet is cached, and when it is determined that the wireless terminal has successfully roamed to itself, the locally cached data packet for the wireless terminal is sent to the wireless terminal.
6. A message processing device, characterized in that: The device is applied to an access controller AC, and includes: an acquisition module, configured to, when the signal strength of the wireless terminal is detected to be less than a set threshold, acquire, from the wireless terminal through a first AP to which the wireless terminal accesses, neighbor information of the first AP, if the wireless terminal supports the 802.11k / v protocol, wherein the neighbor information includes a signal strength and a basic service set identifier (BSSID) corresponding to a neighbor AP of the first AP scanned by the wireless terminal; a determining module, configured to determine, based on the acquired neighbor information, a second AP with the greatest signal strength, and send a basic service set transition management request (BTM Request) message carrying a BSSID of the second AP to the wireless terminal through the first AP; a first switching notification module, configured to, upon receiving, through the first AP, a first BTM response message sent by the wireless terminal and indicating that the wireless terminal accepts a roaming suggestion, switch the terminal table entry of the wireless terminal to the second AP, and send to the second AP a first notification message for notifying the second AP to create a terminal table entry for the wireless terminal; a first processing module, after receiving the second notification message sent by the second AP to notify the AC that the terminal table entry of the wireless terminal has been created, processing the first data message based on the local terminal table entry of the wireless terminal if a first data message for the wireless terminal is received; a first sending module, configured to send the processed data packet to the second AP, so that the second AP caches the processed data packet when it determines that the wireless terminal has not successfully roamed to the second AP and a terminal entry for the wireless terminal exists locally, and sends the locally cached data packet for the wireless terminal to the wireless terminal when it determines that the wireless terminal has successfully roamed to the second AP; The first BTM Response message is sent by the wireless terminal when the wireless terminal receives the BTM Request message sent by the first AP and confirms that it accepts the roaming suggestion.
7. The device according to claim 6, characterized in that The device further comprises: a first notification module, configured to, upon receiving, through the first AP, a second BTM Response message sent by the wireless terminal and indicating that the wireless terminal rejects a roaming suggestion, notify the first AP to reduce its own transmit power according to a preset power reduction policy, and to send, through the first AP, a first deauthentication message to the wireless terminal so that the wireless terminal disconnects from the first AP, and to determine a third AP to roam to, and to send a first authentication request message to the third AP; a first cache module, configured to cache a second data packet for the wireless terminal if the second data packet is received; a second switching notification module, configured to, upon receiving the first authentication request message sent by the third AP, switch the terminal table entry of the wireless terminal to the third AP, and send a third notification message to the third AP for notifying the third AP to create a terminal table entry of the wireless terminal; a second processing module, configured to, upon receiving a fourth notification message sent by the third AP to notify the AC that the terminal table entry of the wireless terminal has been created, process the locally cached data message for the wireless terminal based on the local terminal table entry of the wireless terminal; a second sending module, configured to send the processed data packet to the third AP, so that the third AP caches the processed data packet when it determines that the wireless terminal has not successfully roamed to the third AP and a terminal table entry for the wireless terminal exists locally, and sends the locally cached data packet for the wireless terminal to the wireless terminal when it determines that the wireless terminal has successfully roamed to the third AP; The second BTM Response message is sent by the wireless terminal when it receives the BTM Request message and confirms that it does not accept the roaming suggestion.
8. The device according to claim 6, characterized in that The device further comprises: a second notification module, configured to, if the wireless terminal does not support the 802.11k / v protocol, notify the first AP to reduce its own transmit power according to a preset power reduction policy, and send a second deauthentication message to the wireless terminal through the first AP, so that the wireless terminal disconnects the wireless connection with the first AP, determines a fourth AP to roam to, and sends a second authentication request message to the fourth AP; a second cache module, configured to cache a third data message for the wireless terminal if the third data message is received; a third switching notification module, configured to, upon receiving the second authentication request message sent by the fourth AP, switch the terminal table entry of the wireless terminal to the fourth AP, and send a fifth notification message to the fourth AP for notifying the fourth AP to create a terminal table entry for the wireless terminal; a third processing module, configured to, upon receiving a sixth notification message sent by the fourth AP to notify the AC that the terminal table entry of the wireless terminal has been created, process the locally cached data message for the wireless terminal based on the local terminal table entry of the wireless terminal; The third sending module is used to send the processed data message to the fourth AP, so that when the fourth AP determines that the wireless terminal has not successfully roamed to itself and there is a terminal table entry for the wireless terminal locally, the fourth AP caches the processed data message, and when it determines that the wireless terminal has successfully roamed to itself, the locally cached data message for the wireless terminal is sent to the wireless terminal.
9. An electronic device, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method of STA roaming in WLAN network and device
CN101583151A
Roaming control method and device, AC and storage medium
CN116887248A