Extended network management method and system

By setting up active and dormant servers in the network management system and dynamically updating the transmission path, the problem of difficulty in managing large-scale network equipment and lack of redundant design in traditional network management systems is solved, and high reliability and efficient network management are achieved.

CN120090927APending Publication Date: 2025-06-03LIDERSHIP TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510246127.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-04
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

Traditional network management systems are difficult to effectively manage large-scale network equipment, prone to performance bottlenecks, and lack of redundant design, making it difficult to achieve high reliability of the system.

Method used

By setting the first server and the second server, respectively, setting it to the active state and the sleep state, the rapid failover and failure recovery viewing capabilities are achieved. The network device generates real-time transmission data and encapsulates it into data packets. The network controller selects the message server to allocate it to the network device, determines whether the server has failed, and dynamically updates the transmission path to adapt to network changes.

Benefits of technology

It realizes rapid failover and failure recovery viewing of network equipment, improves network availability, reliability and efficiency, and reduces maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120090927A_ABST
    Figure CN120090927A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of network management, and discloses an extended network management method and system. The method comprises the following steps: network equipment generates real-time transmission data and packages the data into a data packet, a network controller allocates a message server to the network equipment, the message server is used for temporarily storing the data packet and sending the data packet to a first server, whether the first server breaks down is detected before sending, and if the first server breaks down, the network controller sends the data packet to the network equipment; the network controller detects whether a new network device is added, if yes, a first transmission path from the data packet in each network device to the first server is updated, and the data packet is forwarded to the first server based on the first transmission path; if the first server has a fault, receiving the data packet by using a second server, and generating a second transmission path from the data packet in each network device to the second server; and performing a recovery check on the first server by using the message server until the data packet can be received and processed. According to the invention, the availability and expansibility of the network are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network management technology, and particularly to an extended network management method and system. Background Art

[0002] With the rapid development of information technology, the scale and complexity of networks have been continuously increasing, and the number of network devices has grown exponentially. Traditional network management systems usually adopt a centralized architecture. A single management server is difficult to effectively manage a large number of network devices, and performance bottlenecks are likely to occur. Moreover, once the management server fails, the entire network management function will be paralyzed, resulting in the interruption of network management services.

[0003] Existing network management methods, such as the Chinese patent application with the publication number CN105991308A, disclose a network management method and device. The network management method includes: generating a parameter configuration file according to the received parameter configuration information and storing it in a local FTP server; sending the access information of the pre-generated parameter configuration file to the network device corresponding to the parameter configuration information through SNMP; encapsulating and sending the parameter configuration file to the network device through FTP when the network device establishes a connection with the local FTP server; receiving the configuration result corresponding to the parameter configuration information through SNMP. This method mainly relies on a centralized FTP server for file transfer and is difficult to meet the management requirements of a large number of network devices.

[0004] Another example is the Chinese patent application with the publication number CN119135525A, which provides a network management method, device, electronic device, and storage medium. This method performs fault detection on the main network segment network address in the network configuration file. If the fault detection result indicates that a network fault has occurred in the main network segment network address, the backup network segment network address corresponding to the main network segment network address with the network fault in the network configuration file is adjusted to a new main network segment network address, so that the nodes in the local area network perform network communication according to the adjusted network configuration file. When a network fault occurs in the main network segment network address corresponding to a node, the above method can quickly modify the backup network segment network address to a new main network segment network address, enabling the nodes in the local area network to perform normal network communication according to the new main network segment network address, improving the reliability of the network between the nodes in the local area network, and avoiding the problems of high cost and complex configuration in redundant network design in related technologies. This method mainly relies on the backup network segment network address as a backup and lacks redundant design for other key network components.

[0005] Therefore, an extended network management method is needed to implement a redundant configuration and a fault transfer mechanism to ensure the high reliability of the system. Summary of the Invention

[0006] This application provides an extended network management method and system, which has the capabilities of fast failover and fault recovery viewing.

[0007] In a first aspect, this application provides an extended network management method, and the method includes: Step S1: Set up a first server and a second server, set the initial state of the first server to the active state, and set the initial state of the second server to the dormant state; Step S2: The network device generates real-time transmission data and encapsulates it into data packets. The network controller selects a message server in the network and assigns it to the network device. The message server obtains the data packets of the network device and temporarily stores them in the corresponding message list. Before the message server transmits the data packets to the first server, determine whether the first server has failed; Step S3: If the first server has not failed, the network controller detects whether there are new network devices joining the network. If not, directly transmit the data packets to the first server and store them in the first database. If there are new network devices, the network controller obtains the device information of all network devices in the network, updates the first transmission path of the data packets in each network device to the first server based on the device information, generates configuration information for each data packet based on the first transmission path, forwards the data packets to the first server based on the configuration information, and stores them in the first database; Step S4: If the first server fails, adjust the dormant state of the second server to the active state. At the same time, the network controller detects whether there are new network devices joining the network. If not, directly transmit the data packets to the second server and store them in the second database. If there are new network devices, update the second transmission path of the data packets in each network device to the second server based on the device information of the network device, and transmit the data packets to the second server based on the second transmission path, and store them in the second database; Step S5: When the first server fails, use the message server to perform a recovery check on the first server. If the first server is fully recovered, the first server starts to receive data packets, the state of the second server is adjusted from the active state to the dormant state, and the first server performs execution processing on the data packets in the first database and the second database.

