Wireless roaming method and device based on multi-factor weight fusion

By using a multi-factor weighted fusion wireless roaming method, factors such as signal strength, packet error rate, and load status are comprehensively evaluated to generate an accurate roaming decision score. This solves the network instability problem caused by relying on a single signal strength in existing technologies and enables intelligent switching and stable connection of terminal devices in complex environments.

CN121547833APending Publication Date: 2026-02-17BOWEI TECHNOLOGY COMPANY LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511737253.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-25
Publication Date
2026-02-17

AI Technical Summary

Technical Problem

Existing wireless roaming technologies rely on a single signal strength and a fixed threshold, making it difficult to cope with complex and time-varying wireless environments. This results in terminals being unable to switch to a better access point in a timely manner or frequently hopping between different access points, affecting the stability and quality of network connections.

Method used

A multi-factor weight fusion method is adopted, which comprehensively considers multiple dimensions such as signal strength, packet error rate, wireless access point load status and service type, dynamically adjusts the weights, generates accurate roaming decision scores, and enables intelligent switching of terminal devices through hierarchical triggering mechanism and delay triggering mechanism.

Benefits of technology

It significantly improves the scientific nature and reliability of roaming decisions, avoids the ping-pong effect and connection quality degradation, ensures priority protection of critical services, and provides smooth and stable network services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121547833A_ABST
    Figure CN121547833A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless roaming method and device based on multi-factor weight fusion. The method comprises the following steps: acquiring a real-time network factor set of terminal equipment relative to each wireless access point; the real-time network factor set comprises the service type of the terminal equipment, the load state and the working frequency band of the wireless access point, and the signal strength and the packet error rate of the terminal equipment relative to the wireless access point; for each wireless access point, determining the weight of each real-time network factor in the real-time network factor set; obtaining a roaming decision score of the terminal equipment relative to each wireless access point based on the weight of each real-time network factor and the real-time network factor set; and if the roaming decision score of the terminal equipment and any wireless access point meets a preset roaming triggering rule, connecting the terminal equipment to the wireless access point. According to the method, the roaming stability and intelligence of the terminal equipment in the distributed wireless network can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless communication technology, and in particular to a wireless roaming method and apparatus based on multi-factor weight fusion. Background Technology

[0002] Currently, with the continuous development of wireless LANs, especially in wireless mesh networks deployed in scenarios such as homes, enterprises, and campuses, ensuring that user terminals can roam smoothly and seamlessly between different access points is crucial for guaranteeing a high-quality network experience. Existing roaming technologies mostly rely on a single signal strength and a preset fixed threshold. For example, when the signal strength received by a terminal falls below a certain fixed threshold, the roaming process is triggered. While this static strategy is simple to implement, it struggles to cope with the complex and ever-changing real-world wireless environment. Sudden network interference, instantaneous fluctuations in access point load, and the differentiated network quality requirements of various services all make fixed-threshold solutions prone to dilemmas. Either the threshold setting is too conservative, preventing terminals from switching to better access points in a timely manner, resulting in a decline in connection quality; or the threshold is too sensitive, causing terminals to repeatedly jump between multiple access points, the so-called "ping-pong effect," which disrupts connection stability.

[0003] While the industry has proposed several improvements to enhance the adaptability of roaming decisions, such as incorporating historical data for auxiliary judgment, these methods still have limitations in terms of real-time performance, comprehensive judgment capabilities, and adaptability to diverse service requirements. Therefore, how to construct a solution capable of comprehensively and accurately assessing network connectivity quality and making rapid and stable roaming decisions in complex and dynamic wireless environments, thereby achieving truly efficient and reliable wireless roaming in complex environments, has become a critical technical problem urgently needing to be solved in this field. Summary of the Invention

[0004] To improve the stability and intelligence of terminal device roaming in distributed wireless networks, this invention provides a wireless roaming method and apparatus based on multi-factor weight fusion.

[0005] In a first aspect, embodiments of the present invention provide a wireless roaming method based on multi-factor weight fusion, applied to a network controller in a distributed wireless network, characterized in that the distributed wireless network further includes terminal devices and multiple wireless access points, and the method may include: Obtain a real-time network factor set of the terminal device relative to each wireless access point; the real-time network factor set includes the service type of the terminal device, the load status and operating frequency band of the wireless access point, and the signal strength and packet error rate of the terminal device relative to the wireless access point; For each of the wireless access points, determine the weight of each real-time network factor in the set of real-time network factors; Based on the weights of each real-time network factor and the set of real-time network factors, the roaming decision score of the terminal device relative to each wireless access point is obtained. If the roaming decision score of the terminal device and any wireless access point meets the preset roaming triggering rule, then the terminal device will be connected to that wireless access point.

