Method for updating forwarding table, access point device, system and storage medium

By constructing and unicasting L2 update information in the wireless LAN, ensuring that the access point equipment completes the forwarding update, solving the problem of forwarding updates after STA roaming, and improving the communication reliability of the LAN.

CN112911676BActive Publication Date: 2025-04-18ZTE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201911218498.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-03
Publication Date
2025-04-18
Estimated Expiration
2039-12-03

AI Technical Summary

Technical Problem

In wireless LAN, after STA roaming, how to ensure that each access point device completes the update of forwarding list to ensure that the roaming terminal can receive data normally has become an important factor in improving the reliability of LAN communication.

Method used

By obtaining the MAC address of the roaming terminal and the MAC address of the access point device to be updated, L2 update information is constructed, and unicast continues to unicast to the access point device to be updated until unicast is stopped when feedback is received to ensure that the forwarded table is updated.

Benefits of technology

When roaming at the terminal, through the continuous unicast L2 update information and the feedback mechanism, the failure of forwarding table updates caused by information loss or access point equipment failure is avoided, which improves the communication reliability of the LAN and avoids waste of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112911676B_ABST
    Figure CN112911676B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention relates to the field of communications, and discloses a method for updating a forwarding table, including: obtaining the MAC address of a roaming terminal and the MAC address of an access point device of a forwarding table to be updated; constructing L2 update information according to the MAC address of the terminal and the MAC address of the access point device of the forwarding table to be updated; continuously unicasting the L2 update information to the access point device of the forwarding table to be updated, so that the access point device of the forwarding table to be updated can update the forwarding table according to the L2 update information; when receiving feedback from the access point device of the forwarding table to be updated, stop unicasting the L2 update information. The present invention also provides an access point device, a system for updating a forwarding table, and a storage medium. The method for updating a forwarding table, the access point device, the system, and the storage medium provided by the present invention can ensure that each access point device in a local area network completes the update of the forwarding table as much as possible after the terminal roams, thereby improving the communication reliability of the local area network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communications, and in particular to a method for updating a forwarding table, an access point device, a system and a storage medium. Background Art

[0002] In a wireless local area network (WLAN), a station (STA) can associate with an access point (AP) to connect to the network. Figure 1 As shown, multiple APs are usually used to form a network to expand the coverage of the wireless LAN. The process of a STA moving from the coverage of the previous AP to the coverage of a new AP is called roaming.

[0003] However, after STA roams, how to ensure that the AP in the network completes the update of the forwarding table as much as possible so that the STA roaming to the new AP can receive data normally has become an important factor in ensuring the reliability of LAN communication. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a method, access point device, system and storage medium for updating a forwarding table, which can ensure that each AP in a local area network completes the update of the forwarding table after STA roaming, thereby improving the communication reliability of the local area network.

[0005] To solve the above technical problems, an embodiment of the present invention provides a method for updating a forwarding table, comprising: obtaining a MAC address of a roaming terminal and a MAC address of an access point device of a forwarding table to be updated; constructing L2 update information according to the MAC address of the terminal and the MAC address of the access point device of the forwarding table to be updated; continuously unicasting the L2 update information to the access point device of the forwarding table to be updated, so that the access point device of the forwarding table to be updated updates the forwarding table according to the L2 update information; and stopping unicasting the L2 update information when feedback from the access point device of the forwarding table to be updated is received.

[0006] An embodiment of the present invention further provides an access point device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned method for updating the forwarding table.

[0007] An embodiment of the present invention also provides a system, comprising: at least one access point device capable of executing the above-mentioned method for updating a forwarding table, and at least one access point device for which a forwarding table is to be updated, wherein the access point device capable of executing the above-mentioned method for updating a forwarding table is wirelessly connected to at least one access point device for which a forwarding table is to be updated.

[0008] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned method for updating the forwarding table when executed by a processor.

[0009] Compared with the prior art, the embodiments of the present invention are as follows: when a terminal roams to a new access point device, the new access point device continuously unicasts the L2 update information to the access point device of the forwarding table to be updated, and stops unicasting the L2 update information when receiving feedback. On the one hand, since the access point device continuously unicasts to the access point device of the forwarding table to be updated, in the case that "the L2 update information is erroneous or lost during the sending process" or "the access point device has a short fault and fails to normally receive the L2 update information", the access point device can receive the L2 update information sent again at a subsequent time or after the short fault is eliminated, thereby avoiding the failure to update the forwarding table due to failure to receive the update information; on the other hand, since the unicast is stopped when the feedback is received, it is possible to avoid the waste of resources caused by continuing to unicast repeated L2 update information to the access point device that has received the update information, thereby ensuring as much as possible that each access point device in the local area network completes the update of the forwarding table after the terminal roams without causing waste of resources, thereby improving the communication reliability of the local area network.