[0008] Combined with the first aspect, in the first implementation manner of the first aspect of this application, the network controller selects a message server in the network and assigns it to the network device, including: The network controller obtains the load of each message server, selects the message server with the lowest load as the message server of the current network device, and after storing the data packet in the message list corresponding to the message server, sends and stores a copy of the data packet in other message lists; Each message server sends a heartbeat signal to adjacent message servers at a preset first time interval. If the message server does not receive a heartbeat signal from an adjacent message server within the first time interval, it is determined that the message server has failed, and the failed message server is removed from the network topology structure, and a new message server is selected from the remaining message servers and assigned to the network device. The new message server restores the data packets in the message list corresponding to the failed message server based on its own message list.

[0009] Combined with the first aspect, in the second implementation manner of the first aspect of the present application, determining whether the first server has failed includes: Within a preset second time interval, the message server sends a detection request to the first server. Based on the detection request, the first server makes a response, and calculates the number of times the message server continuously receives response messages, which is defined as the first number. If the first number is greater than or equal to the first threshold, it is determined that the first server has not failed, otherwise it has failed.

[0010] Combined with the first aspect, in the third implementation manner of the first aspect of the present application, updating the first transmission path of the data packet in each network device to the first server based on the device information includes: The network controller adds the new network device to the network topology database, determines the connection relationship between the new network device and other network devices, uses all network devices as nodes and the connection relationship as edges to generate a new network topology graph, and the network controller obtains all paths from each network device to the first server based on the network topology graph; Define the devices in the path as path nodes, define the path between each path node and adjacent path nodes as a link segment, initialize the pheromone concentration of each link segment, where the pheromone concentration represents the probability that the data packet selects the link segment, obtain the bandwidth utilization rate and delay of the network devices in each link segment, calculate the heuristic information of each link segment based on the bandwidth utilization rate and the delay, and calculate the probability that the current path node i selects the adjacent node j based on the first formula The first formula is: , where is the pheromone concentration of the link segment , is the pheromone importance parameter, is the link segment The heuristic information is equal to the reciprocal of the sum of the bandwidth utilization rate and the delay of the link segment. is the heuristic information importance degree parameter, k is the total number of all path nodes connected to path node i. Compare the probabilities of all adjacent nodes selected by path node i, and use the adjacent node with the highest probability as the next-hop node of the current path node i. Take the next-hop node as the new path node, and obtain the next-hop node of each path node according to this step until the path node is the first server. Starting from the network device as the initial path node, connect all path nodes with their next-hop nodes to obtain the first transmission path of the data packet in the network device to the first server.

[0011] Combined with the first aspect, in the fourth implementation manner of the first aspect of this application, the network controller generates configuration information for each data packet based on the first transmission path, including: Obtain the network devices through which the data packet of the network device is sent to the first server based on the first transmission path, which are defined as intermediate devices. The network controller generates a forwarding rule and a processing rule for the data packet based on the intermediate device, sets priorities for different types of data packets, allocates bandwidth for the data packet based on the priorities, and defines the forwarding rule, the processing rule, the priority, and the bandwidth of the data packet as configuration information.

[0012] Combined with the first aspect, in the fifth implementation manner of the first aspect of this application, use the message server to perform a recovery check on the first server, including: After detecting that the first server fails, the message server waits for a first waiting time and then enters a polling state. In the polling state, the message server sends multiple ping requests to the first server at a preset third time interval. The first server generates a first response message based on the ping request and sends it to the message server. If the message server receives the first response message, it determines that the first server can perform a recovery check.

[0013] Combined with the first aspect, in the sixth implementation manner of the first aspect of this application, determine whether the first server is fully recovered based on the second number, including: If the second number is greater than or equal to the second threshold and less than the third threshold, it means that the first server is in a preliminary recovery state. If the second number is equal to the third threshold, it means that the first server is in a fully recovered state; When the first server is in a preliminary recovery state, the message server changes from the recovery check state to the waiting state, and calculates the second waiting time of the message server in the waiting state based on the second formula , the second formula is as follows: , where is the second order, is the third threshold, is the maximum waiting time of the message server. After waiting for the second waiting time, a virtual request is sent to the first server again until the first server is in a fully restored state.

[0014] Combined with the first aspect, in the seventh implementation manner of the first aspect of the present application, performing processing on the data packets in the first database and the second database includes: Define the data packets in the first database and the second database as the first data packet and the second data packet respectively. Determine whether there is a same first data packet and the second data packet. If so, delete the corresponding second data packet and directly execute the data instruction in the first data packet. If not, set that within the data processing time of the first server and the second server, the sum of the data processing of the first data packet and the second data packet does not exceed the fourth threshold.

