Message processing method and device, electronic equipment and storage medium

By obtaining and updating address information when the signal strength of the wireless terminal is less than the set threshold, free ARP messages are solved, and packet loss caused by the ARP table entry not being refreshed when roaming with wireless terminals is solved, improving user experience.

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

Patent Information

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

AI Technical Summary

Technical Problem

In a wireless LAN, the ARP entry not refreshed while the wireless terminal is roaming, causing packet loss of ICMP request packets, affecting the user experience.

Method used

When the signal strength of the wireless terminal is less than the set threshold, the address information with the service device is obtained, and the ARP entry is updated by sending free ARP messages to ensure that the ARP entry is updated in a timely manner during the roaming process and reduce packet loss.

Benefits of technology

By timely updating ARP table entries, reduce packet loss during roaming and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945720A_ABST
    Figure CN118945720A_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, acquiring address information of service equipment which performs service communication with the wireless terminal within a set duration from the current time from a first AP to which the wireless terminal is accessed; and when an authentication request message which is forwarded by the second AP and comes from the wireless terminal is received, M free ARP messages are sent to the second AP, so that the second AP sends the M free ARP messages to the wireless terminal after sending an association response message to the wireless terminal, and the wireless terminal updates an ARP table item, and after receiving a wireless confirmation message for responding to the DHCP confirmation message sent by the wireless terminal, sending M free ARP messages to the wireless terminal, so that the wireless terminal updates the ARP table item. According to the invention, packet loss 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), when a wireless terminal roams from one access point (AP) to another, after reacquiring an IP address, the wireless terminal will send an Address Resolution Protocol (ARP) message to the roamed AP in order to refresh the local ARP table in a timely manner.

[0003] However, if the wireless terminal receives an Internet Control Message Protocol (ICMP) request message sent by the roaming AP before refreshing the local ARP table entry, it will not respond to the ICMP Request message because there is no ARP table entry corresponding to the ICMP Request message, resulting in packet loss, which in turn 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, acquiring, from a first AP to which the wireless terminal accesses, address information of a service device that performs service communication with the wireless terminal within a set time period from the current time;

[0007] Upon receiving an authentication request message forwarded by a second AP from the wireless terminal, M gratuitous ARP messages are sent to the second AP, so that the second AP sends the M gratuitous ARP messages to the wireless terminal after sending an association response message to the wireless terminal, and sends the M gratuitous ARP messages to the wireless terminal again after receiving a wireless confirmation message sent by the wireless terminal in response to a Dynamic Host Configuration Protocol (DHCP) confirmation message;

[0008] The first AP is the AP before the wireless terminal roams, the second AP is the AP to which the wireless terminal needs to roam, and the value of M is the total number of the service devices;

[0009] Each gratuitous ARP message carries address information of a service device and is used to instruct the wireless terminal to update a local ARP table entry based on the gratuitous ARP message.

[0010] According to a second aspect of an embodiment of the present application, a message processing method is provided, the method being applied to an AP, the method comprising:

[0011] After sending an authentication request message from a wireless terminal to an AC, if M gratuitous ARP messages sent by the AC and need to be sent to the wireless terminal are received, then after sending an association response message to the wireless terminal, the M gratuitous ARP messages are sent to the wireless terminal;

[0012] After receiving the wireless confirmation message sent by the wireless terminal in response to the DHCP confirmation message, sending the M gratuitous ARP messages to the wireless terminal;

[0013] The M free ARP messages are obtained by the AC from the target AP before the wireless terminal roams when the AC detects that the signal strength of the wireless terminal is less than a set threshold, and the address information of the service device that performs service communication with the wireless terminal within a set time from the current time is obtained, and sent to the AP after receiving the authentication request message;

[0014] The value of M is the total number of the service devices, and each gratuitous ARP message carries the address information of a service device and is used to instruct the wireless terminal to update the local ARP table entry based on the gratuitous ARP message.