[0010] In addition, the acquiring of the MAC address of the roaming terminal specifically includes: receiving an ARP request sent by the roaming terminal; and determining the MAC address of the terminal according to the ARP request.

[0011] In addition, the constructing of L2 update information according to the MAC address of the terminal and the MAC address of the access point device of the forwarding table to be updated includes: according to a preset L2 update information format, using the MAC address of the terminal as the source address and the MAC address of the access point device of the forwarding table to be updated as the destination address to construct the L2 update information. With such a setting, a method for constructing L2 update information is provided, and by making the destination address of the L2 update information a unicast address, feedback from the access point device receiving the L2 update information can be obtained in time after the L2 update information is sent.

[0012] In addition, the preset L2 update information format is an XID format.

[0013] In addition, the feedback received from the access point device of the forwarding table to be updated is specifically: block confirmation information of the access point device of the forwarding table to be updated is received.

[0014] In addition, the continuously unicasting the L2 update information to the access point device includes: continuously sending the L2 update information to a control access point device, so that the control access point device forwards the L2 update information to the access point device whose forwarding table is to be updated.

[0015] In addition, the continuously unicasting the L2 update information to the access point device of the forwarding table to be updated includes: continuously unicasting the L2 update information to the access point device of the forwarding table to be updated and recording the number of unicasts, and when the number of unicasts reaches a preset threshold, stopping the unicasting of the L2 update information. By setting the unicast number threshold and stopping the unicasting of the L2 update information when the number of unicasts of the L2 update information to the access device reaches the threshold, it is avoided that the L2 update information is still unicast to the access point device in the case of "the access point device of the forwarding table to be updated fails and cannot feedback the L2 update information". Waste of resources caused by still unicasting the L2 update information to the access point device. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.

[0017] Figure 1 It is a schematic diagram of the structure of a wireless local area network with multiple APs in the background technology;

[0018] Figure 2 is a schematic diagram of data downlink before STA roaming according to the first embodiment of the present invention;

[0019] Figure 3 It is a schematic diagram of data downlink after the STA roams and the APs have not yet updated the forwarding table according to the first embodiment of the present invention;

[0020] Figure 4 It is a schematic diagram of data downlink after each AP updates the forwarding table after STA roams according to the first embodiment of the present invention;

[0021] Figure 5 is a flow chart of a method for updating a forwarding table according to a first embodiment of the present invention;

[0022] Figure 6 is a schematic diagram of an AP sending L2 update information according to a first embodiment of the present invention;

[0023] Figure 7 is a flow chart of a method for updating a forwarding table according to a second embodiment of the present invention;

[0024] Figure 8 is a flow chart of a method for updating a forwarding table according to a third embodiment of the present invention;

[0025] Fig. 9 is a flow chart of a method for updating a forwarding table according to a fourth embodiment of the present invention;

[0026] Fig.10 is a schematic structural diagram of an access point device according to a fifth embodiment of the present invention;

[0027] Fig.11 is a schematic diagram of the structure of a system for updating a forwarding table according to a sixth embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the following will be described in detail with reference to the accompanying drawings. However, it will be appreciated by those skilled in the art that in the various embodiments of the present invention, many technical details are provided in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented.

[0029] In a wireless LAN, a station (STA) can associate with an access point (AP) to connect to the network. When STA1 is within the coverage of AP2, the path for data to be transmitted downlink to STA1 is as follows: Figure 2 When STA1 roams and moves from the coverage of AP2 to the coverage of AP3, AP1 and AP2, etc., are unaware that STA1 has moved to the new AP coverage, and data is still sent along the original path, as shown in the figure below. Figure 3 As shown in the figure, in this case, data is lost and STA1 cannot receive data. After STA1 associates with AP3, AP3 broadcasts L2 update information (layer 2 update message, second layer link data layer update information) to AP1 and AP2. After receiving the L2 update information, AP1 and AP2 update their own forwarding tables. After the update is completed, the data sent to STA1 will be downlinked according to the updated path, as shown in the figure. Figure 4 In this process, since AP3 sends L2 update information to AP1 and AP2 in broadcast mode, it is impossible to know whether AP1 and AP2 have received the message after sending it. If an error occurs during the sending of L2 update information or it is lost due to temporary loss of connection with the LAN, AP1 and AP2 will not receive the message and will not update the forwarding table, resulting in the loss of data sent to STA1 in the LAN.