[0006] In one or more optional embodiments of this application, if the roaming decision score between the terminal device and any wireless access point meets a preset roaming triggering rule, then the terminal device is connected to the wireless access point. The method includes: The roaming decision score between the terminal device and the currently connected first wireless access point is used as the first score; For each wireless access point, the wireless access point is designated as the target wireless access point. The roaming decision score between the terminal device and the target wireless access point is used as the second score; If the second score is greater than or equal to a preset roaming decision score threshold, and the second score is greater than or equal to the sum of the first score and a preset roaming delay trigger threshold, then the roaming decision score of the target wireless access point is determined to meet the preset roaming trigger rule, and the terminal device is connected to the target wireless access point.

[0007] In one or more optional embodiments of this application, if the roaming decision score between the terminal device and any wireless access point reaches a preset roaming trigger rule, then the terminal device is connected to the wireless access point. The method includes: For each wireless access point, the wireless access point is designated as the target wireless access point. The roaming decision score between the terminal device and the target wireless access point is used as the second score; If the second score is greater than or equal to the difference between the preset roaming decision score threshold and the preset roaming delay trigger threshold, and the second score is less than the preset roaming decision score threshold, then after a preset observation time window, an updated second score is obtained. If the updated second score is greater than or equal to the difference between the preset roaming decision score threshold and the preset roaming delay trigger threshold, then the roaming decision score of the target wireless access point is determined to meet the preset roaming trigger rule, and the terminal device is connected to the target wireless access point.

[0008] In one or more optional embodiments of this application, after connecting the terminal device to the wireless access point, the method further includes: The previous wireless access point connected to the terminal device is used as the second wireless access point. During the preset roaming suppression time, when the second wireless access point is used as the target wireless access point, the preset roaming decision score threshold is updated to the sum of the preset roaming decision score threshold and the preset roaming delay trigger threshold.

[0009] In one or more optional embodiments of this application, the method for obtaining the roaming decision score of the terminal device relative to each wireless access point based on the weights of each real-time network factor and the set of real-time network factors includes: Based on the signal strength of the terminal device relative to each wireless access point, a signal strength score of the terminal device relative to each wireless access point is determined. The packet error rate score of the terminal device relative to each wireless access point is determined based on the service type of the terminal device and the packet error rate of the terminal device relative to each wireless access point. Based on the load status of each wireless access point, a load status score is determined for each wireless access point. Based on the operating frequency band of each wireless access point, determine the operating frequency band score for each wireless access point; A service type score is determined based on the service type of the terminal device; For each wireless access point, a roaming decision score for the terminal device relative to the wireless access point is obtained based on the signal strength score and packet error rate score of the terminal device relative to the wireless access point, the load status score and operating frequency band score of the wireless access point, the service type score of the terminal device, and the weights of each real-time network factor.

[0010] In one or more optional embodiments of this application, determining the packet error rate score of the terminal device relative to each wireless access point based on the service type of the terminal device and the packet error rate of the terminal device relative to each wireless access point includes: Determine the packet error rate threshold based on the service type of the terminal device; For each wireless access point, based on the service packet error rate threshold and the packet error rate of the terminal device relative to the wireless access point, a packet error rate score of the terminal device relative to the wireless access point is obtained.

[0011] In one or more optional embodiments of this application, determining the load status score of each wireless access point based on the load status of each wireless access point includes: For each wireless access point, a load status score is obtained based on the number of device connections, maximum supported connections, CPU utilization, occupied bandwidth, and total bandwidth of the wireless access point.

[0012] In one or more optional embodiments of this application, the weights of each real-time network factor include signal strength weight, packet error rate weight, load state weight, operating frequency band weight, and service type weight; the method further includes: When the packet error rate of the terminal device relative to any of the wireless access points is greater than a preset packet error rate threshold, the packet error rate weight is increased and the signal strength weight is decreased based on the difference between the packet error rate and the preset packet error rate threshold.

[0013] In one or more optional embodiments of this application, the method further includes: When the number of device connections at any of the wireless access points is equal to the maximum supported number of connections, or the CPU utilization rate is greater than the preset CPU utilization rate threshold, or the occupied bandwidth is greater than the preset bandwidth threshold, the load weight is set to the preset maximum load weight.

