Polling implementation method of network management data acquisition system
By dynamically adjusting the polling interval and weight polling scheduling algorithm of the network management data acquisition system, the problems of waste of resources and reduced system efficiency in the polling process in the prior art are solved, and load balancing and data reception efficiency are improved in multi-tasking or process environments.
Patent Information
- Application Number
- CN202411883282.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-07
AI Technical Summary
During the polling process, the existing network management data acquisition system still needs to poll in turn even though some tasks or processes have no new requests, resulting in wasted resources and reduced system efficiency. Especially when the number of tasks or processes is large, frequent polling will increase server pressure and affect system stability.
By obtaining modem resource information of the communication server, assigning polling commands, setting timers, dynamically adjusting polling intervals, using weight polling scheduling algorithms, adjusting according to network congestion and server processing capabilities, to reduce network congestion and improve data reception efficiency.
It realizes fair allocation of resources between multiple tasks or processes, avoids tasks or processes being ignored for a long time, dynamically adjusts polling intervals to reduce network congestion, improves data reception efficiency, and ensures load balancing.
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of network management data collection systems, and in particular relates to a polling implementation method for network management data collection systems. Background Art
[0002] The Network Management Data Collection System is a data collection system used for network management, mainly used to monitor and manage various devices and resources in the network. It helps network administrators better understand the status of the network by collecting and analyzing data in the network, timely discover and solve potential problems, and ensure the stable operation of the network.
[0003] In the prior art, when the network management data collection system is collecting data, during the polling process, even if a task or process has no new request, it still needs to be polled and accessed in sequence, wasting some system resources. When the number of tasks or processes is large, polling takes a long time to traverse, affecting the operating efficiency of the system. In some cases, frequent polling will put pressure on the server and affect the stability of the system.
[0004] Therefore, it is necessary to invent a polling implementation method for a network management data collection system to solve the above problems, which can dynamically adjust the polling interval according to the network congestion situation to reduce network congestion and improve data receiving efficiency. Summary of the invention
[0005] In view of the above problems, the present invention provides a polling implementation method for a network management data collection system to solve the problems raised in the above background technology.
[0006] To achieve the above purpose, the present invention provides the following technical solutions: a polling implementation method of a network management data collection system, including a polling implementation method of a network management data collection system, the method is as follows: Step 1: Get resource information of each modem of the communication server: The network management end first needs to get the status and configuration resource information of each modem of the communication server; Step 2, "assigning polling commands": according to the acquired resource information, the polling commands are assigned to the authentication queue and the non-authentication queue respectively according to whether the authentication number of the corresponding device corresponds to the dial-up number of the modem; Step 3. Set the timer: Use the setTimeout function to set the timer, trigger events at fixed time intervals, and then perform polling after each time interval. Step 4: Determine the device status: In each transmission cycle, the network management end needs to determine the status of each modem and send corresponding polling commands according to the status; Step 5. Dynamically adjust the polling interval: Dynamically adjust the polling interval according to network congestion to reduce network congestion and improve data reception efficiency; Step 6: Use weighted round-robin scheduling algorithm: By obtaining the ARP table information of network devices for analysis and comparison, dynamically adjust the polling weight of the device to adapt to changes in the network structure; Step 7. Polling ends: When all modems have completed sending the polling commands, this round of sending cycle ends.
[0007] Preferably, the setTimeout function is a built-in function in JavaScript, which is used to execute a function or calculation expression after a specified number of milliseconds. It allows developers to execute code after a specified delay time and is an important tool for implementing asynchronous logic and time control.
[0008] Preferably, in step five, network congestion may cause an increase in data packet transmission delay, and the network delay may be determined by checking the RTT of the data packet.
[0009] Preferably, the RTT is Round-Trip Time, i.e., round-trip time. In a computer network, it is the total time from when the sender sends data to when the sender receives confirmation from the receiver, i.e., the receiver sends confirmation immediately after receiving the data. RTT is one of the important indicators for measuring network performance, and ms is used as the unit of measurement.
[0010] Preferably, in step five, the polling interval is dynamically adjusted according to network congestion conditions.
[0011] Preferably, the weighted round-robin scheduling algorithm is a load balancing algorithm used to distribute requests to multiple servers, each server accepts a corresponding number of requests according to its weight. The main purpose of the weighted round-robin scheduling algorithm is to solve the problem of different performance between servers. The processing performance of the server is represented by the weight, and requests are distributed to each server according to the weight and polling method.
[0012] Technical effects and advantages of the present invention: 1. When the network management data collection system of the present invention performs data collection, the polling algorithm can fairly allocate resources among multiple tasks or processes to ensure that each task has a chance to be processed, avoid the situation where certain tasks or processes are ignored for a long time, and can dynamically allocate requests according to the processing capacity of the server to ensure load balancing; when the number of tasks or processes is large, network congestion will cause increased data packet transmission delay. The network delay is judged by checking the RTT of the data packet, and the polling interval is dynamically adjusted according to the network congestion to reduce network congestion and improve data receiving efficiency.
[0013] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description and claims. DETAILED DESCRIPTION
[0014] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0015] The present invention provides a polling implementation method for a network management data collection system, including the polling implementation method for a network management data collection system: Get resource information of each modem of the communication server: The network management end first needs to obtain the status and configuration resource information of each modem of the communication server; Allocate polling commands: According to the acquired resource information, the polling commands are allocated to the authentication queue and the non-authentication queue respectively according to whether the authentication number of the corresponding device corresponds to the dial-up number of the modem; when the status of a modem is idle and there is a polling command with the same dial-up number as the modem in the authentication queue, a group of corresponding polling commands is sent to the communication server; otherwise, a group of polling commands of the non-authentication sub-queue is sent to the communication server; Set the timer: Use the setTimeout function to set the timer, trigger events at fixed time intervals, and then perform polling after each time interval. Determine device status: In each round of transmission cycle, the network management end needs to determine the status of each modem and send corresponding polling commands according to the status; when a modem is in idle state and there is a corresponding polling command in the authentication queue, the command is sent; otherwise, a command without authentication queue is sent; Dynamically adjust polling interval: Dynamically adjust the polling interval according to network congestion to reduce network congestion and improve data receiving efficiency; Use weighted polling scheduling algorithm: By obtaining the ARP table information of network devices for analysis and comparison, the polling weight of the device is dynamically adjusted to adapt to changes in the network structure; Polling End: When all modems have completed sending polling commands, this round of sending cycle ends; When the network management data collection system is collecting data, the polling algorithm can fairly allocate resources among multiple tasks or processes to ensure that each task has a chance to be processed, avoiding the situation where some tasks or processes are ignored for a long time; when there are a large number of tasks or processes, network congestion will cause increased delays in data packet transmission. The network delay can be judged by checking the RTT of the data packet, and the polling interval can be dynamically adjusted according to the network congestion to reduce network congestion and improve data reception efficiency; Ability to dynamically allocate requests based on the server's processing capacity to ensure load balancing.
[0016] The setTimeout function is a built-in function in JavaScript that is used to execute a function or calculation expression after a specified number of milliseconds. It allows developers to execute code after a specified delay time and is an important tool for implementing asynchronous logic and time control.
[0017] Preferably, in step five, network congestion may cause an increase in data packet transmission delay, and the network delay may be determined by checking the RTT of the data packet.
[0018] Preferably, RTT is Round-Trip Time, i.e., round-trip time. In a computer network, it is the total time from when the sender sends data to when the sender receives confirmation from the receiver, i.e., the receiver sends confirmation immediately after receiving the data. RTT is one of the important indicators for measuring network performance, and ms is used as the unit of measurement.
[0019] Preferably, in step five, the polling interval is dynamically adjusted according to network congestion conditions.
[0020] Preferably, the weighted round-robin scheduling algorithm is a load balancing algorithm used to distribute requests to multiple servers. Each server receives a corresponding number of requests according to its weight. The main purpose of the weighted round-robin scheduling algorithm is to solve the problem of different performances among servers. The processing performance of the server is represented by the weight, and requests are distributed to each server according to the weight and the polling method. The scheduling logic is added to the scheduler class to calculate the total weight, and then the requests are distributed in order according to the weight. The weight can be dynamically adjusted according to the actual processing capacity of the server. By defining the server class, including defining the server name and weight, creating a scheduler class, maintaining the server list, and implementing the scheduling logic, the scheduling logic is implemented, the total weight is calculated, and requests are allocated in order of weight.
[0021] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A polling implementation method for a network management data collection system, characterized in that: The method is as follows: Step 1: Get resource information of each modem of the communication server: The network management end first needs to get the status and configuration resource information of each modem of the communication server; Step 2, "assigning polling commands": according to the acquired resource information, the polling commands are assigned to the authentication queue and the non-authentication queue respectively according to whether the authentication number of the corresponding device corresponds to the dial-up number of the modem; Step 3. Set the timer: Use the setTimeout function to set the timer, trigger events at fixed time intervals, and then perform polling after each time interval. Step 4: Determine the device status: In each transmission cycle, the network management end needs to determine the status of each modem and send corresponding polling commands according to the status; Step 5. Dynamically adjust the polling interval: Dynamically adjust the polling interval according to network congestion to reduce network congestion and improve data reception efficiency; Step 6: Use weighted round-robin scheduling algorithm: By obtaining the ARP table information of network devices for analysis and comparison, dynamically adjust the polling weight of the device to adapt to changes in the network structure; Step 7. Polling ends: When all modems have completed sending the polling commands, this round of sending cycle ends.
2. The polling implementation method of a network management data collection system according to claim 1, characterized in that: The setTimeout function is a built-in function in JavaScript that is used to execute a function or calculation expression after a specified number of milliseconds. It allows developers to execute code after a specified delay time and is an important tool for implementing asynchronous logic and time control.
3. The polling implementation method of a network management data collection system according to claim 1, characterized in that: In step five, network congestion will cause increased delay in data packet transmission, and the network delay can be determined by checking the RTT of the data packet.
4. The polling implementation method of a network management data collection system according to claim 3 is characterized in that: The RTT is the Round-Trip Time. In a computer network, it is the total time from when the sender sends data to when the sender receives confirmation from the receiver, that is, the receiver sends confirmation immediately after receiving the data. RTT is one of the important indicators for measuring network performance, and ms is used as the unit of measurement.
5. The polling implementation method of a network management data collection system according to claim 1, characterized in that: In the step 5, the polling interval is dynamically adjusted according to the network congestion situation.
6. The polling implementation method of a network management data collection system according to claim 1, characterized in that: The weighted round-robin scheduling algorithm is a load balancing algorithm used to distribute requests to multiple servers. Each server accepts a corresponding number of requests based on its weight. The main purpose of the weighted round-robin scheduling algorithm is to solve the problem of different performance between servers. The processing performance of the server is represented by the weight, and requests are distributed to each server according to the weight and polling method.
Citation Information
Cited By
Data center monitoring method, device, equipment, medium and product
CN121262128A