Roaming method, apparatus, electronic device, and medium

CN122909548APending Publication Date: 2026-10-13NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610953958.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-29
Publication Date
2026-10-13

AI Technical Summary

Technical Problem

[0003]然而,当无线终端(STA)在不同AP间发生三层漫游时,为保证其IP地址不变且业务不中断,传统解决方案要求网络中的所有AP在上行接口预先静态放通全部可能的用户VLAN,未关联特定VLAN终端的AP(Access Point,接入点),仍需持续处理该VLAN的广播/组播报文(如ARP、DHCP),造成CPU、内存及上行带宽资源的无效消耗

Benefits of technology

本说明书实施例中,AC可以按需为AP分配VLAN配置。当终端未发生漫游时,AP仅处理本AP下活跃用户所属VLAN的流量,不用处理其他VLAN的广播/组播流量,从而减低计算资源的占用,为AP下的用户提供更高的转发资源与更低时延。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122909548A_ABST
    Figure CN122909548A_ABST
Patent Text Reader

Abstract

The present specification provides a roaming method, device, electronic equipment and medium. The method comprises: obtaining a first signal strength of a terminal on an original access point (AP) and a second signal strength of the terminal on a target AP, the terminal being associated with the original AP, and the terminal belonging to a target virtual local area network (VLAN); if the first signal strength is less than a first trigger threshold and the second signal strength is greater than or equal to a second trigger threshold, performing roaming trend detection on the terminal, the second trigger threshold being greater than or equal to the first trigger threshold; if it is detected that the terminal has a roaming trend, sending a target VLAN configuration to the target AP; and if the terminal is associated with the target AP within a first preset time period after the target VLAN configuration is sent to the target AP, sending an activation instruction to the target AP.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of communication technology, and in particular to roaming methods, devices, electronic devices and media. Background Technology

[0002] In high-density wireless networks such as those in large enterprises and industrial parks, multiple VLANs (Virtual Local Area Networks) are typically used to logically isolate different types of service terminals (such as office, visitor, and IoT devices). This design effectively limits broadcast domains, improves network security, and optimizes bandwidth utilization.

[0003] However, when a wireless terminal (STA) roams between different access points (APs) at Layer 3, in order to ensure that its IP address remains unchanged and services are not interrupted, traditional solutions require all APs in the network to pre-statically enable all possible user VLANs on their uplink interfaces. APs (Access Points) that are not associated with a specific VLAN terminal still need to continuously process broadcast / multicast messages (such as ARP and DHCP) of that VLAN, resulting in the ineffective consumption of CPU, memory, and uplink bandwidth resources. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this specification provides roaming methods, devices, electronic devices, and media.

[0005] According to a first aspect of the embodiments of this specification, a roaming method is provided, the method comprising: acquiring a first signal strength of a terminal on an original access point (AP) and a second signal strength on a target AP, the terminal being associated with the original AP and the terminal belonging to a target virtual local area network (VLAN); if the first signal strength is less than a first trigger threshold and the second signal strength is greater than or equal to a second trigger threshold, then performing roaming trend detection on the terminal, the second trigger threshold being greater than or equal to the first trigger threshold; if a roaming trend is detected in the terminal, then sending a target VLAN configuration to the target AP; if, within a first preset time period after sending the target VLAN configuration to the target AP, the terminal is associated with the target AP, then sending an activation command to the target AP.

[0006] According to a second aspect of the embodiments of this specification, a roaming method is provided, the method comprising: sending the signal strength of a terminal to an access controller (AC), the terminal belonging to a target virtual local area network (VLAN); receiving a target VLAN configuration sent by the AC; if an association request is received from the terminal, associating with the terminal; and if an activation command is received from the AC, forwarding traffic of the target VLAN according to the VLAN configuration.

[0007] According to a third aspect of the embodiments of this specification, a roaming device is provided, comprising: a first acquisition module, configured to acquire a first signal strength of a terminal on an original access point (AP) and a second signal strength on a target AP, wherein the terminal is associated with the original AP and the terminal belongs to a target virtual local area network (VLAN); a trend detection module, configured to perform roaming trend detection on the terminal if the first signal strength is less than a first trigger threshold and the second signal strength is greater than or equal to a second trigger threshold, wherein the second trigger threshold is greater than or equal to the first trigger threshold; a configuration sending module, configured to send a target VLAN configuration to the target AP if a roaming trend is detected in the terminal; and an activation command sending module, configured to send an activation command to the target AP if the terminal is associated with the target AP within a first preset time period after the target VLAN configuration is sent to the target AP.