[0030] In order to solve the above problems, the first embodiment of the present invention provides a method for updating the forwarding table. The core of this embodiment is to obtain the MAC address of the roaming terminal and the MAC address of the access point device of the forwarding table to be updated; construct L2 update information according to the MAC address of the terminal and the MAC address of the access point device of the forwarding table to be updated; before receiving the feedback of the access point device, continuously unicast the L2 update information to the access point device of the forwarding table to be updated, so that the access point device of the forwarding table to be updated can update the forwarding table according to the L2 update information, so that each AP in the local area network can stably update the forwarding table after the STA roams, and the communication reliability of the local area network is improved. The implementation details of the method for updating the forwarding table of this embodiment are described in detail below. The following content is only the implementation details provided for the convenience of understanding and is not necessary for the implementation of this solution.

[0031] The method for updating the forwarding table in this embodiment is as follows Figure 5 As shown, specifically including:

[0032] Step 101: Acquire the MAC address of the roaming terminal and the MAC address of the access point device whose forwarding table is to be updated.

[0033] Specifically, the MAC address (English: Media Access Control Address) is used to confirm the location of the network device. Each device in the network has a unique network identifier, which is called a MAC address and is written inside the hardware by the network device manufacturer when it is produced. In the OSI model, the MAC address is the responsibility of the second layer data link layer. After the access point device associates with a terminal that roams into its coverage area, it obtains the MAC address of the terminal by interacting with the terminal; the access point device obtains the MAC addresses of other AP devices in the LAN by querying the MAC forwarding table maintained by itself.

[0034] Furthermore, the access point device receives an address resolution protocol request (ARP request) sent by the roaming terminal, extracts the MAC address of the roaming terminal from the ARP request, updates the MAC forwarding table maintained by itself according to the MAC address, and sends its own MAC address to the roaming terminal. In addition, in this embodiment, after the access point device determines the MAC address of the roaming terminal according to the ARP request, it also updates its own forwarding table according to the MAC address of the terminal, and sends the MAC address of the access point device itself to the terminal.

[0035] Step 102: construct L2 update information according to the MAC address of the terminal and the MAC address of the access point device of the forwarding table to be updated.

[0036] Specifically, according to the preset L2 update information format, the MAC address of the terminal is used as the source address, and the MAC address of the access point device is used as the destination address to construct the L2 update information. The L2 update information, also known as the L2 update frame, is used to update the MAC forwarding table. The L2 update information will be sent to the access point device corresponding to its destination address. The access point device updates its own forwarding table according to the source address in the L2 update information, thereby ensuring that the roaming terminal can receive data forwarded by the access point device.

[0037] It should be noted that, in this embodiment, the destination address in the L2 update information is a unicast address, that is, the MAC address of an access point device is used as the destination address to construct the L2 update information. In actual application scenarios, the access point device associated with the roaming terminal will construct L2 update information for all other access point devices in the local area network.

[0038] Step 103: Unicast the L2 update information to the access point device of the forwarding table to be updated, so that the access point device of the forwarding table to be updated updates the forwarding table according to the L2 update information.

[0039] Step 104: Determine whether feedback from the access point device of the forwarding table to be updated is received; if not, return to step 103; if yes, terminate the execution of this method.

[0040] Specifically, the L2 update information constructed in step 102 is continuously unicasted to the corresponding access point device according to the destination address, and after sending, it is determined whether feedback from the corresponding access point device is received. If yes, the L2 update information is stopped from being sent to the access point device, and if not, the L2 update information is continuously sent to the access point device to ensure that the access point device can receive the L2 update information. In a specific example, the access point device that receives the L2 update information can provide feedback by sending a block confirmation frame (English: Block ACK, BA).

[0041] In actual application scenarios, the access point device associated with the roaming terminal will construct L2 update information for all other access point devices in the local area network, and unicast the L2 update information to the corresponding access point devices to ensure that all access point devices in the local area network can complete the update of the forwarding table.

