Method, device, equipment and medium for dynamically adjusting topology management nodes
By dynamically adjusting the topology structure in the wireless network, distinguishing and electing management nodes according to the priority of the subnet network number, the problem of server management under wireless connections is solved, and effective management and efficient maintenance of the server communication network are achieved.
Patent Information
- Application Number
- CN202211183151.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-09-27
AI Technical Summary
Existing technologies cannot effectively establish and manage server communication networks under wireless connections, resulting in the inability to effectively manage large-scale servers.
By setting the server to wireless communication mode, multiple subnets are formed, and priorities are distinguished according to the network numbers of the subnets, forming a topological structure connected by an upper-level management network and multiple lower-level networks, dynamically and automatically electing management nodes, and realizing control over subnets. Management node adjustment for network changes.
It realizes dynamic management of server communication network under wireless network, improves the efficiency and stability of server management, facilitates overall management of nodes, and saves user maintenance costs.
Smart Images

Figure CN115767563B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of dynamically adjusting topology structure management nodes, and in particular to a method, apparatus, computer equipment and storage medium for dynamically adjusting topology structure management nodes. Background Art
[0002] With the development of new technologies such as cloud computing and big data, the scale of data centers is growing, the demand for server capacity is increasing, and the number of server orders from customers is increasing year by year. The requirements for server management methods are gradually increasing. Currently, there are two ways to manage servers. One is out-of-band management, in which customers design management applications to centrally manage large-scale servers. The second is the SNMP (Simple Network Management Protocol) association function that comes with the server BMC (Baseboard Management Controller). This function sends the logs of each server in scattered prints, and customers are also required to sort out the data. This requires the BMC itself to be able to complete large-scale server management and fault data summary.
[0003] In order to solve the problem of large-scale server management in data centers, it is necessary to collect, count, and process server information on the same network through a fixed server under the premise that the servers are connected to the same management network, and then complete the management of the servers on the same network. However, how to connect servers to the same management network only relies on wired connections, and it is impossible to effectively establish and manage the server communication network for wireless connections. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for dynamically adjusting topology management nodes that can effectively establish and manage a server communication network using a wireless connection to address the above technical problems.
[0005] In one aspect, a method for dynamically adjusting a topology management node is provided, the method comprising:
[0006] Set the server to wireless communication mode and form multiple subnets by region;
[0007] Search and obtain multiple subnets, all of which form a communication network under a preset network access protocol; each subnet has a network number;
[0008] Differentiate subnet priorities according to the network numbers of each subnet;
[0009] A topological structure consisting of an upper-level management network connected to a plurality of lower-level networks is formed in the communication network, and each subnet is a node of the topological structure;
[0010] Dynamically and automatically elect and adjust the management nodes of each subnet according to the subnet changes of the topological structure.
[0011] In one of the embodiments, the step of forming a topology structure consisting of an upper-level management network connected to a plurality of lower-level networks in the communication network includes:
[0012] Sort all subnets according to their network number priority order;
[0013] If multiple subnets have different priorities, the subnet with the highest priority is selected as the management node, and the subnets corresponding to the remaining network numbers are subordinate network nodes;
[0014] If multiple subnets have the same priority, the subnet that first joins the communication network is elected as the management node, and the remaining subnets are subordinate network nodes.
[0015] In one embodiment, the dynamically and automatically selecting and adjusting the management nodes of each subnet according to the subnet change of the topology structure includes:
[0016] Acquire the subnets of the topological structure in real time and detect whether there is a new subnet;
[0017] When a new subnet joins the communication network, the network number of the new subnet and the priority corresponding to the network number of the new subnet are obtained;
[0018] Find out whether there is a network number of a subnet with the same priority in the communication network;
[0019] If yes, then the newly entered subnet is determined to be a lower-level network node;
[0020] If not, all subnets are sorted according to the priority order of the subnet network numbers, and it is determined whether the new subnet is used as a new management node according to the priority order.
[0021] In one embodiment, determining whether the newly entered subnet is used as a new management node according to the priority order includes:
[0022] If the priority corresponding to the network number of the new subnet is higher than the priority corresponding to the network numbers of other subnets, the other subnets are notified that the new subnet becomes a management node, and the original management node is downgraded to a standby management node.
[0023] In one of the embodiments, when acquiring the subnets of the topological structure in real time, it is also detected whether there is a disconnected subnet;
[0024] If a subnet is disconnected and it is the upper management network node, a subnet is elected as the upper management network among the lower network nodes, and the remaining subnets are notified that the subnet becomes the management node, and the original management node is downgraded to a standby management node;
[0025] If a subnet is disconnected and it is a lower-level network node, the disconnected subnet notifies the remaining subnets that the subnet has become a management node, and the original management node is downgraded to a standby management node.
[0026] In one of the embodiments, after the step of forming a topology structure consisting of an upper-level management network connected to a plurality of lower-level networks in the communication network, the method further includes:
[0027] The management node of the subordinate network periodically sends local data to the management server node of the superior management network through the communication network;
[0028] The management server node analyzes, counts and processes the received lower-level network data;
[0029] Displaying the data processed by the management server node on a user interface;
[0030] Trigger the collection of specific information on any management node in real time.
[0031] In one embodiment, the management node of the subordinate network periodically sends local data to the management server node of the superior management network through the communication network, including:
[0032] The management server node of the upper management network sends a data collection command to the management node of the lower network;
[0033] Determine whether the management node of the subordinate network has received the data collection command, if not, re-receive the data collection command, and if yes, determine whether the management node of the subordinate network has parsed correctly;
[0034] If the management node of the subordinate network is parsed correctly, the type of data collection is determined;
[0035] The management node of the subordinate network obtains local data and sends the local data to the management server node of the superior management network;
[0036] Determine whether the management server node of the upper management network receives the sent local data, if not, the management server node of the upper management network receives the local data again, if yes, determine whether the management server node of the upper management network parses correctly;
[0037] If the management server node of the upper management network parses correctly, determining the type of the received local data;
[0038] The management server node of the upper management network returns confirmation data to the management node of the lower network;
[0039] It is determined whether the management node of the subordinate network needs to resend the local data. If so, the management node of the subordinate network waits for a preset period and then sends the local data to the management server node of the superior management network.
[0040] In another aspect, a device for dynamically adjusting a topology management node is provided, the device comprising:
[0041] A wireless communication setting module is used to set the server to a wireless communication mode and form multiple subnets according to regions;
[0042] The subnet acquisition module is used to search and acquire multiple subnets, all of which form a communication network under a preset network access protocol; each subnet has a network number;
[0043] The priority setting module is used to distinguish the subnet priorities according to the network numbers of each subnet;
[0044] A topology structure forming module, used to form a topology structure consisting of an upper management network connected to multiple lower networks in the communication network, each subnet being a node of the topology structure;
[0045] The dynamic adjustment module is used to dynamically and automatically select and adjust the management nodes of each subnet according to the subnet changes of the topological structure.
[0046] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0047] Set the server to wireless communication mode and form multiple subnets by region;
[0048] Search and obtain multiple subnets, all of which form a communication network under a preset network access protocol; each subnet has a network number;
[0049] Differentiate subnet priorities according to the network numbers of each subnet;
[0050] A topological structure consisting of an upper-level management network connected to multiple lower-level networks is formed in the communication network, and each subnet is a node of the topological structure; the subnet corresponding to the network number with the highest priority is the upper-level management network node, and the subnets corresponding to the remaining network numbers are lower-level network nodes;
[0051] Dynamically and automatically elect and adjust the management nodes of each subnet according to the subnet changes of the topological structure.
[0052] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0053] Set the server to wireless communication mode and form multiple subnets by region;
[0054] Search and obtain multiple subnets, all of which form a communication network under a preset network access protocol; each subnet has a network number;
[0055] Differentiate subnet priorities according to the network numbers of each subnet;
[0056] A topological structure consisting of an upper-level management network connected to multiple lower-level networks is formed in the communication network, and each subnet is a node of the topological structure; the subnet corresponding to the network number with the highest priority is the upper-level management network node, and the subnets corresponding to the remaining network numbers are lower-level network nodes;
[0057] Dynamically and automatically elect and adjust the management nodes of each subnet according to the subnet changes of the topological structure.
[0058] The above-mentioned method, device, computer equipment and storage medium for dynamically adjusting the topology structure management nodes distinguish the subnet priorities by network numbers, and then elect the subnet corresponding to the network number with the highest priority in the formed topology structure as the upper-level management network node, and the subnets corresponding to the remaining network numbers as the lower-level network nodes. When the subnets in the topology structure change, the management nodes of each subnet can be dynamically and automatically elected and adjusted. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0060] Figure 1 An application environment diagram of a method for dynamically adjusting topology structure management nodes in one embodiment;
[0061] Figure 2 A schematic diagram of a flow chart of a method for dynamically adjusting a topology structure management node in one embodiment;
[0062] Figure 3 A schematic flow chart of steps for forming a topology structure consisting of an upper-level management network connected to a plurality of lower-level networks in a communication network according to an embodiment;
[0063] Figure 4A schematic flow chart of the steps of dynamically and automatically selecting and adjusting the management nodes of each subnet according to the subnet changes of the topology structure in one embodiment;
[0064] Figure 5 A schematic flow chart of the steps of periodically sending local data from the management node of the subordinate network to the management server node of the superior management network through the communication network in one embodiment;
[0065] Figure 6 A schematic flow chart of a method for dynamically adjusting topology management nodes in another embodiment;
[0066] Figure 7 is a communication flow chart of a management node, a user and a managed node in one embodiment;
[0067] Figure 8 is a communication flow chart between a managed node and a management node in one embodiment;
[0068] Fig. 9 A structural block diagram of an apparatus for dynamically adjusting a topology management node in an embodiment;
[0069] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0071] The method for dynamically adjusting topology management nodes provided in this application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network through the network. Among them, the terminal 102 can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster composed of multiple servers. Each server 104 has a baseboard management controller (Baseboard Management Controller, BMC). When the server is connected to the same management network, the BMC forms a communication network under the prescribed network access protocol through dynamic access, and determines the management server node through automatic election. The remaining nodes regularly send local information to the management server node through the network. The management server node parses, counts, and processes the sent data through the agreed method, and finally displays it on the BMC user interface (web). The user can also manually trigger and specify a node to collect specific information. In this way, the management of server nodes in the management network is completed.
[0072] In one embodiment, Figure 2 As shown, a method for dynamically adjusting topology management nodes is provided, and the method is applied to Figure 1 The server 104 in the example is used as an example to illustrate, and the following steps are included:
[0073] Step S1, setting the server to wireless communication mode, forming multiple subnets according to regions.
[0074] Step S2, searching and acquiring a plurality of subnets, all of which form a communication network under a preset network access protocol; each subnet has a network number.
[0075] Step S3, distinguishing the subnet priorities according to the network numbers of each subnet;
[0076] Step S4, forming a topological structure consisting of an upper-level management network connected to multiple lower-level networks in the communication network, each subnet is a node of the topological structure; the subnet corresponding to the network number with the highest priority is the upper-level management network node, and the subnets corresponding to the remaining network numbers are lower-level network nodes;
[0077] Step S5, dynamically and automatically selecting and adjusting the management nodes of each subnet according to the subnet changes of the topological structure.
[0078] The lower-level network nodes are managed nodes, and the downlink communication commands and access protocols between the management nodes and other nodes are customized by the manufacturer. The communication network networking of nodes in the same management network is completed through the access protocol specified by the manufacturer. The management node can be controlled by the node priority. The node with a high priority in the network assumes the role of network management node. When the nodes in the network are at the same priority, the node that joins the communication network first will serve as the management node. The management node role notifies all nodes in the communication network of its own IP.
[0079] like Figure 3 As shown, in this embodiment, the step of forming a topological structure consisting of an upper-level management network connected to a plurality of lower-level networks in the communication network includes:
[0080] Step S41, sorting all subnets according to the priority order of the subnet network numbers;
[0081] Step S42, if multiple subnets are at different priorities, the subnet with the highest priority is elected as the management node, and the subnets corresponding to the remaining network numbers are subordinate network nodes;
[0082] Step S43: If multiple subnets are at the same priority, the subnet that first joins the communication network is elected as the management node, and the remaining subnets are subordinate network nodes.
[0083] like Figure 4 As shown, in this embodiment, the dynamic automatic election adjustment of the management node of each subnet according to the subnet change of the topology structure includes:
[0084] Step S51, obtaining the subnets of the topological structure in real time, and detecting whether there is a new subnet;
[0085] Step S52, when a new subnet joins the communication network, the network number of the new subnet and the priority corresponding to the network number of the new subnet are obtained;
[0086] Step S53, searching in the communication network whether there is a network number of a subnet with the same priority;
[0087] Step S54: If yes, the newly entered subnet is determined to be a lower-level network node;
[0088] Step S55: If not, all subnets are sorted according to the priority order of the subnet numbers, and it is determined whether the new subnet is used as a new management node according to the priority order.
[0089] In this embodiment, the determination of whether the newly-entered subnet serves as a new management node based on the priority order includes: if the priority corresponding to the network number of the newly-entered subnet is higher than the priorities corresponding to the network numbers of the remaining subnets, the remaining subnets are notified that the newly-entered subnet becomes a management node, and the original management node is downgraded to a standby management node.
[0090] In this embodiment, when obtaining the subnets of the topological structure in real time, it is also detected whether there are any disconnected subnets; if a subnet is disconnected and it is a node of the upper-level management network, a subnet is elected from the lower-level network nodes as the upper-level management network, and the remaining subnets are notified that the subnet becomes a management node, and the original management node is downgraded to a standby management node; if a subnet is disconnected and it is a node of the lower-level network, the remaining subnets are notified in the disconnected subnet that the subnet becomes a management node, and the original management node is downgraded to a standby management node.
[0091] The present invention adds management network priority. When the management network is a wireless network, it is easy to form various subnets due to geographical reasons. In this case, each subnet is distinguished by the subnet number as the subnet priority. A unique network number, such as "A", is set as the top-level management network, and the subnet is composed of various subnet management nodes. Thus, a topological structure of a unique upper-level management network and multiple lower-level networks is formed. Each subnet management node is dynamically elected by the change of the communication topology. The specific rules are as follows.
[0092] When each subnet is not connected to the upper network, all nodes in the subnet (including management and managed nodes) search to find subnet messages and then receive subnet messages. When a new subnet is found, the subnet information is judged locally at the fusion wired level and then the remaining nodes in the subnet are notified.
[0093] First determine whether the network number is consistent. When the priority of the management node of this subnet is lower than that of the discovery subnet, and the network number of the new subnet has the highest priority, the discovery subnet is the only superior management network. The node notifies the other nodes in this subnet that it has become a management node, and the original management node is downgraded to a reserve management node. The new management node joins the superior management network, notifies the nodes in the subordinate subnet of the superior network network number, and manages the nodes in the subordinate subnet.
[0094] When the network number of the new subnet is consistent with the network numbers of other subnets, if the discovered subnet node is a lower-level network node, the node is a non-management node and the original management node remains unchanged.
[0095] If a disconnected subnet is found in the network, the management node is set according to the priority order of the management nodes in the subnet. If a subnet is disconnected and it is a node in a lower-level network, the disconnected subnet notifies the remaining subnets that the subnet has become a management node, and the original management node is downgraded to a standby management node. The new management node joins the discovery subnet, notifies the remaining nodes in the original lower-level subnet that it has joined the network number, and manages the nodes in the original lower-level subnet.
[0096] When each subnet is connected to the upper-level network, each node multicasts data packets regularly for other subnets to receive information and make management node adjustments.
[0097] The dynamic election in this mode can meet the dynamic adjustment of the management network when the node topology changes when the management network is a wireless network. It maintains the stability of the management network topology and facilitates the overall management of the nodes.
[0098] like Figure 5 As shown, in this embodiment, after the step of forming a topological structure consisting of an upper-level management network connected to a plurality of lower-level networks in the communication network, the step further includes:
[0099] Step S6, the management node of the subordinate network periodically sends local data to the management server node of the superior management network through the communication network;
[0100] Step S7, the management server node parses, counts and processes the received lower-level network data;
[0101] Step S8, displaying the data processed by the management server node on a user interface;
[0102] Step S9: triggering the collection of specific information of any management node in real time.
[0103] Specifically, the formats of uplink and downlink management data packets between the management node and other nodes are customized by the manufacturer, and management commands are sent based on the TCP / IP protocol. The managed server node will send data regularly according to the management node IP. After receiving the data, the management node will parse the data according to the node BMC IP and the specified data format. The parsed data will be displayed on the user interface based on the data statistical summary results.
[0104] like Figure 6 , Figure 7 , Figure 8 As shown, in this embodiment, the management node of the subordinate network periodically sends local data to the management server node of the superior management network through the communication network, including:
[0105] Step S61, the management server node of the upper management network sends a data collection command to the management node of the lower network;
[0106] Step S62, determining whether the management node of the subordinate network has received the data collection command, if not, receiving the data collection command again, and if yes, determining whether the management node of the subordinate network has parsed correctly;
[0107] Step S63, if the management node of the lower-level network analyzes correctly, then determine the type of data collection; the type of data collection can be determined by determining the type of sensor or register;
[0108] Step S64, the management node of the subordinate network obtains local data and sends the local data to the management server node of the superior management network;
[0109] Step S65, determining whether the management server node of the upper management network receives the sent local data, if not, the management server node of the upper management network receives the local data again, if yes, determining whether the management server node of the upper management network parses correctly;
[0110] Step S66, if the management server node of the upper management network parses correctly, then determining the type of the received local data;
[0111] Step S67, the management server node of the upper management network returns confirmation data to the management node of the lower network;
[0112] Step S68, determining whether the management node of the subordinate network needs to resend the local data, if so, the management node of the subordinate network waits for a preset period and then sends the local data to the management server node of the superior management network.
[0113] Therefore, users can also actively collect information about other nodes through the management node. Obtain server data information of a specified node or a node in a specified group by sending commands. After receiving the data, the managed node determines whether to respond. The responding node sends back a response data packet and sends local server data according to the instruction requirements. The management node displays the node response information based on the response.
[0114] In the above-mentioned method for dynamically adjusting the topology structure management nodes, the subnet priority is distinguished by the network number, and then the subnet corresponding to the network number with the highest priority in the formed topology structure is elected as the upper-level management network node, and the subnets corresponding to the remaining network numbers are the lower-level network nodes. When the subnets of the topology structure change, the management nodes of each subnet can be dynamically and automatically elected and adjusted.
[0115] The present invention provides a set of centralized management devices and methods for large-scale server nodes in the same network, which can realize unified management of server nodes in the same network. It saves user maintenance costs and improves maintenance efficiency. Customers can obtain information about all server nodes in the network through management nodes. In this management mode, customers can also specify a node in the network as a management node by setting node priority. And by monitoring the node information, long-term monitoring of all nodes in the network is completed.
[0116] It should be understood that although Figure 2-Figure 8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 8 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0117] In one embodiment, Fig. 9 As shown, a device 10 for dynamically adjusting a topology structure management node is provided, comprising: a wireless communication setting module 1, a subnet acquisition module 2, a priority setting module 3, a topology structure forming module 4 and a dynamic adjustment module 5.
[0118] The wireless communication setting module 1 is used to set the server to a wireless communication mode and form multiple subnets according to regions.
[0119] The subnet acquisition module 2 is used to search and acquire multiple subnets, all of which form a communication network under a preset network access protocol; each subnet has a network number.
[0120] The priority setting module 3 is used to distinguish the subnet priorities according to the network numbers of each subnet;
[0121] The topology structure forming module 4 is used to form a topology structure consisting of an upper management network connected to multiple lower networks in the communication network, and each subnet is a node of the topology structure; the subnet corresponding to the network number with the highest priority is the upper management network node, and the subnets corresponding to the remaining network numbers are lower network nodes;
[0122] The dynamic adjustment module 5 is used to dynamically and automatically select and adjust the management nodes of each subnet according to the subnet changes of the topology structure.
[0123] In this embodiment, the topology structure forming module 4 is specifically used in the step of forming a topology structure consisting of an upper-level management network connected to a plurality of lower-level networks in the communication network:
[0124] Sort all subnets according to their network number priority order;
[0125] If multiple subnets have different priorities, the subnet with the highest priority is selected as the management node, and the subnets corresponding to the remaining network numbers are subordinate network nodes;
[0126] If multiple subnets have the same priority, the subnet that first joins the communication network is elected as the management node, and the remaining subnets are subordinate network nodes.
[0127] In this embodiment, the dynamic adjustment module 5 dynamically and automatically selects and adjusts the management nodes of each subnet according to the subnet changes of the topological structure, specifically for:
[0128] Acquire the subnets of the topological structure in real time and detect whether there is a new subnet;
[0129] When a new subnet joins the communication network, the network number of the new subnet and the priority corresponding to the network number of the new subnet are obtained;
[0130] Find out whether there is a network number of a subnet with the same priority in the communication network;
[0131] If yes, then the newly entered subnet is determined to be a lower-level network node;
[0132] If not, all subnets are sorted according to the priority order of the subnet network numbers, and it is determined whether the new subnet is used as a new management node according to the priority order.
[0133] In this embodiment, determining whether the newly entered subnet is used as a new management node according to the priority order includes:
[0134] If the priority corresponding to the network number of the new subnet is higher than the priority corresponding to the network numbers of other subnets, the other subnets are notified that the new subnet becomes a management node, and the original management node is downgraded to a standby management node.
[0135] In this embodiment, when acquiring the subnets of the topological structure in real time, it is also detected whether there is a disconnected subnet;
[0136] If a subnet is disconnected and it is the upper management network node, a subnet is elected as the upper management network among the lower network nodes, and the remaining subnets are notified that the subnet becomes the management node, and the original management node is downgraded to a standby management node;
[0137] If a subnet is disconnected and it is a lower-level network node, the disconnected subnet notifies the remaining subnets that the subnet has become a management node, and the original management node is downgraded to a standby management node.
[0138] In this embodiment, if Fig. 9 As shown, the device 10 for dynamically adjusting the topology structure management node also includes: a data collection module 6, a data processing module 7 and a data display module 8.
[0139] The data collection module 6 is used to control the management node of the subordinate network to periodically send local data to the management server node of the superior management network through the communication network; the data processing module 7 is used to control the management server node to parse, count and process the received subordinate network data; the data display module 8 is used to display the data processed by the management server node on the user interface; the data collection module 6 is also used to trigger the collection of specific information of any management node in real time.
[0140] In this embodiment, the management node of the subordinate network periodically sends local data to the management server node of the superior management network through the communication network, including:
[0141] The management server node of the upper management network sends a data collection command to the management node of the lower network;
[0142] Determine whether the management node of the subordinate network has received the data collection command, if not, re-receive the data collection command, and if yes, determine whether the management node of the subordinate network has parsed correctly;
[0143] If the management node of the subordinate network is parsed correctly, the type of data collection is determined;
[0144] The management node of the subordinate network obtains local data and sends the local data to the management server node of the superior management network;
[0145] Determine whether the management server node of the upper management network receives the sent local data, if not, the management server node of the upper management network receives the local data again, if yes, determine whether the management server node of the upper management network parses correctly;
[0146] If the management server node of the upper management network parses correctly, determining the type of the received local data;
[0147] The management server node of the upper management network returns confirmation data to the management node of the lower network;
[0148] It is determined whether the management node of the subordinate network needs to resend the local data. If so, the management node of the subordinate network waits for a preset period and then sends the local data to the management server node of the superior management network.
[0149] In the above-mentioned device for dynamically adjusting the topology structure management node, the subnet priority is distinguished by the network number, and then the subnet corresponding to the network number with the highest priority in the formed topology structure is elected as the upper-level management network node, and the subnets corresponding to the remaining network numbers are the lower-level network nodes. When the subnets in the topology structure change, the management nodes of each subnet can be dynamically and automatically elected and adjusted.
[0150] The specific definition of the device for dynamically adjusting the topology structure management node can be found in the definition of the method for dynamically adjusting the topology structure management node above, which will not be repeated here. Each module in the above-mentioned device for dynamically adjusting the topology structure management node can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0151] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data for dynamically adjusting the topology structure management node. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for dynamically adjusting the topology structure management node is implemented.
[0152] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0153] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0154] Set the server to wireless communication mode and form multiple subnets by region;
[0155] Search and obtain multiple subnets, all of which form a communication network under a preset network access protocol; each subnet has a network number;
[0156] Differentiate subnet priorities according to the network numbers of each subnet;
[0157] A topological structure consisting of an upper-level management network connected to multiple lower-level networks is formed in the communication network, and each subnet is a node of the topological structure; the subnet corresponding to the network number with the highest priority is the upper-level management network node, and the subnets corresponding to the remaining network numbers are lower-level network nodes;
[0158] Dynamically and automatically elect and adjust the management nodes of each subnet according to the subnet changes of the topological structure.
[0159] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0160] The step of forming a topological structure consisting of an upper-level management network connected to a plurality of lower-level networks in the communication network includes:
[0161] Sort all subnets according to their network number priority order;
[0162] If multiple subnets have different priorities, the subnet with the highest priority is selected as the management node, and the subnets corresponding to the remaining network numbers are subordinate network nodes;
[0163] If multiple subnets have the same priority, the subnet that first joins the communication network is elected as the management node, and the remaining subnets are subordinate network nodes.
[0164] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0165] The dynamically and automatically selecting and adjusting the management nodes of each subnet according to the subnet changes of the topological structure includes:
[0166] Acquire the subnets of the topological structure in real time and detect whether there is a new subnet;
[0167] When a new subnet joins the communication network, the network number of the new subnet and the priority corresponding to the network number of the new subnet are obtained;
[0168] Find out whether there is a network number of a subnet with the same priority in the communication network;
[0169] If yes, then the newly entered subnet is determined to be a lower-level network node;
[0170] If not, all subnets are sorted according to the priority order of the subnet network numbers, and it is determined whether the new subnet is used as a new management node according to the priority order.
[0171] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0172] The step of determining whether the newly entered subnet is to be used as a new management node according to the priority order includes:
[0173] If the priority corresponding to the network number of the new subnet is higher than the priority corresponding to the network numbers of other subnets, the other subnets are notified that the new subnet becomes a management node, and the original management node is downgraded to a standby management node.
[0174] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0175] When acquiring the subnets of the topological structure in real time, it is also detected whether there is a disconnected subnet;
[0176] If a subnet is disconnected and it is the upper management network node, a subnet is elected as the upper management network among the lower network nodes, and the remaining subnets are notified that the subnet becomes the management node, and the original management node is downgraded to a standby management node;
[0177] If a subnet is disconnected and it is a lower-level network node, the disconnected subnet notifies the remaining subnets that the subnet has become a management node, and the original management node is downgraded to a standby management node.
[0178] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0179] After the step of forming a topology structure consisting of an upper-level management network connected to a plurality of lower-level networks in the communication network, the method further includes:
[0180] The management node of the subordinate network periodically sends local data to the management server node of the superior management network through the communication network;
[0181] The management server node analyzes, counts and processes the received lower-level network data;
[0182] Displaying the data processed by the management server node on a user interface;
[0183] Trigger the collection of specific information on any management node in real time.
[0184] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0185] The management node of the subordinate network periodically sends local data to the management server node of the superior management network through the communication network, including:
[0186] The management server node of the upper management network sends a data collection command to the management node of the lower network;
[0187] Determine whether the management node of the subordinate network has received the data collection command, if not, re-receive the data collection command, and if yes, determine whether the management node of the subordinate network has parsed correctly;
[0188] If the management node of the subordinate network is parsed correctly, the type of data collection is determined;
[0189] The management node of the subordinate network obtains local data and sends the local data to the management server node of the superior management network;
[0190] Determine whether the management server node of the upper management network receives the sent local data, if not, the management server node of the upper management network receives the local data again, if yes, determine whether the management server node of the upper management network parses correctly;
[0191] If the management server node of the upper management network parses correctly, determining the type of the received local data;
[0192] The management server node of the upper management network returns confirmation data to the management node of the lower network;
[0193] It is determined whether the management node of the subordinate network needs to resend the local data. If so, the management node of the subordinate network waits for a preset period and then sends the local data to the management server node of the superior management network.
[0194] For specific limitations on the steps implemented when the processor executes the computer program, please refer to the limitations on the method for dynamically adjusting the topology structure management node in the above text, which will not be repeated here.
[0195] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0196] Set the server to wireless communication mode and form multiple subnets by region;
[0197] Search and obtain multiple subnets, all of which form a communication network under a preset network access protocol; each subnet has a network number;
[0198] Differentiate subnet priorities according to the network numbers of each subnet;
[0199] A topological structure consisting of an upper-level management network connected to multiple lower-level networks is formed in the communication network, and each subnet is a node of the topological structure; the subnet corresponding to the network number with the highest priority is the upper-level management network node, and the subnets corresponding to the remaining network numbers are lower-level network nodes;
[0200] Dynamically and automatically elect and adjust the management nodes of each subnet according to the subnet changes of the topological structure.
[0201] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0202] The step of forming a topological structure consisting of an upper-level management network connected to a plurality of lower-level networks in the communication network includes:
[0203] Sort all subnets according to their network number priority order;
[0204] If multiple subnets have different priorities, the subnet with the highest priority is selected as the management node, and the subnets corresponding to the remaining network numbers are subordinate network nodes;
[0205] If multiple subnets have the same priority, the subnet that first joins the communication network is elected as the management node, and the remaining subnets are subordinate network nodes.
[0206] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0207] The dynamically and automatically selecting and adjusting the management nodes of each subnet according to the subnet changes of the topological structure includes:
[0208] Acquire the subnets of the topological structure in real time and detect whether there is a new subnet;
[0209] When a new subnet joins the communication network, the network number of the new subnet and the priority corresponding to the network number of the new subnet are obtained;
[0210] Find out whether there is a network number of a subnet with the same priority in the communication network;
[0211] If yes, then the newly entered subnet is determined to be a lower-level network node;
[0212] If not, all subnets are sorted according to the priority order of the subnet network numbers, and it is determined whether the new subnet is used as a new management node according to the priority order.
[0213] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0214] The step of determining whether the newly entered subnet is to be used as a new management node according to the priority order includes:
[0215] If the priority corresponding to the network number of the new subnet is higher than the priority corresponding to the network numbers of other subnets, the other subnets are notified that the new subnet becomes a management node, and the original management node is downgraded to a standby management node.
[0216] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0217] When acquiring the subnets of the topological structure in real time, it is also detected whether there is a disconnected subnet;
[0218] If a subnet is disconnected and it is the upper management network node, a subnet is elected as the upper management network among the lower network nodes, and the remaining subnets are notified that the subnet becomes the management node, and the original management node is downgraded to a standby management node;
[0219] If a subnet is disconnected and it is a lower-level network node, the disconnected subnet notifies the remaining subnets that the subnet has become a management node, and the original management node is downgraded to a standby management node.
[0220] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0221] After the step of forming a topology structure consisting of an upper-level management network connected to a plurality of lower-level networks in the communication network, the method further includes:
[0222] The management node of the subordinate network periodically sends local data to the management server node of the superior management network through the communication network;
[0223] The management server node analyzes, counts and processes the received lower-level network data;
[0224] Displaying the data processed by the management server node on a user interface;
[0225] Trigger the collection of specific information on any management node in real time.
[0226] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0227] The management node of the subordinate network periodically sends local data to the management server node of the superior management network through the communication network, including:
[0228] The management server node of the upper management network sends a data collection command to the management node of the lower network;
[0229] Determine whether the management node of the subordinate network has received the data collection command, if not, re-receive the data collection command, and if yes, determine whether the management node of the subordinate network has parsed correctly;
[0230] If the management node of the subordinate network is parsed correctly, the type of data collection is determined;
[0231] The management node of the subordinate network obtains local data and sends the local data to the management server node of the superior management network;
[0232] Determine whether the management server node of the upper management network receives the sent local data, if not, the management server node of the upper management network receives the local data again, if yes, determine whether the management server node of the upper management network parses correctly;
[0233] If the management server node of the upper management network parses correctly, determining the type of the received local data;
[0234] The management server node of the upper management network returns confirmation data to the management node of the lower network;
[0235] It is determined whether the management node of the subordinate network needs to resend the local data. If so, the management node of the subordinate network waits for a preset period and then sends the local data to the management server node of the superior management network.
[0236] For specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the above limitations on the method for dynamically adjusting the topology structure management node, which will not be repeated here.
[0237] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0238] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0239] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for dynamically adjusting topology management nodes, It is characterized in that Includes steps: Set the server to wireless communication mode and form multiple subnets by region; Search and obtain multiple subnets, and all subnets form a communication network under a preset network access protocol; Each subnet has a network number; Differentiate subnet priorities according to the network numbers of each subnet; A topological structure consisting of an upper-level management network connected to a plurality of lower-level networks is formed in the communication network, and each subnet is a node of the topological structure; Dynamically and automatically elect and adjust the management nodes of each subnet according to the subnet changes of the topological structure; Wherein, a topological structure consisting of an upper-level management network connected to a plurality of lower-level networks is formed in the communication network, including: Sort all subnets according to their network number priority order; If multiple subnets have different priorities, the subnet with the highest priority is selected as the management node, and the subnets corresponding to the remaining network numbers are subordinate network nodes; If multiple subnets have the same priority, the subnet that first joins the communication network is elected as the management node, and the remaining subnets are subordinate network nodes; The dynamically and automatically selecting and adjusting the management nodes of each subnet according to the subnet changes of the topological structure includes: Acquire the subnets of the topological structure in real time and detect whether there is a new subnet; When a new subnet joins the communication network, the network number of the new subnet and the priority corresponding to the network number of the new subnet are obtained; Find out whether there is a network number of a subnet with the same priority in the communication network; If yes, then the newly entered subnet is determined to be a lower-level network node; If not, all subnets are sorted according to the priority order of the subnet network numbers, and it is determined whether the new subnet is used as a new management node according to the priority order.
2. The method for dynamically adjusting topology management nodes according to claim 1, It is characterized in that The step of determining whether the newly entered subnet is to be used as a new management node according to the priority order includes: If the priority corresponding to the network number of the new subnet is higher than the priority corresponding to the network numbers of other subnets, the other subnets are notified that the new subnet becomes a management node, and the original management node is downgraded to a standby management node.
3. The method for dynamically adjusting topology management nodes according to claim 1, It is characterized in that When acquiring the subnets of the topological structure in real time, it is also detected whether there is a disconnected subnet; If a subnet is disconnected and it is the upper management network node, a subnet is elected as the upper management network among the lower network nodes, and the remaining subnets are notified that the subnet becomes the management node, and the original management node is downgraded to a standby management node; If a subnet is disconnected and it is a lower-level network node, the disconnected subnet notifies the remaining subnets that the subnet has become a management node, and the original management node is downgraded to a standby management node.
4. The method for dynamically adjusting topology management nodes according to claim 1, It is characterized in that After the step of forming a topology structure consisting of an upper-level management network connected to a plurality of lower-level networks in the communication network, the method further includes: The management node of the subordinate network periodically sends local data to the management server node of the superior management network through the communication network; The management server node analyzes, counts and processes the received lower-level network data; Displaying the data processed by the management server node on a user interface; Trigger the collection of specific information on any management node in real time.
5. The method for dynamically adjusting topology management nodes according to claim 4, It is characterized in that The management node of the subordinate network periodically sends local data to the management server node of the superior management network through the communication network, including: The management server node of the upper management network sends a data collection command to the management node of the lower network; Determine whether the management node of the subordinate network has received the data collection command, if not, re-receive the data collection command, and if yes, determine whether the management node of the subordinate network has parsed correctly; If the management node of the subordinate network is parsed correctly, the type of data collection is determined; The management node of the subordinate network obtains local data and sends the local data to the management server node of the superior management network; Determine whether the management server node of the upper management network receives the sent local data, if not, the management server node of the upper management network receives the local data again, if yes, determine whether the management server node of the upper management network parses correctly; If the management server node of the upper management network parses correctly, determining the type of the received local data; The management server node of the upper management network returns confirmation data to the management node of the lower network; It is determined whether the management node of the subordinate network needs to resend the local data. If so, the management node of the subordinate network waits for a preset period and then sends the local data to the management server node of the superior management network.
6. A device for implementing the method for dynamically adjusting topology management nodes according to any one of claims 1 to 5, It is characterized in that The device comprises: A wireless communication setting module is used to set the server to a wireless communication mode and form multiple subnets according to regions; The subnet acquisition module is used to search and acquire multiple subnets, all of which form a communication network under a preset network access protocol; each subnet has a network number; The priority setting module is used to distinguish the subnet priorities according to the network numbers of each subnet; A topology structure forming module, used to form a topology structure consisting of an upper management network connected to multiple lower networks in the communication network, each subnet being a node of the topology structure; The dynamic adjustment module is used to dynamically and automatically select and adjust the management nodes of each subnet according to the subnet changes of the topological structure.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