[0015] In a second aspect, the present application provides an extended network management system, the system includes: An initialization module, configured to set a first server and a second server, set the initial state of the first server to an active state, and set the initial state of the second server to a dormant state; A temporary storage module, configured to generate real-time transmission data by a network device and encapsulate it into a data packet. The network controller selects a message server in the network and assigns it to the network device. The message server obtains the data packet of the network device and temporarily stores it in the corresponding message list. Before the message server transmits the data packet to the first server, determine whether the first server fails; A first transmission path generation module, configured to if the first server does not fail, the network controller detects whether there is a new network device joining the network. If not, directly transmit the data packet to the first server and store it in the first database. If there is a new network device, the network controller obtains the device information of all network devices in the network, updates the first transmission path of the data packet in each network device to the first server based on the device information, the network controller generates configuration information for each data packet based on the first transmission path, and forwards the data packet to the first server based on the configuration information and stores it in the first database; The second transmission path generation module is used to, if the first server fails, adjust the sleep state of the second server to the active state. Meanwhile, the network controller detects whether there is a new network device joining the network. If not, the data packet is directly transmitted to the second server and stored in the second database. If there is a new network device, the second transmission path of the data packet to the second server in each network device is updated based on the device information of the network device. The data packet is transmitted to the second server based on the second transmission path and stored in the second database; The recovery check module is used to, when the first server fails, use the message server to perform a recovery check on the first server. If the first server is fully recovered, the first server starts to receive data packets, the state of the second server is adjusted from the active state to the sleep state, and the first server performs execution processing on the data packets in the first database and the second database.

[0016] In the technical solution provided by this application, during the process of a network device transmitting data to the first server, it is first determined whether the first server fails. If not, the network controller is set to detect whether there is a new network device joining the network, and the transmission path is dynamically updated based on the ant colony optimization algorithm to maintain the scalability and adaptability of the network. If there is a failure, it quickly switches to the second server to ensure service continuity and high availability. At the same time, the message server is set to perform a recovery check on the first server. Once the first server is recovered, it can immediately start receiving data packets again to reduce service interruption. The extensible network management method in the present invention improves the availability, reliability, and efficiency of the network by dynamically managing the server state, optimizing the data transmission path, and quickly responding to network changes, while also reducing the maintenance cost. Description of the Drawings

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0018] Figure 1 It is a schematic diagram of an embodiment of an extensible network management method in an embodiment of this application; Figure 2 It is a network topology diagram in an embodiment of this application; Figure 3 It is a schematic diagram of an embodiment of an extensible network management system in an embodiment of this application. Detailed Embodiments

[0019] The embodiments of the present application provide an extended network management method and system. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and the above-mentioned drawings of the present application are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the term "comprising" or "having" and any variation thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0020] For ease of understanding, the specific process of the embodiments of the present application will be described below. Please refer to Figure 1 , an embodiment of an extended network management method in the embodiments of the present application includes: Step S1: Set up a first server and a second server, set the initial state of the first server to the active state, and set the initial state of the second server to the dormant state.

[0021] Specifically, there are multiple network devices, switches, message servers, destination servers, and network controllers in the network. Among them, network devices such as sensor devices generate real-time transmission data according to service requirements and encapsulate it into data packets; the switch serves as a bridge for propagating data between network devices and message servers. The message server is used to receive and temporarily store the data packets of network devices, forward them to the destination server, and is responsible for the fault detection work of the destination server. The destination server includes a first server and a second server. The network controller (NetworkController) is responsible for centralized management of network topology, data transmission paths, load balancing, etc.; It is necessary to perform basic configuration on the two destination servers. After the configuration of the destination servers is completed, set the first server to the active state and the second server to the dormant state through the management interface or command line tool. By setting the active and dormant states, it is possible to quickly switch to the second server when the first server fails, ensuring service continuity and high availability.

[0022] Step S2: The network device generates real-time transmission data and encapsulates it into a data packet. The network controller selects a message server in the network and assigns it to the network device. The message server obtains the data packet of the network device and temporarily stores it in the corresponding message list. Before the message server transmits the data packet to the first server, it determines whether the first server has failed.

[0023] Specifically, as the monitoring and management center of the entire network, the network controller selects a suitable message server to process the data packets of each network device according to factors such as network topology and load conditions. This usually involves load balancing of the message servers, which will be elaborated later. The message server receives the data packets of the network devices and temporarily stores them in the message list. By dynamically allocating the data packets of the network devices to different message servers, the use of network resources can be optimized.

[0024] Before the message server transmits the data packet to the first server, it is necessary to determine whether the first server has failed. If the first server has failed, the destination server of the network device will change to the second server, and at the same time, the data packet will be transmitted to the second server and stored in the second database. The data in the corresponding first database and second database of the first server and the second server is shared. Subsequently, the first server can extract the data packet from the second database for processing.