[0042] Compared with the prior art, in the embodiments of the present invention, when a terminal roams to a new access point device, the new access point device continuously unicasts the L2 update information to the access point device of the forwarding table to be updated, and stops unicasting the L2 update information when receiving feedback. On the one hand, since the access point device continuously unicasts to the access point device of the forwarding table to be updated, in the case that "the L2 update information is erroneous or lost during the sending process" or "the access point device has a short fault and fails to normally receive the L2 update information", the access point device can receive the L2 update information sent again at a subsequent time or after the short fault is eliminated, thereby avoiding the failure to update the forwarding table due to the failure to receive the update information; on the other hand, since the unicast is stopped when the feedback is received, it is possible to avoid the waste of resources caused by continuing to unicast repeated L2 update information to the access point device that has received the update information, thereby ensuring as much as possible that the access point devices in the local area network complete the update of the forwarding table after the terminal roams without causing waste of resources, thereby improving the communication reliability of the local area network.

[0043] The second embodiment of the present invention relates to a method for updating a forwarding table. The second embodiment is substantially the same as the first embodiment, except that, in the second embodiment, a specific method for constructing L2 update information according to the MAC address of the terminal and the MAC address of the access point device of the forwarding table to be updated is provided, including: determining an XID format as the format of the L2 update information, using the MAC address of the terminal as the source address, using the MAC address of the access point device as the destination address, and constructing the L2 update information.

[0044] The method for updating the forwarding table in this embodiment is as follows Figure 7 As shown, specifically including:

[0045] Step 201: Acquire the MAC address of the roaming terminal and the MAC address of the access point device whose forwarding table is to be updated.

[0046] Step 202: construct L2 update information according to the MAC address of the terminal and the MAC address of the access point device of the forwarding table to be updated.

[0047] Step 201 to step 202 are substantially the same as step 101 to step 102 in the first embodiment, and will not be described one by one here to avoid repetition.

[0048] Step 203: Determine the XID format as the format of the L2 update information, use the MAC address of the terminal as the source address, and use the MAC address of the access point device as the destination address to construct the L2 update information.

[0049] Specifically, as a national standard format, the XID format is widely used in practical application scenarios. The L2 update information using the XID format is shown in Table 1:

[0050]

[0051] Table 1

[0052] Step 204: Determine whether feedback from the access point device of the forwarding table to be updated is received; if not, return to step 203; if yes, terminate the execution of this method.

[0053] Specifically, the L2 update information in the XID format constructed in step 102 is continuously unicast to the corresponding access point device according to the destination address, and after sending, it is determined whether feedback from the corresponding access point device is received. If so, stop sending the L2 update information to the access point device. If not, continue to send the L2 update information to the access point device to ensure that the access point device can receive the L2 update information.

[0054] For example, in the sample LAN, there are three access point devices, AP1 (control access point device, MAC address: 00:ab:37:10:a6:b8), AP2 (MAC address: ab:37:10:a6:b9), and AP3, as well as STA1 (MAC address: 00:11:47:10:21:02). STA1 roams from AP3 to AP2. At this time, AP3 constructs L2 update information according to AP1's MAC address (as shown in Table 2), and constructs L2 update information according to AP2's MAC address (as shown in Table 3). After completing the construction, AP3 unicasts the L2 update information to AP1 and AP2, respectively, as shown in Table 3. Figure 6 As shown by the arrows, AP3 unicasts the L2 update information with DA ab:37:10:a6:b9 to access point device 2, and AP3 unicasts the L2 update information with DA 00:ab:37:10:a6:b8 to access point device 1. AP1 and AP2 update the forwarding table after receiving the L2 update information.

[0055] field length value DA 6 AP1: 00:ab:37:10:a6:b8 SA 6 STA:00:11:47:10:21:02 Len 6 DSAP 1 0 SSAP 1 0x01 Control 1 0xaf xid_info[0] 1 0x81 xid_info[1] 1 1 xid_info[2] 1 0

[0056] Table 2

[0057]

[0058]

[0059] Table 3

[0060] Compared with the first embodiment, the embodiment of the present invention provides a specific method for constructing L2 update information using the XID format as the L2 update information format. The XID format, as a national standard format, is widely used in the construction of update information. By making modifications based on the XID format update information, the technical solution of the present application can be implemented, so that it can be ensured as much as possible that each access point device in the local area network completes the update of the forwarding table after the terminal roams, thereby improving the communication reliability of the local area network.

