Cloud roaming method and system
By using the cloud roaming platform and the 802.11k and 802.11v protocols to directly query the signal strength of the second router and trigger device switching, the problem of uneven router switching process is solved, achieving seamless roaming and improved user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD
- Filing Date
- 2023-09-06
- Publication Date
- 2026-05-15
AI Technical Summary
The current mainstream roaming solutions have an uneven router switching process, resulting in excessively long network outages for terminal devices and affecting user experience.
The system receives weak signal alarm information through the cloud roaming platform, uses the 802.11k and 802.11v protocols to directly query the signal strength of the second router and trigger device switching. During the optimal router switching process, the load on the first router is reduced, achieving seamless switching.
It shortens the time for devices to switch from the first router to the second router, improves the user experience, reduces the load on the first router, and achieves seamless roaming.
Smart Images

Figure CN118804134B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of cloud roaming technology, specifically to a cloud roaming method and system. Background Technology
[0002] Nowadays, people have higher requirements for network latency and coverage. In a large home space, if only one router is installed, the network quality will degrade in areas far from the router due to the limited coverage area of the router. Therefore, more and more families are installing multiple routers in their homes, which has led to a variety of WIFI roaming solutions, so that when terminal devices move to different areas of the home, they can automatically switch to the router with better network quality.
[0003] However, the router switching process in current mainstream roaming solutions is not smooth. Terminal devices go through multiple stages of disconnection, scanning, registration, and reconnection, resulting in excessively long disconnection times for terminal devices and seriously affecting user experience. Summary of the Invention
[0004] This application provides a cloud roaming method and system to solve the technical problem that the router switching process in the current mainstream roaming scheme is not smooth, and the terminal device will go through multiple stages of network disconnection-scanning-registration-reconnection, resulting in excessively long network disconnection time for the terminal device and seriously affecting the user experience.
[0005] In a first aspect, embodiments of this application provide a cloud roaming method, including:
[0006] Receive weak signal alarm information of the first signal strength of the downstream device sent by the first router currently connected to the downstream device;
[0007] If the frequency of sending the weak signal alarm information is less than the frequency threshold, and the connected device supports the 802.11k protocol, then based on the 802.11k protocol, a command to query the signal strength of the connected device is sent to the second router to obtain the second signal strength; the second router is any router other than the first router.
[0008] If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the connected device supports the 802.11v protocol, then based on the 802.11v protocol, a command to disconnect the connected device and a command to trigger the connected device to switch to the optimal router are sent to the first router.
[0009] The optimal router is the router with the second highest signal strength among multiple second routers.
[0010] In one embodiment, after receiving the weak signal alarm information of the first signal strength of the downstream device sent by the first router currently connected to the downstream device, the process includes:
[0011] If the frequency of sending the weak signal alarm information is less than the frequency threshold, and the connected device does not support the 802.11k protocol, then the first router is controlled to scan and obtain the second signal strength corresponding to the second router.
[0012] If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, then send an instruction to the first router to disconnect the downstream device, and control the first router to guide the downstream device to connect to the optimal router.
[0013] In one embodiment, obtaining the second signal strength includes:
[0014] If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the connected device does not support the 802.11v protocol, then a command to disconnect the connected device is sent to the first router, and the first router is controlled to guide the connected device to the optimal router.
[0015] In one embodiment, sending the instruction to the first router to disconnect the connected device includes:
[0016] A hash operation is performed on the online duration of the downstream device, the type of the downstream device, and the broadband account of the first router to which the downstream device is connected, to obtain a unique identifier for the downstream device;
[0017] Send a command to the first router to disconnect the downstream device corresponding to the unique identifier.
[0018] In one embodiment, the optimal router at the current moment is determined based on the following steps:
[0019] The weak signal alarm information at the current moment, the second signal strength corresponding to multiple second routers at the current moment, and the historical roaming trajectory information of the previously mentioned downstream device between different routers are input into the optimal roaming model to obtain the optimal router at the current moment.
[0020] The optimal roaming model is obtained by training any deep neural network model based on the weak signal alarm information at a historical moment, the second signal strength corresponding to multiple second routers at a historical moment, and the historical roaming trajectory information of the connected device between different routers before the historical moment.
[0021] Secondly, embodiments of this application provide a cloud roaming method, including:
[0022] Send a weak signal alarm message to the cloud roaming platform, indicating the first signal strength of the connected device at the current moment;
[0023] Based on the 802.11v protocol, it receives the instruction from the cloud roaming platform to disconnect the downstream device and guides the downstream device to disconnect from itself;
[0024] Based on the 802.11v protocol, the system receives an instruction from the cloud roaming platform to trigger the connected device to switch to the optimal router, and triggers the connected device to switch to the optimal router. The optimal router is the router with the second maximum signal strength among multiple second routers, and the second router is any router other than itself.
[0025] In one embodiment, after sending a weak signal alarm message about the first signal strength of the downstream device currently connected to the cloud roaming platform, the process includes:
[0026] Scan and obtain the second signal strength corresponding to the second router;
[0027] The second signal strength is sent to the cloud roaming platform;
[0028] Receive the instruction from the cloud roaming platform to disconnect the connected device;
[0029] The device is guided to disconnect from itself and connect to the optimal router.
[0030] In one embodiment, receiving the instruction from the cloud roaming platform to disconnect the connected device includes:
[0031] The system receives an instruction from the cloud roaming platform to disconnect the downstream device corresponding to a unique identifier. The unique identifier is obtained by the cloud roaming platform through a hash operation on the downstream device's online duration, the type of the downstream device, and the broadband account to which the downstream device is connected.
[0032] Thirdly, embodiments of this application provide a cloud roaming system, including:
[0033] Cloud roaming platform and first router;
[0034] The cloud roaming platform is used for:
[0035] Receive weak signal alarm information of the first signal strength of the downstream device sent by the first router currently connected to the downstream device;
[0036] If the frequency of sending the weak signal alarm information is less than the frequency threshold, and the connected device supports the 802.11k protocol, then based on the 802.11k protocol, a command to query the signal strength of the connected device is sent to the second router to obtain the second signal strength; the second router is any router other than the first router.
[0037] If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the connected device supports the 802.11v protocol, then based on the 802.11v protocol, a command to disconnect the connected device and a command to trigger the connected device to switch to the optimal router are sent to the first router.
[0038] The optimal router is the router corresponding to the second maximum signal strength among multiple second routers;
[0039] The first router is used for:
[0040] Send a weak signal alarm message to the cloud roaming platform, indicating the first signal strength of the connected device at the current moment;
[0041] Based on the 802.11v protocol, it receives the instruction from the cloud roaming platform to disconnect the downstream device and guides the downstream device to disconnect from itself;
[0042] Based on the 802.11v protocol, the system receives an instruction from the cloud roaming platform to trigger the downstream device to switch its connection to the optimal router, and then triggers the downstream device to switch its connection to the optimal router.
[0043] Fourthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the cloud roaming method described in the first or second aspect.
[0044] The cloud roaming method and system provided in this application involve a cloud roaming platform receiving a weak signal alarm message from a first router currently connected to a downstream device, indicating the first signal strength of the downstream device. If the frequency of the weak signal alarm message is less than a frequency threshold, and the downstream device supports the 802.11k protocol, then a command to query the signal strength of the downstream device is sent to a second router based on the 802.11k protocol to obtain the second signal strength. If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the downstream device supports the 802.11v protocol, then a command to disconnect the downstream device and a command to trigger the downstream device to switch its connection to the optimal router are sent to the first router based on the 802.11v protocol. The optimal router is the router with the highest second signal strength among multiple second routers, and the second router is any router other than the first router. On the one hand, the cloud roaming platform directly sends the command to the second router to query the signal strength of the connected device, instead of forwarding the query command to the second router through the first router as in the traditional method. This reduces the utilization of the first router's central processing unit and memory, and improves the signal quality and response speed of the first router. On the other hand, the 802.11k protocol provides an interface for the second router and the connected device to request each other to measure the wireless signal strength. It can inform the connected device of the available second routers in advance, and can quickly select the optimal router when the connected device needs to roam. The 802.11v protocol will guide the connected device to quickly disconnect from the first router and switch to the optimal router. Therefore, it greatly shortens the time for the connected device to switch from the first router to the second router. In summary, the cloud roaming platform of this application achieves seamless switching of the connected device between the first and second routers and seamless network disconnection on the user side of the connected device by directly sending a command to the second router to query the signal strength of the connected device, and sending a command to the second router to query the signal strength of the connected device based on the 802.11k protocol, and sending a command to the first router based on the 802.11v protocol to disconnect the connected device and trigger the connected device to switch to the optimal router. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 This is one of the flowcharts illustrating the cloud roaming method provided in the embodiments of this application;
[0047] Figure 2This is a second schematic flowchart of the cloud roaming method provided in the embodiments of this application;
[0048] Figure 3 This is a communication signaling diagram of the cloud roaming system provided in the embodiments of this application;
[0049] Figure 4 This is one of the structural schematic diagrams of the cloud roaming device provided in the embodiments of this application;
[0050] Figure 5 This is the second schematic diagram of the cloud roaming device provided in the embodiments of this application;
[0051] Figure 6 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0052] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0053] Figure 1 This is one of the flowcharts illustrating the cloud roaming method provided in this application embodiment. (Refer to...) Figure 1 This application provides a cloud roaming method, which may include:
[0054] 101. Receive weak signal alarm information of the first signal strength of the downstream device sent by the first router connected to the downstream device at the current time;
[0055] 102. If the frequency of sending weak signal alarm information is less than the frequency threshold, and the connected device supports the 802.11k protocol, then based on the 802.11k protocol, send a command to the second router to query the signal strength of the connected device, and obtain the second signal strength;
[0056] The second router is any router other than the first router;
[0057] 103. If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the connected device supports the 802.11v protocol, then based on the 802.11v protocol, send an instruction to the first router to disconnect the connected device, and trigger the connected device to switch its connection to the optimal router.
[0058] The optimal router is the router with the second highest signal strength among multiple secondary routers.
[0059] Before step 101, the cloud roaming platform can locate all routers in any home space based on the router's IP and port. In step 101, when the cloud roaming platform receives a weak signal alarm message, it records the current time as the weak signal alarm time.
[0060] In step 102, the cloud roaming platform sends roaming configuration parameters to all routers in the home space in advance. On the router side, it configures the trigger delay for reporting weak signal alarm information and the frequency threshold for reporting weak signal alarm information. The trigger delay can be the duration during which the first router detects that the first signal strength of the connected device is less than the strength threshold. After this trigger delay, the first router starts reporting weak signal alarm information to the cloud roaming platform. The frequency threshold can be the limit on the number of times weak signal alarm information is reported to the cloud roaming platform within a specific time. Alternatively, the frequency threshold can be indirectly set by setting the interval time limit between two weak signal alarm messages.
[0061] Because traditional cloud roaming solutions do not consider the reporting frequency (i.e., reporting interval) of weak signal alarm information during the roaming process of downstream devices, the first router may frequently report weak signal alarm information during the roaming period, interrupting the cloud roaming process. On the one hand, this reduces the success rate of cloud roaming for downstream devices, and on the other hand, it can cause DDoS attacks on the cloud roaming platform in frequent low signal scenarios, reducing the capacity of the cloud roaming platform and triggering security mechanisms to block the IP of the first router, thus causing the cloud roaming function to become practically ineffective.
[0062] Therefore, by setting a reporting frequency threshold for weak signal alarm information (i.e., a reporting interval time threshold), the cloud roaming process can be initiated when the sending frequency of weak signal alarm information is less than the frequency threshold. This prevents weak signal alarm information from interrupting the cloud roaming process and causing DDoS attacks on the cloud roaming platform, thus ensuring the smooth operation of the cloud roaming process.
[0063] In step 103, the cloud roaming platform pre-deploys roaming configuration parameters to all routers within the home space and also configures a pause roaming interface on the router side. After initiating the cloud roaming process, based on all routers located before step 101, if the cloud roaming platform determines that a second router does not exist or that the second signal strength corresponding to the current optimal router is less than or equal to the first signal strength, it sends a pause roaming command to the first router. Within a preset duration, the first router will pause the cloud roaming process for its connected devices to address the situation where weak signal alarms are caused by frequent relocation of connected devices, even though the first router is actually the optimal router. Because the interaction between the router and the cloud roaming platform is paused, the router's memory and CPU usage are reduced, and the cloud roaming platform's capacity is improved.
[0064] Additionally, it's worth noting that current mainstream roaming solutions include AP (Access Point) + AC (Access Controller) networking and MESH networking. AP+AC networking, which combines an access point and an access controller, has high requirements for the home environment. Each area to be covered must have a network cable, meaning every room must have a network cable running through its walls, preferably Cat 5e or Cat 6 cable, to achieve bandwidth of 200Mbps or higher. MESH networking, or mesh network, requires multiple routers of the same brand and model for optimal network performance. Each router must be tri-band, with two bands used for internet access and the third for data transmission with other connected devices. Otherwise, during cloud roaming, devices cannot smoothly switch between different brands and models of routers, and internet speeds will be significantly affected when using non-tri-band routers.
[0065] In addition to the above, traditional cloud roaming solutions also have the following problems:
[0066] 1. The command to check the signal strength of the connected device needs to be forwarded to the second router through the first router, which increases the utilization of the first router's central processing unit and memory, causing the signal quality and response speed of the first router to decrease. This process is irreversible unless the user restarts the router.
[0067] 2. The system did not perform secondary signal strength checks and router switching for connected devices based on the 802.11k and 802.11v protocols. In other words, the router switching for connected devices was essentially still a process of disconnecting, scanning, registering, and reconnecting, resulting in excessively long network outage times for connected devices and severely impacting user experience.
[0068] The cloud roaming method provided in this embodiment involves the cloud roaming platform receiving a weak signal alarm message from the first router currently connected to the downstream device, indicating the first signal strength of the downstream device. If the sending frequency of the weak signal alarm message is less than a frequency threshold, and the downstream device supports the 802.11k protocol, then based on the 802.11k protocol, an instruction to query the signal strength of the downstream device is sent to the second router to obtain the second signal strength. If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the downstream device supports the 802.11v protocol, then based on the 802.11v protocol, an instruction to disconnect the downstream device and an instruction to trigger the downstream device to switch its connection to the optimal router are sent to the first router. The optimal router is the router corresponding to the maximum second signal strength among multiple second routers, and the second router is any router other than the first router. On the one hand, the cloud roaming platform directly sends the command to the second router to query the signal strength of the connected device, instead of forwarding the query command to the second router through the first router as in the traditional method. This reduces the utilization of the first router's central processing unit and memory, and improves the signal quality and response speed of the first router. On the other hand, the 802.11k protocol provides an interface for the second router and the connected device to request each other to measure the wireless signal strength. It can inform the connected device of the available second routers in advance, and can quickly select the optimal router when the connected device needs to roam. The 802.11v protocol will guide the connected device to quickly disconnect from the first router and switch to the optimal router. Therefore, it greatly shortens the time for the connected device to switch from the first router to the second router. In summary, this embodiment's cloud roaming platform achieves seamless switching between the connected devices and the second router by directly sending commands to the second router to query the signal strength of the connected devices, and by sending commands to the second router to query the signal strength of the connected devices based on the 802.11k protocol, and by sending commands to the first router based on the 802.11v protocol to disconnect the connected devices and trigger the connected devices to switch to the optimal router. This ensures a seamless user experience and eliminates any network outages for the connected devices. In practical applications, there is no lag on the user side and the latency is below 500ms. Furthermore, during the handover process, the connected devices are preferentially guided to access the second router's 5GHz band.
[0069] In addition, the method in this embodiment has low requirements for the home environment, does not require network cables to reach every area to be covered, is easy to promote, and can also achieve seamless roaming of downstream devices without limiting the brand, model and frequency band of multiple routers.
[0070] In one embodiment, after receiving a weak signal alarm message regarding the first signal strength of the downstream device from the first router currently connected to the downstream device, the following can be included:
[0071] If the frequency of sending weak signal alarm information is less than the frequency threshold and the connected device does not support the 802.11k protocol, then control the first router to scan and obtain the second signal strength corresponding to the second router.
[0072] If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, then send a command to the first router to disconnect the downstream device, and control the first router to guide the downstream device to connect to the optimal router.
[0073] The above steps are performed by the first router instead of the downstream devices scanning themselves in the traditional cloud roaming solution, which can greatly shorten the scanning time. At the same time, the first router guides the downstream devices to connect to the optimal router. That is, the first router directly informs the downstream devices of the optimal router, and the downstream devices can connect directly, which greatly shortens the router switching time of the downstream devices, thereby realizing seamless roaming for the downstream devices.
[0074] Furthermore, after obtaining the second signal strength, it can include:
[0075] If the second signal strength corresponding to the current optimal router is greater than the first signal strength, and the downstream device does not support the 802.11v protocol, then send a command to the first router to disconnect the downstream device, and control the first router to guide the downstream device to connect to the optimal router.
[0076] Before the above steps, the optimal router has already been found. Even if the downstream device does not support the 802.11v protocol, the first router can still guide the downstream device to connect to the optimal router. That is, the first router directly informs the downstream device of the optimal router, and the downstream device can connect directly, which greatly shortens the router switching time of the downstream device, thereby realizing seamless roaming of the downstream device.
[0077] In this embodiment, the cloud roaming platform controls the first router and uses the first router to guide the downstream devices to switch to the optimal router. Even when the downstream devices do not support the 802.11k or 802.11v protocols, seamless roaming can still be achieved.
[0078] In one embodiment, sending a command to the first router to disconnect the connected device may include:
[0079] The system performs a hash operation on the online duration of the downstream device, the type of the downstream device, and the broadband account of the first router to which the downstream device is connected, to obtain a unique identifier for the downstream device. It then sends a command to the first router to disconnect the downstream device corresponding to the unique identifier and receives the downstream device offline event sent by the first router. The system records the current time as the roaming start time of the downstream device.
[0080] When the downstream device switches to the second router, the cloud roaming platform receives the downstream device online event sent by the second router, the cloud roaming ends, and the current time is recorded as the downstream device roaming end time.
[0081] In traditional roaming schemes, when querying the signal strength and online / offline events of downstream devices, the corresponding downstream device is usually identified by its virtual identifier. The roaming results of the downstream device are tracked, and the access restriction on the first router is lifted when the roaming is confirmed to be successful. However, since the virtual identifier is randomly generated, the virtual identifiers of downstream devices reported by different routers are not anchored to the routers they are connected to. Therefore, it is not always possible to accurately find the correct downstream device through the virtual identifier, which leads to a longer tracking process and deviations in the tracking results. This makes it impossible to confirm whether the downstream device has roamed successfully, and thus it is impossible to lift the access restriction on the first router.
[0082] This embodiment obtains a unique identifier for the downstream device by performing a hash operation on the online duration of the downstream device, the type of the downstream device, and the broadband account of the first router to which the downstream device is connected. The first router is the router currently connected to by the downstream device. Since the downstream device switches between different routers when roaming, the first router is not fixed, but corresponds to the router that the downstream device is actually connected to at each moment. The unique identifier can uniquely correspond to the current connected router of the downstream device. Using this unique identifier, the downstream device can be anchored to the router it is connected to, thereby accurately tracking the roaming trajectory of the downstream device, confirming whether the downstream device has successfully roamed, and removing the access restriction on the first router.
[0083] Furthermore, based on the reporting of offline and online events of the downstream device, the cloud roaming platform can plan when to send instructions to other routers to query whether the downstream device is connected to other routers, thereby more accurately collecting the roaming trajectory of the downstream device and improving the accuracy of roaming data and the success rate of roaming. At the same time, compared with the traditional roaming method in which the cloud roaming platform actively queries whether the downstream device is online, this embodiment reports the status of the downstream device through the router, which simplifies the process and reduces latency exponentially. There is no need to calibrate the waiting time for querying, and the recorded roaming time is basically consistent with the actual user perception. At the same time, it avoids the increase in failure rate caused by channel inactivity when the cloud roaming platform actively queries.
[0084] In one embodiment, the optimal router at the current moment can be determined based on the following steps:
[0085] The weak signal alarm information at the current moment, the second signal strength corresponding to multiple second routers at the current moment, and the historical roaming trajectory information of the connected device between different routers before the current moment are input into the optimal roaming model to obtain the optimal router at the current moment.
[0086] The optimal roaming model is obtained by training any deep neural network model based on the weak signal alarm information at historical time, the second signal strength of multiple second routers at historical time, and the historical roaming trajectory information of the connected device between different routers before historical time.
[0087] In this embodiment, the optimal router for the current moment is selected by calculating the optimal roaming model obtained through big data training and optimization. Since the training data of this model includes weak signal alarm information, second signal strength, and roaming trajectory information of the downstream device, the output optimal router is not only the router corresponding to the maximum second signal strength among multiple second routers, but also the router calculated after combining weak signal alarm information and roaming trajectory information of the downstream device. Therefore, the selection of the optimal router is more accurate and reliable.
[0088] Figure 2 This is the second flowchart illustrating the cloud roaming method provided in this application's embodiments. (Refer to...) Figure 2 This application provides a cloud roaming method, which may include:
[0089] 201. Send a weak signal alarm message to the cloud roaming platform, indicating the first signal strength of the connected downstream device at the current moment;
[0090] 202. Based on the 802.11v protocol, receive the command to disconnect the downstream device sent by the cloud roaming platform, and guide the downstream device to disconnect from itself;
[0091] 203. Based on the 802.11v protocol, receive the instruction sent by the cloud roaming platform to trigger the connected device to switch to the optimal router, and trigger the connected device to switch to the optimal router.
[0092] The optimal router is the router with the second highest signal strength among multiple second routers, where a second router is any router other than itself.
[0093] The cloud roaming method provided in this embodiment involves a first router sending a weak signal alarm message indicating the current signal strength of the downstream device connected to it to the cloud roaming platform. Then, based on the 802.11v protocol, it receives a command from the cloud roaming platform to disconnect the downstream device and guides the downstream device to disconnect from itself. Finally, based on the 802.11v protocol, it receives a command from the cloud roaming platform to trigger the downstream device to switch its connection to the optimal router and triggers the downstream device to switch its connection to the optimal router. The optimal router is the router with the highest second signal strength among multiple second routers, and any second router other than the first router. On the one hand, before receiving the instruction to disconnect the downstream device and trigger the downstream device to switch to the optimal router, the first router does not forward the instruction to query the signal strength of the downstream device to the second router. It can then obtain the optimal router from the cloud roaming platform, avoiding the increased CPU and memory usage of the first router caused by the first router forwarding query instructions to the second router in traditional cloud roaming solutions. This improves the signal quality and response speed of the first router. On the other hand, the 802.11v protocol guides the downstream device to quickly disconnect from the first router and switch to the optimal router, thus greatly shortening the time for the downstream device to switch from the first router to the second router. In summary, in this embodiment, the first router, based on the 802.11v protocol, receives the instruction to disconnect the downstream device sent by the cloud roaming platform and guides the downstream device to disconnect from itself. Based on the 802.11v protocol, it also receives the instruction from the cloud roaming platform to trigger the downstream device to switch to the optimal router and triggers the downstream device to switch to the optimal router. This achieves seamless switching of the downstream device between the first and second routers, and seamless network disconnection on the user side of the downstream device, improving the user experience. In practical applications, there is no lag on the user side and the latency is below 500ms. In addition, during the handover process, the downstream device will be given priority to access the 5G band of the second router.
[0094] In addition, the method in this embodiment has low requirements for the home environment, does not require network cables to reach every area to be covered, is easy to promote, and can also achieve seamless roaming of downstream devices without limiting the brand, model and frequency band of multiple routers.
[0095] In one embodiment, after sending a weak signal alarm message about the first signal strength of the downstream device currently connected to the cloud roaming platform, the process may include:
[0096] Scan and obtain the second signal strength corresponding to the second router;
[0097] Send the second signal strength to the cloud roaming platform;
[0098] Receive the command from the cloud roaming platform to disconnect the connected device;
[0099] Guide the connected device to disconnect from itself and connect to the optimal router.
[0100] This embodiment corresponds to the execution scheme of the first router when the cloud roaming platform detects that the frequency of sending weak signal alarm information is less than the frequency threshold, and the downstream device does not support the 802.11k protocol. In this case, the first router assists the downstream device in scanning and obtaining the second signal strength corresponding to the second router. This can shorten the large amount of time required for the downstream device to scan on its own in the traditional roaming scheme. The second signal strength is then sent to the cloud roaming platform for calculation. After receiving the optimal router calculated by the cloud roaming platform, the first router guides the downstream device to disconnect from itself and switch to the optimal router.
[0101] Additionally, if the cloud roaming platform has already calculated the optimal router based on the 802.11k protocol, but the downstream device does not support the 802.11v protocol, the first router, after receiving the instruction sent by the cloud roaming platform, will directly guide the downstream device to disconnect from itself and switch to the optimal router.
[0102] In this embodiment, the first router guides the downstream device to disconnect from itself and switch to the optimal router, so that seamless roaming can still be achieved even when the downstream device does not support the 802.11k or 802.11v protocol.
[0103] In one embodiment, receiving a command from the cloud roaming platform to disconnect the connected device may include:
[0104] Receive the command from the cloud roaming platform to disconnect the downstream device corresponding to the unique identifier; the unique identifier is obtained by the cloud roaming platform through hash calculation of the downstream device's online duration, the type of the downstream device, and the broadband account to which the downstream device is connected.
[0105] It should be noted that the identifier of the downstream device can be identified in advance as virtual. If it is not a virtual identifier, it can be considered to uniquely correspond to the router currently connected to the downstream device. The roaming trajectory of the downstream device can be effectively tracked and identified using the existing identifier without the need to calculate a unique identifier. If it is indeed a virtual identifier, then the unique identifier is calculated and used to track and identify the roaming trajectory of the downstream device.
[0106] This embodiment can use the unique identifier of the attached device to locate and identify the attached device, thereby achieving accurate tracking of the roaming trajectory of the attached device.
[0107] Figure 3 This is a communication signaling diagram of the cloud roaming system provided in an embodiment of this application. (Refer to...) Figure 3This application provides a cloud roaming system, which may include: a cloud roaming platform and a first router;
[0108] The cloud roaming platform is used for:
[0109] Receive weak signal alarm information of the first signal strength of the downstream device sent by the first router connected to the downstream device at the current time;
[0110] If the frequency of sending weak signal alarm information is less than the frequency threshold, and the connected device supports the 802.11k protocol, then based on the 802.11k protocol, a command to query the signal strength of the connected device is sent to the second router to obtain the second signal strength; the second router is any router other than the first router.
[0111] If the second signal strength corresponding to the current optimal router is greater than the first signal strength, and the connected device supports the 802.11v protocol, then based on the 802.11v protocol, a command to disconnect the connected device and a command to trigger the connected device to switch its connection to the optimal router are sent to the first router.
[0112] The optimal router is the router with the second highest signal strength among multiple secondary routers;
[0113] The first router is used for:
[0114] Send a weak signal alarm message to the cloud roaming platform, indicating the first signal strength of the connected device at the current moment;
[0115] Based on the 802.11v protocol, it receives the command from the cloud roaming platform to disconnect the connected device and guides the connected device to disconnect from itself.
[0116] Based on the 802.11v protocol, it receives a command from the cloud roaming platform to trigger the connected device to switch to the optimal router, and then triggers the connected device to switch to the optimal router.
[0117] Specifically, the communication process between the cloud roaming platform and the first router is as follows (taking the following example when the connected devices support the 802.11k and 802.11v protocols). Since the optimal router is one of the routers in the second router set, before the optimal router is determined, Figure 3 The optimal router in the context can refer to the second router.
[0118] 1. The cloud roaming platform locates all routers within any home space based on the router's IP address and port number, at which point the downstream devices connect to the first router;
[0119] 2. The cloud roaming platform sends roaming configuration parameters to all routers in the home space, such as configuring the trigger delay for reporting weak signal alarm information and the frequency threshold for reporting weak signal alarm information on the first router side;
[0120] 3. The first router reports weak signal alarm information of the first signal strength of the connected device to the cloud roaming platform;
[0121] 4. If the frequency of sending weak signal alarm information is less than the frequency threshold, the cloud roaming platform sends a command to the second router to query the signal strength of the connected device and obtain the second signal strength.
[0122] 5. The second router checks the signal strength of the connected device;
[0123] 6. The second router reports the second signal strength to the cloud roaming platform;
[0124] 7. The cloud roaming platform uses the optimal roaming model to calculate the optimal router;
[0125] 8A. If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, the cloud roaming platform sends an instruction to the first router to disconnect the downstream device corresponding to the unique identifier and trigger the downstream device to switch to the optimal router.
[0126] 9. The first router instructs the connected devices to disconnect from itself;
[0127] 10. The first router guides the connected devices to prioritize switching to the 5G frequency band of the optimal router;
[0128] 11. The optimal router actively reports the connection status of the connected devices to the cloud roaming platform;
[0129] 12. The cloud roaming platform calculates the current unique identifier that the downstream device is anchored to the optimal router;
[0130] 8B. If the cloud roaming platform determines that the weak signal alarm is caused by the frequent movement of the downstream device, and the first router is actually the optimal router, then it sends an instruction to the first router to pause roaming for a preset duration. During this preset duration, the downstream device maintains its connection with the first router.
[0131] The cloud roaming system provided in this embodiment has several advantages. First, the cloud roaming platform directly sends a query command to the second router to check the signal strength of the connected device, instead of forwarding the query command to the second router through the first router as in the traditional method. This reduces the utilization of the first router's central processing unit and memory, and improves the signal quality and response speed of the first router. Second, the 802.11k protocol provides an interface for the second router and the connected device to request each other to measure the wireless signal strength. This allows the connected device to be informed of the available second routers in advance, enabling it to quickly select the optimal router when the connected device needs to roam. The 802.11v protocol then guides the connected device to quickly disconnect from the first router and switch to the optimal router. Therefore, the time for the connected device to switch from the first router to the second router is greatly shortened. In summary, this embodiment's cloud roaming platform achieves seamless switching between the connected devices and the second router by directly sending commands to the second router to query the signal strength of the connected devices, and by sending commands to the second router to query the signal strength of the connected devices based on the 802.11k protocol, and by sending commands to the first router based on the 802.11v protocol to disconnect the connected devices and trigger the connected devices to switch to the optimal router. This ensures a seamless user experience and eliminates any network outages for the connected devices. In practical applications, there is no lag on the user side and the latency is below 500ms. Furthermore, during the handover process, the connected devices are preferentially guided to access the second router's 5GHz band.
[0132] In addition, the method in this embodiment has low requirements for the home environment, does not require network cables to reach every area to be covered, is easy to promote, and can also achieve seamless roaming of downstream devices without limiting the brand, model and frequency band of multiple routers.
[0133] The cloud roaming device provided in the embodiments of this application is described below. The cloud roaming device described below can be referred to in correspondence with the cloud roaming method described above.
[0134] Figure 4 This is one of the structural schematic diagrams of the cloud roaming device provided in the embodiments of this application. (Refer to...) Figure 4 This application provides a cloud roaming device, which may include:
[0135] The weak signal alarm receiving module 401 is used to: receive weak signal alarm information of the first signal strength of the downstream device sent by the first router connected to the downstream device at the current time;
[0136] The signal strength query module 402 is used to: if the transmission frequency of the weak signal alarm information is less than the frequency threshold, and the downstream device supports the 802.11k protocol, then send an instruction to the second router to query the signal strength of the downstream device based on the 802.11k protocol to obtain the second signal strength; the second router is any router other than the first router;
[0137] The first roaming execution module 403 is used to: if the second signal strength corresponding to the optimal router at the current time is greater than the first signal strength, and the connected device supports the 802.11v protocol, then based on the 802.11v protocol, send an instruction to the first router to disconnect the connected device, and trigger the connected device to switch to the optimal router.
[0138] The optimal router is the router with the second highest signal strength among multiple second routers.
[0139] The cloud roaming device provided in this embodiment has several advantages. First, the cloud roaming platform directly sends a query command to the second router to check the signal strength of the connected device, instead of forwarding the query command to the second router through the first router as in the traditional method. This reduces the utilization of the first router's central processing unit and memory, and improves the signal quality and response speed of the first router. Second, the 802.11k protocol provides an interface for the second router and the connected device to request each other to measure the wireless signal strength. This allows the connected device to be informed of the available second routers in advance, enabling it to quickly select the optimal router when the connected device needs to roam. The 802.11v protocol then guides the connected device to quickly disconnect from the first router and switch to the optimal router. Therefore, the time for the connected device to switch from the first router to the second router is greatly shortened. In summary, this embodiment's cloud roaming platform achieves seamless switching between the connected devices and the second router by directly sending commands to the second router to query the signal strength of the connected devices. It also sends commands to the second router based on the 802.11k protocol and commands to the first router based on the 802.11v protocol to disconnect the connected devices and trigger them to switch to the optimal router. This ensures a seamless user experience and eliminates any network outages for the connected devices. In practical applications, there is no lag on the user side with latency below 500ms. Furthermore, during the handover process, the platform prioritizes guiding the connected devices to the second router's 5GHz band.
[0140] In addition, the method in this embodiment has low requirements for the home environment, does not require network cables to reach every area to be covered, is easy to promote, and can also achieve seamless roaming of downstream devices without limiting the brand, model and frequency band of multiple routers.
[0141] In one embodiment, a router control module (not shown) is further included, for:
[0142] If the frequency of sending the weak signal alarm information is less than the frequency threshold, and the connected device does not support the 802.11k protocol, then the first router is controlled to scan and obtain the second signal strength corresponding to the second router.
[0143] If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, then send an instruction to the first router to disconnect the downstream device, and control the first router to guide the downstream device to connect to the optimal router.
[0144] In one embodiment, the router control module (not shown in the figure) is used for:
[0145] If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the connected device does not support the 802.11v protocol, then a command to disconnect the connected device is sent to the first router, and the first router is controlled to guide the connected device to the optimal router.
[0146] In one embodiment, the first roaming execution module 403 is specifically used for:
[0147] A hash operation is performed on the online duration of the downstream device, the type of the downstream device, and the broadband account of the first router to which the downstream device is connected, to obtain a unique identifier for the downstream device;
[0148] Send a command to the first router to disconnect the downstream device corresponding to the unique identifier.
[0149] In one embodiment, a roaming diagnostic module (not shown) is further included for:
[0150] The weak signal alarm information at the current moment, the second signal strength corresponding to multiple second routers at the current moment, and the historical roaming trajectory information of the previously mentioned downstream device between different routers are input into the optimal roaming model to obtain the optimal router at the current moment.
[0151] The optimal roaming model is obtained by training any deep neural network model based on the weak signal alarm information at a historical moment, the second signal strength corresponding to multiple second routers at a historical moment, and the historical roaming trajectory information of the connected device between different routers before the historical moment.
[0152] Figure 5 This is a second schematic diagram of the cloud roaming device provided in an embodiment of this application. (Refer to...) Figure 5 This application provides a cloud roaming device, which may include:
[0153] The weak signal alarm sending module 501 is used to send weak signal alarm information of the first signal strength of the downstream device connected to it at the current moment to the cloud roaming platform;
[0154] The second roaming execution module 502 is used to: receive the instruction sent by the cloud roaming platform to disconnect the downstream device based on the 802.11v protocol, and guide the downstream device to disconnect from itself;
[0155] The second roaming execution module 502 is further configured to: receive, based on the 802.11v protocol, an instruction sent by the cloud roaming platform to trigger the downstream device to switch to the optimal router, and trigger the downstream device to switch to the optimal router; the optimal router is the router corresponding to the second maximum signal strength among a plurality of second routers, and the second router is any router other than itself.
[0156] The cloud roaming device provided in this embodiment has several advantages. First, before the first router receives the instruction to disconnect the downstream device and trigger the downstream device to switch to the optimal router, it does not forward the instruction to query the signal strength of the downstream device to the second router. It can then obtain the optimal router from the cloud roaming platform, avoiding the increased CPU and memory usage of the first router caused by the first router forwarding the query instruction to the second router in traditional cloud roaming schemes. This improves the signal quality and response speed of the first router. Second, the 802.11v protocol guides the downstream device to quickly disconnect from the first router and switch to the optimal router. Therefore, it greatly shortens the time for the downstream device to switch from the first router to the second router. In summary, this embodiment's first router, based on the 802.11v protocol, receives instructions from the cloud roaming platform to disconnect the downstream device and guides the downstream device to disconnect from itself. Also based on the 802.11v protocol, it receives instructions from the cloud roaming platform to trigger the downstream device to switch to the optimal router and triggers the downstream device to switch to the optimal router. This achieves seamless switching of the downstream device between the first and second routers, and ensures that the user experience is unnoticed when the network connection drops, improving the user experience. In practical applications, there is no lag on the user side and the latency is below 500ms. Furthermore, during the switching process, the downstream device is preferentially guided to access the second router's 5GHz band.
[0157] In addition, the method in this embodiment has low requirements for the home environment, does not require network cables to reach every area to be covered, is easy to promote, and can also achieve seamless roaming of downstream devices without limiting the brand, model and frequency band of multiple routers.
[0158] In one embodiment, a router boot module (not shown) is further included for:
[0159] Scan and obtain the second signal strength corresponding to the second router;
[0160] The second signal strength is sent to the cloud roaming platform;
[0161] Receive the instruction from the cloud roaming platform to disconnect the connected device;
[0162] The device is guided to disconnect from itself and connect to the optimal router.
[0163] In one embodiment, the second roaming execution module 502 is specifically used for:
[0164] The system receives an instruction from the cloud roaming platform to disconnect the downstream device corresponding to a unique identifier. The unique identifier is obtained by the cloud roaming platform through a hash operation on the downstream device's online duration, the type of the downstream device, and the broadband account to which the downstream device is connected.
[0165] It should be noted that other modules can also be set, such as:
[0166] 1. Device connection module, used for: TCP connection communication, with the cloud roaming platform acting as the server and a router (pre-configured with the cloud roaming platform address and related connection platform protocols) acting as the client via NETTY. The cloud roaming platform and the router establish a connection through the agreed protocol and verify its legitimacy, using the agreed heartbeat rules as the basis for determining the existence of the connection;
[0167] NETTY is an open-source Java framework that provides asynchronous, event-driven network application frameworks and tools for rapidly developing high-performance, highly reliable network server and client programs. The heartbeat rule refers to the router periodically sending keep-alive signals to the cloud roaming platform so that the cloud roaming platform can determine that the router is operating normally.
[0168] 2. Roaming configuration module, used by the cloud roaming platform to send encrypted JSON data to the router to configure the following information:
[0169] 2.1) Triggering delay for the router to report weak signal alarm information from connected devices;
[0170] 2.2) Frequency threshold for routers to report weak signal alarm information;
[0171] 2.3) The router queries the signal strength of non-associated downstream devices based on the 802.11k protocol;
[0172] 2.4) The router disconnects the downstream device based on the 802.11v protocol and guides the downstream device to prioritize access to the 5G frequency band;
[0173] 2.5) The router suspends the roaming interface, thus halting the cloud roaming process for devices that cannot roam.
[0174] 3. Algorithm scheduling module, used to: extract feature data from weak signal alarm information reported by the router, roaming trajectory information of the router and signal strength information of non-associated downstream devices of the router, and train the optimal roaming model based on any deep neural network model, so that the cloud roaming platform can call this module through a special interface to obtain the model output result, i.e. the optimal router;
[0175] 4. Data recording module, used to record router weak signal alarm information, roaming trajectory of connected devices, and data in the HBase database for use by the algorithm scheduling module and model training.
[0176] As can be seen from the above, the cloud roaming platform selects the optimal router based on the algorithm scheduling module. The algorithm scheduling module can be hot-deployed at any time based on the iterative model trained and optimized by big data for the cloud roaming platform to call. At the same time, the algorithm scheduling module can also be trained based on the data recorded to HBase by the data recording module to distinguish roaming scenarios, optimize roaming strategies, and avoid frequent roaming scenarios.
[0177] In addition, the cloud roaming platform can also provide cloud roaming capabilities by exposing its domain name. Relevant routers can be pre-configured with the cloud roaming platform's domain name and related cloud roaming protocols to obtain cloud roaming capabilities. The platform can also obtain the corresponding broadband account for a router based on its IP address reported to the cloud roaming platform, and configure the remote router with cloud roaming capabilities through its roaming configuration module based on the relevant services associated with that broadband account. The cloud roaming platform maps its own IP address to its own domain name, meeting the trend of switching from IPv4 to IPv6 addresses without affecting the cloud roaming links of various routers or the platform itself. Migrating or changing the cloud roaming platform's IP address is transparent to the routers. Older routers can acquire cloud roaming capabilities through various manufacturers' cloud roaming plugins and remote upgrades.
[0178] Figure 6 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630, and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other via the communication bus 640. The processor 610 can call a computer program in the memory 630 to execute the steps of the cloud roaming method, such as:
[0179] Receive weak signal alarm information of the first signal strength of the downstream device sent by the first router currently connected to the downstream device;
[0180] If the frequency of sending the weak signal alarm information is less than the frequency threshold, and the connected device supports the 802.11k protocol, then based on the 802.11k protocol, a command to query the signal strength of the connected device is sent to the second router to obtain the second signal strength; the second router is any router other than the first router.
[0181] If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the connected device supports the 802.11v protocol, then based on the 802.11v protocol, a command to disconnect the connected device and a command to trigger the connected device to switch to the optimal router are sent to the first router.
[0182] The optimal router is the router with the second highest signal strength among multiple second routers; or
[0183] Send a weak signal alarm message to the cloud roaming platform, indicating the first signal strength of the connected device at the current moment;
[0184] Based on the 802.11v protocol, it receives the instruction from the cloud roaming platform to disconnect the downstream device and guides the downstream device to disconnect from itself;
[0185] Based on the 802.11v protocol, the system receives an instruction from the cloud roaming platform to trigger the connected device to switch to the optimal router, and triggers the connected device to switch to the optimal router. The optimal router is the router with the second maximum signal strength among multiple second routers, and the second router is any router other than itself.
[0186] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0187] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the steps of the cloud roaming method provided in the above embodiments, such as including:
[0188] Receive weak signal alarm information of the first signal strength of the downstream device sent by the first router currently connected to the downstream device;
[0189] If the frequency of sending the weak signal alarm information is less than the frequency threshold, and the connected device supports the 802.11k protocol, then based on the 802.11k protocol, a command to query the signal strength of the connected device is sent to the second router to obtain the second signal strength; the second router is any router other than the first router.
[0190] If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the connected device supports the 802.11v protocol, then based on the 802.11v protocol, a command to disconnect the connected device and a command to trigger the connected device to switch to the optimal router are sent to the first router.
[0191] The optimal router is the router with the second highest signal strength among multiple second routers; or
[0192] Send a weak signal alarm message to the cloud roaming platform, indicating the first signal strength of the connected device at the current moment;
[0193] Based on the 802.11v protocol, it receives the instruction from the cloud roaming platform to disconnect the downstream device and guides the downstream device to disconnect from itself;
[0194] Based on the 802.11v protocol, the system receives an instruction from the cloud roaming platform to trigger the connected device to switch to the optimal router, and triggers the connected device to switch to the optimal router. The optimal router is the router with the second maximum signal strength among multiple second routers, and the second router is any router other than itself.
[0195] On the other hand, embodiments of this application also provide a processor-readable storage medium storing a computer program for causing a processor to perform the steps of the methods provided in the above embodiments, such as including:
[0196] Receive weak signal alarm information of the first signal strength of the downstream device sent by the first router currently connected to the downstream device;
[0197] If the frequency of sending the weak signal alarm information is less than the frequency threshold, and the connected device supports the 802.11k protocol, then based on the 802.11k protocol, a command to query the signal strength of the connected device is sent to the second router to obtain the second signal strength; the second router is any router other than the first router.
[0198] If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the connected device supports the 802.11v protocol, then based on the 802.11v protocol, a command to disconnect the connected device and a command to trigger the connected device to switch to the optimal router are sent to the first router.
[0199] The optimal router is the router with the second highest signal strength among multiple second routers; or
[0200] Send a weak signal alarm message to the cloud roaming platform, indicating the first signal strength of the connected device at the current moment;
[0201] Based on the 802.11v protocol, it receives the instruction from the cloud roaming platform to disconnect the downstream device and guides the downstream device to disconnect from itself;
[0202] Based on the 802.11v protocol, the system receives an instruction from the cloud roaming platform to trigger the connected device to switch to the optimal router, and triggers the connected device to switch to the optimal router. The optimal router is the router with the second maximum signal strength among multiple second routers, and the second router is any router other than itself.
[0203] The processor-readable storage medium can be any available medium or data storage device that the processor can access, including but not limited to magnetic memory (e.g., floppy disk, hard disk, magnetic tape, magneto-optical disk (MO)), optical memory (e.g., CD, DVD, BD, HVD), and semiconductor memory (e.g., ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)).
[0204] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0205] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0206] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A cloud roaming method, characterized in that, include: Receive weak signal alarm information of the first signal strength of the downstream device sent by the first router currently connected to the downstream device; If the frequency of sending the weak signal alarm information is less than the frequency threshold, and the connected device supports the 802.11k protocol, then based on the 802.11k protocol, a command to query the signal strength of the connected device is sent to the second router to obtain the second signal strength; the second router is any router other than the first router. If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the connected device supports the 802.11v protocol, then based on the 802.11v protocol, a command to disconnect the connected device and a command to trigger the connected device to switch to the optimal router are sent to the first router. If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the downstream device does not support the 802.11v protocol, then a command to disconnect the downstream device is sent to the first router, and the first router is controlled to guide the downstream device to connect to the optimal router, including: The first router is controlled to inform the downstream device of the optimal router; The optimal router is the router with the second highest signal strength among multiple second routers.
2. The cloud roaming method according to claim 1, characterized in that, After receiving the weak signal alarm information of the first signal strength of the downstream device sent by the first router currently connected to the downstream device, the process includes: If the frequency of sending the weak signal alarm information is less than the frequency threshold, and the connected device does not support the 802.11k protocol, then the first router is controlled to scan and obtain the second signal strength corresponding to the second router. If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, then send an instruction to the first router to disconnect the downstream device, and control the first router to guide the downstream device to connect to the optimal router.
3. The cloud roaming method according to any one of claims 1 to 2, characterized in that, Sending the instruction to disconnect the connected device to the first router includes: A hash operation is performed on the online duration of the downstream device, the type of the downstream device, and the broadband account of the first router to which the downstream device is connected, to obtain a unique identifier for the downstream device; Send a command to the first router to disconnect the downstream device corresponding to the unique identifier.
4. The cloud roaming method according to any one of claims 1 to 2, characterized in that, The optimal router at the current moment is determined based on the following steps: The weak signal alarm information at the current moment, the second signal strength corresponding to multiple second routers at the current moment, and the historical roaming trajectory information of the previously mentioned downstream device between different routers are input into the optimal roaming model to obtain the optimal router at the current moment. The optimal roaming model is obtained by training any deep neural network model based on the weak signal alarm information at a historical moment, the second signal strength corresponding to multiple second routers at a historical moment, and the historical roaming trajectory information of the connected device between different routers before the historical moment.
5. A cloud roaming method, characterized in that, include: Send a weak signal alarm message to the cloud roaming platform, indicating the first signal strength of the connected device at the current moment; If the cloud roaming platform determines that the second signal strength of the optimal router at the current moment is greater than the first signal strength, and the connected device supports the 802.11v protocol, it receives the instruction from the cloud roaming platform to disconnect the connected device based on the 802.11v protocol, and guides the connected device to disconnect from itself. Based on the 802.11v protocol, the system receives an instruction from the cloud roaming platform to trigger the downstream device to switch its connection to the optimal router, and triggers the downstream device to switch its connection to the optimal router. The optimal router is the router with the highest second signal strength among multiple second routers, and the second router is any router other than itself. The second signal strength is obtained by the cloud roaming platform from the second router based on the 802.11k protocol, after determining that the sending frequency of the weak signal alarm information is less than a frequency threshold and that the downstream device supports the 802.11k protocol. If the cloud roaming platform determines that the second signal strength of the optimal router at the current moment is greater than the first signal strength, and the connected device does not support the 802.11v protocol, the cloud roaming platform sends an instruction to disconnect the connected device. Guiding the downstream device to disconnect from itself and connect to the optimal router includes: Inform the downstream device of the optimal router.
6. The cloud roaming method according to claim 5, characterized in that, After sending a weak signal alarm message about the first signal strength of the downstream device currently connected to itself to the cloud roaming platform, the process includes: Scan and obtain the second signal strength corresponding to the second router; The second signal strength is sent to the cloud roaming platform.
7. The cloud roaming method according to claim 5 or 6, characterized in that, The step of receiving the instruction to disconnect the connected device sent by the cloud roaming platform includes: The system receives an instruction from the cloud roaming platform to disconnect the downstream device corresponding to a unique identifier. The unique identifier is obtained by the cloud roaming platform through a hash operation on the downstream device's online duration, the type of the downstream device, and the broadband account to which the downstream device is connected.
8. A cloud roaming system, characterized in that, include: Cloud roaming platform and first router; The cloud roaming platform is used for: Receive weak signal alarm information of the first signal strength of the downstream device sent by the first router currently connected to the downstream device; If the frequency of sending the weak signal alarm information is less than the frequency threshold, and the connected device supports the 802.11k protocol, then based on the 802.11k protocol, a command to query the signal strength of the connected device is sent to the second router to obtain the second signal strength; the second router is any router other than the first router. If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the connected device supports the 802.11v protocol, then based on the 802.11v protocol, a command to disconnect the connected device and a command to trigger the connected device to switch to the optimal router are sent to the first router. If the second signal strength corresponding to the optimal router at the current moment is greater than the first signal strength, and the downstream device does not support the 802.11v protocol, then a command to disconnect the downstream device is sent to the first router, and the first router is controlled to guide the downstream device to connect to the optimal router, including: The first router is controlled to inform the downstream device of the optimal router; The optimal router is the router with the second maximum signal strength among multiple second routers; The first router is used for: Send a weak signal alarm message to the cloud roaming platform, indicating the first signal strength of the connected device at the current moment; If the cloud roaming platform determines that the second signal strength of the optimal router at the current moment is greater than the first signal strength, and the connected device supports the 802.11v protocol, it receives the instruction from the cloud roaming platform to disconnect the connected device based on the 802.11v protocol, and guides the connected device to disconnect from itself. Based on the 802.11v protocol, the system receives an instruction from the cloud roaming platform to trigger the connected device to switch to the optimal router, and then triggers the connected device to switch to the optimal router. If the cloud roaming platform determines that the second signal strength of the optimal router at the current moment is greater than the first signal strength, and the connected device does not support the 802.11v protocol, the cloud roaming platform sends an instruction to disconnect the connected device. Guiding the downstream device to disconnect from itself and connect to the optimal router includes: Inform the downstream device of the optimal router.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the cloud roaming method according to any one of claims 1 to 4, or the steps of the cloud roaming method according to any one of claims 5 to 7.