[0025] Step S3: If the first server has not failed, the network controller detects whether there are new network devices added to the network. If not, the data packet is directly transmitted to the first server and stored in the first database. If there are new network devices, the network controller obtains the device information of all network devices in the network, updates the first transmission path of the data packet in each network device to the first server based on the device information. The network controller generates the configuration information of each data packet based on the first transmission path, and forwards the data packet to the first server based on the configuration information and stores it in the first database.

[0026] Specifically, if the first server has not failed, the network controller detects whether there are new devices added to the network through protocols such as LLDP, SNMP, or NetFlow / sFlow. The addition of new network devices may affect the use of switches or other resources in the transmission paths of existing network devices. Then the network controller needs to add the device information of network device B to the network topology database and determine the connection relationships between network device B and other devices in the network, such as switches and servers. According to the updated network topology structure, the ant colony optimization algorithm is used to update the optimal transmission path of each network device to the first server, which is defined as the first transmission path. The network controller can also dynamically adjust the path result according to factors such as network load, bandwidth utilization rate, and delay. The network controller determines the configuration information of each data packet according to the first transmission path. The configuration information, for example, which network devices each data packet should pass through and in what path order for forwarding. According to the configuration information, the data packet is forwarded to the first server and stored in the first database.

[0027] Step S4: If the first server fails, adjust the sleep state of the second server to the active state. Meanwhile, the network controller detects whether there are new network devices joining the network. If not, directly transmit the data packets to the second server and store them in the second database. If there are new network devices, update the data packets in each network device to the second transmission path of the second server based on the device information of the network devices, and transmit the data packets to the second server based on the second transmission path and store them in the second database.

[0028] Specifically, if the first server fails, it is necessary to adjust the sleep state of the second server to the active state. Meanwhile, use the same method to detect whether there are new network devices joining the network. In some cases, use the same method as the first transmission path of the first server to transmit the data packets to the second server and generate the second transmission path, which will not be elaborated here.

[0029] Step S5: While the first server fails, use the message server to perform a recovery check on the first server. If the first server is fully recovered, the first server starts to receive data packets, and the state of the second server is adjusted from the active state to the sleep state. The first server performs execution processing on the data packets in the first database and the second database.

[0030] Specifically, use the message server to periodically perform a fault detection on the first server. The specific detection method will be elaborated later. Once it is confirmed that the first server is fully recovered, the message server notifies the network controller and related systems. After receiving the recovery notice, the network controller switches the data packet receiving task from the second server back to the first server and sets the state of the second server to the sleep state. The first server starts to receive new data packets and synchronizes the data packets in the first database and the second database. Using the message server to perform a recovery check can quickly identify the recovery state of the first server and accelerate the service recovery process.

[0031] In a specific embodiment, the network controller selects a message server in the network and assigns it to the network device, which specifically includes the following steps: The network controller obtains the load of each message server, selects the message server with the lowest load as the message server of the current network device. After the data packet is stored in the message list corresponding to the message server, then send and store the copy of the data packet to other message lists. Each message server sends a heartbeat signal to adjacent message servers at a preset first time interval. If a message server does not receive a heartbeat signal from an adjacent message server within the first time interval, it is determined that the message server has failed. The failed message server is removed from the network topology, and a new message server is selected from the remaining message servers and assigned to the network device. The new message server restores the data packets in the message list corresponding to the failed message server based on its own message list.

[0032] Specifically, the network controller regularly collects performance metrics of each message server through a monitoring system, such as CPU usage, memory usage, network traffic, etc., to evaluate the load of the message server. Based on the collected load data, the network controller selects the message server with the lowest load through a comparison algorithm to be assigned to the current network device. The network device sends the data packet to the selected message server, and the message server temporarily stores the data packet in its message list waiting for further processing. To improve data reliability, the message server sends a copy of the data packet to the message lists of other message servers to achieve redundant storage of data.

[0033] Each message server sends a heartbeat signal to adjacent message servers at a preset time interval, which can be implemented through the ICMP protocol or a custom heartbeat detection mechanism. If a message server does not receive a heartbeat signal from an adjacent message server within the preset first time interval, for example, within 6 - 9 seconds, it is determined that the server has failed. The network controller sets the server as a failed server and removes it from the network topology to reduce the impact of the failure on the system. Then, a new message server is re - selected from the remaining message servers in the same way. The new message server restores the data packets in the message list corresponding to the failed message server based on its own message list to ensure data integrity.

[0034] In a specific embodiment, determining whether the first server has failed specifically includes the following steps: Within a preset second time interval, the message server sends a probe request to the first server. Based on the probe request, the first server makes a response, and the number of consecutive response messages received by the message server is calculated and defined as the first count. If the first count is greater than the first threshold, it is determined that the first server has not failed; otherwise, it has failed.