[0061] The third embodiment of the present invention relates to a method for updating a forwarding table. The third embodiment is substantially the same as the first embodiment, except that, in the third embodiment, when continuously unicasting the L2 update information to the access point device of the forwarding table to be updated, the L2 update information is first sent to the control access point device, so that the control access point device forwards the L2 update information to each of the access point devices respectively.

[0062] The method for updating the forwarding table in this embodiment is as follows Figure 8 As shown, specifically including:

[0063] Step 301: Acquire the MAC address of the roaming terminal and the MAC address of the access point device whose forwarding table is to be updated.

[0064] Step 302: construct L2 update information according to the MAC address of the terminal and the MAC address of the access point device of the forwarding table to be updated.

[0065] Step 301 to step 302 are substantially the same as step 101 to step 102 in the first embodiment, and will not be described one by one here to avoid repetition.

[0066] Step 303: Send the L2 update information to the control access point device, so that the control access point device forwards the L2 update information to the access point device.

[0067] Specifically, in a LAN with multiple APs, the control access point device not only serves as an access point device, but also as a logical control unit of the entire network, used to control the front-end network and back-end links in the multi-AP network. It collects the capability data of the APs and STAs in the network, controls the roaming strategy, and sends the wireless configuration to the access point device synchronously. There is only one control access point device in a network.

[0068] In this step, the access point devices associated with the roaming terminal send the L2 update information to the control access point device, and then the control access point device distributes the L2 update information to each access point device whose forwarding table is to be updated. For example, after the access point device 3 is associated with the site 1, the L2 update information with the destination address being the MAC address of the access point device 1 and the destination address being the MAC address of the access point device 2 is uniformly sent to the access point device 1 (controlling access point device), and the access point device 1 then forwards the L2 update information with the destination address being the MAC address of the access point device 2 to the access point device 2.

[0069] Step 304: determine whether feedback from the access point device whose forwarding table is to be updated is received; if not, return to step 303; if yes, terminate the execution of this method.

[0070] Step 304 is substantially the same as step 104 in the first embodiment, and will not be described again here to avoid repetition.

[0071] Compared with the prior art, in the implementation manner of the present invention, when the terminal roams to a new access point device, the access point device forwards the L2 update information through the control access point device, and continuously sends it to the access point device whose forwarding table is to be updated until feedback is received. In this configuration, the good scheduling performance of the control access point device is utilized to better distribute the L2 update information to each access point device, so that it can be ensured that each access point device in the local area network completes the forwarding table update after the terminal roams, thereby improving the communication reliability of the local area network.

[0072] The fourth embodiment of the present invention relates to a method for updating a forwarding table. The fourth embodiment is substantially the same as the first embodiment, except that, in the fourth embodiment, when the L2 update information is continuously unicasted to the access point device of the forwarding table to be updated, the number of unicasts is recorded after each unicast of the L2 update information, and when the number of unicasts reaches a preset threshold, the unicast of the L2 update information is stopped.

[0073] The method for updating the forwarding table in this embodiment is as follows Fig. 9 As shown, specifically including:

[0074] Step 401: Acquire the MAC address of the roaming terminal and the MAC address of the access point device whose forwarding table is to be updated.

[0075] Step 402: construct L2 update information according to the MAC address of the terminal and the MAC address of the access point device of the forwarding table to be updated.

[0076] Step 401 to step 402 are substantially the same as step 101 to step 102 in the first embodiment, and will not be described one by one here to avoid repetition.

[0077] Step 403: Continue to unicast the L2 update information to the access point device of the forwarding table to be updated and record the number of unicasts, so that the access point device of the forwarding table to be updated can update the forwarding table according to the L2 update information.

[0078] It should be noted that step 403 is substantially the same as step 103 in the first embodiment, except that in this step, when the L2 update information is continuously unicast to the access point device of the forwarding table to be updated, the number of unicasts is recorded after each unicast of the L2 update information.

[0079] Step 404: determine whether the unicast times reaches a preset threshold, if not, proceed to step 405, if yes, terminate the execution of this method.

[0080] Specifically, the L2 update information is continuously unicasted to the access point device of the forwarding table to be updated and the number of unicasts is recorded. When the number of unicasts reaches a preset threshold, the L2 update information is stopped from being unicasted.