[0008] According to a fourth aspect of the embodiments of this specification, a roaming device is provided, comprising: a signal strength transmitting module for transmitting the signal strength of a terminal to an access controller (AC), the terminal belonging to a target virtual local area network (VLAN); a configuration receiving module for receiving a target VLAN configuration transmitted by the AC; an association module for associating with the terminal if an association request is received from the terminal; and an activation module for forwarding traffic of the target VLAN according to the VLAN configuration if an activation command is received from the AC.

[0009] According to a fifth aspect of the embodiments of this specification, an electronic device is provided, comprising: processor; Memory used to store processor-executable instructions; The processor is configured to execute the roaming method of the first aspect, the second aspect, or any corresponding embodiment thereof described above.

[0010] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a computer to perform the roaming method of the first aspect, the second aspect, or any corresponding embodiment thereof described above.

[0011] The technical solutions provided in the embodiments of this specification may include the following beneficial effects: In the embodiments described in this specification, the AC can allocate VLAN configurations to the AP as needed. When the terminal is not roaming, the AP only processes the traffic of the VLAN to which the active user under this AP belongs, and does not need to process the broadcast / multicast traffic of other VLANs, thereby reducing the consumption of computing resources and providing users under the AP with higher forwarding resources and lower latency.

[0012] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this specification. Attached Figure Description

[0013] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this specification and, together with the description, serve to explain the principles of this specification.

[0014] Figure 1 This is a schematic diagram of a system architecture illustrated in this specification according to an exemplary embodiment.

[0015] Figure 2 This is a flowchart illustrating a roaming method according to an exemplary embodiment of this specification.

[0016] Figure 3 This is a network topology diagram illustrated in this specification according to another exemplary embodiment.

[0017] Figure 4 This is a hardware structure diagram of a computer device containing the roaming device in an embodiment of this specification.

[0018] Figure 5 This is a block diagram illustrating a roaming device according to an exemplary embodiment of this specification.

[0019] Figure 6 This specification illustrates a block diagram of another roaming device according to an exemplary embodiment. Detailed Implementation

[0020] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this specification as detailed in the appended claims.

[0021] The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” as used in this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0022] It should be understood that although the terms first, second, third, etc., may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this specification, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0023] The embodiments described in this specification will now be described in detail.

[0024] The following combination Figure 1 The system architecture of the roaming methods and apparatus applicable to the embodiments of this specification will be described. It should be noted that... Figure 1 The examples shown are merely examples of system architectures that can be applied to the embodiments of this specification, in order to help those skilled in the art understand the technical content of this specification, but do not mean that the embodiments of this specification cannot be used in other devices, systems, environments or scenarios.

[0025] Figure 1 This is a schematic diagram of a system architecture illustrated in this specification according to an exemplary embodiment.

[0026] like Figure 1 As shown, the system architecture may include, for example, a wireless terminal (terminal), an AP (Access Point), and an AC (Access Controller).

[0027] The terminal can be any device that supports WiFi, such as desktop computers, laptops, tablets, and smartphones with wireless network cards.

[0028] APs can be used to provide bridging functionality between wireless clients and local area networks (LANs), performing wireless-to-wired and wired-to-wireless frame conversion between wireless clients and LANs.

[0029] An authentication controller (AC) can be used to control and manage the access points (APs) associated with it in a wireless LAN. The AC can also provide authentication services to WLAN users by exchanging information with an authentication server.

[0030] The roaming method provided in the embodiments of this specification will be described in detail below. Figure 2 As shown, Figure 2 This is a flowchart illustrating a roaming method according to an exemplary embodiment of this specification. This method can be applied, for example, to AC. The roaming method provided in the embodiments of this specification may include the following steps.

[0031] In step 210, the first signal strength of the terminal on the original AP and the second signal strength on the target AP are obtained.

