Message processing method and device, electronic equipment and storage medium

CN119031427AActive Publication Date: 2024-11-26NEW H3C TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411030384.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-26
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

In wireless LAN, during the roaming of wireless terminals, data packets are lost due to failure to switch the terminal's online table entries, which affects the user experience.

Method used

By monitoring the signal strength of the wireless terminal, when it is less than the set threshold, the information of the neighbor AP is obtained using the 802.11k/v protocol, the AP with the largest signal strength is determined, and the roaming switch is performed through the BTM Request message to realize the terminal table entry Create and cache data packets in advance to ensure the continuity of data transmission.

Benefits of technology

It reduces packet loss during wireless terminal roaming, improves user experience, and ensures the stability and integrity of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119031427A_ABST
    Figure CN119031427A_ABST
Patent Text Reader

Abstract

The invention provides a message processing method and device, electronic equipment and a storage medium. The method is applied to an AC and comprises the following steps: when it is monitored that the signal strength of a wireless terminal is smaller than a set threshold value, if the wireless terminal supports an 802.11 k / v protocol, obtaining neighbor information from the wireless terminal through a first AP; a second AP with the maximum signal strength is determined according to the neighbor information, and a BTM Request message is sent to the wireless terminal through the first AP; if the first BTM response message is received, switching the terminal table item of the wireless terminal to the second AP, and sending a first notification message to the second AP; after a second notification message sent by the second AP is received, if a first data message for the wireless terminal is received, processing the first data message based on the terminal table item of the wireless terminal; and sending the processed data message to the second AP. According to the invention, packet loss of the wireless terminal in the roaming process can be reduced.
Need to check novelty before this filing date? Find Prior Art

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 is not switched, resulting in packet loss, which affects 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 being applied to an AC, the method comprising:

[0006] 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, the neighbor information of the first AP is obtained from the wireless terminal through the first AP accessed by the wireless terminal, 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 according to the acquired neighbor information, 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;

[0008] If a first BTM response message sent by the wireless terminal and used to indicate 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 of 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, the first data message is processed based on the local terminal table entry of the wireless terminal;

[0010] Sending 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 of the wireless terminal locally, the second AP caches the processed data message, and when it is determined 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;