[0014] Secondly, embodiments of the present invention provide a wireless roaming device based on multi-factor weight fusion, which may include: The data acquisition module is used to acquire a set of real-time network factors of the terminal device relative to each wireless access point; the set of real-time network factors includes the service type of the terminal device, the load status and operating frequency band of the wireless access point, and the signal strength and packet error rate of the terminal device relative to the wireless access point. The weight determination module is used to determine the weight of each real-time network factor in the real-time network factor set for each of the wireless access points. The scoring calculation module is used to obtain the roaming decision score of the terminal device relative to each wireless access point based on the weights of each real-time network factor and the set of real-time network factors. The roaming decision module is used to connect the terminal device to any wireless access point if the roaming decision score between the terminal device and any wireless access point meets the preset roaming triggering rules.

[0015] Thirdly, embodiments of the present invention provide a computer-readable storage medium having a computer program / instruction stored thereon, which, when executed by a processor, implements the wireless roaming method based on multi-factor weight fusion as described above.

[0016] Fourthly, embodiments of the present invention provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the wireless roaming method based on multi-factor weight fusion as described above.

[0017] Fifthly, embodiments of the present invention provide a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the wireless roaming method based on multi-factor weight fusion as described above.

[0018] The beneficial effects of the above-described technical solutions provided in the embodiments of the present invention include at least the following: This invention provides a wireless roaming method based on multi-factor weight fusion. This method comprehensively considers real-time network factors across multiple dimensions, including signal strength, packet error rate, load status of wireless access points, operating frequency band, and terminal device service type, assigning corresponding weights for fusion calculation to ultimately generate a comprehensive and accurate roaming decision score. This method overcomes the limitations of traditional solutions that rely on single or fixed indicators, adapting to complex and ever-changing wireless environments. This significantly improves the scientific rigor and reliability of roaming decisions, ensuring that terminals always connect to the optimal access point and effectively guaranteeing the continuity and stability of service transmission.

[0019] Compared to traditional solutions, this method breaks through the limitations of relying solely on signal strength or fixed thresholds, achieving a technological leap from "single-point judgment" to "multi-dimensional fusion." This comprehensive evaluation mechanism can effectively address complex scenarios commonly encountered in wireless environments, such as signal fluctuations, sudden interference, and uneven load, significantly improving the accuracy and reliability of roaming decisions. In practical applications, this method can intelligently guide terminal devices to switch to the most suitable access point at the optimal time, avoiding both the "ping-pong effect" caused by premature switching and the connection quality degradation caused by delayed switching.

[0020] Furthermore, by incorporating service types into the decision-making system, this approach enables refined control of network service quality, providing differentiated roaming strategies for different services and ensuring priority for critical services such as video conferencing and online gaming. This user-centric roaming mechanism ultimately provides users with a smoother and more stable wireless network service, significantly improving their network experience in mobile scenarios.

[0021] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description and the accompanying drawings.

[0022] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0023] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 A flowchart illustrating the wireless roaming method based on multi-factor weight fusion provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a wireless roaming device based on multi-factor weight fusion provided in an embodiment of the present invention. Detailed Implementation

[0024] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0025] The inventors discovered that existing roaming technologies largely rely on a single signal strength and a preset fixed threshold. While this static strategy is simple to implement, it struggles to cope with complex and time-varying real-world wireless environments. Although the industry has proposed several improvements to enhance the adaptability of roaming decisions, such as incorporating historical data for auxiliary judgment, these methods still have limitations in terms of real-time performance, comprehensive judgment capabilities, and adaptability to diverse service requirements. Based on this, the inventors, through further research and development, have created this invention, providing a wireless roaming method and apparatus based on multi-factor weight fusion.

[0026] Example 1 Embodiment 1 of this invention provides a wireless roaming method based on multi-factor weight fusion, applied to a network controller in a distributed wireless network. The distributed wireless network also includes terminal devices and multiple wireless access points. (Refer to...) Figure 1 As shown, the method may include the following steps S101-S104: S101: Obtain the real-time network factor set of the terminal device relative to each wireless access point. The real-time network factor set includes the service type of the terminal device, the load status and operating frequency band of the wireless access point, and the signal strength and packet error rate of the terminal device relative to the wireless access point.

[0027] S102: For each wireless access point, determine the weight of each real-time network factor in the real-time network factor set.

[0028] S103: Based on the weights of each real-time network factor and the set of real-time network factors, obtain the roaming decision score of the terminal device relative to each wireless access point.

[0029] S104: If the roaming decision score of the terminal device and any wireless access point meets the preset roaming triggering rule, then connect the terminal device to the wireless access point.

