AC / AP centralized management system and method based on MQTT protocol
By adopting the combination of MQTT protocol and DHCP server in the AC/AP centralized management system, the problem of complex device access and management and insufficient real-time monitoring in the existing system is solved, and efficient automation management and dynamic adjustment capabilities are realized, which improves the Network stability and user experience.
Patent Information
- Application Number
- CN202411545433.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-11-01
AI Technical Summary
The existing AC/AP centralized management system relies on the CAPWAP protocol, resulting in complex and inefficient device access and management processes. It also lacks flexible real-time monitoring and dynamic adjustment capabilities, making it difficult to adapt to changes and needs in large-scale network environments.
The AC/AP centralized management system based on the MQTT protocol is adopted. The AP access point is allocated through the DHCP server and the MQTT server address of the AC access module is passed. The AP access point and the AC access module establish a connection through the MQTT protocol, and The operating data is reported regularly, and the AC access module uses this data to evaluate and manage decisions.
It realizes automated management of AP access points, simplifies the device access process, improves management efficiency and real-time monitoring capabilities of the network, can dynamically adjust the access status to adapt to network changes, and improves the stability and user experience of the network.
Smart Images

Figure CN119420646A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication systems, and in particular to an MQTT-based AC / AP centralized management system and method. Background Art
[0002] With the rapid development and continuous progress of wireless network technology, more and more enterprises and organizations tend to adopt centralized management solutions, especially through the combination of access controllers (AC) and access points (AP), to achieve efficient management and optimization of network resources. This centralized management method can not only significantly improve network management efficiency, but also greatly improve users' network experience.
[0003] However, the current AC / AP centralized management system generally relies on the CAPWAP protocol for centralized management and control of devices. Although the CAPWAP protocol provides a certain degree of flexibility in network management, its overly complex and cumbersome characteristics lead to delays in the device access and management process, especially in large-scale network environments, where management efficiency is greatly reduced. In addition, traditional DHCP servers are usually only responsible for allocating IP addresses to network devices, but lack comprehensive support for device management. This makes the management and control of AP access points more cumbersome, especially when the network configuration needs to be adjusted frequently, and traditional systems are difficult to adapt to dynamic changes. At the same time, the real-time monitoring capability of the existing AC / AP centralized management system is weak, and it is often unable to obtain the operating status and load of AP access points in a timely manner. The operating data of the device (such as the number of connected terminals, signal strength, and load data) is usually reported at fixed time intervals, lacking flexibility and making it difficult to dynamically evaluate and adjust the network status. This results in slow system response and inability to make corresponding management decisions in a timely manner when the network load is high or user requests are frequent, thus affecting the performance and stability of the overall network.
[0004] Therefore, there is an urgent need to invent an AC / AP management system to solve the problem that the AC / AP centralized management system in the existing technology relies on the CAPWAP protocol, resulting in complex and inefficient device access and management processes, and lacks flexible real-time monitoring and dynamic adjustment capabilities, making it difficult to adapt to changes and needs in large-scale network environments. Summary of the invention
[0005] In view of this, the present invention proposes an AC / AP centralized management system and method based on the MQTT protocol, aiming to solve the problem that the AC / AP centralized management system in the current technology relies on the CAPWAP protocol, resulting in complex and inefficient device access and management processes, and lacks flexible real-time monitoring and dynamic adjustment capabilities, making it difficult to adapt to changes and needs in large-scale network environments.
[0006] The present invention proposes an AC / AP centralized management system based on the MQTT protocol, including: an AC access module, a plurality of AP access points, an MQTT agent and a DHCP server;
[0007] The DHCP server is configured to allocate IP addresses to the plurality of AP access points, and the DHCP server is further configured to send the MQTT server address of the AC access module to the plurality of AP access points according to an option field configured by the DHCP server;
[0008] The AP access point is configured to establish a connection with the MQTT agent based on the MQTT protocol after acquiring the MQTT server address, and the AP access point is also configured to send registration information to the AC access module to complete access registration; the AP access point is also configured to send operation data to the AC access module based on the MQTT server and a preset frequency, wherein the operation data includes: load data, the number of terminals connected to the AP access point, and signal strength;
[0009] The AC access module is configured to issue configuration and management instructions to the plurality of AP access points based on the MQTT agent; the AC access module is further configured to perform an evaluation based on the operation data sent by the AP access point, and the AC access module is further configured to determine whether to adjust the access state of the AP access point based on the evaluation result, wherein:
[0010] If the evaluation result is lower than a preset evaluation score configured by the AC access module, the AC access module determines to adjust the access state of the AP access point.
[0011] Further, the AC access module is further configured to determine a preset frequency at which the AP access point sends the operating data according to the signal strength of the AP access point, specifically:
[0012] The AP access point is also used to obtain the signal strength of the network, and determine the preset frequency according to the relationship between the signal strength and the preset signal strength configured by the AP access point;
[0013] When the preset signal strength is greater than or equal to the preset signal strength, the AC access module configures the sending frequency of the AP access point to be the preset frequency;
[0014] When the preset signal strength is less than the preset signal strength, the AC access module obtains the strength difference between the signal strength and the preset signal strength, determines an adjustment coefficient range according to the strength difference, and adjusts the transmission frequency according to the adjustment coefficient range, and the AC access module is further used to determine the adjusted transmission frequency as the preset frequency;
[0015] The adjustment coefficient range is (1-0).
[0016] Further, the AC access module is further configured to perform an evaluation based on the operation data sent by the AP access point, including:
[0017] The AC access module is also configured with a preset transmission frequency;
[0018] The AC access module is further configured to determine whether to evaluate the network status of the AP access point and determine the network score of the AP access point according to the relationship between the sending frequency of the operation data sent by the AP access point and the preset sending frequency;
[0019] When the sending frequency is equal to the preset sending frequency, the AC access module determines not to evaluate the network status of the AP access point;
[0020] When the sending frequency is less than the preset sending frequency, the AC access module determines to evaluate the network status of the AP access point, and determines the operation score of the AP access point according to the operation data sent by the AP access point.
[0021] Further, when the AC access module determines the operation score of the AP access point according to the operation data sent by the AP access point, it includes:
[0022] The AC access module is also used to obtain the real-time data processing flow of the AP access point, the real-time utilization rate of the AP access point CPU and memory, the real-time utilization rate of the AP access point wireless channel and the real-time service request quantity of the AP access point;
[0023] The AC access module is further used to substitute the real-time data processing flow of the AP access point, the real-time utilization rate of the AP access point CPU and memory, the real-time utilization rate of the AP access point wireless channel and the number of real-time service requests of the AP access point into a formula, and determine the load score of the AP access point according to the formula, and the formula is as follows:
[0024]
[0025] Wherein, P is the load score of the AP access point, q1 is the real-time data processing flow, q max is the maximum value of data processing flow, w1 is the real-time utilization rate of the CPU of the AP access point, and w max is the maximum utilization rate of the CPU of the AP access point, e1 is the real-time utilization rate of the memory of the AP access point, and e maxis the maximum usage rate of the AP access point memory, r1 is the real-time utilization rate of the AP access point wireless channel, r max is the maximum utilization rate of the wireless channel of the AP access point, a1 is the number of real-time service requests, and a max is the maximum number of service requests, z1-z5 are weight coefficients, and the sum of z1-z5 is 1;
[0026] The AC access module is further configured to determine an operation score of the AP access point according to a load score P of the AP access point.
[0027] Further, the AC access module is further configured to determine the operation score of the AP access point according to the load score P of the AP access point, including:
[0028] The AC access module is further used to obtain a load score average between the load scores of the plurality of AP access points, and the AC access module is further used to determine the load score average as a preset load score;
[0029] The AC access module is further used to obtain a load score difference between the load score P of the AP access point and the preset load score, and determine the operation score of the AP access point according to the relationship between the load score difference and a first preset load score difference and a second preset load score difference configured by the AC access module;
[0030] When the load score difference is less than or equal to the first preset load score difference, the AC access module determines that the operation score of the AP access point is L1;
[0031] When the load score difference is greater than the first preset load score difference, and the load score difference is less than or equal to the second preset load score difference, the AC access module determines that the operation score of the AP access point is L2;
[0032] When the load score difference is greater than the second preset load score difference, the AC access module determines that the operation score of the AP access point is L3;
[0033] The first preset load score difference is smaller than the second preset load score difference, and L1<L2<L3.
[0034] Further, when the AC access module determines that the operation score of the AP access point is Li, i=1, 2, 3, including:
[0035] The AC access module is further used to obtain the average number of terminals connected to each of the AP access points, and determine the preset number of terminals based on the average number;
[0036] The AC access module is also used to obtain the number of real-time terminals connected to the AP access point, and determine whether to modify the operation score Li of the AP access point according to the relationship between the real-time terminal number and the preset terminal number;
[0037] When the number of real-time terminals is greater than the preset number of terminals, the AC access module does not modify the operation score Li of the AP access point;
[0038] When the real-time terminal quantity is less than or equal to the preset terminal quantity, the AC access module obtains the quantity difference between the real-time terminal quantity and the preset terminal quantity, determines a correction coefficient, and corrects the operation score Li of the AP access point according to the correction coefficient.
[0039] Furthermore, the AC access module is further configured to determine the correction coefficient according to the difference between the real-time terminal quantity and the preset terminal quantity, including:
[0040] The AC access module is also configured with a first preset quantity difference and a second preset quantity difference;
[0041] The AC access module is further used to determine the correction coefficient according to the relationship between the quantity difference and the first preset quantity difference and the second preset quantity difference;
[0042] When the quantity difference is less than the first preset quantity difference, the AC access module determines that the correction coefficient is K3;
[0043] When the quantity difference is greater than or equal to the first preset quantity difference, and the quantity difference is less than the second preset quantity difference, the AC access module determines that the correction coefficient is K2;
[0044] When the quantity difference is greater than or equal to the second preset quantity difference, the AC access module determines that the correction coefficient is K1;
[0045] The first preset quantity difference is smaller than the second preset quantity difference, and K1<K2<K3<1.
[0046] Further, when the AC access module determines that the correction coefficient is Ki, i=1, 2, 3, including:
[0047] The AC access module is further used to obtain the average strength of the signal strength of each of the AP access points, and the AC access module is further used to determine the average strength as the preset signal strength;
[0048] The AC access module is also used to determine whether to correct the correction coefficient Ki according to the relationship between the real-time signal strength of the AP access point and the preset signal strength;
[0049] When the real-time signal strength is greater than or equal to the preset signal strength, the AC access module does not correct the correction coefficient Ki;
[0050] When the real-time signal strength is less than the preset signal strength, the AC access module determines a correction coefficient according to the strength difference between the real-time signal strength and the preset signal strength, and corrects the correction coefficient Ki according to the correction coefficient.
[0051] Furthermore, when the AC access module determines the correction coefficient according to the strength difference between the real-time signal strength and the preset signal strength, it includes:
[0052] The AC access module is also configured with a first preset strength difference and a second preset strength difference;
[0053] The AC access module is further used to determine the correction coefficient according to the relationship between the intensity difference value and the first preset intensity difference value and the second preset intensity difference value;
[0054] When the intensity difference is less than the first preset intensity difference, the AC access module determines the correction coefficient to be J3;
[0055] When the intensity difference is greater than or equal to the first preset intensity difference, and the intensity difference is less than the second preset intensity difference, the AC access module determines that the correction coefficient is J2;
[0056] When the intensity difference is greater than or equal to the second preset intensity difference, the AC access module determines the correction coefficient to be J1;
[0057] The first preset strength difference is smaller than the second preset strength difference, and J1<J2<J3<1.
[0058] Compared with the prior art, the beneficial effect of the present invention is that: through the integration of the DHCP server, the automatic management of the AP access point is realized. The DHCP server is not only responsible for allocating IP addresses to the AP access point, but also can send the MQTT server address of the AC access module to the access point according to the configured option field. This mechanism effectively simplifies the complex device access and configuration process in the traditional management mode. After the device is started, it can automatically obtain the required network parameters, thereby reducing the manual configuration workload of the network administrator and reducing the risk of human error. The implementation of this automated management makes network management more efficient and saves a lot of time and energy for the administrator. Secondly, the AP access point establishes a connection with the AC access module through the MQTT protocol and regularly sends operating data to it, including load data, the number of connected terminals and signal strength information. This real-time data reporting mechanism enables the network administrator to grasp the operating status of each AP access point at any time, and then dynamically evaluate the overall performance of the network. By analyzing these real-time data, the AC access module can promptly discover potential problems, such as excessive load or reduced signal quality of a certain access point, and thus take corresponding management measures. This dynamic evaluation capability not only improves the reliability of the network, but also effectively avoids service interruptions or performance degradation caused by excessive load, thereby ensuring a good user experience. At the same time, the AC access module evaluates the operating data sent by the AP access point and determines whether the access status needs to be adjusted based on the evaluation results. For example, if the evaluation result of an AP access point is lower than the preset evaluation score, it can automatically decide to temporarily take it offline or adjust its service strategy to prevent network overload or resource waste. This data-driven management decision-making mechanism ensures the efficient use of network resources and improves network stability and service quality. In addition, the AC access module can flexibly adjust the access status of the access point according to real-time needs, thereby automatically optimizing the allocation of network resources at peak user demand moments to ensure that users can access the network smoothly.
[0059] On the other hand, the present application also provides an AC / AP centralized management method based on the MQTT protocol, including:
[0060] Set up AC access module, several AP access points, MQTT proxy and DHCP server;
[0061] Allocating IP addresses to the plurality of AP access points based on the DHCP server, and sending the MQTT server address of the AC access module to the plurality of AP access points according to the option field configured by the DHCP server;
[0062] After obtaining the MQTT server address, control the plurality of AP access points to establish a connection with the MQTT agent based on the MQTT protocol, and control the AP access points to send registration information to the AC access module to complete access registration;
[0063] Control the AP access point to send operation data to the AC access module based on the MQTT server and a preset frequency;
[0064] Control the AC access module to issue configuration and management instructions to the plurality of AP access points based on the MQTT agent;
[0065] The AC access module is controlled to perform evaluation according to the operation data sent by the AP access point, and according to the evaluation result, determines whether to adjust the access state of the AP access point.
[0066] It can be understood that the AC / AP centralized management system and method based on the MQTT protocol in the above-mentioned embodiments of the present invention have the same beneficial effects and will not be described in detail. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0068] Figure 1 A functional block diagram of an AC / AP centralized management system based on the MQTT protocol provided by an embodiment of the present invention;
[0069] Figure 2 A flowchart of an AC / AP centralized management method based on the MQTT protocol provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0070] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0071] like Figure 1As shown, in some embodiments of the present application, this embodiment provides an AC / AP centralized management system based on the MQTT protocol, including: an AC access module, several AP access points, an MQTT agent and a DHCP server.
[0072] Specifically, the DHCP server is configured to allocate IP addresses to several AP access points, and the DHCP server is also configured to send the MQTT server address of the AC access module to several AP access points according to the option field configured by the DHCP server; the AP access point is configured to establish a connection with the MQTT agent based on the MQTT protocol after obtaining the MQTT server address, and the AP access point is also configured to send registration information to the AC access module to complete access registration; the AP access point is also configured to send operating data to the AC access module based on the MQTT server and a preset frequency, wherein the operating data includes: load data, the number of terminals connected to the AP access point, and the signal strength; the AC access module is configured to issue configuration and management instructions to several AP access points based on the MQTT agent; the AC access module is also configured to evaluate the operating data sent by the AP access point, and the AC access module is also configured to determine whether to adjust the access status of the AP access point based on the evaluation result, wherein: if the evaluation result is lower than the preset evaluation score configured by the AC access module, the AC access module determines to adjust the access status of the AP access point.
[0073] It can be understood that by effectively integrating the functions of the DHCP server, AP access point and AC access module, an efficient wireless network management architecture is constructed. Specifically, the DHCP server not only assigns an IP address to the AP access point, but also passes the MQTT server address of the AC access module through the option field, thereby realizing automatic access of the device. After obtaining the MQTT server address, the AP access point can establish a connection with the MQTT agent and send registration information to the AC access module to complete the access registration. The AP access point also regularly reports operating data (including load data, number of connected terminals and signal strength) to the AC access module based on a preset frequency, so that the AC access module can monitor the network status in real time and perform dynamic evaluation. Based on the received operating data, the AC access module can determine whether to adjust the access status of the AP access point, thereby realizing flexible network management and ensuring the performance and stability of the network. Through this mechanism, it is possible to respond to changes in network load in a timely manner, improve resource utilization, and optimize user experience.
[0074] It is understandable that the DHCP server not only assumes the basic function of allocating IP addresses to AP access points, but also uses the option field to pass the MQTT server address of the AC access module to these access points. This design optimizes the device access process, avoids the cumbersome manual configuration in the traditional method, and ensures that the AP access point can quickly connect to the management system while obtaining the IP address, thereby realizing automated management. Secondly, after obtaining the MQTT server address, the AP access point can establish a stable connection with the AC access module through the MQTT protocol. Thereafter, the AP access point will regularly send operating data to the AC access module, which includes key information such as real-time load conditions, the number of connected terminals, and signal strength. Such a real-time data reporting mechanism enables network administrators to obtain the latest status of each AP access point, so as to have a comprehensive understanding of the operation of the entire network. Especially when the network load is high or user requests are frequent, it is crucial to obtain this information in a timely manner, which helps network administrators quickly identify potential network problems and take corresponding management measures. In addition, the operation data reporting of the AP access point is based on the preset frequency, but the system also allows the AP access point to flexibly adjust the reporting frequency according to the real-time situation of the network. For example, when the network load increases, the AP access point can increase the frequency of data reporting to ensure that the management module can obtain the latest operating status more timely. This dynamic reporting mechanism not only improves the timeliness of the data, but also enhances the system's ability to respond to sudden network situations, making network management more intelligent and efficient. At the same time, the AC access module receives the operating data from each AP access point and performs dynamic evaluation. By analyzing this data, the AC access module can monitor the health status and load of each access point in real time. When the evaluation result is lower than the preset threshold, the system can automatically decide whether to adjust the access status of the AP access point. For example, if the load of an AP access point is too high, the system can choose to take it offline or limit the number of its access terminals to avoid burdening the entire network. This intelligent evaluation and management capability eliminates the need for network administrators to manually adjust device configurations, greatly improving management efficiency and network stability. Finally, the design based on the MQTT protocol makes the system have good scalability and compatibility, and can adapt to the changing network needs in the future. The system can easily support more AP access points and network devices, and seamlessly integrate with other network management tools and platforms to form a unified network management ecosystem. Network administrators can dynamically adjust network configurations based on real-time data to respond to situations such as a surge in the number of users or changes in the network environment, ensuring that the system always maintains optimal performance.
[0075] Specifically, the AC access module is also configured to determine the preset frequency for the AP access point to send operating data based on the signal strength of the AP access point, specifically: the AP access point is also used to obtain the signal strength of the network, and determine the preset frequency based on the relationship between the signal strength and the preset signal strength configured for the AP access point; when the preset signal strength is greater than or equal to the preset signal strength, the AC access module sets the sending frequency configured for the AP access point to the preset frequency; when the preset signal is less than the preset signal strength, the AC access module obtains the strength difference between the signal strength and the preset signal strength, determines the adjustment coefficient range based on the strength difference, and adjusts the sending frequency based on the adjustment coefficient range, and the AC access module is also used to determine the adjusted sending frequency as the preset frequency; wherein the adjustment coefficient range is (1-0).
[0076] It is understandable that the AP access point will continuously monitor its network signal strength during operation. When the actual signal strength is compared with the preset signal strength, the AC access module can make a corresponding judgment. If the signal strength is good (that is, the actual signal strength is greater than or equal to the preset signal strength), the transmission frequency of the AP access point is kept unchanged, which can ensure the real-time and accuracy of the data. However, when the signal strength is weak, the AC access module will actively adjust the data transmission frequency of the AP access point. This adaptive adjustment mechanism ensures that stable data transmission can be maintained even when the network environment changes. When the signal strength is lower than the preset value, the AC access module will calculate the difference between the actual signal strength and the preset signal strength. This difference not only reflects the degree of signal attenuation, but also provides a basis for adjusting the transmission frequency. By setting an adjustment coefficient range (1-0), the transmission frequency can be flexibly reduced to adapt to the current network conditions. For example, when the signal strength drops significantly, the system can significantly reduce the data reporting frequency, thereby reducing the network load and reducing the risk of data loss due to poor signal. In addition, this dynamic adjustment mechanism based on signal strength feedback not only improves the stability and reliability of the AP access point, but also enhances the adaptability of the entire wireless network. This enables automatic identification and response to potential problems in complex and changing environments, ensuring efficient operation of the network.
[0077] Specifically, when the AC access module is further configured to evaluate according to the operation data sent by the AP access point, it includes: the AC access module is also configured with a preset sending frequency; the AC access module is also configured to determine whether to evaluate the network status of the AP access point and determine the network score of the AP access point according to the relationship between the sending frequency of the operation data sent by the AP access point and the preset sending frequency: when the sending frequency is equal to the preset sending frequency, the AC access module determines not to evaluate the network status of the AP access point. When the sending frequency is less than the preset sending frequency, the AC access module determines to evaluate the network status of the AP access point and determines the operation score of the AP access point according to the operation data sent by the AP access point.
[0078] Specifically, when the AC access module determines the operation score of the AP access point based on the operation data sent by the AP access point, it includes: the AC access module is also used to obtain the real-time data processing traffic of the AP access point, the real-time utilization rate of the AP access point CPU and memory, the real-time utilization rate of the AP access point wireless channel, and the number of real-time service requests of the AP access point. The AC access module is also used to substitute the real-time data processing traffic of the AP access point, the real-time utilization rate of the AP access point CPU and memory, the real-time utilization rate of the AP access point wireless channel, and the number of real-time service requests of the AP access point into the formula, and determine the load score of the AP access point according to the formula, and the formula is as follows: Among them, P is the load score of the AP access point, q1 is the real-time data processing flow, q max is the maximum value of data processing traffic, w1 is the real-time CPU usage of the AP access point, and w max is the maximum utilization rate of the AP access point CPU, e1 is the real-time utilization rate of the AP access point memory, and e max is the maximum usage rate of the AP access point memory, r1 is the real-time utilization rate of the AP access point wireless channel, and r max is the maximum utilization of the wireless channel of the AP access point, a1 is the number of real-time service requests, and a max is the maximum number of service requests, z1-z5 are weight coefficients, and the sum of z1-z5 is 1. The AC access module is also used to determine the operation score of the AP access point according to the load score P of the AP access point.
[0079] Specifically, when the AC access module is also used to determine the operation score of the AP access point according to the load score P of the AP access point, it includes: the AC access module is also used to obtain the load score average between the load scores of several AP access points, and the AC access module is also used to determine the load score average as the preset load score. The AC access module is also used to obtain the load score difference between the load score P of the AP access point and the preset load score, and determine the operation score of the AP access point according to the relationship between the load score difference and the first preset load score difference and the second preset load score difference configured by the AC access module. When the load score difference is less than or equal to the first preset load score difference, the AC access module determines that the operation score of the AP access point is L1. When the load score difference is greater than the first preset load score difference, and the load score difference is less than or equal to the second preset load score difference, the AC access module determines that the operation score of the AP access point is L2. When the load score difference is greater than the second preset load score difference, the AC access module determines that the operation score of the AP access point is L3. Among them, the first preset load score difference is less than the second preset load score difference, and L1<L2<L3.
[0080] It can be seen that the AC access module determines whether it is necessary to evaluate the network status of the AP access point by comparing the actual frequency of the AP access point sending data with the preset sending frequency. When the actual sending frequency is lower than the preset frequency, it indicates that the AP access point may face load or performance problems, thereby triggering an in-depth analysis of its network status. Secondly, when evaluating the network status, the AC access module collects multiple key operating data of the AP access point, including real-time data processing traffic, CPU and memory usage, wireless channel utilization, and the number of service requests. By substituting these data into the preset load scoring formula, the AC access module can comprehensively evaluate the load of the AP access point. The weight coefficient (z1-z5) in the formula allows different parameters to be properly valued in the scoring, ensuring that the evaluation results are more accurate. In addition, by calculating the average load score of multiple AP access points and comparing it with the preset load score, the AC access module can determine the operation score of each AP access point in more detail. According to the relationship between the load score difference and the preset threshold, the system can subdivide the status of the AP access point into different operation score levels (L1, L2, L3). This mechanism effectively realizes real-time monitoring and response to network load, ensuring the stability and reliability of the network.
[0081] It is understandable that the AC access module monitors and evaluates the network status of the access point to ensure that its performance meets the preset standard. By comparing the actual transmission frequency of the AP access point with the preset transmission frequency set by the AC access module, the system can determine whether the access point is in normal operation. If the actual transmission frequency is found to be lower than the preset value, it means that the AP access point may have a performance bottleneck or excessive load, which triggers a comprehensive evaluation of its network status. During this evaluation process, the AC access module collects multiple key operating indicators of the AP access point. These indicators include real-time data processing traffic, CPU and memory usage, wireless channel utilization, and the number of service requests. By incorporating these data into the preset load scoring formula, the load of the AP access point can be comprehensively evaluated. The weight coefficients (z1-z5) included in the formula ensure that each parameter is given proper attention in the scoring, making the evaluation results more accurate and reliable. For example, if the weights of real-time data processing traffic and CPU usage are large, it will respond more sensitively to changes in these two indicators, thereby identifying potential network bottlenecks more quickly. In addition, the AC access module also introduces a dynamic adjustment mechanism based on the average load score. By obtaining the average load score of multiple AP access points, a reasonable preset load score can be set as a benchmark for subsequent evaluation. This method helps to establish more detailed evaluation criteria, making the scores of each access point more fair and reasonable. When the difference between the load score of an AP access point and the preset load score is calculated, the operating status of the AP access point will be subdivided into different evaluations according to the set threshold to facilitate better fault diagnosis and performance optimization. This dynamic evaluation mechanism not only improves the monitoring ability of the AP access point network status, but also effectively enhances the response speed of the network. When the network load is high or user requests are frequent, it can also identify problems in a timely manner and take corresponding management measures to reduce network delays and potential failures.
[0082] Specifically, when the AC access module determines that the operation score of the AP access point is Li, i=1,2,3, including: the AC access module is also used to obtain the number average between the number of terminals connected to each AP access point, and determine the preset number of terminals based on the number average. The AC access module is also used to obtain the number of real-time terminals connected to the AP access point, and determine whether to correct the operation score Li of the AP access point based on the relationship between the real-time terminal number and the preset terminal number. When the real-time terminal number is greater than the preset terminal number, the AC access module does not correct the operation score Li of the AP access point. When the real-time terminal number is less than or equal to the preset terminal number, the AC access module obtains the number difference between the real-time terminal number and the preset terminal number, determines the correction coefficient, and corrects the operation score Li of the AP access point based on the correction coefficient.
[0083] Specifically, when the AC access module is also used to determine the correction coefficient based on the quantity difference between the real-time terminal quantity and the preset terminal quantity, it includes: the AC access module is also configured with a first preset quantity difference and a second preset quantity difference. The AC access module is also used to determine the correction coefficient based on the relationship between the quantity difference and the first preset quantity difference and the second preset quantity difference. When the quantity difference is less than the first preset quantity difference, the AC access module determines the correction coefficient to be K3. When the quantity difference is greater than or equal to the first preset quantity difference, and the quantity difference is less than the second preset quantity difference, the AC access module determines the correction coefficient to be K2. When the quantity difference is greater than or equal to the second preset quantity difference, the AC access module determines the correction coefficient to be K1. Among them, the first preset quantity difference is less than the second preset quantity difference, and K1<K2<K3<1.
[0084] Specifically, when the AC access module determines that the correction coefficient is Ki, i=1,2,3, including: the AC access module is also used to obtain the mean strength of the signal strength of each AP access point, and the AC access module is also used to determine the mean strength as the preset signal strength. The AC access module is also used to determine whether to correct the correction coefficient Ki based on the relationship between the real-time signal strength of the AP access point and the preset signal strength. When the real-time signal strength is greater than or equal to the preset signal strength, the AC access module does not correct the correction coefficient Ki. When the real-time signal strength is less than the preset signal strength, the AC access module determines the correction coefficient based on the strength difference between the real-time signal strength and the preset signal strength, and corrects the correction coefficient Ki based on the correction coefficient.
[0085] Specifically, when the AC access module determines the correction coefficient according to the strength difference between the real-time signal strength and the preset signal strength, it includes: the AC access module is also configured with a first preset strength difference and a second preset strength difference. The AC access module is also used to determine the correction coefficient according to the relationship between the strength difference and the first preset strength difference and the second preset strength difference. When the strength difference is less than the first preset strength difference, the AC access module determines the correction coefficient to be J3. When the strength difference is greater than or equal to the first preset strength difference, and the strength difference is less than the second preset strength difference, the AC access module determines the correction coefficient to be J2. When the strength difference is greater than or equal to the second preset strength difference, the AC access module determines the correction coefficient to be J1. Among them, the first preset strength difference is less than the second preset strength difference, and J1<J2<J3<1.
[0086] It can be understood that the AC access module determines a preset terminal quantity benchmark by obtaining the average number of terminals connected to each AP access point. Then, the relationship between the number of terminals connected in real time and the preset number is compared to determine whether the operation score of the AP access point needs to be corrected. When the real-time number is less than or equal to the preset number, the AC access module calculates the number difference and determines the corresponding correction coefficient based on the difference. This difference-based correction method helps to accurately evaluate the performance of the AP access point under high load conditions, thereby providing a more reasonable operation score. In further evaluation, the AC access module will also consider the signal strength of the AP access point, by calculating the mean of the signal and comparing it with the preset signal strength to determine whether to correct the previously calculated correction coefficient. When the real-time signal strength is lower than the preset value, the correction coefficient will also be determined based on the signal strength difference to ensure that the evaluation result can truly reflect the current network status. This mechanism refines the calculation of the correction coefficient through the hierarchical strength difference setting, making the correction and correction response more sensitive and accurate.
[0087] It is understandable that the AC access module obtains the number of terminals connected to each AP access point in real time and calculates the average of these numbers to determine a preset number of terminals. This preset value, as a benchmark, plays a key reference role in network management. By comparing with the actual number of connections, the system can determine the load status of the current AP access point, especially when the number of users changes frequently, it can timely identify possible network bottlenecks. When the actual real-time number of terminals is less than or equal to the preset number of terminals, the AC access module calculates the difference between the two and determines a correction coefficient based on the difference. The setting of this correction coefficient is based on multi-level evaluation criteria. Specifically, the AC access module pre-sets a first preset number difference and a second preset number difference. When the number difference is less than the first preset number difference, the system sets the correction coefficient to K3; when the difference is between the first preset and the second preset, the correction coefficient is set to K2; finally, when the number difference exceeds the second preset value, the correction coefficient is adjusted to K1. This correction method based on dynamic difference not only improves the flexibility of the operation score of AP access points, but also ensures that the system can effectively respond and make appropriate resource allocation when the load is high. In addition, when evaluating the signal strength of AP access points, the AC access module also adopts the comparison method of real-time data monitoring and preset signal standards. The AC access module calculates the average signal strength of all AP access points and sets it as the preset signal strength benchmark. If the real-time signal strength of an AP access point is lower than this preset value, the module will further calculate the difference in signal strength and determine the correction coefficient based on this difference. This correction coefficient is also set in a hierarchical manner: when the signal difference is less than the first preset strength difference, the correction coefficient is J3; when it is between the first and second, the correction coefficient is set to J2; and when the strength difference exceeds the second preset, the correction coefficient is J1. This hierarchical correction mechanism ensures the system's sensitivity to network conditions, can respond in time when the signal quality decreases, and further optimizes the operation performance of AP access points. In summary, by establishing a multi-level, dynamically adjusted evaluation and correction mechanism, it is ensured that the AC access module can respond to changes in different loads and signal strengths in real time. Under high load conditions, it can quickly identify and adapt to avoid potential network bottlenecks and maintain network stability and reliability. At the same time, through detailed correction and calibration standards, the AC access module can provide more accurate operation scores, thereby providing effective data support and decision-making basis for network management.
[0088] In the above embodiment, the automatic management of AP access points is realized through the integration of the DHCP server. The DHCP server is not only responsible for allocating IP addresses to AP access points, but also can send the MQTT server address of the AC access module to the access point according to the configured option field. This mechanism effectively simplifies the complex device access and configuration process in the traditional management mode. After the device is started, it can automatically obtain the required network parameters, thereby reducing the manual configuration workload of the network administrator and reducing the risk of human error. The implementation of this automated management makes network management more efficient and saves a lot of time and energy for administrators. Secondly, the AP access point establishes a connection with the AC access module through the MQTT protocol and regularly sends operating data to it, including load data, the number of connected terminals, and signal strength information. This real-time data reporting mechanism enables network administrators to grasp the operating status of each AP access point at any time, and then dynamically evaluate the overall performance of the network. By analyzing these real-time data, the AC access module can promptly discover potential problems, such as excessive load or reduced signal quality of a certain access point, and thus take corresponding management measures. This dynamic evaluation capability not only improves the reliability of the network, but also effectively avoids service interruptions or performance degradation caused by excessive load, thereby ensuring a good user experience. At the same time, the AC access module evaluates the operating data sent by the AP access point and determines whether the access status needs to be adjusted based on the evaluation results. For example, if the evaluation result of an AP access point is lower than the preset evaluation score, it can automatically decide to temporarily take it offline or adjust its service strategy to prevent network overload or resource waste. This data-driven management decision-making mechanism ensures the efficient use of network resources and improves network stability and service quality. In addition, the AC access module can flexibly adjust the access status of the access point according to real-time needs, thereby automatically optimizing the allocation of network resources at peak user demand moments to ensure that users can access the network smoothly.
[0089] In another preferred embodiment based on the above embodiment, Figure 2 As shown, this embodiment provides an AC / AP centralized management method based on the MQTT protocol, including:
[0090] Step S100: Set up an AC access module, several AP access points, an MQTT proxy, and a DHCP server.
[0091] Step S200: Allocate IP addresses to several AP access points based on the DHCP server, and send the MQTT server address of the AC access module to the several AP access points according to the option field configured by the DHCP server.
[0092] Step S300: After obtaining the MQTT server address, control several AP access points to establish a connection with the MQTT proxy based on the MQTT protocol, and control the AP access points to send registration information to the AC access module to complete access registration.
[0093] Step S400: Control the AP access point to send operation data to the AC access module based on the MQTT server and the preset frequency.
[0094] Step S500: Control the AC access module to issue configuration and management instructions to several AP access points based on the MQTT agent.
[0095] Step S600: Control the AC access module to evaluate the operation data sent by the AP access point, and determine whether to adjust the access state of the AP access point according to the evaluation result.
[0096] It can be understood that the AC / AP centralized management system and method based on the MQTT protocol in the above-mentioned embodiments of the present invention have the same beneficial effects and will not be described in detail.
[0097] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0098] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0099] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0100] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. An AC / AP centralized management system based on the MQTT protocol, comprising an AC access module, several AP access points, an MQTT agent and a DHCP server, characterized in that: include: The DHCP server is configured to allocate IP addresses to the plurality of AP access points, and the DHCP server is further configured to send the MQTT server address of the AC access module to the plurality of AP access points according to an option field configured by the DHCP server; The AP access point is configured to establish a connection with the MQTT agent based on the MQTT protocol after acquiring the MQTT server address, and the AP access point is also configured to send registration information to the AC access module to complete access registration; The AP access point is also configured to send operation data to the AC access module based on the MQTT server and a preset frequency, wherein the operation data includes: load data, the number of terminals connected to the AP access point, and signal strength; The AC access module is configured to issue configuration and management instructions to the plurality of AP access points based on the MQTT agent; the AC access module is further configured to perform an evaluation based on the operation data sent by the AP access point, and the AC access module is further configured to determine whether to adjust the access state of the AP access point based on the evaluation result, wherein: If the evaluation result is lower than a preset evaluation score configured by the AC access module, the AC access module determines to adjust the access state of the AP access point.
2. The AC / AP centralized management system based on the MQTT protocol as claimed in claim 1, characterized in that: The AC access module is further configured to determine a preset frequency at which the AP access point sends the operating data according to the signal strength of the AP access point, specifically: The AP access point is also used to obtain the signal strength of the network, and determine the preset frequency according to the relationship between the signal strength and the preset signal strength configured by the AP access point; When the preset signal strength is greater than or equal to the preset signal strength, the AC access module configures the sending frequency of the AP access point to be the preset frequency; When the preset signal strength is less than the preset signal strength, the AC access module obtains the strength difference between the signal strength and the preset signal strength, determines an adjustment coefficient range according to the strength difference, and adjusts the transmission frequency according to the adjustment coefficient range, and the AC access module is further used to determine the adjusted transmission frequency as the preset frequency; The adjustment coefficient range is (1-0).
3. The AC / AP centralized management system based on the MQTT protocol as claimed in claim 1, characterized in that: When the AC access module is further configured to perform an evaluation based on the operation data sent by the AP access point, the method includes: The AC access module is also configured with a preset transmission frequency; The AC access module is further configured to determine whether to evaluate the network status of the AP access point and determine the network score of the AP access point according to the relationship between the sending frequency of the operation data sent by the AP access point and the preset sending frequency; When the sending frequency is equal to the preset sending frequency, the AC access module determines not to evaluate the network status of the AP access point; When the sending frequency is less than the preset sending frequency, the AC access module determines to evaluate the network status of the AP access point, and determines the operation score of the AP access point according to the operation data sent by the AP access point.
4. The AC / AP centralized management system based on the MQTT protocol as claimed in claim 2, characterized in that: When the AC access module determines the operation score of the AP access point according to the operation data sent by the AP access point, it includes: The AC access module is also used to obtain the real-time data processing flow of the AP access point, the real-time utilization rate of the AP access point CPU and memory, the real-time utilization rate of the AP access point wireless channel and the real-time service request quantity of the AP access point; The AC access module is further used to substitute the real-time data processing flow of the AP access point, the real-time utilization rate of the AP access point CPU and memory, the real-time utilization rate of the AP access point wireless channel and the number of real-time service requests of the AP access point into a formula, and determine the load score of the AP access point according to the formula, and the formula is as follows: Wherein, P is the load score of the AP access point, q1 is the real-time data processing flow, q max is the maximum value of data processing flow, w1 is the real-time utilization rate of the CPU of the AP access point, and w max is the maximum utilization rate of the CPU of the AP access point, e1 is the real-time utilization rate of the memory of the AP access point, and e max is the maximum usage rate of the AP access point memory, r1 is the real-time utilization rate of the AP access point wireless channel, r max is the maximum utilization rate of the wireless channel of the AP access point, a1 is the number of real-time service requests, and a max is the maximum number of service requests, z1-z5 are weight coefficients, and the sum of z1-z5 is 1; The AC access module is further configured to determine an operation score of the AP access point according to a load score P of the AP access point.
5. The AC / AP centralized management system based on the MQTT protocol as claimed in claim 4, characterized in that: The AC access module is further configured to determine the operation score of the AP access point according to the load score P of the AP access point, including: The AC access module is further used to obtain a load score average between the load scores of the plurality of AP access points, and the AC access module is further used to determine the load score average as a preset load score; The AC access module is further used to obtain a load score difference between the load score P of the AP access point and the preset load score, and determine the operation score of the AP access point according to the relationship between the load score difference and a first preset load score difference and a second preset load score difference configured by the AC access module; When the load score difference is less than or equal to the first preset load score difference, the AC access module determines that the operation score of the AP access point is L1; When the load score difference is greater than the first preset load score difference, and the load score difference is less than or equal to the second preset load score difference, the AC access module determines that the operation score of the AP access point is L2; When the load score difference is greater than the second preset load score difference, the AC access module determines that the operation score of the AP access point is L3; The first preset load score difference is smaller than the second preset load score difference, and L1<L2<L3.
6. The AC / AP centralized management system based on the MQTT protocol as claimed in claim 5, characterized in that: When the AC access module determines that the operation score of the AP access point is Li, i=1, 2, 3, including: The AC access module is further used to obtain the average number of terminals connected to each of the AP access points, and determine the preset number of terminals based on the average number; The AC access module is also used to obtain the number of real-time terminals connected to the AP access point, and determine whether to modify the operation score Li of the AP access point according to the relationship between the real-time terminal number and the preset terminal number; When the number of real-time terminals is greater than the preset number of terminals, the AC access module does not modify the operation score Li of the AP access point; When the real-time terminal quantity is less than or equal to the preset terminal quantity, the AC access module obtains the quantity difference between the real-time terminal quantity and the preset terminal quantity, determines a correction coefficient, and corrects the operation score Li of the AP access point according to the correction coefficient.
7. The AC / AP centralized management system based on the MQTT protocol as claimed in claim 6, characterized in that: The AC access module is further configured to determine a correction coefficient according to a difference between the real-time terminal quantity and the preset terminal quantity, including: The AC access module is also configured with a first preset quantity difference and a second preset quantity difference; The AC access module is further used to determine the correction coefficient according to the relationship between the quantity difference and the first preset quantity difference and the second preset quantity difference; When the quantity difference is less than the first preset quantity difference, the AC access module determines that the correction coefficient is K3; When the quantity difference is greater than or equal to the first preset quantity difference, and the quantity difference is less than the second preset quantity difference, the AC access module determines that the correction coefficient is K2; When the quantity difference is greater than or equal to the second preset quantity difference, the AC access module determines that the correction coefficient is K1; The first preset quantity difference is smaller than the second preset quantity difference, and K1<K2<K3<1.
8. The AC / AP centralized management system based on the MQTT protocol as claimed in claim 7, characterized in that: When the AC access module determines that the correction coefficient is Ki, i=1, 2, 3, including: The AC access module is further used to obtain the average strength of the signal strength of each of the AP access points, and the AC access module is further used to determine the average strength as the preset signal strength; The AC access module is also used to determine whether to correct the correction coefficient Ki according to the relationship between the real-time signal strength of the AP access point and the preset signal strength; When the real-time signal strength is greater than or equal to the preset signal strength, the AC access module does not correct the correction coefficient Ki; When the real-time signal strength is less than the preset signal strength, the AC access module determines a correction coefficient according to the strength difference between the real-time signal strength and the preset signal strength, and corrects the correction coefficient Ki according to the correction coefficient.
9. The AC / AP centralized management system based on the MQTT protocol as claimed in claim 8, characterized in that: When the AC access module determines the correction coefficient according to the strength difference between the real-time signal strength and the preset signal strength, it includes: The AC access module is also configured with a first preset strength difference and a second preset strength difference; The AC access module is further used to determine the correction coefficient according to the relationship between the intensity difference value and the first preset intensity difference value and the second preset intensity difference value; When the intensity difference is less than the first preset intensity difference, the AC access module determines the correction coefficient to be J3; When the intensity difference is greater than or equal to the first preset intensity difference, and the intensity difference is less than the second preset intensity difference, the AC access module determines that the correction coefficient is J2; When the intensity difference is greater than or equal to the second preset intensity difference, the AC access module determines the correction coefficient to be J1; The first preset strength difference is smaller than the second preset strength difference, and J1<J2<J3<1.
10. An AC / AP centralized management method based on the MQTT protocol, applicable to an AC / AP centralized management system based on the MQTT protocol as claimed in any one of claims 1 to 9, characterized in that: include: Set up AC access module, several AP access points, MQTT proxy and DHCP server; Allocating IP addresses to the plurality of AP access points based on the DHCP server, and sending the MQTT server address of the AC access module to the plurality of AP access points according to the option field configured by the DHCP server; After obtaining the MQTT server address, control the plurality of AP access points to establish a connection with the MQTT agent based on the MQTT protocol, and control the AP access points to send registration information to the AC access module to complete access registration; Control the AP access point to send operation data to the AC access module based on the MQTT server and a preset frequency; Control the AC access module to issue configuration and management instructions to the AP access points based on the MQTT agent; The AC access module is controlled to perform evaluation according to the operation data sent by the AP access point, and according to the evaluation result, determines whether to adjust the access state of the AP access point.
Citation Information
Patent Citations
Cloud AP (access point) oriented multi-control proxy unified management system and method
CN106331175A
Network health degree evaluation method, device and system
CN107872359A
Network management system and method for accessing multiple access points (AP) to internet (Internet)
CN108123854A
Load balancing method and system based on distributed wireless network
CN112996057A
Method for acquiring wireless internet terminal information based on MQTT protocol
CN113965554A
Cited By
AP management method and system based on MQTT
CN122054194A
Mqtt-based ap management method and system
CN122054194B