[0035] Specifically, assume that the message server sends 10 probe requests to the first server within 1 minute, for example, Echo request messages sent using the ICMP protocol. After receiving the Echo request messages, the first server makes a response. Assume that among these 10 probe requests, the first server successfully responds 9 times (greater than or equal to the first threshold assumed to be 8), then it is determined that the first server is normal and no failure has occurred; otherwise, the first server has failed.

[0036] In a specific embodiment, updating the first transmission path of data packets in each network device to the first server based on device information specifically includes the following steps: The network controller adds the new network device to the network topology database, determines the connection relationship between the new network device and other network devices, takes all network devices as nodes and the connection relationship as edges to generate a new network topology graph, and the network controller obtains all paths from each network device to the first server based on the network topology graph; Define the devices in the path as path nodes, define the path between each path node and its adjacent path node as a link segment, initialize the pheromone concentration of each link segment, where the pheromone concentration represents the probability that the data packet selects the link segment, obtain the bandwidth utilization rate and delay of the network devices in each link segment, calculate the heuristic information of each link segment based on the bandwidth utilization rate and delay, and calculate the probability that the current path node i selects the adjacent node j based on the first formula The first formula is: where, is the pheromone concentration of the link segment ; is the pheromone importance parameter, is the link segment ; the heuristic information is equal to the reciprocal of the sum of the bandwidth utilization rate and delay of the link segment, is the heuristic information importance parameter, k is the total number of all path nodes connected to the path node i. Compare the probabilities of all adjacent nodes selected by the path node i, and take the adjacent node with the largest probability as the next-hop node of the current path node i. Take the next-hop node as the new path node, and obtain the next-hop node of each path node according to this step until the path node is the first server. Starting from the network device as the initial path node, connect all path nodes with their next-hop nodes to obtain the first transmission path of data packets in the network device to the first server.

[0037] Specifically, for example, there is a network device A in the network as the first sensor, which is used to collect environmental data and send it to the first server. Before no new network device joins, the transmission path from network device A to the first server is: network device A - switch A - switch B - message server - first server. Switch A and switch B are used to connect network device A and the message server. The network controller detects that network device B is the second sensor, which is used to collect environmental data at different locations and send it to the first server. Network device B is connected to switch C, and switch C is connected to switch B. Then the transmission path of network device B is: network device B - switch C - switch B - message server - first server; However, both network device B and network device A need to occupy a large amount of bandwidth during the process of transmitting data packets, which may lead to insufficient bandwidth resources of switch B. Moreover, the delay time for data packets to be transmitted on each link is also different. Therefore, the network controller needs to reallocate resources and adjust the transmission path to better adjust the transmission efficiency of data packets; As Figure 2 shown, it is the network topology structure diagram from network device A to the first server. In the figure, each device in the path is replaced by numbers 1 - 7. Five paths can be obtained from the figure to realize the transmission of data packets in network device A to the first server: They are respectively: 1 -> 2 -> 4 -> 6 -> 7, 1 -> 2 -> 3 -> 4 -> 6 -> 7, 1 -> 2 -> 3 -> 5 -> 6 -> 7, 1 -> 3 -> 4 -> 6 -> 7, 1 -> 3 -> 5 -> 6 -> 7; Define each device in the path as a path node, and define the path between every two path nodes as a link segment. For example, 1 -> 2, 1 -> 3, 2 -> 4, 2 -> 3, 3 -> 4, etc.; Initialize the pheromone concentration of each link segment. Assume they are all 1, that is = 1, = 1, = 1, = 1, = 1, = 1, = 1, = 1, = 1; Assume taking path node 2 (switch A) as an example. The adjacent nodes are path node 3 and path node 4. Calculate the probability that path node 2 selects path node 3 or path node 4 according to the first formula , , k = 2. Assume , , the bandwidth utilization rate and delay of link segment are 0.4 and 10 respectively, and for link segment If the bandwidth utilization and latency of are 0.8 and 20 respectively, then for the link segment , , , because > , path node 2 selects path node 3 as the next-hop node. Calculate the next-hop node for each path node according to this step until the next-hop node is the first server. Taking network device A as the initial path node, connect all path nodes with the next-hop nodes to generate the first transmission path from network device A to the first server.

[0038] The ant colony optimization algorithm adapts to changes in the network topology. When a new device joins the network, ants can automatically discover the new node and include it in the path selection range, thus realizing the dynamic expansion of the network.

[0039] In a specific embodiment, the steps for the network controller to generate the configuration information for each data packet based on the first transmission path are as follows: Obtain the network devices through which the data packets of the network device are sent to the first server based on the first transmission path, and define them as intermediate devices. The network controller generates the forwarding rules and processing rules for the data packets based on the intermediate devices, sets priorities for different types of data packets, allocates bandwidth based on the priorities, and defines the forwarding rules, processing rules, priorities, and bandwidth of the data packets as configuration information.