[0030] This invention provides a wireless roaming method based on multi-factor weight fusion. This method comprehensively considers real-time network factors across multiple dimensions, including signal strength, packet error rate, load status of wireless access points, operating frequency band, and terminal device service type, assigning corresponding weights for fusion calculation to ultimately generate a comprehensive and accurate roaming decision score. This method overcomes the limitations of traditional solutions that rely on single or fixed indicators, adapting to complex and ever-changing wireless environments. This significantly improves the scientific rigor and reliability of roaming decisions, ensuring that terminals always connect to the optimal access point and effectively guaranteeing the continuity and stability of service transmission.

[0031] Compared to traditional solutions, this method breaks through the limitations of relying solely on signal strength or fixed thresholds, achieving a technological leap from "single-point judgment" to "multi-dimensional fusion." This comprehensive evaluation mechanism can effectively address complex scenarios commonly encountered in wireless environments, such as signal fluctuations, sudden interference, and uneven load, significantly improving the accuracy and reliability of roaming decisions. In practical applications, this method can intelligently guide terminal devices to switch to the most suitable access point at the optimal time, avoiding both the "ping-pong effect" caused by premature switching and the connection quality degradation caused by delayed switching.

[0032] Furthermore, by incorporating service types into the decision-making system, this approach enables refined control of network service quality, providing differentiated roaming strategies for different services and ensuring priority for critical services such as video conferencing and online gaming. This user-centric roaming mechanism ultimately provides users with a smoother and more stable wireless network service, significantly improving their network experience in mobile scenarios.

[0033] In step S101 above, a set of real-time network factors for the terminal device relative to each wireless access point is obtained. This set of real-time network factors includes the service type of the terminal device, the load status and operating frequency band of the wireless access point, and the signal strength and packet error rate of the terminal device relative to the wireless access point.

[0034] Specifically, the network controller in a distributed wireless network may need to obtain the real-time set of network factors for the terminal device relative to each wireless access point in the distributed wireless network.

[0035] This real-time network factor set serves as the foundational data source for subsequent intelligent roaming decisions. Its core function lies in multidimensionally characterizing the connection quality and suitability between the terminal device and each potential wireless access point.

[0036] Specifically, the acquired real-time network factors mainly include: One is the type of service the terminal device itself is engaged in, such as video calling, web browsing, or background file downloading.

[0037] Secondly, there are the status parameters of the wireless access point, including its load status and operating frequency band. The load status includes the number of terminals connected to the wireless access point, CPU utilization, and occupied bandwidth. The operating frequency band refers to whether the wireless access point is in the 2.4GHz band or the 5GHz band. These data are reported to the network controller periodically or triggered by each wireless access point.

[0038] Thirdly, there are the air interface link quality parameters between the terminal device and each wireless access point, which mainly include Received Signal Strength Indication (RSSI) and Packet Error Rate (PER). The signal strength can be measured and reported by the terminal device, while the packet error rate can be statistically analyzed and fed back by the terminal device or the wireless access point.

[0039] In this embodiment, step S101 systematically collects real-time data from multiple dimensions, including service type, load status and operating frequency band, as well as signal strength and packet error rate, to construct a comprehensive evaluation system reflecting network connection quality. This multi-dimensional data collection method overcomes the limitations of traditional solutions that rely solely on signal strength, enabling the network controller to comprehensively perceive the network environment from three dimensions: terminal experience, access point status, and link quality. This provides a complete data foundation for subsequent accurate roaming decisions.

[0040] In step S102 above, for each wireless access point, the weight of each real-time network factor in the real-time network factor set is determined. The weights of each real-time network factor include signal strength weight, packet error rate weight, load state weight, operating frequency band weight, and service type weight.

[0041] Specifically, this can be achieved by first using a preset initial weight combination for each wireless access point, so that the sum of the weights of each real-time network factor is 1. For example, the weight of signal strength is 0.3, the weight of packet error rate is 0.25, the weight of load status is 0.2, the weight of operating frequency band is 0.15, and the weight of service type is 0.1. These initial values ​​provide the basic evaluation benchmark for this method.

[0042] In actual operation, this method adaptively adjusts the weights based on dynamic changes in network status. When the packet error rate of a terminal device relative to any wireless access point exceeds a preset packet error rate threshold, the packet error rate weight is automatically increased based on the magnitude of the exceedance, while the signal strength weight is correspondingly decreased. For example, for every 5% increase in the packet error rate over the preset threshold, the packet error rate weight increases by 0.1, while the signal strength weight decreases by the corresponding value.

[0043] On the other hand, when any wireless access point is detected to have reached its performance limit—that is, when the number of device connections reaches the maximum supported number, the CPU utilization rate exceeds a preset CPU utilization threshold, or the occupied bandwidth exceeds a preset bandwidth threshold—the load status weight will be set to a preset maximum load weight (e.g., 1), and all other weights will be adjusted proportionally accordingly. This ensures that roaming decisions are based almost entirely on the load status of the wireless access point at this time, avoiding switching terminal devices to overloaded wireless access points. This dynamic weight adjustment mechanism ensures that this method can intelligently adjust the importance of each factor in the decision-making process based on real-time network conditions.