[0032] According to the embodiments in this specification, the original AP is the AP associated with the terminal before roaming, and the target AP is the AP to which the roaming is intended. The VLAN to which the terminal belongs can be referred to as the target VLAN.

[0033] Optionally, the target AP can be, for example, a neighboring AP whose distance to the terminal is less than a distance threshold. The distance threshold can be set according to actual needs. For example, the distance between the terminal and the AP can be characterized by signal strength; the stronger the signal, the smaller the distance. The AC can, for example, receive a terminal measurement report sent by the original AP. The terminal measurement report can, for example, include the signal strength of APs surrounding the terminal. Then, based on the terminal measurement report, neighboring APs with signal strength greater than a strength threshold are determined as the target AP. The signal strength threshold can be set according to actual needs.

[0034] Optionally, the originating AP and the target AP can send the terminal's signal strength to the AC at preset intervals. Alternatively, the AC can, for example, proactively request the originating AP to obtain the terminal's first signal strength and the target AP to obtain the terminal's second signal strength at preset intervals. The signal strength may include, for example, RSSI (Received Signal Strength Indication).

[0035] According to embodiments of this specification, the original AP may be the AP currently associated with the terminal.

[0036] In step 220, if the first signal strength is less than the first trigger threshold and the second signal strength is greater than or equal to the second trigger threshold, then roaming trend detection is performed on the terminal, where the second trigger threshold is greater than or equal to the first trigger threshold.

[0037] According to embodiments of this specification, the AC can, for example, continuously collect the third signal strength of the terminal at the original AP and the fourth signal strength at the target AP during the detection period. If the third signal strength and the fourth signal strength satisfy the strength condition and the stability condition, it is determined that the terminal has a roaming trend.

[0038] The strength conditions may include, for example, the following: the signal strength difference between the target AP and the original AP remains greater than a difference threshold for a second preset duration; and / or the first signal strength is less than a first confirmation threshold and the second signal strength is greater than or equal to a second confirmation threshold. The difference threshold, the first confirmation threshold, and the second confirmation threshold can be set according to actual needs. Specifically, the first confirmation threshold is less than or equal to the second confirmation threshold, the first confirmation threshold is less than a first trigger threshold, and the second confirmation threshold is less than a second first trigger threshold.

[0039] Stability conditions may include, for example, that the variance calculated for the signal strength difference between the target AP and the original AP during the detection period is less than a fluctuation threshold. The fluctuation threshold can be set according to actual needs.

[0040] Optionally, in addition to signal strength, multiple dimensions such as packet loss rate, link rate, and terminal motion trajectory prediction (based on a motion model trained on historical roaming data) can be considered to determine the strength condition. For example, the strength condition could be: the weighted sum of signal strength, packet loss rate, and link rate is greater than a preset score, and the terminal motion trajectory prediction result indicates that within a preset time period, the difference between the distance from the terminal to the original AP and the distance from the terminal to the target AP is greater than a preset difference. The preset score and preset difference can be set according to actual needs.

[0041] In step 230, if a roaming trend is detected in the terminal, the target VLAN configuration is sent to the target AP.

[0042] According to the embodiments in this specification, after the target AP receives the target VLAN configuration sent by the AC, if it receives an association request sent by the terminal, it will associate with the terminal.

[0043] In step 240, if the terminal associates with the target AP within the first preset time period after the target VLAN configuration is sent to the target AP, an activation command is sent to the target AP.

[0044] According to the embodiments in this specification, after association, if the target AP receives an activation command sent by the AC, it will forward the traffic of the target VLAN according to the VLAN configuration.

[0045] Optionally, after association, the target AP can send an association notification to the AC. If the AC receives the association notification from the target AP, it determines that the terminal is associated with the target AP.

[0046] According to the embodiments in this specification, the AC can assign VLAN configurations to the AP as needed. When a terminal is not roaming, the AP only processes traffic from the VLAN of active users under its own AP, without processing broadcast / multicast traffic from other VLANs, thereby reducing the consumption of computing resources and providing users under the AP with higher forwarding resources and lower latency. When a terminal is roaming, the AP can process traffic from the target VLAN according to the VLAN configuration issued by the AC.