[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 being applied to an AC, the device comprising:

[0013] an acquisition module, configured to, when it is detected that the signal strength of the wireless terminal is less than a set threshold, obtain the neighbor information of the first AP from the wireless terminal through the first AP accessed by the wireless terminal if the wireless terminal supports the 802.11k / v protocol, wherein the neighbor information includes the signal strength and BSSID corresponding to the neighbor AP of the first AP scanned by the wireless terminal;

[0014] A determination module, configured to determine a second AP with the largest signal strength according to the acquired neighbor information, and send a BTM Request message carrying a BSSID of the second AP to the wireless terminal through the first AP;

[0015] A first switching notification module is used to switch the terminal table entry of the wireless terminal to the second AP if a first BTM Response message sent by the wireless terminal and used to indicate that the wireless terminal accepts the roaming suggestion is received through the first AP, and send a first notification message to the second AP for notifying the second AP to create a terminal table entry of the wireless terminal;

[0016] A first processing module, after receiving a 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, processes the first data message based on a local terminal table entry of the wireless terminal;

[0017] a first sending module, configured to send the processed data message to the second AP, so that the second AP caches the processed data message when it is determined that the wireless terminal has not successfully roamed to the second AP and there is a terminal table entry of the wireless terminal locally, and sends the locally cached data message for the wireless terminal to the wireless terminal when it is determined 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 a 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 a computer program is stored in the computer-readable storage medium, 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 solution 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, so as to realize the early 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.

[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 the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the 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 architecture of a WLAN network 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, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some 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. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0031] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" or "if" as used herein may be interpreted as "at the time of" or "when...".

[0032] Next, the embodiments of the present application are described in detail.

[0033] The present application embodiment 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, the neighbor information of the first AP is obtained from the wireless terminal through the first AP accessed by the wireless terminal.

[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 according to 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 used to indicate 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 of the wireless terminal.

[0038] In this step, 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.

[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, the first data message is processed 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 of 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 a prior art 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 a scanning message for scanning neighbor information of neighbor APs of the first AP to the wireless terminal through the first AP;

[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 largest 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 performing the above steps S11 to S14 by the AC, packet loss of data packets exchanged during roaming by 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, the AC processes the subsequently received data messages for the wireless terminal directly 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 also perform the following operations:

[0054] If a second BTMResponse message sent by the wireless terminal and used to indicate that the wireless terminal rejects the roaming suggestion is received through the first AP, the first AP is notified to reduce its own transmission power according to the preset power reduction strategy, and a first 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 the 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, the second data message is cached;

[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 the terminal table entry of the wireless terminal;

[0057] 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, based on the local terminal table entry of the wireless terminal, processing the data message for the wireless terminal cached locally;

[0058] Sending the processed data message to the third AP, so that when the third AP determines that the wireless terminal has not successfully roamed to itself and there is a terminal table entry of the wireless terminal locally, the third AP caches the processed data message, and when it determines that the wireless terminal has successfully roamed to itself, the third AP sends the locally cached data message 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 flow through the AC, packet loss of data packets exchanged during the roaming process by wireless terminals that support the 802.11k / v protocol and reject the roaming suggestion can be reduced.

[0061] Furthermore, in the embodiment of the present application, the AC may also 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 transmission power according to the preset power reduction strategy, and a second de-authentication 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 the 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 the terminal table entry of the wireless terminal;

[0065] 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, based on the local terminal table entry of the wireless terminal, processing the data message for the wireless terminal cached locally;

[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 of 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 by 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 according to a set power reduction ratio or a power reduction according to a set power size.

[0069] Furthermore, for any one of the second AP, the third AP and the fourth AP, if the AP receives a wireless confirmation (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 determination process of the wireless terminal determining the third AP or the fourth AP is a prior art and will not be described in detail herein.

[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 according to the network experience value and set in advance on the AC and the AP managed by the AC.

[0072] The above message processing method is described in detail below in conjunction with specific embodiments.

[0073] exist Figure 2 In the WLAN network shown in the figure, 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, it is assumed that wireless terminal 1 supports the 802.11k / v protocol. In this case, AC obtains the neighbor information of AP1 from wireless terminal 1 through AP1, and determines the AP with the largest signal strength based on the obtained neighbor information.

[0074] Assume that the determined AP is Figure 3 In the AP2 shown, the AC sends a BTM Request message 1 carrying the BSSID of AP2 to the wireless terminal 1 through AP1.

[0075] When wireless terminal 1 receives BTM Request message 1, assuming that wireless terminal 1 accepts the roaming suggestion, at this time, BTM Response message 1 for indicating acceptance of the roaming suggestion is sent to AC1 through AP1, and authentication request message 1 is sent 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 for notifying the AP 2 to create the terminal table entry of the wireless terminal 1 .

[0078] When receiving the notification message 1 , AP2 creates a terminal table entry of the wireless terminal 1 locally based on the notification message 1 , and sends a notification message 2 to the AC to notify the AC that the terminal table entry of the wireless terminal 1 has been created.

[0079] After receiving the notification message 2, if the AC receives a data message for the wireless terminal 1, it processes the data message 1 based on the local terminal table entry of the 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, it 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 for an ARP Response message sent by wireless terminal 1 after interacting with a DHCP server, confirming that wireless terminal 1 has successfully roamed to itself.

[0082] In addition, for the wireless terminal 1, when receiving the BTM Request message 1, it is assumed that the wireless terminal 1 rejects the roaming suggestion. In this case, the wireless terminal 1 sends a BTM Response message 2 indicating the rejection of the roaming suggestion to the AC through the AP1.

[0083] When AC receives BTM Response message 2, it notifies AP1 to reduce its own transmission power according to the preset power reduction strategy, and sends deauthentication message 1 to 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 which it needs to roam. 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 sending the deauthentication message, if the AC receives the data message 2 for the wireless terminal 1, the data message 2 is cached.

[0086] When receiving the authentication request message 1 sent by AP3, AC switches the terminal table entry of wireless terminal 1 to AP3, and sends a notification message 3 to AP3 for notifying AP3 to create a terminal table entry of wireless terminal 1.

[0087] When receiving notification message 3 , AP3 creates a terminal table entry of wireless terminal 1 locally based on notification message 3 , and sends notification message 4 to AC to notify AC that the terminal table entry of 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, and sends the locally cached data message for wireless terminal 1 to wireless terminal 1 when it determines that wireless terminal 1 has successfully roamed to itself.

[0090] Furthermore, assuming that the AC detects that the signal strength of the wireless terminal 1 is less than the set threshold and the wireless terminal 1 does not support the 802.11k / v protocol, in this case, the AC directly notifies AP1 to reduce its own transmission power according to the preset power reduction strategy, and sends a de-authentication message 2 to the wireless terminal 1 through AP1. The subsequent processing flow is similar to the processing flow after the AC sends the de-authentication message 1, which 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, through the interaction between the AC and the AP before the wireless terminal roams and the AP to which the wireless terminal needs to roam, the terminal table entry is created in advance and the data message cache operation during the roaming process is implemented, 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 as follows: Figure 3 , specifically including:

[0093] The acquisition module 31 is used for acquiring neighbor information of the first AP from the wireless terminal through the first AP accessed by the wireless terminal when the signal strength of the wireless terminal is monitored to be less than a set threshold value, if the wireless terminal supports the 802.11k / v protocol, wherein the neighbor information includes the signal strength and BSSID corresponding to the neighbor AP of the first AP scanned by the wireless terminal;

[0094] A determination module 32, configured to determine a second AP with the largest signal strength according to the acquired neighbor information, and send a BTM Request message carrying a BSSID of the second AP to the wireless terminal through the first AP;

[0095] The first switching notification module 33 is configured to switch the terminal table entry of the wireless terminal to the second AP if a first BTM Response message sent by the wireless terminal and used to indicate that the wireless terminal accepts the roaming suggestion is received through the first AP, and to send a first notification message to the second AP for notifying the second AP to create a terminal table entry of 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, if a first data message for the wireless terminal is received, processes the first data message based on the local terminal table entry of the wireless terminal;

[0097] a first sending module 35, configured to 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 of the wireless terminal locally, the second AP caches the processed data message, and when it is determined 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;

[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 acquisition 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 scanning message for scanning neighbor information of a neighbor AP 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 largest signal strength in the following manner:

[0103] An AP with the largest 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 ), if a second BTM Response message sent by the wireless terminal and used to indicate that the wireless terminal rejects the roaming suggestion is received through the first AP, the first AP is notified to reduce its own transmission power according to a preset power reduction strategy, and a first de-authentication message is sent to the wireless terminal through the first AP, so that the wireless terminal disconnects the wireless connection with the first AP, 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 ), for caching a second data message for the wireless terminal if the second data message is received;

[0107] The second switching notification module ( Figure 3 ), 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 of the wireless terminal;

[0108] The second processing module ( Figure 3 ), configured to process the data message for the wireless terminal cached locally 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), used to send the processed data message to the third AP, so that when the third AP determines that the wireless terminal has not successfully roamed to itself and there is a terminal table entry of the wireless terminal locally, the processed data message is cached, and when it is determined that the wireless terminal has successfully roamed to itself, the locally cached data message for the wireless terminal is sent to the wireless terminal;

[0110] The second BTM Response message is sent by the wireless terminal when the wireless terminal 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 ), for, if the wireless terminal does not support the 802.11k / v protocol, notifying the first AP to reduce its own transmission power according to a preset power reduction strategy, 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 ), 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 ), 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 the terminal table entry of the wireless terminal;

[0115] The third processing module ( Figure 3 ), configured to process the data message for the wireless terminal cached locally 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 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.

[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, through the interaction between the AC and the AP before the wireless terminal roams and the AP to which the wireless terminal needs to roam, the terminal table entry is created in advance and the data message cache operation during the roaming process is implemented, 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 a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the machine-readable storage medium may also be at least one storage device located away 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, discrete hardware components.

[0121] In another embodiment provided in the present application, a computer-readable storage medium is 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 substitutions, 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 the method includes: 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, the neighbor information of the first AP is obtained from the wireless terminal through the first AP accessed by the wireless terminal, 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 largest signal strength according to the acquired neighbor information, 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; If a first BTM response Response message sent by the wireless terminal and used to indicate 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 of 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, the first data message is processed based on the local terminal table entry of the wireless terminal; Sending 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 of the wireless terminal locally, the second AP caches the processed data message, and when it is determined 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; 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 scanning message for scanning neighbor information of a neighbor AP 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 greatest signal strength by: An AP with the largest 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, characterized in that: The method further comprises: If a second BTM Response message sent by the wireless terminal and used to indicate that the wireless terminal rejects the roaming suggestion is received through the first AP, the first AP is notified to reduce its own transmission power according to a preset power reduction strategy, and a first de-authentication message is sent to the wireless terminal through the first AP, so that the wireless terminal disconnects the wireless connection with the first AP, determines a third AP to roam to, and sends a first authentication request message to the third AP; If a second data message for the wireless terminal is received, caching the second data message; 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 the 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, based on the local terminal table entry of the wireless terminal, processing the data message for the wireless terminal cached locally; Sending the processed data message to the third AP, so that when the third AP determines that the wireless terminal has not successfully roamed to itself and there is a terminal table entry of the wireless terminal locally, the third AP caches the processed data message, and when it is determined that the wireless terminal has successfully roamed to itself, the third AP sends the locally cached data message for the wireless terminal to the wireless terminal; The second BTM Response message is sent by the wireless terminal when the wireless terminal 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, the first AP is notified to reduce its own transmission power according to a preset power reduction strategy, and a second de-authentication message is sent 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, caching 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 the 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, based on the local terminal table entry of the wireless terminal, processing the data message for the wireless terminal cached locally; 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 the device includes: an acquisition module, configured to, when it is detected that the signal strength of the wireless terminal is less than a set threshold, obtain the neighbor information of the first AP from the wireless terminal through the first AP accessed by the wireless terminal if the wireless terminal supports the 802.11k / v protocol, 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; A determination module, configured to determine a second AP with the largest signal strength according to the acquired neighbor information, 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 is used to switch the terminal table entry of the wireless terminal to the second AP if a first BTM response Response message sent by the wireless terminal and used to indicate that the wireless terminal accepts the roaming suggestion is received through the first AP, and send a first notification message to the second AP for notifying the second AP to create a terminal table entry of the wireless terminal; A first processing module, after receiving a 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, processes the first data message based on a local terminal table entry of the wireless terminal; a first sending module, configured to send the processed data message to the second AP, so that the second AP caches the processed data message when it is determined that the wireless terminal has not successfully roamed to the second AP and there is a terminal table entry of the wireless terminal locally, and sends the locally cached data message for the wireless terminal to the wireless terminal when it is determined 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 also includes: A first notification module is configured to notify the first AP to reduce its own transmission power according to a preset power reduction strategy if a second BTM Response message sent by the wireless terminal and used to indicate that the wireless terminal rejects the roaming suggestion is received through the first AP, and to send a first de-authentication message to the wireless terminal through the first AP, so that the wireless terminal disconnects the wireless connection with the first AP, determines a third AP to roam to, and sends a first authentication request message to the third AP; A first cache module, configured to cache a second data message for the wireless terminal if the second data message is received; A second switching notification module is used to switch the terminal table entry of the wireless terminal to the third AP when receiving the first authentication request message sent by the third AP, and send a third notification message to the third AP for notifying the third AP to create the terminal table entry of the wireless terminal; A second processing module is 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; a second sending module, configured to send the processed data message to the third AP, so that when the third AP determines that the wireless terminal has not successfully roamed to itself and there is a terminal table entry of the wireless terminal locally, the third AP caches the processed data message, and when it is determined that the wireless terminal has successfully roamed to itself, the third AP sends the locally cached data message for the wireless terminal to the wireless terminal; The second BTM Response message is sent by the wireless terminal when the wireless terminal 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 also includes: A second notification module is used for notifying the first AP to reduce its own transmission power according to a preset power reduction strategy if the wireless terminal does not support the 802.11k / v protocol, 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, 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 the third data message if a third data message for the wireless terminal is received; A third switching notification module is used to switch the terminal table entry of the wireless terminal to the fourth AP when receiving the second authentication request message sent by the fourth AP, and send a fifth notification message to the fourth AP for notifying the fourth AP to create the terminal table entry of the wireless terminal; A third processing module is configured to process the data message for the wireless terminal cached locally 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; 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 of 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 fourth AP sends the locally cached data message for the wireless terminal 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 described in 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 of any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Method of STA roaming in WLAN network and device

    CN101583151A

  • Seamless roaming method for network terminal and AC device

    CN114401511A

  • Auxiliary roaming method and device, electronic equipment and storage medium

    CN116419398A

  • Roaming control method and device, AC and storage medium

    CN116887248A