[0044] In this embodiment, step S102 establishes a dynamic weight adjustment mechanism to achieve intelligent evolution of the network evaluation strategy. Compared with a fixed weight scheme, this method can adaptively adjust the importance of each real-time network factor according to the real-time network conditions, making roaming decisions more aligned with the actual needs of the current network environment. This dynamic weight allocation strategy not only enhances the adaptability of this method to complex network environments but also significantly improves resource utilization efficiency. It enables roaming decisions to maintain basic signal quality requirements while also responding flexibly to specific network conditions, thereby optimizing overall network performance.

[0045] In step S103 above, based on the weights of each real-time network factor and the set of real-time network factors, the roaming decision score of the terminal device relative to each wireless access point is obtained. Specifically, this includes the following steps S1031-S1036: S1031: Determine the signal strength score of the terminal device relative to each wireless access point based on the signal strength of the terminal device relative to each wireless access point.

[0046] Specifically, this can be achieved by transforming the signal strength to a standardized score within the [0, 1] interval using a linear mapping. For example, when the signal strength is in the range of [-95dBm, -40dBm], the signal strength score can be calculated using the following formula 1:

[0047] In the formula, f(RSSI) The signal strength score is given. RSSIThis represents the signal strength. At this point, when the signal strength is -40dBm, the signal strength score is the highest score of 1, and when the signal strength is -95dBm, the signal strength score is the lowest score of 0.

[0048] Furthermore, this method can adaptively adjust the signal strength score calculation method by monitoring link quality. If a terminal device continues to experience a high packet error rate even when the received signal strength is above a certain threshold (e.g., -70dBm), significant environmental interference can be identified. In this case, the signal strength range can be adjusted from [-95dBm, -40dBm] to [-100dBm, -40dBm], so that the signal strength score only begins to decrease significantly at lower signal strength levels. This mechanism enhances the ability to detect link quality degradation caused by factors other than signal strength, enabling the method to effectively identify and evaluate available network connections even in complex interference environments.

[0049] S1032: Determine the packet error rate score of the terminal device relative to each wireless access point based on the service type of the terminal device and the packet error rate of the terminal device relative to each wireless access point. This specifically includes the following steps S10321-S10322: S10321: Determine the service error rate threshold based on the service type of the terminal device.

[0050] Specifically, this method can preset packet error rate thresholds for different service types. For example, when the service type is real-time video call, the packet error rate threshold is set to a strict threshold of 5%, while when the service type is file download, the packet error rate threshold is set to a more lenient threshold of 15%, in order to meet the differentiated requirements of network reliability for different service types.

[0051] S10322: For each wireless access point, based on the service packet error rate threshold and the packet error rate of the terminal device relative to the wireless access point, obtain the packet error rate score of the terminal device relative to the wireless access point.

[0052] Specifically, for each wireless access point, based on the service packet error rate threshold and the packet error rate of the terminal device relative to the wireless access point, the packet error rate score of the terminal device relative to the wireless access point can be calculated using the following formula 2:

[0053] In the formula, g(PER) The error rate is scored. PRE For packet error rate, Threshold This is the business error rate threshold. Formula 2 ensures that when the error rate equals the business error rate threshold, the error rate score is 0, when the error rate is 0, the error rate score is 1, and the error rate score decreases linearly as the error rate increases.

[0054] In this embodiment, to improve the stability and anti-interference capability of the packet error rate score and avoid roaming decision abnormalities caused by instantaneous network fluctuations, a sliding window mean filtering process can be applied to the packet error rate. Specifically, this method maintains a preset time window (e.g., 500ms), continuously collects multiple packet error rate values ​​within this time window, and uses the arithmetic mean of all packet error rates within the window as the effective packet error rate value for calculating the packet error rate score. This processing method can effectively smooth out instantaneous packet error rate spikes and eliminate measurement deviations caused by occasional interference, thereby making the final packet error rate score more reflective of the continuous stable state of the link and improving the accuracy and reliability of roaming decisions.

[0055] S1033: Determine the load status score for each wireless access point based on its load status.

[0056] Specifically, for each wireless access point, the load status score can be calculated using the following formula 3, based on the number of device connections, maximum supported connections, CPU utilization, occupied bandwidth, and total bandwidth of the wireless access point:

[0057] In the formula, h(Load) Score the load status. Conn Number of connected devices Conn_max To support the maximum number of connections, CPU_usage For CPU utilization, BW_used Bandwidth already in use BW_total Total bandwidth l 1. l 2. l 3 is the preset weighting coefficient.

[0058] S1034: Determine the operating frequency band score for each wireless access point based on its operating frequency band.

[0059] Specifically, this method can pre-determine different operating frequency band scores for different operating frequency bands. For example, when the operating frequency band is 5GHz, due to its high throughput and low interference characteristics, its corresponding operating frequency band score is 1.0. When the operating frequency band is 2.4GHz, considering its susceptibility to interference and channel congestion, its corresponding operating frequency band score is 0.3. This differentiated scoring mechanism helps guide terminal devices to prioritize the 5GHz frequency band with better performance.

[0060] S1035: Determine the service type score based on the service type of the terminal device.

[0061] Specifically, this method pre-determines different service type scores for different priority service types. For example, when the service type is real-time video call, due to its sensitivity to latency and jitter, its corresponding service type score is 1.0; when the service type is web browsing, its corresponding service type score is 0.6; and when the service type is background download, its corresponding service type score is 0.3. This scoring mechanism ensures that high-priority services receive greater weight in roaming decisions.

[0062] S1036: For each wireless access point, based on the terminal device's signal strength score and packet error rate score relative to the wireless access point, the wireless access point's load status score and operating frequency band score, the terminal device's service type score, and the weights of each real-time network factor, the roaming decision score of the terminal device relative to the wireless access point is obtained.

[0063] Specifically, for each wireless access point, the roaming decision score of the terminal device relative to the wireless access point can be calculated using the following formula 4, based on the signal strength score and packet error rate score of the terminal device relative to the wireless access point, the load status score and operating frequency band score of the wireless access point, the service type score of the terminal device, and the weights of each real-time network factor: Formula 4 In the formula, RDS represents the roaming decision score. f(RSSI) The signal strength score is given. g(PER) The error rate is scored. h (Load) Score the load status. k(Band) Scoring is given based on the operating frequency band. m(ServiceType) Score by business type. α For signal strength weights, β As the error rate weight, γ As load state weights, δ For operating frequency band weights, ε Weights are assigned to business types.

[0064] By using this linear weighted algorithm, this method can comprehensively consider network state information from various dimensions and ultimately generate a unified and quantifiable roaming decision score, providing an accurate basis for subsequent roaming decision triggering judgments.

[0065] In step S104 above, if the roaming decision score between the terminal device and any wireless access point meets the preset roaming triggering rule, then the terminal device is connected to that wireless access point. The preset roaming triggering rule can be met in two ways: The first method of step S104 specifically includes the following steps S10401-S10404: S10401: Use the roaming decision score of the terminal device and the first wireless access point currently connected as the first score.

[0066] S10402: For each wireless access point, designate the wireless access point as the target wireless access point.

[0067] S10403: Use the roaming decision score between the terminal device and the target wireless access point as the second score.

[0068] S10404: If the second score is greater than or equal to the preset roaming decision score threshold, and the second score is greater than or equal to the sum of the first score and the preset roaming delay trigger threshold, then the roaming decision score of the target wireless access point is determined to meet the preset roaming trigger rule, and the terminal device is connected to the target wireless access point.

[0069] For example, the preset roaming decision score threshold can be set to 0.8, and the preset roaming delay trigger threshold can be set to 0.1.

[0070] The second method of step S104 specifically includes the following steps S10411-S10413: S10411: For each wireless access point, designate the wireless access point as the target wireless access point.

[0071] S10412: Use the roaming decision score between the terminal device and the target wireless access point as the second score.

[0072] S10413: If the second score is greater than or equal to the difference between the preset roaming decision score threshold and the preset roaming delay trigger threshold, and the second score is less than the preset roaming decision score threshold, then after a preset observation time window has elapsed, the updated second score is obtained. If the updated second score is greater than or equal to the difference between the preset roaming decision score threshold and the preset roaming delay trigger threshold, then the roaming decision score of the target wireless access point is determined to meet the preset roaming trigger rule, and the terminal device is connected to the target wireless access point.

[0073] Specifically, for example, the preset roaming decision score threshold can be set to 0.8, the preset roaming delay trigger threshold can be set to 0.1, and the preset observation time window can be set to 200 milliseconds.

[0074] When the second score of the target wireless access point is found to be in the range [0.7, 0.8), a timer is started for continuous observation. After 200 milliseconds, the second score of the target wireless access point is reacquired, and an updated second score is obtained. If the updated score is still not lower than 0.7, the roaming trigger condition is confirmed to be met, and roaming operation is performed to connect the terminal device to the target wireless access point. This delayed triggering mechanism effectively avoids erroneous handovers caused by instantaneous signal fluctuations.