[0081] Step 405: Determine whether feedback from the access point device of the forwarding table to be updated is received; if not, return to step 403; if yes, terminate the execution of this method.

[0082] Step 405 is substantially the same as step 104 in the first embodiment, and will not be described again to avoid repetition.

[0083] Compared with the first embodiment, the embodiment of the present invention records the number of unicasts after each unicast of the L2 update information when the L2 update information is continuously unicast to the access point device of the forwarding table to be updated, and stops unicasting the L2 update information when the number of unicasts reaches a preset threshold. By setting a unicast number threshold and stopping unicasting the L2 update information when the number of unicasts of the L2 update information to the access device reaches the threshold, it is avoided that the access point device of the forwarding table to be updated fails and cannot feedback the L2 update information, and the L2 update information is still unicast to the access point device. Waste of resources caused by this.

[0084] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0085] A fifth embodiment of the present invention relates to an access point device, such as Fig.10As shown, it includes at least one processor 501; and a memory 502 that is communicatively connected to the at least one processor 501; wherein the memory 502 stores instructions that can be executed by the at least one processor 501, and the instructions are executed by the at least one processor 501 so that the at least one processor 501 can execute the above-mentioned method of updating the forwarding table.

[0086] The memory 502 and the processor 501 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 501 and the memory 502 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 501 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 501.

[0087] The processor 501 is responsible for managing the bus and general processing, and may also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 502 may be used to store data used by the processor 501 when performing operations.

[0088] A sixth embodiment of the present invention relates to a system for updating a forwarding table, such as Fig.11 As shown, it includes: an access point device capable of executing the above-mentioned method for updating the forwarding table embodiment, and at least one access point device for which the forwarding table is to be updated, wherein the access point device capable of executing the above-mentioned method for updating the forwarding table embodiment is wirelessly connected to each of the access point devices for which the forwarding table is to be updated. Among them, the at least one access point device for which the forwarding table is to be updated may include an access point device that can serve as a control access point device.

[0089] In this embodiment, when the terminal roams to a new access point device, the access point device continuously unicasts the L2 update information to the access point device of the forwarding table to be updated until receiving feedback from the access point device of the forwarding table to be updated, so as to ensure that the access point device of the forwarding table to be updated completes the update of the forwarding table, thereby improving the communication reliability of the local area network.

[0090] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned method for updating the forwarding table when executed by a processor.

[0091] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0092] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A method for updating a forwarding table, characterized in that: include: Obtain the MAC address of the roaming terminal and the MAC address of the access point device whose forwarding table is to be updated; According to a preset L2 update information format, the MAC address of the terminal is used as a source address, and the MAC address of the access point device of the forwarding table to be updated is used as a destination address to construct L2 update information, wherein the preset L2 update information format is an XID format; Continuously unicasting the L2 update information to the access point device of the forwarding table to be updated, so that the access point device of the forwarding table to be updated updates the forwarding table according to the L2 update information; When receiving the feedback from the access point device of the forwarding table to be updated, the unicast of the L2 update information is stopped.

2. The method for updating the forwarding table according to claim 1, characterized in that: The obtaining of the MAC address of the roaming terminal specifically includes: Receive ARP requests sent by roaming terminals; The MAC address of the terminal is determined according to the ARP request.

3. The method for updating the forwarding table according to claim 1, characterized in that: The feedback received from the access point device of the forwarding table to be updated is specifically: Receive block confirmation information from the access point device of the forwarding table to be updated.

4. The method for updating the forwarding table according to claim 1, characterized in that: The continuously unicasting the L2 update information to the access point device comprises: The L2 update information is continuously sent to the control access point device, so that the control access point device forwards the L2 update information to the access point device whose forwarding table is to be updated.

5. The method for updating the forwarding table according to claim 1, characterized in that: The continuously unicasting the L2 update information to the access point device of the forwarding table to be updated includes: The L2 update information is continuously unicasted to the access point device of the forwarding table to be updated and the number of unicasts is recorded. When the number of unicasts reaches a preset threshold, the L2 update information is stopped from being unicasted.

6. An access point device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method for updating the forwarding table according to any one of claims 1 to 5.

7. A system for updating a forwarding table, characterized in that: include: The access point device according to claim 6, and at least one access point device whose forwarding table is to be updated, wherein the access point device according to claim 6 is wirelessly connected to each of the access point devices whose forwarding table is to be updated.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for updating a forwarding table according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Entry updating method and device

    CN108833604A