[0047] Secondly, it also implements VLAN isolation boundaries, narrows the broadcast domain, conforms to the principle of least privilege, and reduces the risk of lateral movement attacks within the network. Furthermore, the AP's hardware table load is only related to currently active users, rather than the total number of VLANs, enabling a single AP to support a larger number of terminals and VLANs.

[0048] According to the embodiments in this specification, the pre-deployment mechanism ensures that the VLAN configuration is ready before roaming, and the service switching latency can be as low as milliseconds, enabling zero-aware roaming for real-time services such as voice and video.

[0049] Optionally, if the terminal associates with the target AP within the first preset time period after the target VLAN configuration is sent to the target AP, the AC can send a configuration deletion command to the original AP. After receiving the configuration deletion command, the original AP can delete the local target VLAN configuration, thereby ceasing to forward traffic from the target VLAN.

[0050] Optionally, if the terminal does not associate with the target AP within the first preset time period after the target VLAN configuration is sent to the target AP, a configuration rollback command is sent to the target AP. After receiving the configuration rollback command, the target AP can roll back the target VLAN configuration.

[0051] According to the embodiments in this specification, by configuring a rollback mechanism, it can be ensured that the network configuration can be automatically restored in abnormal scenarios, thus avoiding resource leakage.

[0052] Based on the foregoing embodiments, the following combination Figure 3 The roaming method described in this specification will be further illustrated by another embodiment. For example... Figure 3 The diagram shown illustrates a network topology where a roaming method can be applied, according to an exemplary embodiment. This network may include an AC, AP1, AP2, and STAs (terminals).

[0053] AC and AP1 and AP2 can be connected via a switch, which may include, but is not limited to, a PoE switch. AP1 manages VLANs VLAN1 and VLAN2, and AP2 manages VLANs VLAN1 and VLAN3. Initially, the STA under AP2 is configured with VLAN3.

[0054] The AC collects the RSSI values ​​of the STAs it detects from each AP at predetermined intervals. For example, the predetermined interval is 500ms.

[0055] The AC (Acceptance Control) is configured with a trigger threshold and an acknowledgment threshold. The trigger threshold is higher, and the acknowledgment threshold is lower. For example, the trigger threshold could be -65dBm, and the acknowledgment threshold could be -70dBm.

[0056] When the RSSI of the STA at the original AP is lower than the trigger threshold, and the RSSI of the potential target AP is higher than the trigger threshold, the STA enters the "roaming candidate state".

[0057] After entering the "roaming candidate state", roaming trend detection can be further performed on the STA. Only when the RSSI difference between the original AP and the target AP continuously exceeds the difference threshold (e.g., 3dBm) and the RSSI between the original AP and the target AP reaches the degradation / optimization level indicated by the confirmation threshold, is it initially determined that there is roaming intention.

[0058] Then, you can observe the signal trend using a sliding window (e.g., 2 seconds). If the signal trend is stable within the window (e.g., the variance of the RSSI difference is less than the set value), it is finally confirmed as a true roaming trend; if the signal fluctuates violently, it is determined to be a temporary jitter and no action is triggered.

[0059] According to the embodiments in this specification, the dual threshold and time window mechanism can effectively filter signal jitter and significantly improve the accuracy of roaming prediction.

[0060] AC can perform full lifecycle management of each dynamically issued VLAN configuration, which may include the following stages: Pre-deployment phase: After the AC confirms the roaming trend of the STA, it pre-deploys the VLAN configuration to which the STA belongs to the target AP. However, this configuration is in an "active" state and does not forward service traffic. This is to complete the configuration in advance and eliminate the configuration deployment delay during roaming handover.

[0061] Activation Phase: After the AC detects that the STA has successfully associated with the target AP, it sends an activation command to the target AP. The target AP then begins forwarding the service traffic of that VLAN normally. Simultaneously, the AC can start a "roaming confirmation timer" (e.g., 5 seconds). Rollback Phase: If the "roaming confirmation timer" expires and the AC still hasn't received confirmation that the STA is stably present on the target AP (e.g., due to roaming failure, STA disconnection, etc.), it automatically triggers a rollback, sending a rollback command to the target AP to delete the previously pre-issued VLAN configuration and prevent configuration remnants.

[0062] Cleanup phase: When the AC confirms through signal strength or deassociation events that the STA has completely left the source AP (e.g., the signal has been continuously below the departure threshold for more than a time window), it sends a command to the source AP to delete the VLAN configuration to which the STA belongs, thus completely releasing the resources.