[0040] Specifically, for example, if the first transmission path is network device A - switch A - switch D - message server - first server, then switch A, switch D, and message server are all defined as intermediate devices. Generate the forwarding rules for the data packets based on the intermediate devices. For example, the forwarding rule of network device A is: forward to port 1 of switch A, the forwarding rule of switch A is to forward to port A of switch D, and so on. The processing rules of switch A and switch D are to forward the data packets based on the forwarding rules, and the processing rule of the message server is to forward the data packets according to the forwarding rules, and perform traffic control according to the priorities and bandwidth allocations.

[0041] Assume that data packet 1 of network device A is critical service data, and data packet 2 of network device B is ordinary environmental data. Then the priority of data packet 1 is higher than that of data packet 2. High-priority data packets are allocated higher bandwidth, while low-priority data packets are allocated lower bandwidth. For example, the bandwidth allocated to data packet 1 is 1 Gbps, and the bandwidth allocated to data packet 2 is 500 Mbps. Define the forwarding rules, processing rules, priorities, and bandwidth of the data packets as configuration information, and forward the data packets according to the configuration information until they are sent to the first server.

[0042] In a specific embodiment, the message server performs a recovery check on the first server, which specifically includes the following steps: After detecting that the first server fails, the message server waits for a first waiting time and then enters a polling state. In the polling state, the message server sends multiple ping requests to the first server at a preset third time interval. The first server generates a first response message based on the ping request and sends it to the message server. If the message server receives the first response message, it is determined that the first server can perform a recovery check. The message server sends a virtual request to the first server. The first server generates a second response message based on the virtual request. Calculate the number of times the message server continuously receives the second response message within a preset fourth time interval, which is defined as the second number. Based on the second number, determine whether the first server has fully recovered.

[0043] Specifically, after detecting that the first server fails, the message server does not immediately perform a recovery check but waits for a preset first waiting time, such as 30 seconds. The first waiting time can prevent misjudging server failures due to temporary network fluctuations or momentary unavailability of the server. After the first waiting time, the message server enters a polling state and starts sending 5 ping requests to the first server regularly, such as every 20 seconds. This interval can be adjusted according to network conditions and business requirements. After receiving the ping request, if the first server has recovered or is in an initial recovery state, it will generate a first response message and send it back to the message server. Receiving a first response message by the message server means that the first server can perform a recovery check.

[0044] Subsequently, the message server sends a virtual request to the first server. The virtual request simulates actual business operations but does not affect the business process and is used to test the processing and recovery capabilities of the first server. The first server generates a second response message based on the virtual request. Calculate the number of times the message server records continuously receiving the second response message within a preset fourth time interval, such as 1 minute, which is defined as the second number. According to the magnitude of the second number, determine the recovery status of the first server. The following will be elaborated. By using virtual requests and responses, the server status can be tested without affecting actual business and resource usage can be optimized.

[0045] In a specific embodiment, determining whether the first server has fully recovered based on the second number specifically includes the following steps: If the second number is greater than or equal to a second threshold and less than a third threshold, it indicates that the first server is in an initial recovery state. If the second number is equal to the third threshold, it indicates that the first server is in a fully recovered state. When the first server is in the preliminary recovery state, the message server changes from the recovery check state to the waiting state, and calculates the second waiting time of the message server in the waiting state based on the second formula. , and the second formula is: , where is the second number of times, is the third threshold, is the maximum waiting time of the message server. After waiting for the second waiting time, a virtual request is sent to the first server again until the first server is in the fully recovered state.

[0046] Specifically, by calculating the second number of times, that is, the number of times the message server continuously receives the second response message, to judge the recovery state of the first server. If the second number of times is greater than or equal to the second threshold but less than the third threshold, it is considered that the first server is in the preliminary recovery state. When the first server is in the preliminary recovery state, the message server checks again after waiting for a certain time, and calculates the second waiting time based on the second formula. For example, the second number of times is 8, the third threshold is 10, and the maximum waiting time is 300 seconds, then the second waiting time . After calculating the second waiting time, the message server enters the waiting state and no longer sends virtual requests to the first server, reducing unnecessary access to the first server, reducing network traffic and server load. When the second waiting time has passed, a virtual request is sent to the first server for recovery check. The present invention optimizes the use of network resources by intelligently controlling the check frequency and waiting time of the message server.

[0047] In a specific embodiment, the execution processing of the data packets in the first database and the second database specifically includes the following steps: Define the data packets in the first database and the second database as the first data packet and the second data packet respectively. Determine whether there is a same first data packet and second data packet. If so, delete the corresponding second data packet and directly execute the data instruction in the first data packet. If not, set that within the data processing time of the first server and the second server, the sum of the data processing of the first data packet and the second data packet does not exceed the fourth threshold.

[0048] Specifically, perform a synchronization check on the first database and the second database, compare the data packets in the two databases, and determine whether there are the same first data packet and second data packet. If the same data packet is found, that is, the first data packet and the second data packet are the same, then delete the corresponding second data packet in the second database to avoid data duplication. If there is no duplication between the first data packet and the second data packet, then set the data processing times of the first server and the second server to ensure that within this period, the total data processing of the two data packets does not exceed a preset fourth threshold to prevent system overload and maintain the stability and response speed of the system.