[0015] According to a third aspect of an embodiment of the present application, a message processing method is provided, the method being applied to a wireless terminal, the method comprising:

[0016] After receiving an association response message sent by a first AP to which roaming is required, if M gratuitous ARP messages sent by the first AP are received, updating a local ARP table entry based on the M gratuitous ARP messages;

[0017] After sending a wireless confirmation message in response to the DHCP confirmation message to the first AP, if the M gratuitous ARP messages sent by the first AP are received, updating a local ARP table entry based on the M gratuitous ARP messages;

[0018] The M free ARP messages are acquired by the AC from the second AP before the wireless terminal roams when the AC detects that the signal strength of the wireless terminal is less than a set threshold value, and the address information of the service device that performs service communication with the wireless terminal within a set time from the current time is obtained, and sent to the first AP when the AC receives the authentication request message from the wireless terminal forwarded by the first AP;

[0019] The value of M is the total number of the service devices, and each gratuitous ARP message carries the address information of a service device.

[0020] According to a fourth aspect of an embodiment of the present application, a message processing device is provided, the device being applied to an AC, the device comprising:

[0021] An acquisition module, configured to acquire, when it is detected that the signal strength of the wireless terminal is less than a set threshold, address information of a service device that performs service communication with the wireless terminal within a set time from the current time from the first AP to which the wireless terminal accesses;

[0022] a transceiver module, configured to, upon receiving an authentication request message forwarded by a second AP and originating from the wireless terminal, send M gratuitous ARP messages to the second AP, so that the second AP sends the M gratuitous ARP messages to the wireless terminal after sending an association response message to the wireless terminal, and after receiving a wireless confirmation message sent by the wireless terminal in response to a DHCP confirmation message, send the M gratuitous ARP messages to the wireless terminal again;

[0023] The first AP is the AP before the wireless terminal roams, the second AP is the AP to which the wireless terminal needs to roam, and the value of M is the total number of the service devices;

[0024] Each gratuitous ARP message carries address information of a service device and is used to instruct the wireless terminal to update a local ARP table entry based on the gratuitous ARP message.

[0025] According to a fifth aspect of an embodiment of the present application, a message processing device is provided, where the device is applied to an AP, and the device includes:

[0026] A first transceiver module, configured to, after sending an authentication request message from a wireless terminal to an AC, if M gratuitous ARP messages sent by the AC and need to be sent to the wireless terminal are received, then after sending an association response message to the wireless terminal, send the M gratuitous ARP messages to the wireless terminal;

[0027] A second transceiver module is used to send the M gratuitous ARP messages to the wireless terminal after receiving the wireless confirmation message sent by the wireless terminal in response to the DHCP confirmation message;

[0028] The M free ARP messages are obtained by the AC from the target AP before the wireless terminal roams when the AC detects that the signal strength of the wireless terminal is less than a set threshold, and the address information of the service device that performs service communication with the wireless terminal within a set time from the current time is obtained, and sent to the AP after receiving the authentication request message;

[0029] The value of M is the total number of the service devices, and each gratuitous ARP message carries the address information of a service device and is used to instruct the wireless terminal to update the local ARP table entry based on the gratuitous ARP message.

[0030] According to a sixth aspect of an embodiment of the present application, a message processing device is provided, the device being applied to a wireless terminal, the device comprising:

[0031] A transceiver module, configured to update a local ARP table entry based on the M gratuitous ARP messages if M gratuitous ARP messages are received from the first AP after receiving an association response message sent by the first AP to which roaming is required;

[0032] an updating module, configured to update a local ARP table entry based on the M gratuitous ARP messages if the M gratuitous ARP messages sent by the first AP are received after sending a wireless confirmation message in response to the DHCP confirmation message to the first AP;