[0063] According to the embodiments in this specification, VLAN configuration lifecycle management ensures that network configuration can be automatically restored in abnormal scenarios, avoiding resource leakage.

[0064] Optionally, for STAs that support 802.11k / v, the AC can proactively leverage protocol capabilities to enhance prediction accuracy and guide roaming.

[0065] For example, when a STA's signal weakens, the AC can send an 802.11k neighbor measurement request to it via the AP. Analyzing the measurement report returned by the STA helps confirm the optimal target AP and verifies it against signal prediction results. After determining the roaming trend, the target AP can be sent to the terminal via the 802.11v (Neighbor Recommendation Field (BSS Transition Management Request)) to guide the STA to proactively roam to the target AP, achieving a smoother handover.

[0066] For example, when a STA accesses AP1 and obtains an IP address for VLAN 2, network communication is normal. When AP1 moves to AP2, the AC integrates the signal strength of the STA's transmitted packets, which is fed back by the AP in real time. If the STA's signal strength on AP1 weakens by more than 3dBm and is below the trigger threshold, the AC sends an 802.11k neighbor measurement request to the STA.

[0067] After receiving a measurement request, STA scans the surrounding APs and sends a measurement report to AP1, which then forwards it to AC. AC analyzes the report and finds that the nearest neighbor of STA is AP2. When the signal strength of STA on AP1 weakens by more than 2dBm again, falling below the confirmation threshold, the 802.11k neighbor AP report measurement process is repeated. After AC analyzes the message, it confirms again that the nearest neighbor of STA is AP2, and STA enters the candidate state.

[0068] The AC pre-deploys VLAN 2 configuration to AP2 and simultaneously starts sliding time window monitoring. If the signal trend is stable, the roaming intention is confirmed.

[0069] The AC fills AP2 into the neighbor recommendation field of the 802.11v message and sends it to the STA, guiding the terminal to actively connect to AP2. The STA keeps its VLAN 2 IP address unchanged, connects to AP2, and communication is normal.

[0070] When the STA completely leaves AP2, the AC detects the departure event and sends a message to AP2 to delete the VLAN 2 configuration. AP2 will no longer process VLAN 2 broadcast and multicast packets, and the device performance will return to optimal. If the roaming acknowledgment timer expires without receiving an associated acknowledgment, the fallback mechanism will be automatically triggered, deleting the pre-delivered configuration on AP2.

[0071] According to the embodiments in this specification, when the terminal is not roaming, the AP only processes traffic from the VLAN of the active user under this AP, without processing broadcast / multicast traffic from other VLANs. This reduces the consumption of computing resources (e.g., CPU utilization can be reduced by 30%-50%), providing users under the AP with higher forwarding resources and lower latency. Furthermore, it achieves VLAN isolation boundaries, narrows the broadcast domain, conforms to the principle of least privilege, and reduces the risk of lateral movement attacks within the network.

[0072] According to the embodiments in this specification, the hardware table load of the AP is only related to the currently active users, rather than the total number of VLANs, which enables a single AP to support a larger number of terminals and VLANs, making it particularly suitable for ultra-dense deployment scenarios such as smart parks and large venues.

[0073] According to the embodiments in this specification, the pre-deployment mechanism ensures that the VLAN configuration is ready before roaming, and the service switching latency can be as low as milliseconds, enabling zero-aware roaming for real-time services such as voice and video.

[0074] Corresponding to the embodiments of the aforementioned methods, this specification also provides embodiments of roaming devices and the terminals to which they are applied.

[0075] The embodiments of the roaming device described in this specification can be applied to computer devices, such as servers or terminal devices. The device embodiments can be implemented through software, hardware, or a combination of both. Taking software implementation as an example, as a logical device, it is formed by its processor reading the corresponding computer program instructions from non-volatile memory into memory and executing them. From a hardware perspective, such as... Figure 4 The diagram shown is a hardware structure diagram of a computer device containing the roaming device according to an embodiment of this specification. Except for... Figure 4 In addition to the processor 410, memory 430, network interface 420, and non-volatile memory 440 shown, the server or electronic device where the device 431 is located in the embodiment may also include other hardware depending on the actual function of the computer device, which will not be described in detail here.