[0075] In this embodiment, step S104 achieves an effective balance between sensitivity and stability in roaming decisions by establishing a hierarchical triggering mechanism and a stability guarantee strategy. On the one hand, setting immediate triggering conditions ensures that the terminal can quickly switch when a significantly high-quality access point is discovered, making full use of high-quality network resources. On the other hand, introducing a delayed triggering mechanism effectively avoids frequent switching problems caused by instantaneous signal fluctuations by continuously observing critical access points, significantly reducing the probability of the "ping-pong effect." This dual triggering mechanism, combined with a preset observation time window, enables this method to respond promptly to favorable changes in network status while maintaining necessary decision-making stability. Furthermore, by setting reasonable threshold parameters, this method can maintain adaptability in different network environments, avoiding both being too conservative and missing switching opportunities, and being too aggressive and causing connection jitter, ultimately providing users with a smooth and stable roaming experience and significantly improving network service quality in mobile scenarios.

[0076] In this embodiment of the application, after completing step S104 and connecting the terminal device to the wireless access point, the method further includes step S105, which suppresses repeated connections to the previous wireless access point. Step S105 specifically includes the following steps S1051-S1052: S1051: Use the previous wireless access point connected to the terminal device as the second wireless access point.

[0077] S1052: During the preset roaming suppression time, when the second wireless access point is used as the target wireless access point, the preset roaming decision score threshold is updated to the sum of the preset roaming decision score threshold and the preset roaming delay trigger threshold.

[0078] Specifically, for example, the preset roaming suppression time can be set to 4000 milliseconds, the preset roaming decision score threshold can be set to 0.8, and the preset roaming delay trigger threshold can be set to 0.1.

[0079] Within the preset roaming suppression time, when a terminal device attempts to reconnect to the second wireless access point, this method raises the roaming decision triggering standard (i.e., the preset roaming decision score threshold) from the usual 0.8 to 0.9 (i.e., 0.8 + 0.1). By increasing the reconnection threshold, this effectively prevents the terminal device from frequently switching back to the original access point within a short period, thereby ensuring the stability of the roaming connection. This suppression mechanism, in conjunction with the hierarchical triggering rule in step S104 above, together constitutes the anti-ping-pong effect protection mechanism of this method.

[0080] Example 2 Based on the same inventive concept, embodiments of the present invention also provide a wireless roaming device based on multi-factor weight fusion, referring to... Figure 2 As shown, the device includes: The data acquisition module 101 is used to acquire a set of real-time network factors of the terminal device relative to each wireless access point; the set of real-time network factors includes the service type of the terminal device, the load status and operating frequency band of the wireless access point, and the signal strength and packet error rate of the terminal device relative to the wireless access point. The weight determination module 102 is used to determine the weight of each real-time network factor in the real-time network factor set for each wireless access point. The scoring calculation module 103 is used to obtain the roaming decision score of the terminal device relative to each wireless access point based on the weights of each real-time network factor and the set of real-time network factors. The roaming decision module 104 is used to connect the terminal device to any wireless access point if the roaming decision score between the terminal device and any wireless access point meets the preset roaming triggering rule.

[0081] Example 3 Based on the same inventive concept, embodiments of the present invention also provide a computer-readable storage medium storing a computer program / instructions thereon, which, when executed by a processor, implements the wireless roaming method based on multi-factor weight fusion as described in Embodiment 1 above.

[0082] Example 4 Based on the same inventive concept, embodiments of the present invention also provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the wireless roaming method based on multi-factor weight fusion as described in Embodiment 1 above.

[0083] Example 5 Based on the same inventive concept, this embodiment of the invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory. When the processor executes the computer program, it implements the wireless roaming method based on multi-factor weight fusion as described in Embodiment 1 above.

[0084] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0085] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0086] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0087] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0088] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A wireless roaming method based on multi-factor weight fusion, applied to a network controller in a distributed wireless network, characterized in that, The method comprises: acquiring a real-time network factor set of the terminal device relative to each wireless access point; the real-time network factor set comprises a service type of the terminal device, a load state and a working frequency band of the wireless access point, and a signal strength and a packet error rate of the terminal device relative to the wireless access point; determining a weight of each real-time network factor in the real-time network factor set for each wireless access point; obtaining a roaming decision score of the terminal device relative to each wireless access point based on the weight of each real-time network factor and the real-time network factor set; if the roaming decision score of the terminal device relative to any wireless access point meets a preset roaming trigger rule, connecting the terminal device to the wireless access point.

