Method, apparatus and device for data transmission in wireless station roaming
By updating the switch's forwarding table (FDB) when the wireless access point receives connection authentication data, combined with low-traffic identification and packet caching mechanisms, the problems of data interruption and packet loss in wireless roaming are solved, achieving a seamless roaming experience.
Patent Information
- Application Number
- CN202611160735.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-31
- Publication Date
- 2026-11-24
AI Technical Summary
In wireless LANs, data interruptions, delays, and packet loss occur during wireless station roaming, and even after optimization, existing technologies still affect the user experience.
By generating a broadcast message to update the switch's forwarding table (FDB) when the wireless access point receives connection authentication data, the path of the wireless site is switched to the new access point in advance. Combined with low-traffic identification mechanism and packet caching mechanism, the data packet loss rate is reduced.
It shortens wireless site roaming time, reduces data packet loss rate, improves user experience, and ensures the continuity and stability of data transmission.
Smart Images

Figure CN123164430A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of wireless technology, and in particular relates to a method, apparatus and device for data transmission during wireless site roaming. Background Technology
[0002] In wireless LANs, Wi-Fi roaming refers to the process of a wireless station (STA) moving from one access point (AP) to another. During roaming, data interruptions, delays, and packet loss can occur due to network switching. To reduce the impact of network switching on data transmission during roaming, existing technologies have optimized the roaming process through various enhancement protocols. However, in practical applications, even after optimization, stuttering or data packet loss during roaming can still be perceived by users, affecting their user experience. Summary of the Invention
[0003] This application provides a method, apparatus, and device for data transmission during wireless site roaming, which can shorten the path switching time of wireless sites during roaming and reduce the packet loss rate during data transmission.
[0004] In a first aspect, embodiments of this application provide a method for data transmission during wireless site roaming, applied to a first wireless access point, the method including: Receive connection authentication data sent by the wireless station; Based on the connection authentication data, a broadcast message is generated; the broadcast message includes the media access control MAC address of the wireless station and the port information of the first wireless access point. A broadcast message is sent to the switch so that if the second wireless access point, while buffering data to be sent to the wireless station, detects that the switch has updated the wireless access point port information corresponding to the MAC address of the wireless station in the forwarding table FDB from the second wireless access point port information to the first wireless access point port information according to the broadcast message, it will stop buffering the data to be sent.
[0005] In one possible implementation, the broadcast message includes indication information to instruct the receiving device not to send a response message to the first wireless access point.
[0006] Secondly, embodiments of this application provide a method for data transmission during wireless site roaming, applied to a second wireless access point, the method including: Receive basic service set conversion management requests sent by wireless stations; Monitor whether the wireless access point port information corresponding to the wireless station in the forwarding table FDB of the monitor switch is updated; and when the type of wireless station is a low-traffic wireless station, cache the data to be sent to the wireless station; a low-traffic wireless station is a wireless station whose average service traffic is less than a preset traffic threshold. If the forwarding table FDB detects that the wireless access point port information corresponding to the wireless site has been updated from the second wireless access point port information to the first wireless access point port information, the buffering of data to be sent is stopped, so that the buffered data can be sent to the wireless site through the first wireless access point.
[0007] In one feasible implementation, when the wireless station is of the low-traffic type, the method may further include the following before buffering the data to be sent to the wireless station: Obtain historical traffic data from wireless sites within a preset time period; Determine the average traffic volume of historical traffic data for wireless sites; If the average traffic is less than the traffic threshold, the wireless traffic site is identified as a low-traffic wireless site.
[0008] In one feasible implementation, the method may further include: If an update to the forwarding table FDB is detected, delete the resource data associated with the wireless site.
[0009] In one feasible implementation, the method may further include: Send deauthentication data to the wireless site.
[0010] In one feasible implementation, after receiving the roaming signal transmitted by the wireless station, the method may further include: Update the wireless site's tagging information to roaming; Upon detecting updates to information in the forwarding table FDB, delete resource data associated with the wireless site, including: If an update to the forwarding table FDB is detected and the information is marked as roaming, delete the resource data associated with the wireless site.
[0011] Thirdly, embodiments of this application provide an apparatus for data transmission during wireless site roaming, applied to a first wireless access point, the apparatus including: The transmitting module is used to receive connection authentication data sent by the wireless station; The broadcast message generation module is used to generate broadcast messages based on connection authentication data; the broadcast message includes the media access control MAC address of the wireless station and the port information of the first wireless access point; The update module is used to send broadcast messages to the switch, so that the switch can update the wireless access point port information corresponding to the MAC address of the wireless station in the forwarding table FDB from the second wireless access point port information to the first wireless access point port information according to the broadcast message.
[0012] Fourthly, embodiments of this application provide an apparatus for data transmission during wireless site roaming, applied to a second wireless access point, the apparatus including: The receiving module is used to receive basic service set conversion management requests sent by wireless stations; The monitoring module is used to monitor whether the wireless access point port information corresponding to the wireless station in the forwarding table FDB of the switch is updated; and when the wireless station type is a low-traffic wireless station, it buffers the data to be sent to the wireless station; a low-traffic wireless station is a wireless station whose average service traffic is less than a preset traffic threshold. The cache stop module is used to stop caching data to be sent when it detects that the wireless access point port information corresponding to the wireless site in the forwarding table FDB has been updated from the second wireless access point port information to the first wireless access point port information, so as to send the cached data to the wireless site through the first wireless access point.
[0013] Fifthly, embodiments of this application provide a device for data transmission during wireless site roaming, the device comprising: A processor, and a memory storing computer program instructions; a method by which the processor reads and executes computer program instructions to implement any one of them.
[0014] The method, apparatus, and device for data transmission during wireless site roaming according to embodiments of this application can receive connection authentication data sent by a wireless site through a first wireless access point, proving that the wireless site needs to roam; based on the connection authentication data, a broadcast message including the media access control MAC address of the wireless site and the port information of the first wireless access point is generated, and the broadcast message is sent to the switch to update the wireless access point port information corresponding to the MAC address of the wireless site in the forwarding table FDB from the second wireless access point port information to the first wireless access point port information. By advancing the update of the FDB table, the roaming time of the wireless site is shortened, thereby reducing the data packet loss rate, reducing lag, and improving the user experience. Attached Figure Description
[0015] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1This is a schematic diagram of a wireless site roaming process provided in an embodiment of this application; Figure 2 This is a flowchart illustrating a method for data transmission during wireless site roaming applied to a first wireless access point, as provided in an embodiment of this application. Figure 3 This is a flowchart illustrating a method for data transmission during wireless site roaming applied to a second wireless access point, as provided in an embodiment of this application. Figure 4 This is a schematic flowchart of a low-traffic wireless site determination method provided in an embodiment of this application; Figure 5 This is a schematic diagram of a method for the pre-data recovery stage provided in an embodiment of this application; Figure 6 This is a schematic diagram of an interaction process for updating an FDB table provided in an embodiment of this application; Figure 7 This is a schematic diagram of an optimized interference control mechanism method provided in an embodiment of this application; Figure 8 This is a schematic diagram of a smart caching mechanism method provided in an embodiment of this application; Figure 9 This is a schematic diagram of a device for data transmission during wireless site roaming of a first wireless access point, provided in an embodiment of this application. Figure 10 This is a schematic diagram of a device for data transmission during wireless site roaming in a second wireless access point, provided in an embodiment of this application. Figure 11 This is a schematic diagram of the structure of a device for data transmission during wireless site roaming, as provided in an embodiment of this application. Detailed Implementation
[0017] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0018] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0019] It should be noted that the acquisition, storage, use, and processing of data in this application embodiment all comply with the relevant provisions of national laws and regulations.
[0020] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.
[0021] As the background technology explains, in wireless local area networks (WLANs), Wi-Fi roaming refers to the process of a wireless station switching from one access point to another. Due to this network switching, i.e., access point switching, data interruptions, latency, and packet loss can occur. Specifically, the wireless station roaming process is as follows: Figure 1 As shown, in the relevant scheme, there is an inherent interruption that will inevitably exist, namely the interruption from the STA disconnection stage to the data flow recovery stage in the above diagram; that is, during this period, packet loss and time delay will inevitably occur.
[0022] To reduce the impact of network switching on data transmission during roaming, relevant technologies include roaming solutions based on the 802.11kvr protocol and solutions based on distributed mesh.
[0023] The roaming solution based on the 802.11kvr protocol includes: 802.11k (Radio Resource Measurement): The AP reports a list of surrounding APs and their signal strength to the client, helping the client quickly find the best handover target. 802.11r (Fast BSS Handover): The core of the core. It allows the client to complete security key negotiation (four-way handshake) before associating with a new AP, reducing the authentication time during handover from hundreds of milliseconds to tens of milliseconds, truly achieving uninterrupted voice and video services. 802.11v (Wireless Network Management): Allows the network side (AC) to send suggestions to the client, guiding it to connect to a more suitable AP, achieving more intelligent load balancing and roaming.
[0024] The distributed mesh-based solution includes: Architecture: APs are directly connected to the internet, and are uniformly managed, configured, and monitored by a cloud-based controller. Core Technology: The underlying layer still relies on 802.11k / v / r for fast roaming, but management and optimization functions are implemented in the cloud. Advantages: No local AC hardware is required, deployment is flexible, and big data analysis and AI optimization (automatic channel and power adjustment) can be performed through the cloud platform.
[0025] However, in actual operation, the following problems still exist: 1. Uncontrollable behavior of wireless devices Many devices (especially older or inexpensive phones and IoT devices) will cling tightly to the currently connected access point (AP), refusing to actively switch even when the signal is very weak and a better AP is nearby. They follow their own conservative driving algorithms and may not reconnect until the signal is completely lost.
[0026] 2. The roaming switching process inevitably involves brief interruptions.
[0027] Even with 802.11r, clients still need time to detect new access points (APs), establish associations, and exchange keys. While this time can be reduced to under 50ms, it can still be perceived as stuttering or packet loss in scenarios such as ultra-high frame rate VR (each frame requires <20ms), real-time competitive games, or industrial control. During the switching process, data packets transmitted over the air may be lost, requiring retransmission by upper-layer protocols (such as TCP), increasing latency.
[0028] 3. Channel interference In densely populated environments (such as apartment buildings and shopping malls), even with perfect AP planning, interference from neighboring Wi-Fi, Bluetooth devices, microwave ovens, etc., is unavoidable. Interference can suddenly worsen the signal of an AP, triggering unexpected frequent roaming or packet loss. This is especially true in the congested 2.4GHz band, where clean channels are scarce. While channel planning between APs may be good in a static state, it is difficult to guarantee optimal performance under dynamic interference conditions.
[0029] 4. Radio wave propagation is greatly affected by the environment. People moving around, doors opening and closing, and elevators running can all cause rapid and drastic fluctuations in signal strength (known as "fast fading"). This can lead clients or the network to make incorrect and unnecessary handover decisions ("ping-pong effect"), ultimately harming the user experience. In some locations, signal strength doesn't decrease gradually but weakens abruptly. Clients may not have enough time to complete a smooth handover, resulting in an immediate disconnection.
[0030] To address the problems in the prior art, embodiments of this application provide a method, apparatus, and device for data transmission during wireless site roaming.
[0031] Technicians realized that during wireless roaming, the data recovery phase refers to the change in the forwarding path of network data streams after the STA switches to the new access point (AP)—data originally destined for the old AP needs to be redirected to the new AP. This path switching relies on the timely updating of the switch's Forwarding Database (FDB) entries. However, in traditional mechanisms, FDB updates typically only trigger after the STA sends its first data packet after roaming. This means that before the update is complete, data will still be forwarded to the port where the old AP is located, by which time the STA has already left, resulting in dropped packets, service interruption, and data loss.
[0032] Therefore, the technical concept of this application is that when the new access point (first wireless access point) receives the connection authentication data of the wireless station, it constructs a broadcast message using the MAC address of the wireless station and the local port information of the new access point in the connection authentication data, and sends the broadcast message to the switch. After receiving the broadcast message, the switch updates the port information of the wireless access point corresponding to the wireless station in the FDB table maintained by the switch to the port information of the new access point according to the information in the broadcast message, so as to update the FDB table in advance, complete the roaming path switching, thereby shortening the roaming time and reducing the data packet loss rate.
[0033] The method for data transmission during wireless site roaming provided in the embodiments of this application will be described below.
[0034] To make it easier to understand, it should be noted that the first wireless access point is the new wireless access point that the wireless site connects to after roaming, and the second wireless access point is the old wireless access point that the wireless site connected to before roaming.
[0035] Figure 2 This application illustrates a method for data transmission during wireless site roaming applied to a first wireless access point, according to an embodiment of the present application. The method may include steps S210-S230: S210 receives connection authentication data sent by the wireless station.
[0036] Connection authentication data is used by the first wireless access point to authenticate wireless sites.
[0037] If a wireless site determines that roaming is required, the wireless site sends connection authentication data to the first wireless access point to which it needs to connect.
[0038] Specifically, connection authentication data may include authentication frames or reassociation frames.
[0039] S220 generates a broadcast message based on the connection authentication data.
[0040] The broadcast message includes the media access control MAC address of the wireless station and the port information of the first wireless access point.
[0041] The connection authentication data includes the MAC address of the wireless site. The first wireless access point uses this MAC address and local port information to generate a broadcast message.
[0042] Specifically, when the first wireless access point receives the connection authentication data, it immediately constructs a broadcast GARP (Gratuitous ARP) message locally based on the MAC address of the wireless station and the local port information of the first wireless access point in the connection authentication data, and sends the broadcast message to other associated network devices.
[0043] S230, a broadcast message is sent to the switch so that if the second wireless access point, while buffering data to be sent to the wireless station, detects that the switch has updated the wireless access point port information corresponding to the MAC address of the wireless station in the forwarding table FDB from the second wireless access point port information to the first wireless access point port information according to the broadcast message, it will stop buffering the data to be sent.
[0044] After generating a broadcast message, the first wireless access point sends the broadcast message to the switch. Upon receiving the broadcast message, the switch updates the port information of the wireless access point corresponding to the wireless site in the broadcast message in its FDB table to the port information of the first wireless access point.
[0045] Specifically, after successfully constructing a broadcast message (GARP message), the first wireless access point (i.e., the new AP) immediately sends the broadcast message to the switch through its uplink port connected to the switch. After receiving the broadcast message, the switch parses the message content to obtain the MAC address of the wireless station (STA), and searches for the entry corresponding to the MAC address in its own Forwarding Database (FDB) based on the receiving port of the message (i.e., the port connected to the first wireless access point). When the entry is found, the wireless access point port information recorded in the entry is updated from the port number originally pointing to the second wireless access point (i.e., the old AP) to the port number currently receiving the broadcast message, i.e., the port information of the first wireless access point. This completes the early redirection of the Layer 2 forwarding path, ensuring that subsequent data sent to the STA can be directly forwarded to the new AP.
[0046] In summary, this embodiment receives connection authentication data sent by a wireless site through a first wireless access point, thus authenticating and connecting the wireless site in advance. Based on the received connection authentication data, a broadcast message is generated, including the media access control MAC address of the wireless site and the port information of the first wireless access point. This broadcast message is then sent to the switch to update the wireless access point port information in the forwarding table (FDB) corresponding to the MAC address of the wireless site from the second wireless access point port information to the first wireless access point port information. By updating the FDB table in advance, the roaming time of the wireless site is shortened, thereby reducing data packet loss, minimizing lag, and improving the user experience.
[0047] Figure 3 A method for data transmission during wireless site roaming according to one embodiment of this application includes: four ends: a first wireless access point, a wireless site, a second wireless access point, and a switch, as well as an interaction method between the four ends. This interaction method... Figure 2 In addition to the above, steps S240-S260 for the second wireless access point are added, including: S240 receives a basic service set conversion management request sent by a wireless station.
[0048] When the second wireless access point receives a basic service set conversion management request from a wireless site, it can know that the wireless site is about to leave.
[0049] Specifically, the second wireless access point (i.e., the old AP) receives a Basic Service Set Switching Management Response (BTM Response) frame sent by the wireless station. This response frame is an acknowledgment message returned by the wireless station after receiving the Basic Service Set Switching Management Request (BTM Request) frame sent by the second wireless access point, indicating that the wireless station accepts this roaming suggestion and is ready to switch to the first wireless access point.
[0050] S250 monitors whether the wireless access point port information corresponding to the wireless station in the forwarding table (FDB) of the switch is updated. Furthermore, when the wireless station type is a low-traffic wireless station, it buffers the data to be sent to the wireless station; a low-traffic wireless station is a wireless station whose average service traffic is less than a preset traffic threshold.
[0051] Upon learning that the wireless site is about to leave, the second wireless access point begins to monitor whether the contents of the FDB table in the switcher are updated. At the same time, when the wireless site is a low-traffic wireless site, that is, when the average service traffic carried by the wireless site is less than the preset traffic threshold, the second wireless access point buffers the data to be sent to the wireless site.
[0052] Specifically, the second wireless access point (i.e., the old AP) continuously monitors the forwarding table (FDB) in the switch to check whether the port information corresponding to the wireless site's MAC address in the FDB has been updated from the second wireless access point port to the first wireless access point port. If the port information has been updated, it is confirmed that the wireless site has successfully roamed to the first wireless access point. During the monitoring period, if the wireless site is marked as a low-traffic wireless site (i.e., the average service traffic of the wireless site within a preset time window is lower than a preset traffic threshold), the second wireless access point activates a packet caching mechanism, temporarily storing downlink data packets received by itself and destined for the wireless site in a local cache queue.
[0053] More specifically, a custom Netfilter hook function, roaming_burst_hook, can be registered in the Linux kernel network subsystem to capture and filter data packets during STA roaming. The module debugging parameters are shown in Table 1. Table 1 S260, upon detecting that the wireless access point port information corresponding to the wireless station in the forwarding table FDB has been updated from the second wireless access point port information to the first wireless access point port information, stops caching the data to be sent, and sends the cached data to the wireless station through the first wireless access point.
[0054] When the second wireless access point detects that the wireless access point information corresponding to the wireless site in the switch's FDB table has changed to the first wireless access point, it stops caching the data to be transmitted to the wireless site and sends the cached data to the wireless site through the first wireless access point.
[0055] Specifically, during the continuous monitoring of the switch's forwarding table (FDB), once the second wireless access point detects that the port information corresponding to the MAC address of the wireless station has been updated from the second wireless access point's port to the first wireless access point's port, it confirms that the wireless station has completed roaming and that the downlink data path has been switched to the first wireless access point. At this time, if the wireless station was previously marked as a low-traffic wireless station and packet caching has been enabled, the second wireless access point immediately stops caching downlink data packets destined for that wireless station, retrieves the data packets stored in the cache queue, and forwards them to the first wireless access point, which then sends them to the wireless station via the air interface.
[0056] In this way, before the wireless site completes its association with the new access point and the switch completes the Layer 2 path switching, the data sent to the wireless site is temporarily cached, avoiding packet loss due to the path not being updated. After the path switching is confirmed, the cached packets are promptly resumed, enabling the wireless site to receive the complete data stream during roaming without data loss or service interruption due to the switching process, thereby improving the continuity and stability of the roaming experience.
[0057] In summary, this embodiment recognizes that a wireless station is about to leave upon receiving a Basic Service Set Conversion Management (BSC) request from a wireless station via the second wireless access point. It then begins monitoring the FDB table in the switch and, if the wireless station is a low-traffic station, starts caching data destined for it to avoid data loss during roaming handover. After updating the port information of the corresponding wireless access point in the FDB table, caching stops, and the cached data is sent back to the wireless station via the updated wireless access point, completing data transmission and ensuring that the data received by the wireless station is complete and continuous.
[0058] In some embodiments, the broadcast message includes indication information to instruct the device receiving the broadcast message not to send a response message to the first wireless access point.
[0059] The first wireless access point generates a broadcast message and sends it to the switch. The broadcast message contains specific indication information that informs the network devices receiving the broadcast message that no response or reply is required.
[0060] Specifically, broadcast messages carry specific indication information to notify network devices (such as Layer 2 switches, other APs, or hosts) that they do not need to respond or reply to the message in any way. For example, this indication information can be implemented by setting the Operation Code field in the broadcast message to 2 (i.e., an ARP reply). This is because the standard ARP protocol stipulates that a message with an Operation Code of 2 is regarded as a reply to a request, and the receiver only uses it to update its local cache without actively triggering a new ARP request or reply process.
[0061] Therefore, by setting indication information in the broadcast message, other devices in the network, upon receiving the message, only read the MAC address information to update their own caches, but do not reply with any response message to the first wireless access point. In this way, the first wireless access point does not need to spend time processing response packets from surrounding devices, allowing it to concentrate all its processing power on completing terminal association authentication and path switching; at the same time, it avoids bandwidth consumption due to a large number of response packets, ensuring that the roaming process is not slowed down by additional response interactions.
[0062] Although the above design has moved the data recovery phase forward, an unavoidable interruption time still exists between the STA disconnecting from the old connection and completing the association authentication with the new AP. Even with fast authentication protocols such as 802.11r, the authentication time can only be shortened to a certain extent, and in wireless environments with strong interference, this interruption period may be further extended. For services that are extremely sensitive to latency, such an interruption is still insufficient to meet the stringent requirement of "zero packet loss." To address this, this solution introduces a packet caching mechanism on top of the existing mechanism. During STA handover, packets to be forwarded are temporarily cached and resumed after successful association with the new AP, thus achieving seamless roaming at the service level. However, in high-traffic service scenarios, implementing packet caching for all STAs will significantly consume AP memory resources, which may be difficult for some APs with limited hardware specifications to handle. At the same time, high-traffic services are usually not sensitive to a small amount of packet loss, and excessive caching may actually affect the overall system performance. Therefore, this solution introduces an intelligent identification mechanism for low-traffic roaming scenarios while implementing a packet caching mechanism. This mechanism can dynamically identify low-traffic, high-sensitivity STAs and only cache and resume transmission for them, thereby ensuring the continuity of critical services while maintaining efficient utilization of system resources. In some embodiments, such as Figure 4 As shown, when the wireless station type is a low-traffic wireless station, before buffering the data to be sent to the wireless station, the method further includes steps S241-S243: S241, Obtain historical traffic data of wireless sites within a preset time period.
[0063] S242, determine the average traffic value of historical traffic data for wireless sites.
[0064] S243, if the average traffic is less than the traffic threshold, determine the wireless traffic site as a low traffic wireless site.
[0065] Since the caching mechanism only applies to low-traffic wireless sites, it is necessary to determine whether a wireless site is a low-traffic wireless site. This can be done by obtaining historical traffic data of the wireless site within a preset time period, calculating the average value of this historical traffic data, and then determining whether the average value is lower than a preset traffic threshold. If the average value is lower than the traffic threshold, the wireless site is determined to be a low-traffic wireless site.
[0066] Specifically, historical traffic of a wireless site can be obtained through a continuously adjustable time window, such as 30 seconds. By calculating the average traffic within these 30 seconds, for example, 15 Mbps per second, the average is compared with a preset traffic threshold, for example, 16 Mbps. If 15 Mbps < 16 Mbps, the wireless site is determined to be a low-traffic wireless site.
[0067] It should be noted that both the traffic threshold and the time window duration can be flexibly configured according to the actual scenario.
[0068] This judgment mechanism can accurately identify low-traffic but highly sensitive business scenarios such as games and VR, avoiding unnecessary caching of high-traffic businesses (such as video downloads and file transfers), thereby saving memory resources of the second wireless access point, preventing the service quality of other terminals from being affected by caching a large amount of data, and ensuring that cached resources are used for the low-latency businesses that need the most protection, thus improving the overall efficiency and usability of the system.
[0069] In some embodiments, the method may further include deleting resource data associated with a wireless site upon detecting an update to information in the forwarding table FDB.
[0070] When the second wireless access point detects an update to the port information of the wireless access point corresponding to the wireless site in the FDB table, it determines that the wireless site has completed the roaming handover. Therefore, it deletes the resource data of the wireless site on its local machine to avoid the occupation and waste of invalid resources.
[0071] Specifically, during the continuous monitoring of the switch's forwarding table (FDB), when the second wireless access point detects that the port information corresponding to the wireless site has been updated from the second wireless access point's port to the first wireless access point's port, it confirms that the wireless site has successfully roamed to the first wireless access point. The second wireless access point then deletes the resource data associated with the wireless site from its local storage, including but not limited to: unsent data frames in the transmission queue, data frames awaiting acknowledgment in the retransmission buffer, and the wireless site's associated context information.
[0072] Through the above resource cleanup, the second wireless access point no longer retains any pending data from the wireless station, thereby avoiding the continued transmission of useless data frames to the air interface after the wireless station leaves, reducing additional occupation and interference of the wireless channel.
[0073] In some embodiments, the method may further include sending deauthentication data to a wireless station.
[0074] Before the second wireless access point cleans up local resources, it can send deauthentication data to the wireless site.
[0075] Specifically, after detecting that the port information corresponding to the wireless station in the switch's forwarding table (FDB) has been updated from the second wireless access point's port to the first wireless access point's port, the second wireless access point confirms that the wireless station has successfully roamed to the first wireless access point. The second wireless access point then constructs a deauthentication frame. The destination address of this frame is the wireless station's MAC address, and the reason code is set to a value indicating "station left" or "deauthentication." This deauthentication frame is then sent to the wireless station over the air interface to notify the wireless station to terminate its authentication association with the second wireless access point.
[0076] By sending a deauthentication frame, the second wireless access point explicitly informs the wireless station that it will no longer retain its connection status, prompting the wireless station to completely disconnect from the second wireless access point. This prevents the wireless station from mistakenly attempting to send and receive data through the second wireless access point after roaming. At the same time, it triggers the second wireless access point's local resource release operation, thereby ensuring that the wireless station only maintains communication with the first wireless access point and reducing possible subsequent conflicts or interference.
[0077] In some embodiments, after receiving the roaming signal sent by the wireless station, the method may further include steps S261-S263: S261, Update the wireless site's tagging information to roaming; S262, upon detecting an update to the forwarding table FDB, deletes resource data associated with the wireless site, including: S263, if an update to the forwarding table FDB is detected and the information is marked as roaming, delete the resource data associated with the wireless site.
[0078] The second wireless access point parses the MAC address of the wireless station from the response frame and confirms that the wireless station has agreed to roam based on the status code field in the response frame. Then, it records the roaming flag of the wireless station locally. If the information in the forwarding table FDB is updated, the resource data associated with the wireless station is deleted. Or, for more stringent requirements, if the information in the forwarding table FDB is updated and the flag information is roaming, the resource data associated with the wireless station is deleted.
[0079] Specifically, after receiving a BTM response frame from the wireless site and confirming that the site accepts the roaming suggestion, the second wireless access point (i.e., the old AP) updates the tag information corresponding to the wireless site to "roaming" to indicate that the site is currently in the process of roaming handover. Subsequently, the second wireless access point continuously monitors the forwarding table (FDB) in the switch, checking whether the port information corresponding to the MAC address of the wireless site has been updated from the second wireless access point's port to the first wireless access point's port. When the second wireless access point detects that the port information of the wireless site in the FDB has been updated, and the current tag information of the wireless site is "roaming," it determines that the wireless site has successfully completed the roaming handover from the second wireless access point to the first wireless access point. At this time, according to the indication of the tag information, the second wireless access point actively deletes the resource data associated with the wireless site stored locally.
[0080] By verifying whether the tag information is "roaming" before deleting resource data, the second wireless access point can accurately distinguish between sites that have left normally during roaming and sites that have been abnormally disconnected due to signal loss. This ensures that resource cleanup is only performed when the wireless site has successfully roamed to the new AP, avoiding accidental deletion of data from sites that are still in service. At the same time, it effectively releases the memory and queue resources on the old AP side, reducing the invalid occupation and interference of the wireless channel.
[0081] Based on the above-described method for data transmission during wireless site roaming, this application embodiment also provides another method for data transmission during wireless site roaming.
[0082] This application aims to address the inherent downtime issue during wireless network roaming, thereby achieving a truly seamless roaming experience. To achieve this goal, the following core methods are proposed to shorten handover latency or reduce its impact on data transmission: 1. Pre-process data recovery phase: The data recovery process during roaming is performed in advance to reduce service interruption time; 2. Optimize interference control mechanism: Reduce interference and packet loss when the STA leaves the original access point (AP); 3. Introduce an intelligent caching mechanism: During unavoidable association and authentication delays, cache the packets to be forwarded to ensure the continuity of the data flow to the greatest extent.
[0083] First, regarding the initial data recovery phase, such as Figure 5 As shown, the method may include: S501, STA roaming process begins.
[0084] S502, STA sends Auth / Reassoc frame.
[0085] The wireless site sends an authentication frame or reassociation frame to the new access point to initiate the access authentication process.
[0086] S511, the new AP receives authentication / reassociation frames.
[0087] The new access point receives authentication frames or reassociation frames from the wireless site to confirm that the site is attempting to access.
[0088] S512, the new AP resolves the STA MAC address.
[0089] The new access point parses the MAC address of the wireless station from the received frame and identifies the station's identity.
[0090] S513, the new AP constructs and broadcasts a GARP message.
[0091] The new access point constructs and broadcasts a GARP message based on the resolved MAC address to notify devices in the network that the site's location is about to change.
[0092] S514, the switch learns the new location of the STA.
[0093] After receiving a GARP message broadcast by a new access point, the switch learns the location of the new port corresponding to that MAC address.
[0094] S515, update the FDB forwarding table immediately.
[0095] Based on the learning results, the switch immediately updates the port information corresponding to the MAC address in the local forwarding table (FDB) to complete the switch of the Layer 2 forwarding path.
[0096] The specific interaction diagrams for steps S511-S515 are as follows: Figure 6 As shown, the access point first receives an authentication request (AUTH Request) from a new device, parses the device's source MAC address (STA_MAC) from it, and identifies it as a new access point. It then constructs a GARP Reply message, filling in the MAC address as the source MAC, the source IP as 0.0.0.0, and setting the opcode to 2 (Reply). This GARP Reply message is then sent to the local protocol stack for processing. After updating the local ARP cache, the message is sent out through the physical module. At this point, the switch learns that the MAC address corresponds to the access point's port, thus updating the FDB entry to map the MAC address to either a domainless interface or the access point's port. Finally, the GARP Reply message is broadcast to other ports within the same broadcast domain. The switch, on the one hand, continues to flood the learned MAC address to other interfaces, and on the other hand, triggers other receiving devices to update their respective ARP caches, associating STA_MAC with the IP address 0.0.0.0. Through this sequential execution, the access point can complete the Layer 2 forwarding path switching and the update of the entire network's ARP cache during the device authentication phase.
[0097] S516, data forwarding path switching complete.
[0098] The switch completes the FDB table update, and the downlink data forwarding path switches from the old access point to the new access point.
[0099] S517, subsequent data packets go directly to the new AP.
[0100] Subsequent data packets received by the switch destined for that wireless site are forwarded directly to the new access point, without passing through the old access point.
[0101] S518, STA completes roaming association.
[0102] The wireless site completes the authentication and reassociation process with the new access point, and the control plane connection is established.
[0103] S519, STA sends and receives data packets.
[0104] After completing the association, the wireless station sends its first uplink data packet to the new access point and begins normal business communication.
[0105] S520, data packets are transmitted normally without path interruption.
[0106] Since the Layer 2 forwarding path had been switched in advance, subsequent uplink and downlink data packets were transmitted normally, and no path interruption or packet loss occurred during the roaming process.
[0107] In contrast, the diagram also illustrates the traditional roaming switching process, including: S501, STA roaming process begins.
[0108] S502, STA sends Auth / Reassoc frame.
[0109] S521, waiting for STA to send the first data packet.
[0110] In the traditional approach, the switch waits for the wireless station to complete the association before sending the first uplink data packet before triggering an update to the FDB table entry.
[0111] S522, FDB update delay.
[0112] Because the FDB entry update is delayed due to the need to wait for the first data packet from the wireless station, the Layer 2 forwarding path cannot be switched in time.
[0113] S523, packet loss / forwarding to the old AP.
[0114] During this delay, downlink data packets destined for the wireless site are still forwarded by the switch to the second wireless access point port, resulting in data packet loss or mistransmission.
[0115] S524, Service interrupted.
[0116] The service was interrupted because downlink data could not be delivered to the wireless site, and the smoothness of roaming handover was severely affected.
[0117] This embodiment employs a pre-data recovery mechanism. After the wireless site sends an authentication frame or reassociation frame, the new access point immediately constructs and broadcasts a GARP message, proactively triggering the switch to learn the site's new location in advance and update the FDB table entries. This advances the timing of the Layer 2 forwarding path switching from the traditional "waiting for the site to send the first uplink data packet" to the authentication and association stage. This avoids the problem of downlink data packets being mistakenly forwarded to the old access point and lost due to FDB update delays, ensuring that data packets can directly reach the new access point during roaming. This achieves a smooth switching process with no interruption and minimal packet loss, significantly improving service continuity and user experience in roaming scenarios.
[0118] Secondly, under the 802.11v standard framework, AP-guided STA roaming mainly adopts the following two methods: 1. Suggestive guidance The AP sends a BSS Transition Management Request frame to the STA, which includes a list of recommended candidate APs and the suggested reasons for leaving. The STA can independently evaluate and decide whether to accept the suggestion: if accepted, it will proactively initiate a roaming process; if not accepted, it can ignore the suggestion and maintain the existing connection. In this mode, the STA typically disconnects implicitly and does not send Disassociation or Deauthentication notification frames to the old AP, so the old AP cannot proactively clean up the STA's session state and cache queue.
[0119] 2. Mandatory guidance The AP sets a "forced departure" indication (such as the Disassociation Imminent bit) in the BSS Transition Management Request frame and can specify a Disassociation Timer as a departure countdown. The STA must disconnect the current connection and attempt to connect to the recommended AP before the timer expires; otherwise, it will be forcibly disconnected. In this mode, the STA typically sends a Disassociation or Deauthentication frame to explicitly terminate the association with the old AP.
[0120] Through multiple comparative experiments, it was found that existing technical solutions rarely employ mandatory roaming guidance. The main reason is that STAs may not follow mandatory roaming instructions and may even disconnect and reconnect to the original AP, which would negatively impact the actual network experience. While suggestive guidance offers a more user-friendly experience, the STA does not send explicit departure notifications, causing the old AP to be unable to detect its roaming status in a timely manner. As a result, residual transmission queues and retransmission buffers will continue to consume resources.
[0121] Furthermore, relying solely on the automatic sending of Deauth / Disassoc frames after the Disassociation Timer expires also poses a significant risk: if the STA roaming handover is not actually successful but communication is still maintained through the old AP, sending a leave frame will directly interrupt its network connection, severely impacting the user experience.
[0122] Therefore, the current mainstream technical solutions usually adopt the following mechanism: after the new AP confirms that the STA has successfully roamed, it notifies the old AP through Mesh network signaling, and the old AP actively sends a Deauthentication or Disassociation frame to clean up residual packets and synchronize the network status.
[0123] However, the Mesh notification mechanism inevitably suffers from signaling delays. During this period, the old AP and its upstream data path fail to detect the STA's departure in time and continue to send data packets destined for the STA to the wireless channel. Since the STA is currently interacting with the new AP, it will not respond to the old AP's data packets, causing the old AP to continuously trigger retransmissions due to lack of acknowledgment. This severely occupies channel resources, exacerbates air interface contention, and causes significant interference to surrounding networks.
[0124] To address the above issues, this solution proposes the following optimized interference control mechanism, such as... Figure 7 As shown, the method may include steps S710-S7170: S710, STA replied to BTM Resp and left.
[0125] The wireless site replies to the second wireless access point with a Basic Service Set Transition Management Response (BTM Resp) frame, indicating acceptance of the roaming suggestion and preparation to leave.
[0126] S720, old AP record roaming flag STA_MAC+BTM_LEAVE_FLAG.
[0127] After receiving the response frame, the second wireless access point records the roaming tag of the wireless station locally. The tag includes the wireless station's MAC address and BTM departure identifier.
[0128] S730, the old AP continuously monitors the network status.
[0129] The second wireless access point continuously monitors the network status, focusing on changes in the port information corresponding to the MAC address of the wireless station in the switch's relay table (FDB).
[0130] S740, FDB table entry update detected.
[0131] The second wireless access point detected that the port information corresponding to the MAC address of the wireless station in the switch's FDB table had been updated.
[0132] S750, extract update information: STA MAC address, new port location.
[0133] The second wireless access point extracts the updated information from the FDB entries, including the MAC address of the wireless station and its new port location.
[0134] S760, query the roaming marker for this STA.
[0135] The second wireless access point checks whether the roaming marker of the wireless station is recorded locally based on the extracted MAC address.
[0136] S770, confirmed to have left while roaming in BTM.
[0137] The second wireless access point confirms that the wireless site is indeed a BTM-guided roaming departure, meaning the tagging information exists and is valid.
[0138] If the marker exists and is valid: S780, triggers the Deauth sending mechanism.
[0139] The second wireless access point triggers the deauth sending mechanism, preparing to send a deauth frame to the wireless site.
[0140] S790, construct the Deauthentication frame.
[0141] The second wireless access point constructs a deauthentication frame.
[0142] S7100, set reason code: STA departed; set target address: STA MAC.
[0143] In the constructed deauthentication frame, the reason code is set to a value indicating "STA left", and the destination address is set to the MAC address of the wireless station.
[0144] S7110, send Deauth to STA.
[0145] The second wireless access point sends the deauthentication frame to the wireless station via the air interface.
[0146] S7120, clear the local send queue.
[0147] The second wireless access point clears the data frames associated with the wireless station from its local transmission queue.
[0148] S7130, clear the retransmission buffer.
[0149] The second wireless access point clears the data frames associated with the wireless station from the retransmission buffer.
[0150] S7140, release STA-related resources.
[0151] The second wireless access point releases all resources associated with the wireless site, including associated context information.
[0152] S7150, clear BTM roaming markers.
[0153] The second wireless access point clears the locally recorded BTM roaming tag for that wireless site.
[0154] S7160 notifies the controller to update the status.
[0155] The second wireless access point notifies the upper-layer controller to update the association status information of the wireless station.
[0156] S7170, completes the cleanup to reduce channel interference.
[0157] The second wireless access point completed all cleanup operations, effectively reducing wireless channel interference caused by retransmission of residual data.
[0158] In the case of no tag or invalid tag: S7180, maintain the current status and continue monitoring.
[0159] The second wireless access point will remain in its current state, will not perform resource cleanup operations, and will continue to monitor for subsequent changes.
[0160] As a result verification, the technical personnel of this application simulated a service scenario with an average speed of 200Mbps and compared the roaming packet loss and latency results of the optimized solution, as shown in Table 2: Table 2 This embodiment optimizes the interference control mechanism. After a wireless station replies with a BTM Resp indicating acceptance of roaming, the old access point records the station's roaming tag and continuously monitors changes in the switch's FDB entry. When it detects that the port information corresponding to the station in the FDB has been updated to the new access point's port, the old access point further queries its local roaming tag. Only if the tag exists and is valid is the old access point confirmed as a BTM-guided roaming departure. Subsequently, the Deauth sending mechanism is triggered, sending a deauthentication frame to the wireless station and clearing the local sending queue, retransmission buffer, and associated resources. Simultaneously, the roaming tag is cleared, and the controller is notified to update the status, completing all cleanup operations. For cases with no tag or an invalid tag, the old access point maintains its current status and continues monitoring. Through the above method, this application can accurately identify BTM-roaming departure stations and promptly clear residual data on the old access point side after confirming roaming completion. This prevents the old access point from continuing to retransmit data frames after the station leaves, thus occupying the wireless channel and effectively reducing air interface interference, thereby improving the overall communication quality of the wireless network.
[0161] Finally, regarding the introduction of a smart caching mechanism, such as... Figure 8 As shown, the method may include steps S810-S8130: S810, low-traffic service STA monitoring initiated.
[0162] S820 received BTM Response from STA.
[0163] S830, parse the BTM Response to obtain the STA MAC address.
[0164] S840 marks the STA as "waiting to roam" and begins caching related messages.
[0165] The second wireless access point marks the wireless station as "waiting to roam" and begins caching downlink data packets destined for that station.
[0166] S850 continuously monitors DB table updates.
[0167] The second wireless access point continuously monitors whether the entry corresponding to the MAC address of the wireless station in the switch's relay table (FDB) has been updated.
[0168] S860, detected an update to the FDB table entry for this STA? The second wireless access point determines whether it has detected an update to the wireless site's entry in the FDB.
[0169] Yes (FDB table entry update detected): S870, roaming incident confirmed.
[0170] The second wireless access point confirmed that a wireless site roaming event had occurred.
[0171] S880, verify and update the port corresponding to the new AP.
[0172] The second wireless access point further verifies whether the port information updated by the FDB corresponds to the port of the first wireless access point (new AP).
[0173] S890, roaming confirmed.
[0174] The second wireless access point confirms that the wireless site has successfully completed roaming.
[0175] S8100: Stop caching and start resuming cached messages.
[0176] The second wireless access point stops buffering downlink packets destined for the wireless station and begins retransmitting the buffered packets to the first wireless access point, which then sends them to the wireless station.
[0177] S8110, clear the "Waiting to Roam" marker.
[0178] The second wireless access point removes the "waiting to roam" mark from the wireless site.
[0179] S8120, monitoring completed, service resumed.
[0180] The second wireless access point has completed the monitoring process, and the wireless site's services have resumed normal transmission.
[0181] No (No FDB table entry updates detected): S8130, continue monitoring.
[0182] The second wireless access point will remain under monitoring, awaiting further updates to the FDB entries.
[0183] Based on the above-described method for data transmission during wireless site roaming, this application also provides an apparatus for data transmission during wireless site roaming.
[0184] Figure 9 This is a schematic diagram of a device structure applied to a first wireless access point, provided in an embodiment of this application. Figure 9 As shown, the device may include: The transmitting module 901 is used to receive connection authentication data sent by the wireless station; The broadcast message generation module 902 is used to generate a broadcast message based on the connection authentication data; the broadcast message includes the media access control MAC address of the wireless station and the port information of the first wireless access point; The update module 903 is used to send a broadcast message to the switch so that when the second wireless access point detects that the switch has updated the wireless access point port information corresponding to the MAC address of the wireless site in the forwarding table FDB from the second wireless access point port information to the first wireless access point port information, the second wireless access point will stop caching the data to be sent when it is caching data to be sent to the wireless site.
[0185] In summary, in this embodiment, after the sending module 901 receives the connection authentication data sent by the wireless station, the broadcast message generation module 902 generates a broadcast message containing the MAC address of the wireless station and the port information of the first wireless access point based on the data. The update module 903 sends the broadcast message to the switch, so that the switch updates the port information corresponding to the wireless station in the forwarding table FDB from the second wireless access point port to the first wireless access point port. Through the coordinated work of the above modules, this application can trigger the early switching of the Layer 2 forwarding path during the connection authentication stage initiated by the wireless station, without waiting for the wireless station to send uplink data packets. This effectively shortens the data interruption time during roaming handover, reduces downlink data packet loss caused by the failure to update the path in time, and improves the smoothness of roaming handover and user experience.
[0186] In some embodiments, the broadcast message generation module 902 is further configured to include indication information in the broadcast message to indicate that the device receiving the broadcast message does not send a response message to the first wireless access point.
[0187] Figure 10 This is a schematic diagram of a device structure applied to a second wireless access point, provided in an embodiment of this application. Figure 10 As shown, the device may include: Receiver module 1001 is used to receive basic service set conversion management requests sent by wireless stations; The monitoring module 1002 is used to monitor whether the wireless access point port information corresponding to the wireless station in the forwarding table FDB of the switch is updated; and when the type of the wireless station is a low-traffic wireless station, it caches the data to be sent to the wireless station; a low-traffic wireless station is a wireless station whose average service traffic is less than a preset traffic threshold. The cache stop module 1003 is used to stop caching the data to be sent when it detects that the wireless access point port information corresponding to the wireless station in the forwarding table FDB has been updated from the second wireless access point port information to the first wireless access point port information, so as to send the cached data to the wireless station through the first wireless access point.
[0188] In summary, in this embodiment, after the receiving module 1001 receives the basic service set conversion management request sent by the wireless station, the monitoring module 1002 continuously monitors whether the port information corresponding to the wireless station in the forwarding table (FDB) of the switch is updated, and caches the downlink data to be sent when the wireless station is a low-traffic wireless station. When the monitoring module 1002 detects that the port information has been updated from the second wireless access point port to the first wireless access point port, the caching stop module 1003 stops caching and sends the cached data to the wireless station through the first wireless access point. Through the cooperation of the above modules, this application can temporarily cache the downlink data of low-traffic sensitive services during roaming handover, avoid packet loss before the path handover is completed, and resume transmission in a timely manner after the handover is confirmed, thereby ensuring the data integrity and service continuity of low-traffic, high-sensitivity services such as games and VR during roaming. At the same time, the low-traffic judgment mechanism prevents cache resources from being occupied by high-traffic services, improving the utilization efficiency of system resources.
[0189] In some embodiments, the device can also be used for: When the wireless site is a low-traffic wireless site, historical traffic data of the wireless site within a preset time period is obtained before the data to be sent to the wireless site is cached. Determine the average traffic volume of historical traffic data for wireless sites; If the average traffic is less than the traffic threshold, the wireless traffic site is identified as a low-traffic wireless site.
[0190] In some embodiments, the device may further include: If an update to the forwarding table FDB is detected, delete the resource data associated with the wireless site.
[0191] In some embodiments, the device can also be used for: Send deauthentication data to the wireless site.
[0192] In some embodiments, the device can also be used for: After receiving the roaming signal from the wireless station, update the wireless station's tagging information to roaming; Upon detecting updates to information in the forwarding table FDB, delete resource data associated with the wireless site, including: If an update to the forwarding table FDB is detected and the information is marked as roaming, delete the resource data associated with the wireless site.
[0193] Each module / unit in the above-mentioned device has the function of implementing each step executed in the aforementioned method embodiments and can achieve its corresponding technical effect. For the sake of brevity, it will not be described in detail here.
[0194] Figure 11 A schematic diagram of the hardware structure for data transmission during wireless site roaming provided in an embodiment of this application is shown.
[0195] The device for transmitting data during wireless site roaming may include a processor 1101 and a memory 1102 storing computer program instructions.
[0196] Specifically, the processor 1101 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0197] Memory 1102 may include mass storage for data or instructions. For example, and not limitingly, memory 1102 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. In one instance, memory 1102 may include removable or non-removable (or fixed) media, or memory 1102 may be non-volatile solid-state memory. Memory 1102 may be internal or external to the integrated gateway disaster recovery device.
[0198] Memory 1102 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods disclosed according to this embodiment.
[0199] The processor 1101 reads and executes computer program instructions stored in memory 1102 to achieve... Figure 2 A method for data transmission during wireless site roaming in the illustrated embodiment.
[0200] In one example, the device for data transmission during wireless site roaming may further include a communication interface 1103 and a bus 1104. For example, Figure 11 As shown, the processor 1101, memory 1102, and communication interface 1103 are connected through bus 1104 and complete communication with each other.
[0201] The communication interface 1103 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0202] Bus 1104 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not as a limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 1104 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.
[0203] Furthermore, in conjunction with the data transmission method during wireless station roaming in the above embodiments, this application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the data transmission methods during wireless station roaming in the above embodiments.
[0204] This application also provides a computer program product, including a computer program that, when executed by a processor, implements any of the methods for data transmission during wireless station roaming described in the above embodiments.
[0205] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0206] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (ROM), flash memory, erasable read-only memory (EROM), floppy disks, compact disc read-only memory (CD-ROM), optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0207] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0208] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0209] It should be noted that the acquisition, storage, use, and processing of data in this application embodiment all comply with the relevant provisions of national laws and regulations.
[0210] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.
[0211] It should be noted that the acquisition, storage, use, and processing of data in this application embodiment all comply with the relevant provisions of national laws and regulations.
[0212] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.
[0213] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A method for data transmission during wireless site roaming, characterized in that, Applied to a first wireless access point, the method includes: Receive connection authentication data sent by the wireless station; A broadcast message is generated based on the connection authentication data; the broadcast message includes the media access control MAC address of the wireless station and the port information of the first wireless access point. The broadcast message is sent to the switch so that if the second wireless access point, while buffering data to be sent to the wireless station, detects that the switch has updated the wireless access point port information corresponding to the MAC address of the wireless station in the forwarding table FDB from the second wireless access point port information to the first wireless access point port information according to the broadcast message, it will stop buffering the data to be sent.
2. The method according to claim 1, characterized in that, The broadcast message includes indication information to instruct the device receiving the broadcast message not to send a response message to the first wireless access point.
3. A method for data transmission during wireless site roaming, characterized in that, Applied to a second wireless access point, the method includes: Receive basic service set conversion management requests sent by wireless stations; The system monitors whether the wireless access point port information corresponding to the wireless station in the forwarding table FDB of the monitoring switch is updated; and when the type of the wireless station is a low-traffic wireless station, it caches the data to be sent to the wireless station; the low-traffic wireless station is a wireless station whose average service traffic is less than a preset traffic threshold. If the forwarding table FDB detects that the wireless access point port information corresponding to the wireless station has been updated from the second wireless access point port information to the first wireless access point port information, the caching of data to be sent is stopped, so that the cached data can be sent to the wireless station through the first wireless access point.
4. The method according to claim 3, characterized in that, In the case where the wireless station is a low-traffic wireless station, before caching the data to be sent to the wireless station, the method further includes: Obtain historical traffic data of the wireless station within a preset time period; Determine the average traffic value of the historical traffic data of the wireless station; If the average traffic is less than the traffic threshold, the wireless traffic site is determined to be the low-traffic wireless site.
5. The method according to claim 3, characterized in that, The method further includes: If an update to the forwarding table FDB is detected, the resource data associated with the wireless site is deleted.
6. The method according to claim 5, characterized in that, The method further includes: Send deauthentication data to the wireless station.
7. The method according to claim 5 or 6, characterized in that, After receiving the roaming signal sent by the wireless station, the method further includes: Update the tagging information of the wireless station to roaming; The step of deleting resource data associated with the wireless site upon detecting an update in the forwarding table FDB includes: If an update to the forwarding table FDB is detected and the tagging information indicates roaming, the resource data associated with the wireless site is deleted.
8. A device for data transmission during wireless site roaming, characterized in that, Applied to a first wireless access point, the method includes: The transmitting module is used to receive connection authentication data sent by the wireless station; A broadcast message generation module is used to generate a broadcast message based on the connection authentication data; the broadcast message includes the media access control MAC address of the wireless station and the port information of the first wireless access point; The update module is used to send the broadcast message to the switch so that when the second wireless access point, while caching data to be sent to the wireless station, detects that the switch has updated the wireless access point port information corresponding to the MAC address of the wireless station in the forwarding table FDB from the second wireless access point port information to the first wireless access point port information according to the broadcast message, it stops caching the data to be sent.
9. A device for data transmission during wireless site roaming, characterized in that, The device, used for a second wireless access point, includes: The receiving module is used to receive basic service set conversion management requests sent by wireless stations; The monitoring module is used to monitor whether the wireless access point port information corresponding to the wireless station in the forwarding table FDB of the switch is updated; and when the type of the wireless station is a low-traffic wireless station, it caches the data to be sent to the wireless station; the low-traffic wireless station is a wireless station whose average service traffic is less than a preset traffic threshold. The cache stop module is used to stop caching data to be sent when it detects that the wireless access point port information corresponding to the wireless station in the forwarding table FDB has been updated from the second wireless access point port information to the first wireless access point port information, so as to send the cached data to the wireless station through the first wireless access point.
10. A device for data transmission during wireless site roaming, characterized in that, The device includes: a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the method as described in any one of claims 1-7.