[0076] like Figure 5 As shown, Figure 5 This is a block diagram illustrating a roaming device according to an exemplary embodiment of this specification, the device comprising: The first acquisition module 510 is used to acquire the first signal strength of the terminal on the original access point AP and the second signal strength on the target AP. The terminal is associated with the original AP and the terminal belongs to the target virtual local area network VLAN. The trend detection module 520 is used to detect the roaming trend of the terminal if the first signal strength is less than the first trigger threshold and the second signal strength is greater than or equal to the second trigger threshold, wherein the second trigger threshold is greater than or equal to the first trigger threshold. The configuration sending module 530 is used to send the target VLAN configuration to the target AP if a roaming trend is detected in the terminal. The activation command sending module 540 is used to send an activation command to the target AP if the terminal associates with the target AP within a first preset time period after the target VLAN configuration is sent to the target AP.

[0077] Optionally, the trend detection module may include: The acquisition submodule is used to continuously acquire the third signal strength of the terminal at the original AP and the fourth signal strength at the target AP during the detection period; The trend determination submodule is used to determine that the terminal has a roaming trend if the strength of the third signal and the strength of the fourth signal satisfy the strength condition and the stability condition.

[0078] Optionally, the strength conditions may include: The terminal operates when the signal strength difference between the target AP and the original AP remains greater than a second preset threshold for a continuous period of time; and / or The first signal strength is less than the first confirmation threshold and the second signal strength is greater than or equal to the second confirmation threshold.

[0079] Alternatively, stability conditions may include: During the detection period, the variance of the signal strength difference between the target AP and the original AP is less than the fluctuation threshold.

[0080] Optionally, the device may further include: The deletion command sending module is used to send a configuration deletion command to the original AP if the terminal associates with the target AP within the first preset time period after the target VLAN configuration is sent to the target AP.

[0081] Optionally, the device may further include: The rollback command sending module is used to send a configuration rollback command to the target AP if the terminal does not associate with the target AP within the first preset time period after the target VLAN configuration is sent to the target AP.

[0082] Optionally, the device may further include: The report receiving module is used to receive the original terminal measurement reports sent by the AP; The target AP determination module is used to determine neighboring APs whose signal strength is greater than the strength threshold, based on the terminal measurement report, and to designate them as target APs.

[0083] Accordingly, this specification also provides an electronic device, which includes a processor and a memory for storing processor-executable instructions; wherein the processor is configured to: acquire a first signal strength of the terminal on the original access point (AP) and a second signal strength on the target AP, wherein the terminal is associated with the original AP and belongs to the target virtual local area network (VLAN); if the first signal strength is less than a first trigger threshold and the second signal strength is greater than or equal to a second trigger threshold, then perform roaming trend detection on the terminal, wherein the second trigger threshold is greater than or equal to the first trigger threshold; if a roaming trend is detected in the terminal, then send a target VLAN configuration to the target AP; if the terminal associates with the target AP within a first preset time period after sending the target VLAN configuration to the target AP, then send an activation command to the target AP.

[0084] like Figure 6 As shown, Figure 6 This is a block diagram illustrating another roaming device according to an exemplary embodiment of this specification, the device comprising: The signal strength transmission module 610 is used to send the signal strength of the terminal to the access controller AC. The terminal belongs to the target virtual local area network (VLAN). Configure the receiving module 620 to receive the target VLAN configuration sent by the AC; The association module 630 is used to associate with the terminal if it receives an association request from the terminal. The activation module 640 is used to forward traffic of the target VLAN according to the VLAN configuration if it receives an activation command sent by the AC.

[0085] Optionally, the device may further include: The rollback module is used to roll back the configuration of the target VLAN if a configuration rollback command is received from the AC.

[0086] Accordingly, this specification also provides an electronic device including a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: send the signal strength of a terminal to an access controller AC, the terminal belonging to a target virtual local area network VLAN; receive the target VLAN configuration sent by the AC; associate with the terminal if an association request is received from the terminal; and forward the traffic of the target VLAN according to the VLAN configuration if an activation instruction is received from the AC.

[0087] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.