2. The method of claim 1, wherein, The method for connecting the terminal device to the wireless access point if the roaming decision score of the terminal device relative to any wireless access point meets a preset roaming trigger rule comprises: taking a roaming decision score of the terminal device relative to a first wireless access point currently connected by the terminal device as a first score; taking each wireless access point as a target wireless access point; taking a roaming decision score of the terminal device relative to the target wireless access point as a second score; if the second score is greater than or equal to a preset roaming decision score threshold and greater than or equal to a sum of the first score and a preset roaming delay trigger threshold, determining that the roaming decision score of the target wireless access point meets the preset roaming trigger rule, and connecting the terminal device to the target wireless access point.

3. The method of claim 1, wherein, The method for connecting the terminal device to the wireless access point if the roaming decision score of the terminal device relative to any wireless access point meets a preset roaming trigger rule comprises: taking each wireless access point as a target wireless access point; taking a roaming decision score of the terminal device relative to the target wireless access point as a second score; if the second score is greater than or equal to a difference between a preset roaming decision score threshold and a preset roaming delay trigger threshold and less than the preset roaming decision score threshold, obtaining an updated second score after a preset observation time window, and if the updated second score is greater than or equal to the difference between the preset roaming decision score threshold and the preset roaming delay trigger threshold, determining that the roaming decision score of the target wireless access point meets the preset roaming trigger rule, and connecting the terminal device to the target wireless access point.

4. The method according to any of claims 2 or 3, characterized in that, After the terminal device is connected to the wireless access point, the method further comprises: taking a last wireless access point connected by the terminal device as a second wireless access point; updating the preset roaming decision score threshold to a sum of the preset roaming decision score threshold and a preset roaming delay trigger threshold when the second wireless access point is taken as a target wireless access point within a preset roaming suppression time.

5. The method of claim 1, wherein, The method comprises: According to the signal strength of the terminal device relative to each wireless access point, determining a signal strength score of the terminal device relative to each wireless access point; According to the service type of the terminal device and the packet error rate of the terminal device relative to each wireless access point, determining a packet error rate score of the terminal device relative to each wireless access point; According to the load state of each wireless access point, determining a load state score of each wireless access point; According to the operating frequency band of each wireless access point, determining an operating frequency band score of each wireless access point; According to the service type of the terminal device, determining a service type score; For each wireless access point, based on the signal strength score and the packet error rate score of the terminal device relative to the wireless access point, the load state score and the operating frequency band score of the wireless access point, the service type score of the terminal device, and the weight of each real-time network factor, a roaming decision score of the terminal device relative to the wireless access point is obtained.

6. The method of claim 5, wherein, The method further comprises: According to the service type of the terminal device, determining a service packet error rate threshold; For each wireless access point, based on the service packet error rate threshold and the packet error rate of the terminal device relative to the wireless access point, a packet error rate score of the terminal device relative to the wireless access point is obtained.

7. The method of claim 5, wherein, The method further comprises: For each wireless access point, based on the number of device connections, the maximum supported number of connections, the CPU usage, the occupied bandwidth, and the total bandwidth of the wireless access point, a load state score of the wireless access point is obtained.

8. The method of claim 1, wherein, The weight of each real-time network factor comprises a signal strength weight, a packet error rate weight, a load state weight, an operating frequency band weight, and a service type weight; the method further comprises: When the packet error rate of the terminal device relative to any wireless access point is greater than a preset packet error rate threshold, the packet error rate weight is increased and the signal strength weight is decreased according to the difference between the packet error rate and the preset packet error rate threshold.

9. The method of claim 8, wherein, The method further comprises: When the number of device connections of any wireless access point is equal to the maximum supported number of connections, or the CPU usage is greater than a preset CPU usage threshold, or the occupied bandwidth is greater than a preset bandwidth threshold, the load weight is set to a preset maximum load weight.

10. A wireless roaming device based on multi-factor weight fusion, characterized in that, The method further comprises: A data acquisition module is configured to acquire a set of real-time network factors of the terminal device relative to each wireless access point; The set of real-time network factors comprises the service type of the terminal device, the load state and the operating frequency band of the wireless access point, and the signal strength and the packet error rate of the terminal device relative to the wireless access point; a weight determination module, configured to determine a weight of each real-time network factor in the set of real-time network factors for each wireless access point; a score calculation module, configured to obtain a roaming decision score of the terminal device relative to each wireless access point based on the weight of each real-time network factor and the set of real-time network factors; a roaming decision module, configured to connect the terminal device to a wireless access point if the roaming decision score of the terminal device relative to the wireless access point meets a preset roaming trigger rule.