[0033] The M free ARP messages are acquired by the AC from the second AP before the wireless terminal roams when the AC detects that the signal strength of the wireless terminal is less than a set threshold value, and the address information of the service device that performs service communication with the wireless terminal within a set time from the current time is obtained, and sent to the first AP when the AC receives the authentication request message from the wireless terminal forwarded by the first AP;

[0034] The value of M is the total number of the service devices, and each gratuitous ARP message carries the address information of a service device.

[0035] According to the seventh 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 any of the above-mentioned message processing methods.

[0036] According to an eighth 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 any message processing method are implemented.

[0037] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0038] In an embodiment of the present application, when a wireless terminal roams from one AP to another AP, the AC can promptly send a free ARP message carrying the address information of a service device that performs service communications with the wireless terminal to the other AP, so that the other AP can promptly send it to the wireless terminal after the wireless terminal completes roaming and goes online, and completes the IP address application process, and the wireless terminal promptly completes the update operation of the ARP table entry based on the relevant free ARP message, thereby reducing packet loss during roaming and improving user experience.

[0039] 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

[0040] 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.

[0041] Figure 1 One of the flow charts of a message processing method provided in an embodiment of the present application;

[0042] Figure 2 A second flowchart of a message processing method provided in an embodiment of the present application;

[0043] Figure 3 A third flowchart of a message processing method provided in an embodiment of the present application;

[0044] Figure 4 A schematic diagram of the architecture of a WLAN network provided in an embodiment of the present application;

[0045] Figure 5 One of the structural schematic diagrams of a message processing device provided in an embodiment of the present application;

[0046] Figure 6 A second structural diagram of a message processing device provided in an embodiment of the present application;

[0047] Figure 7 A third structural diagram of a message processing device provided in an embodiment of the present application;

[0048] Figure 8A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] 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.

[0050] 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.

[0051] 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...".

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

[0053] 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:

[0054] S11. When it is monitored that the signal strength of the wireless terminal is less than a set threshold, the address information of the service device that performs service communication with the wireless terminal within a set time period from the current time is obtained from the first AP to which the wireless terminal accesses.

[0055] S12. When receiving the authentication request message from the wireless terminal forwarded by the second AP, M gratuitous ARP messages are sent to the second AP, so that the second AP sends M gratuitous ARP messages to the wireless terminal after sending the association response message to the wireless terminal, and after receiving the wireless confirmation message sent by the wireless terminal in response to the DHCP confirmation message, M gratuitous ARP messages are sent to the wireless terminal again.

[0056] In this step, the value of M is the total number of service devices; each gratuitous ARP message carries the address information of a service device (including the IP address and MAC address of the service device), and is used to instruct the wireless terminal to update the local ARP table entry based on the gratuitous ARP message.

[0057] It should be noted that, in the embodiment of the present application, the first AP is the AP before the wireless terminal roams; the second AP is the AP to which the wireless terminal needs to roam.

[0058] Specifically, in the above step S11, the AC may monitor whether the signal strength of the wireless terminal is less than a set threshold in the following manner:

[0059] receiving a signal strength sent by the first AP measured by the first AP when the first AP receives a service message sent by the wireless terminal;

[0060] Determine whether the signal strength of the wireless terminal currently received is less than a set threshold;

[0061] When the judgment result is yes, it is determined that the signal strength of the wireless terminal monitored by itself is less than the set threshold;

[0062] When the judgment result is no, it is determined that the signal strength of the wireless terminal monitored by itself is not less than a set threshold.

[0063] Here, the signal strength of the wireless terminal may be a received signal strength indication (RSSI) value.

[0064] In addition, in step S11, the AC can obtain the address information of the service device in the following manner:

[0065] Sending a notification message to the first AP for notifying the first AP to report address information of a service device that performs service communication with the wireless terminal within a set time period;

[0066] Receive address information of a service device that performs service communication with the wireless terminal within a set time period reported by the first AP.

[0067] Of course, the AC may also use other acquisition methods to obtain the address information of the above service equipment, which will not be listed here one by one.