[0049] The above describes an extended network management method in an embodiment of the present application. Next, an extended network management system in an embodiment of the present application will be described. Please refer to Figure 3 , an embodiment of an extended network management system in an embodiment of the present application includes: An initialization module, configured to set the first server and the second server, set the initial state of the first server to the active state, and set the initial state of the second server to the sleep state.

[0050] A temporary storage module, configured to generate real-time transmission data by a network device and encapsulate it into a data packet. The network controller selects a message server in the network and assigns it to the network device. The message server obtains the data packet of the network device and temporarily stores it in the corresponding message list. Before the message server transmits the data packet to the first server, it determines whether the first server has failed.

[0051] A first transmission path generation module, configured to if the first server has not failed, then the network controller detects whether there is a new network device joining the network. If not, directly transmit the data packet to the first server and store it in the first database. If there is a new network device, then the network controller obtains the device information of all network devices in the network, updates the first transmission path of the data packet in each network device to the first server based on the device information, the network controller generates configuration information for each data packet based on the first transmission path, and forwards the data packet to the first server based on the configuration information and stores it in the first database.

[0052] A second transmission path generation module, configured to if the first server fails, then adjust the sleep state of the second server to the active state. At the same time, the network controller detects whether there is a new network device joining the network. If not, directly transmit the data packet to the second server and store it in the second database. If there is a new network device, then update the second transmission path of the data packet in each network device to the second server based on the device information of the network device, and transmit the data packet to the second server based on the second transmission path and store it in the second database.

[0053] A checking module is used to perform a recovery check on the first server using the message server while the first server fails. If the first server is fully recovered, the first server starts to receive data packets, the status of the second server is adjusted from the active state to the dormant state, and the first server performs execution processing on the data packets in the first database and the second database.

[0054] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described systems, systems, and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0055] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0056] As described above, the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims

1. An extended network management method, characterized in that: The method comprises: Step S1: Setting a first server and a second server, setting the initial state of the first server to an active state, and setting the initial state of the second server to a dormant state; Step S2: The network device generates real-time transmission data and encapsulates it into a data packet. The network controller selects a message server in the network and assigns it to the network device. The message server obtains the data packet of the network device and temporarily stores it in the corresponding message list. Before the message server transmits the data packet to the first server, it is determined whether the first server fails. Step S3: If the first server does not fail, the network controller detects whether a new network device is added to the network. If not, the data packet is directly transmitted to the first server and stored in the first database. If a new network device exists, the network controller obtains device information of all network devices in the network, updates a first transmission path from the data packet in each network device to the first server based on the device information, generates configuration information for each data packet based on the first transmission path, forwards the data packet to the first server based on the configuration information, and stores the data packet in the first database. Step S4: if the first server fails, the dormant state of the second server is adjusted to an active state, and at the same time, the network controller detects whether a new network device is added to the network. If not, the data packet is directly transmitted to the second server and stored in the second database. If a new network device exists, the second transmission path from the data packet in each network device to the second server is updated based on the device information of the network device, and the data packet is transmitted to the second server based on the second transmission path and stored in the second database. Step S5: When the first server fails, the message server is used to perform a recovery check on the first server. If the first server is fully recovered, the first server starts to receive data packets, the state of the second server is adjusted from an active state to a dormant state, and the first server executes processing on the data packets in the first database and the second database.

2. The extended network management method according to claim 1, characterized in that: The network controller selects a message server in the network and allocates it to the network device, including: The network controller obtains the load of each message server, selects a message server with the lowest load as the message server of the current network device, and after the data packet is stored in the message list corresponding to the message server, sends a copy of the data packet and stores it in other message lists; Each message server sends a heartbeat signal to an adjacent message server within a preset first time interval. If the message server does not receive a heartbeat signal from an adjacent message server within the first time interval, it is determined that the message server has failed, and the failed message server is removed from the network topology. A new message server is selected from the remaining message servers and assigned to the network device. The new message server restores the data packets in the message list corresponding to the failed message server based on its own message list.

3. The extended network management method according to claim 2, characterized in that: Determining whether the first server fails includes: Within a preset second time interval, the message server sends a detection request to the first server, and the first server responds based on the detection request. The number of times the message server continuously receives response messages is calculated, which is defined as the first number. If the first number is greater than or equal to a first threshold, it is determined that the first server has not failed, otherwise a failure has occurred.