[0088] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of the solution in this specification according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0089] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0090] Other embodiments of this specification will readily occur to those skilled in the art upon consideration of the specification and practice of the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations that follow the general principles of this specification and include common knowledge or customary techniques in the art not claimed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this specification are indicated by the following claims.

[0091] It should be understood that this specification is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this specification is limited only by the appended claims.

[0092] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.

Claims

1. A roaming method applied to an access controller (AC), characterized in that, The method includes: The terminal acquires a first signal strength on the original access point (AP) and a second signal strength on the target AP, wherein the terminal is associated with the original AP and belongs to the target virtual local area network (VLAN). If the first signal strength is less than the first trigger threshold and the second signal strength is greater than or equal to the second trigger threshold, then roaming trend detection is performed on the terminal, where the second trigger threshold is greater than or equal to the first trigger threshold. If a roaming trend is detected in the terminal, the target VLAN configuration is sent to the target AP; If the terminal associates with the target AP within the first preset time period after sending the target VLAN configuration to the target AP, then an activation command is sent to the target AP.

2. The method according to claim 1, characterized in that, The roaming trend detection of the terminal includes: During the detection period, the third signal strength of the terminal at the original AP and the fourth signal strength at the target AP are continuously collected; If the third signal strength and the fourth signal strength satisfy the strength condition and the stability condition, then it is determined that the terminal has a roaming trend.

3. The method according to claim 2, characterized in that, The strength conditions include: The terminal is in a situation where the signal strength difference between the target AP and the original AP remains greater than a second preset duration than a difference threshold; and / or The first signal strength is less than the first confirmation threshold and the second signal strength is greater than or equal to the second confirmation threshold.

4. The method according to claim 2, characterized in that, The stability conditions include: During the detection period, the variance of the signal strength difference between the target AP and the original AP is less than the fluctuation threshold.

5. The method according to claim 1, characterized in that, The method further includes: If the terminal associates with the target AP within the first preset time period after sending the target VLAN configuration to the target AP, then a configuration deletion command is sent to the original AP.

6. The method according to claim 1, characterized in that, The method further includes: If the terminal does not associate with the target AP within the first preset time period after sending the target VLAN configuration to the target AP, a configuration rollback command is sent to the target AP.

7. The method according to claim 1, characterized in that, The method further includes: Receive the terminal measurement report sent by the original AP; Based on the terminal measurement report, neighboring APs with signal strength greater than the strength threshold are identified as the target APs.

8. A roaming method applied to an access point (AP), characterized in that, The method includes: Send the signal strength of the terminal, which belongs to the target virtual local area network (VLAN), to the access controller AC. Receive the target VLAN configuration sent by the AC; If an association request is received from the terminal, then associate with the terminal; If an activation command is received from the AC, the traffic of the target VLAN is forwarded according to the VLAN configuration.

9. The method according to claim 8, characterized in that, The method further includes: If a configuration rollback command is received from the AC, the configuration of the target VLAN is rolled back.

10. A roaming device, characterized in that, The device includes: The first acquisition module is used to acquire the first signal strength of the terminal on the original access point (AP) and the second signal strength on the target AP. The terminal is associated with the original AP and the terminal belongs to the target virtual local area network (VLAN). A trend detection module is used to perform roaming trend detection on the terminal if the first signal strength is less than a first trigger threshold and the second signal strength is greater than or equal to a second trigger threshold, wherein the second trigger threshold is greater than or equal to the first trigger threshold. The configuration sending module is used to send the target VLAN configuration to the target AP if a roaming trend is detected in the terminal; The activation command sending module is used to send an activation command to the target AP if the terminal associates with the target AP within a first preset time period after the target VLAN configuration is sent to the target AP.

11. A roaming device, characterized in that, The device includes: The signal strength transmission module is used to send the signal strength of the terminal to the access controller AC, wherein the terminal belongs to the target virtual local area network (VLAN). Configure the receiving module to receive the target VLAN configuration sent by the AC; An association module is used to associate with the terminal if it receives an association request from the terminal. The activation module is used to forward the traffic of the target VLAN according to the VLAN configuration if it receives an activation command sent by the AC.

12. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store processor-executable instructions; The processor is configured to perform the roaming method according to any one of claims 1 to 9.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the roaming method according to any one of claims 1 to 9.