[0068] It should be noted that the address information of the above service device is obtained by the first AP from the service message sent by the wireless terminal.

[0069] It should be further explained that, in the embodiment of the present application, the above-mentioned set threshold and the above-mentioned set duration can be set by the administrator according to network requirements and configured in advance on the AC.

[0070] It should be further explained that in the embodiment of the present application, the second AP does not know whether the wireless terminal is configured with a static IP address. Therefore, after receiving M free ARP messages sent by the AC, the second AP will send M free ARP messages to the wireless terminal after sending an association response message to the wireless terminal, so that the wireless terminal can update the local ARP table entry in time when configured with a static IP address.

[0071] After receiving the wireless ACK message sent by the wireless terminal in response to the DHCP ACK message, the second AP will send M free ARP messages to the wireless terminal, so that the wireless terminal can update the local ARP table in time when the wireless terminal is not configured with a static IP address.

[0072] The above content is the implementation flow of the message processing method described on the AC side. The following describes the implementation flow of the message processing method on the AP side.

[0073] The present application embodiment provides a message processing method, which is applied to an AP, such as Figure 2 As shown, the method may include the following steps:

[0074] S21. After sending an authentication request message from the wireless terminal to the AC, if M gratuitous ARP messages sent by the AC and need to be sent to the wireless terminal are received, then after sending an association response message to the wireless terminal, M gratuitous ARP messages are sent to the wireless terminal.

[0075] S22. After receiving the wireless confirmation message sent by the wireless terminal in response to the DHCP confirmation message, M gratuitous ARP messages are sent to the wireless terminal.

[0076] In this step, when the AC detects that the signal strength of the wireless terminal is less than the set threshold, M free ARP messages are obtained from the target AP before the wireless terminal roams, which is the address information of the service device that communicates with the wireless terminal within a set time from the current time, and sent to the AP after receiving the authentication request message.

[0077] The value of M is the total number of service devices, and each gratuitous ARP message carries the address information of a service device and is used to instruct the wireless terminal to update the local ARP table entry based on the gratuitous ARP message.

[0078] It should be noted that, in the embodiment of the present application, the setting method of the above-mentioned set threshold and the above-mentioned set time length has been described when describing the implementation process of the message processing method on the AC side, and will not be described in detail here.

[0079] It should be further explained that, in the embodiment of the present application, how the AC monitors whether the signal strength of the wireless terminal is less than the set threshold and how to obtain the address information of the above-mentioned service equipment have also been described when describing the implementation process of the message processing method on the AC side, and will not be described in detail here.

[0080] Correspondingly, for the AP, when it receives the notification message sent by the AC to notify itself to report the address information of the business equipment that communicates with the wireless terminal for business within the set time period, it will report the address information of the business equipment that communicates with the wireless terminal for business within the set time period to the AC.

[0081] Here, the address information of the service device is obtained by the AP from the service message sent by the wireless terminal.

[0082] The above content is the implementation process of the message processing method described on the AP side. The following describes the implementation process of the message processing method on the wireless terminal side.

[0083] The present application embodiment provides a message processing method, which is applied to a wireless terminal, such as Figure 3 As shown, the method may include the following steps:

[0084] S31. After receiving an association response message sent by a first AP to which roaming is required, if M gratuitous ARP messages sent by the first AP are received, then local ARP entries are updated based on the M gratuitous ARP messages.

[0085] S32: After sending a wireless confirmation message in response to the DHCP confirmation message to the first AP, if M gratuitous ARP messages sent by the first AP are received, then update the local ARP table entries based on the M gratuitous ARP messages.

[0086] In this step, the M free ARP messages are obtained by the AC from the second AP before the wireless terminal roams when the AC detects that the signal strength of the wireless terminal is less than the set threshold, and the address information of the service device that performs service communication with the wireless terminal within the set time from the current time is obtained, and sent to the first AP when the AC receives the authentication request message from the wireless terminal forwarded by the first AP;