4. The extended network management method according to claim 1, characterized in that: Updating a first transmission path of a data packet in each network device to the first server based on the device information includes: The network controller adds the new network device to a network topology database, determines a connection relationship between the new network device and other network devices, takes all network devices as nodes and the connection relationship as edges, generates a new network topology graph, and obtains all paths from each network device to the first server based on the network topology graph; Define the devices in the path as path nodes, define the path between each path node and the adjacent path node as a link segment, initialize the pheromone concentration of each link segment, the pheromone concentration represents the probability of a data packet selecting a link segment, obtain the bandwidth utilization and delay of the network devices in each link segment, calculate the heuristic information of each link segment based on the bandwidth utilization and the delay, and calculate the probability of the current path node i selecting the adjacent node j based on the first formula , the first formula is: ,in, Link Segment The pheromone concentration, is the pheromone importance parameter, Link Segment The heuristic information is equal to the inverse of the sum of the bandwidth utilization and delay of the link segment. is the heuristic information importance parameter, k is the total number of all path nodes connected to path node i, the probabilities of all adjacent nodes selected by path node i are compared, the adjacent node with the largest probability is taken as the next hop node of the current path node i, and the next hop node is taken as the new path node. The next hop node of each path node is obtained according to this step until the path node is the first server. The network device is taken as the starting path node, and all path nodes are connected to the next hop node to obtain the first transmission path of the data packet in the network device to the first server.

5. The extended network management method according to claim 4, characterized in that: The network controller generates configuration information of each data packet based on the first transmission path, including: The network device through which the data packet of the network device is obtained based on the first transmission path and sent to the first server is defined as an intermediate device. The network controller generates forwarding rules and processing rules for the data packet based on the intermediate device, sets priorities for different types of data packets, allocates bandwidth to the data packet based on the priority, and defines the forwarding rules, processing rules, priority and bandwidth of the data packet as configuration information.

6. The extended network management method according to claim 3, characterized in that: Using the message server to perform a recovery check on the first server includes: After detecting that the first server has failed, the message server waits for a first waiting time, then enters a polling state, sends multiple ping requests to the first server within a third time interval preset in the polling state, the first server generates a first response message based on the ping request and sends it to the message server, and if the message server receives the first response message, it is determined that the first server can perform a recovery check; The message server sends a virtual request to the first server, and the first server generates a second response message based on the virtual request. The number of times the message server continuously receives the second response message within a preset fourth time interval is calculated, which is defined as a second number, and whether the first server is fully recovered is determined based on the second number.

7. The extended network management method according to claim 6, characterized in that: Determining whether the first server is completely recovered based on the second number of times includes: If the second number is greater than or equal to the second threshold and less than the third threshold, it indicates that the first server is in a preliminary recovery state; if the second number is equal to the third threshold, it indicates that the first server is in a full recovery state; When the first server is in a preliminary recovery state, the message server changes from a recovery check state to a waiting state, and a second waiting time of the message server in the waiting state is calculated based on a second formula. , the second formula is: ,in, For the second number, is the third threshold, is the maximum waiting time of the message server, and after waiting for the second waiting time, the virtual request is sent to the first server again until the first server is in a fully recovered state.

8. The extended network management method according to claim 1, characterized in that: Performing execution processing on the data packets in the first database and the second database includes: The data packets in the first database and the second database are defined as the first data packet and the second data packet respectively, and it is determined whether the first data packet is identical to the second data packet; if so, the corresponding second data packet is deleted and the data instruction in the first data packet is directly executed; if not, it is set that within the data processing time of the first server and the second server, the total data processing of the first data packet and the second data packet does not exceed a fourth threshold.

9. An extended network management system, used to implement an extended network management method as claimed in any one of claims 1 to 8, characterized in that: The system comprises: An initialization module, used to set a first server and a second server, setting an initial state of the first server to an active state, and setting an initial state of the second server to a dormant state; A temporary storage module is used for a network device to generate real-time transmission data and encapsulate it into a data packet. The network controller selects a message server in the network to allocate to the network device. The message server obtains the data packet of the network device and temporarily stores it in a corresponding message list. Before the message server transmits the data packet to the first server, it is determined whether the first server fails. A first transmission path generation module, configured to, if the first server does not fail, cause the network controller to detect whether a new network device has been added to the network; if not, directly transmit the data packet to the first server and store it in a first database; if a new network device exists, cause the network controller to obtain device information of all network devices in the network, update a first transmission path from the data packet in each network device to the first server based on the device information, generate configuration information for each data packet based on the first transmission path, forward the data packet to the first server based on the configuration information, and store it in the first database; a second transmission path generating module, configured to adjust the dormant state of the second server to an active state if the first server fails, and the network controller detects whether a new network device is added to the network, and if not, directly transmits the data packet to the second server and stores it in a second database; if a new network device exists, updates the second transmission path of the data packet in each network device to the second server based on the device information of the network device, transmits the data packet to the second server based on the second transmission path, and stores it in the second database; The recovery check module is used to use the message server to perform a recovery check on the first server when the first server fails. If the first server is fully recovered, the first server starts to receive data packets, the state of the second server is adjusted from an active state to a dormant state, and the first server executes processing on the data packets in the first database and the second database.

Citation Information

Patent Citations

  • Network management method and network management device

    CN105991308A

  • Network management method and device, electronic equipment and storage medium

    CN119135525A