[0087] The value of M is the total number of service devices, and each gratuitous ARP packet carries the address information of a service device.

[0088] It should be noted that, in the embodiment of the present application, the setting method of the above-mentioned set threshold and the above-mentioned set time length has been described when describing the implementation process of the message processing method on the AC side, and will not be described in detail here.

[0089] It should be further explained that, in the embodiment of the present application, how the AC monitors whether the signal strength of the wireless terminal is less than the set threshold and how to obtain the address information of the above-mentioned service equipment have also been described when describing the implementation process of the message processing method on the AC side, and will not be described in detail here.

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

[0091] like Figure 4 As shown in FIG. 1 , it is assumed that wireless terminal 1 (referred to as client1) is not configured with a static IP address. Also, it is assumed that at time 1, the AC detects that the RSSI value of wireless terminal 1 is less than the set threshold. At this time, the AC sends a signal to AP1 ( Figure 4 (not shown) sends a notification message 1 for notifying AP1 to report the address information of the service device that performs service communication with the wireless terminal 1 within a set time period.

[0092] When receiving the notification message 1 , the AP1 reports to the AC the address information of the service devices that perform service communication with the wireless terminal 1 within a set time period (for example, 1 minute).

[0093] Assume that the service devices that perform service communication with wireless terminal 1 within a set time period are service device 1, service device 2, and service device 3. The three service devices provide different services, and assume that the address information of service device 1 is address information 1 (including the IP address and MAC address of service device 1); the address information of service device 2 is address information 2 (including the IP address and MAC address of service device 2); and the address information of service device 3 is address information 3 (including the IP address and MAC address of service device 3). AP1 reports address information 1, address information 2, and address information 3 to AC through a switching device (denoted as SWITCH).

[0094] AC receives address information 1, address information 2, and address information 3 reported by AP1. Also, assume that at time 2, AC receives an authentication request message from wireless terminal 1 forwarded by AP2 through SWITCH, which means that wireless terminal 1 roams from AP1 to AP2. At this time, AC sends 3 free ARP messages to AP2.

[0095] For example, the first gratuitous ARP message carries address information 1; the second gratuitous ARP message carries address information 2; and the third gratuitous ARP message carries address information 3.

[0096] AP2 receives the three gratuitous ARP messages sent by AC, and after sending an association response message to wireless terminal 1, AP2 sends the three gratuitous ARP messages to wireless terminal 1.

[0097] When receiving the three gratuitous ARP messages, the wireless terminal 1 updates the local ARP table entries based on the three gratuitous ARP messages, so as to ensure that the received service messages are processed based on the latest ARP table entries before re-acquiring the IP address.

[0098] Wireless terminal 1 initiates an acquisition process of an IP address to a DHCP server (server), and upon receiving a DHCP ACK message sent by AP2, sends a wireless ACK message to AP2 in response to the DHCP ACK message.

[0099] After receiving the wireless confirmation message, AP2 sends the three free ARP messages to the wireless terminal.

[0100] When wireless terminal 1 receives the three free ARP messages, it updates the local ARP table entries based on the three free ARP messages to ensure that after the ARP table entries are cleared due to obtaining the IP address, the received service messages can be processed in time based on the latest ARP table entries to reduce packet loss during roaming and thus improve user experience.

[0101] It can be seen from the above technical solution that in an embodiment of the present application, when a wireless terminal roams from one AP to another AP, the AC can promptly send a free ARP message carrying the address information of a service device that conducts service communications with the wireless terminal to the other AP, so that the other AP can promptly send it to the wireless terminal after the wireless terminal completes roaming and goes online, and completes the IP address application process, and the wireless terminal promptly completes the update operation of the ARP table entry based on the relevant free ARP message, thereby reducing packet loss during roaming and improving user experience.

[0102] 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 5 As shown, specifically including:

[0103] The acquisition module 51 is used to acquire, from the first AP to which the wireless terminal accesses, address information of a service device that performs service communication with the wireless terminal within a set time from the current time when the signal strength of the wireless terminal is monitored to be less than a set threshold;

[0104] The transceiver module 52 is configured to, upon receiving an authentication request message forwarded by a second AP and originating from the wireless terminal, send M gratuitous ARP messages to the second AP, so that the second AP sends the M gratuitous ARP messages to the wireless terminal after sending an association response message to the wireless terminal, and after receiving a wireless confirmation message sent by the wireless terminal in response to a DHCP confirmation message, send the M gratuitous ARP messages to the wireless terminal again;

[0105] The first AP is the AP before the wireless terminal roams, the second AP is the AP to which the wireless terminal needs to roam, and the value of M is the total number of the service devices;

[0106] Each gratuitous ARP message carries address information of a service device and is used to instruct the wireless terminal to update a local ARP table entry based on the gratuitous ARP message.

[0107] Preferably, the acquisition module is specifically used to monitor whether the signal strength of the wireless terminal is less than a set threshold in the following manner:

[0108] receiving, from the first AP, a signal strength measured by the first AP when the first AP receives a service message sent by the wireless terminal;

[0109] Determine whether the signal strength of the wireless terminal currently received is less than the set threshold;

[0110] When the judgment result is yes, it is determined that the signal strength of the wireless terminal monitored by itself is less than the set threshold.

[0111] Preferably, the acquisition module is specifically used to acquire the address information of the service device in the following manner:

[0112] Sending a notification message to the first AP for notifying the first AP to report address information of a service device that performs service communication with the wireless terminal within the set time period;

[0113] Receive address information of a service device that performs service communication with the wireless terminal within the set time period, reported by the first AP.

[0114] The present application also provides a message processing device, which is applied to AP, and its structural diagram is as follows: Figure 6 As shown, specifically including:

[0115] The first transceiver module 61 is configured to, after sending an authentication request message from a wireless terminal to an AC, if M gratuitous ARP messages sent by the AC and need to be sent to the wireless terminal are received, then after sending an association response message to the wireless terminal, send the M gratuitous ARP messages to the wireless terminal;

[0116] A second transceiver module is used to send the M gratuitous ARP messages to the wireless terminal after receiving the wireless confirmation message sent by the wireless terminal in response to the DHCP confirmation message;

[0117] The M free ARP messages are obtained by the AC from the target AP before the wireless terminal roams when the AC detects that the signal strength of the wireless terminal is less than a set threshold, and the address information of the service device that performs service communication with the wireless terminal within a set time from the current time is obtained, and sent to the AP after receiving the authentication request message;

[0118] The value of M is the total number of the service devices, and each gratuitous ARP message carries the address information of a service device and is used to instruct the wireless terminal to update the local ARP table entry based on the gratuitous ARP message.

[0119] The present application also provides a message processing device, which is applied to a wireless terminal, and its structural diagram is as follows: Figure 7 As shown, specifically including:

[0120] The transceiver module 71 is configured to update a local ARP table entry based on the M gratuitous ARP messages after receiving an association response message sent by a first AP to which roaming is required, if M gratuitous ARP messages sent by the first AP are received;

[0121] An updating module 72, configured to update a local ARP table entry based on the M gratuitous ARP messages if the M gratuitous ARP messages sent by the first AP are received after sending a wireless confirmation message in response to the DHCP confirmation message to the first AP;

[0122] The M free ARP messages are acquired by the AC from the second AP before the wireless terminal roams when the AC detects that the signal strength of the wireless terminal is less than a set threshold value, and the address information of the service device that performs service communication with the wireless terminal within a set time from the current time is obtained, and sent to the first AP when the AC receives the authentication request message from the wireless terminal forwarded by the first AP;

[0123] The value of M is the total number of the service devices, and each gratuitous ARP message carries the address information of a service device.

[0124] It can be seen from the above technical solution that in an embodiment of the present application, when a wireless terminal roams from one AP to another AP, the AC can promptly send a free ARP message carrying the address information of a service device that conducts service communications with the wireless terminal to the other AP, so that the other AP can promptly send it to the wireless terminal after the wireless terminal completes roaming and goes online, and completes the IP address application process, and the wireless terminal promptly completes the update operation of the ARP table entry based on the relevant free ARP message, thereby reducing packet loss during roaming and improving user experience.

[0125] The present application also provides an electronic device, such as Figure 8 As shown, it includes a processor 81 and a machine-readable storage medium 82, wherein the machine-readable storage medium 82 stores machine-executable instructions that can be executed by the processor 81, and the processor 81 is prompted by the machine-executable instructions to implement the steps of any of the above-mentioned message processing methods.

[0126] 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.

[0127] 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.

[0128] 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 any of the above-mentioned message processing methods are implemented.

[0129] 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, acquiring, from a first access point AP to which the wireless terminal accesses, address information of a service device that performs service communication with the wireless terminal within a set time period from the current time; When receiving an authentication request message forwarded by a second AP and originating from the wireless terminal, M gratuitous Address Resolution Protocol ARP messages are sent to the second AP, so that the second AP sends the M gratuitous ARP messages to the wireless terminal after sending an association response message to the wireless terminal, and sends the M gratuitous ARP messages to the wireless terminal again after receiving a wireless confirmation message sent by the wireless terminal in response to a Dynamic Host Configuration Protocol DHCP confirmation message; The first AP is the AP before the wireless terminal roams, the second AP is the AP to which the wireless terminal needs to roam, and the value of M is the total number of the service devices; Each gratuitous ARP message carries address information of a service device and is used to instruct the wireless terminal to update a local ARP table entry based on the gratuitous ARP message.

2. The method according to claim 1, characterized in that Monitor whether the signal strength of the wireless terminal is less than the set threshold by the following methods: receiving, from the first AP, a signal strength measured by the first AP when the first AP receives a service message sent by the wireless terminal; Determine whether the signal strength of the wireless terminal currently received is less than the set threshold; When the judgment result is yes, it is determined that the signal strength of the wireless terminal monitored by itself is less than the set threshold.

3. The method according to claim 1, characterized in that The address information of the service device is obtained by: Sending a notification message to the first AP for notifying the first AP to report address information of a service device that performs service communication with the wireless terminal within the set time period; Receive address information of a service device that performs service communication with the wireless terminal within the set time period, reported by the first AP.

4. A message processing method, characterized in that: The method is applied to an access point AP, and the method comprises: After sending an authentication request message from a wireless terminal to an access controller AC, if M free address resolution protocol ARP messages sent by the AC and need to be sent to the wireless terminal are received, then after sending an association response message to the wireless terminal, the M free ARP messages are sent to the wireless terminal; After receiving the wireless confirmation message sent by the wireless terminal in response to the Dynamic Host Configuration Protocol DHCP confirmation message, sending the M gratuitous ARP messages to the wireless terminal; The M free ARP messages are obtained by the AC from the target AP before the wireless terminal roams when the AC detects that the signal strength of the wireless terminal is less than a set threshold, and the address information of the service device that performs service communication with the wireless terminal within a set time from the current time is obtained, and sent to the AP after receiving the authentication request message; The value of M is the total number of the service devices, and each gratuitous ARP message carries the address information of a service device and is used to instruct the wireless terminal to update the local ARP table entry based on the gratuitous ARP message.

5. A message processing method, characterized in that: The method is applied to a wireless terminal, and the method comprises: After receiving an association response message sent by a first access point AP to which roaming is required, if M gratuitous Address Resolution Protocol ARP messages sent by the first AP are received, then updating a local ARP table entry based on the M gratuitous ARP messages; After sending a wireless confirmation message in response to a Dynamic Host Configuration Protocol DHCP confirmation message to the first AP, if the M gratuitous ARP messages sent by the first AP are received, updating a local ARP table entry based on the M gratuitous ARP messages; The M free ARP messages are obtained by the access controller AC from the second AP before the wireless terminal roams when the access controller AC detects that the signal strength of the wireless terminal is less than a set threshold, and the address information of the service device that performs service communication with the wireless terminal within a set time from the current time is obtained, and sent to the first AP when the access controller AC receives the authentication request message from the wireless terminal forwarded by the first AP; The value of M is the total number of the service devices, and each gratuitous ARP message carries the address information of a service device.

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 acquire, when it is detected that the signal strength of the wireless terminal is less than a set threshold, address information of a service device that performs service communication with the wireless terminal within a set time from the current time from a first access point AP to which the wireless terminal accesses; a transceiver module, configured to, upon receiving an authentication request message forwarded by a second AP and originating from the wireless terminal, send M gratuitous Address Resolution Protocol ARP messages to the second AP, so that the second AP sends the M gratuitous ARP messages to the wireless terminal after sending an association response message to the wireless terminal, and after receiving a wireless confirmation message sent by the wireless terminal in response to a Dynamic Host Configuration Protocol DHCP confirmation message, send the M gratuitous ARP messages to the wireless terminal again; The first AP is the AP before the wireless terminal roams, the second AP is the AP to which the wireless terminal needs to roam, and the value of M is the total number of the service devices; Each gratuitous ARP message carries address information of a service device and is used to instruct the wireless terminal to update a local ARP table entry based on the gratuitous ARP message.

7. A message processing device, characterized in that: The device is applied to an access point AP, and the device includes: A first transceiver module, configured to, after sending an authentication request message from a wireless terminal to an access controller AC, if M free address resolution protocol ARP messages sent by the AC and need to be sent to the wireless terminal are received, then after sending an association response message to the wireless terminal, send the M free ARP messages to the wireless terminal; A second transceiver module is used to send the M gratuitous ARP messages to the wireless terminal after receiving the wireless confirmation message sent by the wireless terminal in response to the Dynamic Host Configuration Protocol DHCP confirmation message; The M free ARP messages are obtained by the AC from the target AP before the wireless terminal roams when the AC detects that the signal strength of the wireless terminal is less than a set threshold, and the address information of the service device that performs service communication with the wireless terminal within a set time from the current time is obtained, and sent to the AP after receiving the authentication request message; The value of M is the total number of the service devices, and each gratuitous ARP message carries the address information of a service device and is used to instruct the wireless terminal to update the local ARP table entry based on the gratuitous ARP message.

8. A message processing device, characterized in that: The device is applied to a wireless terminal, and the device includes: A transceiver module, configured to update a local ARP table entry based on the M free ARP messages if M free Address Resolution Protocol ARP messages are received from the first access point AP to which roaming is required after receiving an association response message sent by the first access point AP; An updating module, configured to update a local ARP table entry based on the M gratuitous ARP messages if the M gratuitous ARP messages sent by the first AP are received after sending a wireless confirmation message in response to a Dynamic Host Configuration Protocol DHCP confirmation message to the first AP; The M free ARP messages are obtained by the access controller AC from the second AP before the wireless terminal roams when the access controller AC detects that the signal strength of the wireless terminal is less than a set threshold, and the address information of the service device that performs service communication with the wireless terminal within a set time from the current time is obtained, and sent to the first AP when the access controller AC receives the authentication request message from the wireless terminal forwarded by the first AP; The value of M is the total number of the service devices, and each gratuitous ARP message carries the address information of a service device.

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 and device for forwarding data message

    CN104702713A

  • MAC (Multimedia Access Control) address table item updating method and apparatus

    CN106102122A

  • Entry updating method and device

    CN108833604A

  • A message processing method and apparatus

    CN109089263A