CN110851186B - Network equipment restarting method and device, electronic equipment and readable storage medium - Google Patents

Network equipment restarting method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN110851186B
CN110851186B CN201911092690.7A CN201911092690A CN110851186B CN 110851186 B CN110851186 B CN 110851186B CN 201911092690 A CN201911092690 A CN 201911092690A CN 110851186 B CN110851186 B CN 110851186B
Authority
CN
China
Prior art keywords
layer network
network device
access layer
group
restart
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911092690.7A
Other languages
Chinese (zh)
Other versions
CN110851186A (en
Inventor
姚良建
刘浩圻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201911092690.7A priority Critical patent/CN110851186B/en
Publication of CN110851186A publication Critical patent/CN110851186A/en
Application granted granted Critical
Publication of CN110851186B publication Critical patent/CN110851186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method and a device for restarting network equipment, electronic equipment and a readable storage medium, and relates to the technical field of data communication. The method comprises the following steps: determining the hierarchy attribute information of each network device in a plurality of network devices needing to be restarted; grouping the network devices based on the level attribute information of each network device to obtain a plurality of groups of network devices, wherein the level attribute information of each network device in each group of network devices is the same; and issuing a restart instruction to each group of network equipment in the multiple groups of network equipment in sequence so that each group of network equipment is restarted in sequence based on the restart instruction. According to the scheme, the plurality of network devices are grouped according to the hierarchical attribute information, and the restart instruction is issued in sequence for each group of network devices, so that each group of network devices can receive the restart instruction and restart in sequence, the restart work of the network devices is not influenced mutually, and the network devices can be restarted in batch.

Description

Method and device for restarting network equipment, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of data communication technologies, and in particular, to a method and an apparatus for restarting a network device, an electronic device, and a readable storage medium.
Background
The core technology of the current Software Defined Network (SDN) is to separate a control layer and a data layer of a Network device, so as to realize flexible arrangement and control of Network traffic, and make a Network pipeline-like mode more flexible and intelligent.
In an actual implementation process, the network devices need to be upgraded in batch due to updating of software versions or hardware versions of the network devices, and the SDN controller needs to restart the network devices in batch after the network devices are upgraded.
In a network system, network devices are generally divided into different levels according to different working performances or working contents thereof, for example, the network devices may be divided into an access layer, a convergence layer and a core layer, the network devices are restarted after a restart instruction is issued by an SDN controller when the network devices are restarted, and the SDN controller issues the restart instruction to all the network devices in the network system when the SDN controller issues the restart instruction. Because the restart instruction issued by the SDN controller to the network device of the access layer needs to be forwarded through the core layer and the convergence layer, if the core layer and the convergence layer do not issue the restart instruction, the restart instruction issued by the SDN controller to the network device of the access layer cannot reach the access layer, and the network device of the access layer cannot be normally restarted.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for restarting a network device, an electronic device, and a readable storage medium, so as to solve a problem in the prior art that when a network device is restarted in batch, some layers of network devices cannot receive a restart instruction due to data transmission, and cannot be restarted.
In a first aspect, an embodiment of the present application provides a method for restarting a network device, where the method includes:
determining the hierarchy attribute information of each network device in a plurality of network devices needing to be restarted;
grouping the plurality of network devices based on the hierarchy attribute information of each network device to obtain a plurality of groups of network devices, wherein the hierarchy attribute information of each network device in each group of network devices is the same;
and issuing a restart instruction to each group of network equipment in the multiple groups of network equipment in sequence so that each group of network equipment is restarted in sequence based on the restart instruction.
In the implementation process, the network devices are grouped according to the hierarchical attribute information, and the restart instruction is issued in sequence for each group of network devices, so that each group of network devices can receive the restart instruction and restart in sequence, the restart work of the network devices is not affected mutually, and the batch restart of the network devices can be realized.
Optionally, the issuing a restart instruction to each group of network devices in the multiple groups of network devices in sequence includes:
determining a restart sequence for each of the plurality of groups of network devices;
and issuing a restart instruction to each group of network equipment in the plurality of groups of network equipment in sequence according to the restart sequence.
In the implementation process, the restart sequence can be set according to actual requirements, so that the restart instructions can be sequentially issued to each group of network equipment according to the restart sequence, and the method is more flexible.
Optionally, the multiple groups of network devices include an access layer network device group, an aggregation layer network device group, and a core layer network device group, and the issuing of the restart instruction to each group of network devices in the multiple groups of network devices in sequence according to the restart sequence includes:
issuing a restart instruction to the access layer network equipment group;
issuing a restart instruction to the aggregation layer network equipment group;
and issuing a restart instruction to the core layer network equipment group.
Optionally, the issuing of the restart instruction to the access layer network device group includes:
determining a topological connection relationship among each access layer network device in the access layer network device group;
classifying and queuing each access layer network device in the access layer network device group based on the topological connection relationship among each access layer network device to obtain a plurality of access layer network device queues;
and issuing a restart instruction to each access layer network equipment queue in the plurality of access layer network equipment queues in sequence.
In the implementation process, the access layer network devices in the access layer network device group are classified and queued, and the restart instruction is sequentially issued to each access layer network device queue, so that the access layer network device queue can be restarted in sequence, and the service data of the access layer can be continuously transmitted without interruption.
Optionally, the classifying and queuing the access layer network devices in the access layer network device group based on the topological connection relationship among the access layer network devices to obtain a plurality of access layer network device queues includes:
determining access layer network equipment which does not have a connection relation with other access layer network equipment based on the topological connection relation among the access layer network equipment, and adding the access layer network equipment into a first access layer network equipment queue; determining a plurality of groups of access layer network equipment which have connection relations with other access layer network equipment based on the topological connection relation among the access layer network equipment, wherein the connection relation exists among the access layer network equipment in each group of access layer network equipment and the connection relation does not exist among the access layer network equipment in other groups;
and selecting any access layer network device from each group of access layer network devices, adding a second access layer network device queue, selecting any access layer network device from the remaining access layer network devices in each group of access layer network devices, adding a third access layer network device queue until all the access layer network devices in each group of access layer network devices are added into the access layer network device queue, wherein each access layer network device in each access layer network device queue has no connection relation and only belongs to one access layer device queue.
In the implementation process, the access layer network devices without the connection relationship are divided into a pair, so that the access layer network devices with the connection relationship cannot be restarted at the same time during restarting, and service data transmission in a network formed by the access layer network devices with the connection relationship cannot be interrupted.
Optionally, the issuing a restart instruction to each access layer network device queue in the multiple access layer network device queues in sequence includes:
determining the restart priority of each access layer network equipment queue;
and issuing a restart instruction to each access layer network equipment queue in sequence according to the high-low sequence of the restart priority so as to restart all access layer equipment in the corresponding access layer equipment queue.
In the implementation process, the restart priority can be set according to actual requirements, so that a restart instruction can be issued according to the restart priority, and the method is more flexible.
Optionally, the issuing a restart instruction to the aggregation layer network device group includes:
determining a topological connection relationship between each aggregation layer network device in the aggregation layer network device group;
classifying and queuing the aggregation layer network devices in the aggregation layer network device group based on the topological connection relationship among the aggregation layer network devices to obtain a plurality of aggregation layer network device queues;
and issuing a restart instruction to each aggregation layer network equipment queue in the multiple aggregation layer network equipment queues in sequence.
In the implementation process, the aggregation layer network devices in the aggregation layer network device group are classified and queued, and the restart instruction is issued to each aggregation layer network device queue in sequence, so that each aggregation layer network device queue can be restarted in sequence, and the service data of the aggregation layer can be continuously transmitted without interruption.
Optionally, the issuing a restart instruction to the core layer network device group includes:
determining a topological connection relation between each core layer network device in the core layer network device group;
classifying and queuing each core layer network device in the core layer network device group based on the topological connection relationship among each core layer network device to obtain a plurality of core layer network device queues;
and issuing a restart instruction to each core layer network device queue in the plurality of core layer network device queues in sequence.
In the implementation process, core layer network devices in the core layer network device group are classified and queued, and a restart instruction is sequentially issued to each core layer network device queue, so that the core layer network device queues can be restarted sequentially, and thus, the service data of the core layer can be continuously transmitted without interruption.
Optionally, the method further comprises:
monitoring the restart state of target network equipment after issuing a restart instruction to the target network equipment;
and if the restart failure of the target network equipment is monitored, issuing a restart instruction to the target network equipment again.
In the implementation process, the restart state of the network equipment is monitored, and when the restart of the network equipment fails, the restart instruction is issued to the network equipment again, so that the network equipment can be ensured to be restarted smoothly.
In a second aspect, an embodiment of the present application provides an apparatus for restarting a network device, where the apparatus includes:
the hierarchy determining module is used for determining the hierarchy attribute information of each network device in a plurality of network devices needing to be restarted;
the grouping module is used for grouping the plurality of network devices based on the hierarchy attribute information of each network device to obtain a plurality of groups of network devices, wherein the hierarchy attribute information of each network device in each group of network devices is the same;
and the restart instruction issuing module is used for issuing a restart instruction to each group of network equipment in the plurality of groups of network equipment in sequence so that each group of network equipment is restarted in sequence based on the restart instruction.
Optionally, the restart instruction issuing module is configured to determine a restart order of each group of network devices in the multiple groups of network devices; and issuing a restart instruction to each group of network equipment in the plurality of groups of network equipment in sequence according to the restart sequence.
Optionally, the multiple groups of network devices include an access layer network device group, an aggregation layer network device group, and a core layer network device group, and the restart instruction issuing module is configured to:
issuing a restart instruction to the access layer network equipment group;
issuing a restart instruction to the aggregation layer network equipment group;
and issuing a restart instruction to the core layer network equipment group.
Optionally, the restart instruction issuing module is configured to:
determining a topological connection relationship among each access layer network device in the access layer network device group;
classifying and queuing each access layer network device in the access layer network device group based on the topological connection relationship among each access layer network device to obtain a plurality of access layer network device queues;
and issuing a restart instruction to each access layer network equipment queue in the plurality of access layer network equipment queues in sequence.
Optionally, the restart instruction issuing module is configured to:
determining access layer network equipment which does not have a connection relation with other access layer network equipment based on the topological connection relation among the access layer network equipment, and adding the access layer network equipment into a first access layer network equipment queue; determining a plurality of groups of access layer network equipment which have connection relations with other access layer network equipment based on the topological connection relation among the access layer network equipment, wherein the connection relation exists among the access layer network equipment in each group of access layer network equipment and the connection relation does not exist among the access layer network equipment in other groups;
and selecting any access layer network device from each group of access layer network devices, adding a second access layer network device queue, selecting any access layer network device from the remaining access layer network devices in each group of access layer network devices, adding a third access layer network device queue until all the access layer network devices in each group of access layer network devices are added into the access layer network device queue, wherein each access layer network device in each access layer network device queue has no connection relation and only belongs to one access layer device queue.
Optionally, the restart instruction issuing module is configured to:
determining the restart priority of each access layer network equipment queue;
and issuing a restart instruction to each access layer network equipment queue in sequence according to the high-low sequence of the restart priority so as to restart all access layer equipment in the corresponding access layer equipment queue.
Optionally, the restart instruction issuing module is configured to:
determining a topological connection relationship between each aggregation layer network device in the aggregation layer network device group;
classifying and queuing each aggregation layer network device in the aggregation layer network device group based on the topological connection relation among the aggregation layer network devices to obtain a plurality of aggregation layer network device queues;
and issuing a restart instruction to each aggregation layer network equipment queue in the multiple aggregation layer network equipment queues in sequence.
Optionally, the restart instruction issuing module is configured to:
determining a topological connection relation between each core layer network device in the core layer network device group;
classifying and queuing each core layer network device in the core layer network device group based on the topological connection relationship among each core layer network device to obtain a plurality of core layer network device queues;
and issuing a restart instruction to each core layer network device queue in the plurality of core layer network device queues in sequence.
Optionally, the apparatus further comprises:
the restarting monitoring module is used for monitoring the restarting state of the target network equipment after issuing a restarting instruction to the target network equipment; and if the target network equipment is monitored to be unsuccessfully restarted, issuing a restart instruction to the target network equipment again.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method as provided in the first aspect are executed.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps in the method as provided in the first aspect.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a network system according to an embodiment of the present application;
fig. 3 is a flowchart of a method for restarting a network device according to an embodiment of the present disclosure;
FIG. 4 is a schematic view of a square connection between devices according to an embodiment of the present disclosure;
fig. 5 is a schematic connection diagram of a full connection structure between devices according to an embodiment of the present application;
fig. 6 is a schematic diagram of dual-homing connection between devices according to an embodiment of the present application;
fig. 7 is a schematic diagram illustrating a connection of a triangle structure between devices according to an embodiment of the present application;
fig. 8 is a block diagram of a device for restarting a network device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a method for restarting network equipment, which groups the network equipment according to hierarchical attribute information, so that when the network equipment is restarted, the network equipment can be restarted in sequence according to the groups, the restarting of each group of network equipment is not influenced mutually, and further the batch restarting of the network equipment can be realized.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device may include: at least one processor 110, e.g., a CPU, at least one communication interface 120, at least one memory 130, and at least one communication bus 140. Wherein the communication bus 140 is used for realizing direct connection communication of these components. The communication interface 120 of the device in this embodiment is used for communicating signaling or data with other node devices. The memory 130 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). Memory 130 may optionally be at least one memory device located remotely from the aforementioned processor. The memory 130 stores computer readable instructions, and when the computer readable instructions are executed by the processor 110, the electronic device executes the following method shown in fig. 3, for example, the memory 130 may be configured to store hierarchical attribute information of each network device, the processor 110 may be configured to obtain the hierarchical attribute information of each network device, group the network devices according to the hierarchical attribute information, and then issue a restart instruction to each group of network devices in sequence according to the grouped network devices, so that the network devices can be restarted in sequence according to the obtained restart instruction without affecting each other, thereby ensuring smooth restart of the network devices.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a network system according to an embodiment of the present disclosure, where the network system includes a plurality of network devices, each network device is divided into different roles according to different working environments and working contents thereof, for example, the network devices are divided into an access layer network device group 220, an aggregation layer network device group 230, and a core layer network device group 240, each access layer network device in the access layer network device group 220 is configured to provide network connection for a user terminal, mainly solve a mutual access requirement between adjacent users, and provide sufficient bandwidth for these accesses, and the access layer network device may further be responsible for some user management functions, such as address authentication, user authentication, charging management, and the like, and user information collection work, such as an IP address of a user, an access log, and the like; the aggregation layer is the intermediary between the access layer and the core layer, each aggregation layer network device in the aggregation layer network device group 230 has the functions of implementing policy, security, workgroup access, routing between virtual local area networks, source address or destination address coming and the like, and the aggregation layer network device generally adopts a switch supporting three-layer switching technology and VLAN so as to achieve the purposes of network isolation and segmentation; each core layer network device in the group of core layer network devices 240 typically employs a high bandwidth switch that can be used for high speed forwarding communications.
The method for restarting the network device provided by the present application is described in detail below with reference to fig. 2, and since the network device in the network is generally managed by the SDN controller 210 in the Overlay network, the method for restarting the network device provided by the present application may be applied to the SDN controller 210, and of course, other controllers or control devices may also be used to manage the network device, that is, to implement issuing the restart instruction to the network device. For convenience of description, the SDN controller 210 is described in the following embodiments.
Referring to fig. 3, fig. 3 is a flowchart of a method for restarting a network device according to an embodiment of the present application, where the method includes the following steps:
step S110: hierarchical attribute information for each of a plurality of network devices requiring a reboot is determined.
The SDN controller 210 may be configured to manage each network device in the network system, and since each network device may operate in an access layer, an aggregation layer, or a core layer according to different operation contents, hierarchical attribute information may be set in advance for each network device, where the hierarchical attribute information may be a hierarchical identifier or other information for representing a hierarchy, for example, the hierarchical attribute information of the access layer network device group 220 is 1, the hierarchical attribute information of the aggregation layer network device group 230 is 2, and the hierarchical attribute information of the core layer network device group 240 is 3. When hierarchical attribute information configuration is performed on each network device, a corresponding network device may be selected for setting according to information such as an IP address, a device model, and a device name of the network device. Of course, the SDN controller 210 may obtain the working information of each network device in advance, and then may determine the working level of each network device according to the working information, that is, determine that each network device works in the access layer, the convergence layer, or the core layer, and then may perform level attribute information labeling on each network device according to the working level of each network device.
When some or all network devices in a network system need to be restarted after being upgraded due to software update or the like, the SDN controller 210 first obtains identifiers of the network devices that need to be restarted, and then may search hierarchical attribute information set for the network devices in advance, if the network devices that need to be restarted are all the network devices in fig. 2, the SDN controller 210 obtains hierarchical attribute information of each network device, and if the network devices that need to be restarted are access layer network devices, the hierarchical attribute information of each network device is 1, the network devices 11, 12, 13, and 14 are aggregation layer network devices, the hierarchical attribute information of each network device is 2, the network devices 15 and 16 are core layer network devices, and the hierarchical attribute information of each network device is 3.
Therefore, the hierarchical attribute information of each network device can be determined from the hierarchical attribute identification information of each network device.
Step S120: grouping the plurality of network devices based on the hierarchy attribute information of each network device to obtain a plurality of groups of network devices.
After obtaining the level attribute information of each network device, the SDN controller 210 may group the network devices according to the level attribute information, for example, group the 16 network devices to obtain multiple groups of network devices, and since the network devices are grouped according to the levels of the network devices during grouping, the level attribute information of each network device in each group of network devices is the same, for example, the access layer network devices are grouped into one group to obtain an access layer network device group 220, the aggregation layer network devices are grouped into one group to obtain an aggregation layer network device group 230, and the core layer network devices are grouped into one group to obtain a core layer network device group 240.
It should be noted that, when the hierarchical attribute information of each network device is set, the hierarchical attribute information may also be set without depending on the hierarchical attributes of the access layer, the convergence layer, and the core layer, so that a plurality of network devices may be classified into hierarchies of other groups according to a dependency relationship whether they will affect each other when actually restarted, and then corresponding hierarchical attribute information is set for each network device, so that network devices belonging to the same hierarchy may be classified into one group when grouping.
Step S130: and issuing a restart instruction to each group of network equipment in the multiple groups of network equipment in sequence so that each group of network equipment is restarted in sequence based on the restart instruction.
After the network devices are divided into the access layer, the aggregation layer, and the core layer, the restart instruction may be sequentially issued to each network device group, for example, the restart instruction is first issued to the access layer network device group 220, the restart instruction is then issued to the aggregation layer network device group 230 after a certain time interval, and the restart instruction is then issued to the core layer network device group 240 after a certain time interval. Certainly, the order of issuing the restart instruction to each group of network devices is not limited, for example, the restart instruction may be issued to the core layer network device group 240 first, then the restart instruction may be issued to the aggregation layer network device group 230, and then the restart instruction may be issued to the access layer network device group 220. That is to say, the SDN controller 210 may arbitrarily select to issue the restart instruction to any group of network devices first, and then arbitrarily select the remaining groups of network devices to continue issuing the restart instruction. After each network device receives the restart instruction, the network device can automatically restart based on the restart instruction.
In the implementation process, the network devices are grouped according to the hierarchical attribute information, and the restart instruction is issued in sequence for each group of network devices, so that each group of network devices can receive the restart instruction and restart in sequence, the restart work of the network devices is not affected mutually, and the batch restart of the network devices can be realized.
As an example, in order to facilitate the SDN controller 210 to issue the restart instruction, a restart sequence of multiple groups of network devices may be preset in the SDN controller 210 according to a user requirement, for example, the multiple groups of network devices include three groups of network devices, namely, an access layer network device group 220, an aggregation layer network device group 230, and a core layer network device group 240, and a restart sequence of the three groups of network devices may be further set according to an actual requirement, for example, the restart sequence is an access layer- > an aggregation layer- > a core layer, so that before issuing the restart instruction, the SDN controller 210 may determine the restart sequence of each group of network devices in the multiple groups of network devices, and then sequentially issue the restart instruction to each group of network devices in the multiple groups of network devices according to the restart sequence, for example, first issue the restart instruction to the access layer network device group 220, then issue the restart instruction to the aggregation layer network device group 230, and then issue the restart instruction to the core layer network device group 240.
Certainly, the restart sequence may be set according to the requirement of the user, and the restart sequence is not unique, and in an actual application process, the restart sequence may be changed according to the requirement, so that the SDN controller 210 directly issues the restart instruction according to the restart sequence when issuing the restart instruction. In addition, in an optional embodiment, the SDN controller 210 may also select a restart sequence by itself, for example, a plurality of restart sequences may be pre-stored in the SDN controller 210, and the SDN controller 210 may randomly select one of the restart sequences to issue a restart instruction.
In the implementation process, the restart sequence can be set according to actual requirements, so that the restart instructions can be sequentially issued to each group of network equipment according to the restart sequence, and the method is more flexible.
In addition, in order not to affect the network devices of each hierarchy to each other when restarting, as described above, the network devices 1 to 10 all belong to the access layer network device group 220, and if these network devices restart at the same time, it may cause that data of the access layer cannot be uploaded, so the network devices of each group may also be classified and queued, and then restart according to the queue, and the classification and queuing process is as follows:
the method comprises the steps of firstly determining the topological connection relation among all access layer network devices in an access layer network device group 220, then performing classified enqueue on all access layer network devices in the access layer network device group 220 based on the topological connection relation among all access layer network devices to obtain a plurality of access layer network device queues, and then sequentially issuing a restart instruction to each access layer network device queue in the plurality of access layer network device queues.
It is to be understood that the SDN controller 210 may obtain the topological connection relationship of each network device according to a customized proprietary protocol, such as an ethernet link discovery protocol (edp protocol), may determine the topological connection relationship of each network device according to an 11dp link discovery protocol, or obtain the topological connection relationship of each network device input by a user.
In a general network structure, the topological connection relationship between the core layer network device group 240 and the aggregation layer network device group 230 is generally in a square-shaped connection relationship (as shown in fig. 4), and a small part is a Full Mesh Full connection structure (as shown in fig. 5); the topological connection between the group of access network devices 220 and the group of aggregation network devices 230 is generally in the shape of a square, dual homing (as shown in fig. 6), full connection of Full Mesh, and a few triangular structures (as shown in fig. 7).
The SDN controller 210 may obtain, for each group of network devices, a topological connection relationship between each network device through a private protocol or an 11dp link discovery protocol, for example, for the access layer network device group 220, it may obtain a topological connection relationship between each access layer network device in the access layer network device group 220, as shown in fig. 2, each of the network devices 1 to 10 is the access layer network device group 220, which is called an access layer network device, the network device 1 is connected to the network device 2, the network device 3 is not connected to another network device, the network device 5 is connected to the network device 6, the network device 6 is connected to the network device 7, the network device 7 is connected to the network device 8, the network device 8 is connected to the network device 9, the network device 9 is connected to the network device 10, and after obtaining the topological connection relationships of the network devices, a classification enqueue may be performed for the access layer network device group 220 according to the topological connection relationships, so as to obtain a plurality of access layer network device queues.
The classified enqueuing mode can be set according to actual requirements, for example, the mode can be divided into one queue with connection relation, for example, network device 1 and network device 2 are first queue access layer network devices, network device 3 is second queue access layer network devices, network device 4 is third queue access layer network devices, and network device 5-network device 10 are fourth queue access layer network devices, and then a total of 4 queues of access layer network devices are obtained. When issuing a restart instruction to the access layer network device group 220, the SDN controller 210 may issue a restart instruction to one of the access layer network device queues first, and then issue a restart instruction to another access layer network device queue, for example, first, issue a restart instruction to a first access layer network device queue, then issue a restart instruction to a second access layer network device queue after a certain time interval, then issue a restart instruction to a third access layer network device queue after a certain time interval, and then issue a restart instruction to a fourth access layer network device queue after a certain time interval.
It should be noted that, the sequence in which the SDN controller 210 issues the restart instruction for the multiple access layer network device queues is only an example, and in practical application, the sequence may be defined by itself according to requirements, which is not limited in the embodiment of the present invention. In addition, the reason that the restart instruction is issued after a certain time interval is reserved between each queue is to ensure that the previous queue of network devices has time to restart, and the problem that the network devices cannot perform data interaction with upper network devices due to the fact that a plurality of queues of network devices are all restarted is solved.
In the implementation process, the access layer network devices in the access layer network device group 220 are classified and queued, and the restart instruction is sequentially issued to each access layer network device queue, so that the access layer network device queues can be restarted sequentially, and the service data of the access layer can be continuously transmitted without interruption.
In addition, in order not to affect the network devices of each hierarchy to affect each other when restarting, as described above, the network device 1 and the network device 2 belong to the same network point, that is, the network point 1, if both the network device 1 and the network device 2 restart at the same time, data of the network point may not be uploaded continuously, so that a plurality of access layer network devices in the access layer network device group 220 may be classified and queued in the following manner:
determining access layer network equipment which does not have a connection relation with other access layer network equipment based on the topological connection relation among the access layer network equipment, and adding the first access layer network equipment queue;
determining a plurality of groups of access layer network equipment which have connection relations with other access layer network equipment based on the topological connection relation among the access layer network equipment, wherein the connection relation exists between the access layer network equipment in each group of access layer network equipment and the connection relation does not exist between the access layer network equipment in other groups;
and selecting any access layer network device from each group of access layer network devices, adding a second access layer network device queue, selecting any access layer network device from the remaining access layer network devices in each group of access layer network devices, adding a third access layer network device queue until all the access layer network devices in each group of access layer network devices are added into the access layer network device queue, wherein each access layer network device in each access layer network device queue has no connection relation and only belongs to one access layer device queue.
It can be understood that if the network devices have a direct or indirect connection relationship therebetween, the network devices are equivalent nodes, the equivalent nodes may be determined based on a topological connection relationship between each access layer network device, for example, if the network device 1 is connected to the network device 2, the network device 1 and the network device 2 are equivalent nodes, the network device 3 and the network device 4 do not have a direct or indirect connection relationship with other network devices, the network device 3 and the network device 4 are not equivalent nodes, the network device 5 and the network device 10 all have a direct or indirect connection relationship therebetween, the network device 5 and the network device 10 are equivalent nodes, the above process may be understood as selecting any one network device from each equivalent node to form an access layer network device queue, and the network devices that are not equivalent nodes are single access layer network device queues.
For example, if the network device 3 and the network device 4 are access layer network devices that do not have a connection relationship with other access layer network devices, the network device 3 and the network device 4 may serve as a first access layer network device queue; when the network devices continue to be classified and queued, the network device 1 and the network device 5 may serve as a second access layer network device queue, the network device 2 and the network device 6 serve as a third access layer network device queue, the network device 7 serves as a fourth access layer network device queue, the network device 8 serves as a fifth access layer network device queue, the network device 9 serves as a sixth access layer network device queue, and the network device 10 serves as a seventh access layer network device queue, or the network device 1 and the network device 10 serve as an access layer network device queue, the network device 2 and the network device 9 serve as an access layer network device queue, and the remaining network devices each serve as an access layer network device queue, that is, one network device queue is formed by arbitrarily selecting one network device from each group of the access layer devices, and the remaining network devices each serve as an access layer network device queue, so that each layer network device in each group of access layer network devices is not the same network node (that is, that no connection relationship exists), and each layer device in each group of access layer device belongs to only one access layer network.
After the access layer network device group 220 is divided into a plurality of access layer network device queues according to the above-mentioned manner, each access layer network device in each access layer network device queue does not belong to the device of the same network point, so that when each access layer network device queue is restarted, the data interaction between each network point and the aggregation layer is not interrupted. That is to say, the network devices without connection relationship are grouped into a queue, so that the network devices with connection relationship are not restarted at the same time when the network devices are restarted, thereby ensuring that the service data transmission in the network formed by the network devices with connection relationship is not interrupted.
In practical application, a restart priority of each access layer network device may also be set, and then when issuing a restart instruction to a plurality of access layer network device queues, the SDN controller 210 first determines a restart priority of each access layer network device queue, and then issues the restart instruction to each access layer network device queue in the plurality of access layer network device queues in sequence according to the order of the restart priority, for example, the plurality of access layer network device queues may be arranged according to a queue, for example, the restart priority of a network device that does not have a connection relationship is set to be the highest, such as the above-mentioned network device 3 and network device 4 as queue X0, the restart priority thereof is set to be 0, the network device 1 and network device 5 as queue X1, the restart priority thereof is 1, the network device 2 and network device 6 as queue X2, the network device 7 as queue X3, the restart priority thereof is 3, the network device 8 as queue X4, the restart priority thereof is 4, the network device 9 as queue X5, the restart priority thereof is 5, the network device 10 as queue X6, and the restart priority thereof is 6.
Therefore, when issuing the restart instruction, the SDN controller 210 may issue the restart instruction in sequence from high to low according to the restart priority, that is, issue the restart instruction according to the sequence of the queue X0- > X1- > X2- > X3- > X4- > X5- > X6.
In the implementation process, the restart priority can be set according to actual requirements, so that a restart instruction can be issued according to the restart priority, and the method is more flexible.
In addition, the aggregation layer network device group 230 and the core layer network device group 240 may also be performed in a classified enqueue manner with the access layer network device group 220, for example, for the aggregation layer network device group 230, a topological connection relationship between each aggregation layer network device in the aggregation layer network device group 230 may also be determined first, then, based on the topological connection relationship between each aggregation layer network device, each aggregation layer network device in the aggregation layer network device group is classified and enqueued, a plurality of aggregation layer network device queues are obtained, and then, a restart instruction is issued to each aggregation layer network device queue in the plurality of aggregation layer network device queues in sequence.
That is, the SDN controller 210 may also obtain a topological connection relationship between each aggregation layer network device through a private protocol or an lldp link discovery protocol, for example, as shown in fig. 2, the network device 11 is connected to the network device 12, and the network device 13 is connected to the network device 14, the network device 11 and the network device 12 may be divided into a first aggregation layer network device queue, the network device 13 and the network device 14 may be divided into a second aggregation layer network device queue, or according to the above-mentioned classification queuing manner of the access layer devices, the network devices without a connection relationship may be divided into a queue, that is, the network device 11 and the network device 13 may be divided into one aggregation layer network device queue, the network device 12 and the network device 14 may be divided into one aggregation layer network device queue, or the network device 11 and the network device 14 may be divided into one aggregation layer network device queue, and the network device 12 and the network device 13 may be divided into one aggregation layer network device queue, thereby obtaining two aggregation layer networks.
And then sequentially issuing restart instructions for each aggregation layer network device queue, where the sequence of issuing the restart instructions may also be randomly and sequentially issued, or may also be issued according to a fixed sequence, and is not particularly limited herein.
In the implementation process, the aggregation layer network devices in the aggregation layer network device group 230 are classified and queued, and the restart instruction is sequentially issued to the aggregation layer network devices that are classified and queued, so that the aggregation layer network device queue can be restarted sequentially, and the service data of the aggregation layer can be continuously transmitted without interruption.
The manner of performing classification enqueuing on the core layer network device group 240 is similar to that described above, that is, the topological connection relationship between each core layer network device in the core layer network device group 240 is determined, each core layer network device in the core layer network device group is subjected to classification enqueuing based on the topological connection relationship between a plurality of core layer network devices, a plurality of core layer network device queues are obtained, and then a restart instruction is issued by each core layer network device queue in the plurality of core layer network device queues in sequence.
That is, the SDN controller 210 may also obtain a topology connection relationship between core layer network devices through a private protocol or an lldp link discovery protocol, for example, if the network device 15 and the network device 16 in fig. 2 are connected, the network device 15 and the network device 16 may be divided into a core layer network device queue, and there is only one core layer network device queue, and when there are more core layer network devices, classification enqueuing may be continued; or according to the above described classification queuing manner of the access layer device, the network devices without connection relationship may be divided into one queue, that is, the network device 15 is divided into one queue, and the network device 16 is divided into one queue, thereby obtaining two core layer network device queues.
And then sequentially issuing restart instructions for each core layer network device queue, where the order of issuing the restart instructions may be randomly sequentially issued or may be issued according to a fixed order, and is not particularly limited herein.
In the implementation process, the core layer network device group 240 is classified and enqueued, and the network devices classified and enqueued are sequentially issued restart instructions, so that the core layer network device queue can be restarted sequentially, and thus the service data of the core layer can be continuously transmitted without interruption.
As an example, the following table shows an example of a plurality of queues obtained after the network device in fig. 2 performs classification enqueuing according to one of the classification enqueuing methods:
Figure BDA0002266301700000191
Figure BDA0002266301700000201
as an example, the sequence of issuing the restart instruction by the SDN controller 210 may be as follows:
the access layer network device group 220 is issued with a restart instruction first: restarting the devices contained in the queue X0 preferentially, and then restarting the devices contained in the queues X1, X2, X3, X4, \ 8230;, X6; if the device in the X0 queue is empty, skipping the X0 queue, and executing subsequent queues X1, X2, X3, X4, \\ 8230, and restarting X6;
and then issues a restart instruction to the aggregation layer network device group 230: equipment contained in the queue Y0 is restarted preferentially, and then equipment contained in the queues Y1 and Y2 is restarted; if the equipment in the Y0 queue is empty, skipping the Y0 queue and restarting the subsequent queues Y1 and Y2;
then, a restart instruction is issued to the core layer network device group 240: equipment contained in the queue Z0 is restarted preferentially, and then equipment contained in the queues Z1 and Z2 is restarted; and if the equipment in the Z0 queue is empty, skipping the Z0 queue, and restarting the subsequent queues Z1 and Z2.
In addition, in order to sequentially restart each group of network devices and each team of network devices, the restart state of the target network device may be monitored after the restart instruction is issued to the target network device, and if it is monitored that the target network device fails to restart, the restart instruction is again issued to the target network device.
For example, for the access layer network device group 220, if the network device 3 and the network device 4 (i.e., a target network device) are restarted, the SDN controller 210 issues a restart instruction to both the network device 3 and the network device 4, the network device 3 and the network device 4 restart after receiving the restart instruction, the network device 3 or the network device 4 may automatically send restart completion indication information to the SDN controller 210 after the restart is completed, so as to monitor a restart state of the network device, after the SDN controller 210 receives the restart completion indication information sent by the network device 3 and the network device 4, the network device may be marked with a restart flag, for example, the restart success flag is 1, the restart failure flag is 0, and the restart instruction continues to be sent to the next team of network devices after the restart succeeds.
If the network device is suddenly powered off, the SDN controller 210 cannot receive a restart state of the network device, and if the SDN controller 210 does not receive restart completion indication information sent by the network device within a preset time period, indicating that the network device is unsuccessfully restarted, the SDN controller sends a restart instruction to the network device again, and if the network device is unsuccessfully restarted within a certain time period, the restart result of the network device is marked to be 0, that is, the network device is unsuccessfully restarted, the restart result can be fed back to a user, and the user can be prompted to perform manual investigation, or manually participate in the restart operation of the network device.
In the implementation process, the restart state of the network equipment is monitored, and when the restart of the network equipment fails, the restart instruction is issued to the network equipment again, so that the network equipment can be ensured to be restarted smoothly.
Referring to fig. 8, fig. 8 is a block diagram of an apparatus 300 for restarting a network device according to an embodiment of the present disclosure, where the apparatus 300 may be a module, a program segment, or code on an electronic device. It should be understood that the apparatus 300 corresponds to the above-mentioned embodiment of the method in fig. 3, and can perform the steps related to the embodiment of the method in fig. 3, and the specific functions of the apparatus 300 can be referred to the above description, and the detailed description is appropriately omitted here to avoid redundancy.
Optionally, the apparatus 300 comprises:
a hierarchy determining module 310, configured to determine hierarchy attribute information of each of a plurality of network devices that need to be restarted;
a grouping module 320, configured to group the multiple network devices based on the hierarchical attribute information of each network device to obtain multiple groups of network devices, where the hierarchical attribute information of each network device in each group of network devices is the same;
the restart instruction issuing module 330 is configured to issue a restart instruction to each group of network devices in the multiple groups of network devices in sequence, so that each group of network devices is restarted in sequence based on the restart instruction.
Optionally, the restart instruction issuing module 330 is configured to determine a restart order of each group of network devices in the multiple groups of network devices; and issuing a restart instruction to each group of network equipment in the plurality of groups of network equipment in sequence according to the restart sequence.
Optionally, the multiple groups of network devices include an access layer network device group, an aggregation layer network device group, and a core layer network device group, and the restart instruction issuing module 330 is configured to:
issuing a restart instruction to the access layer network equipment group;
issuing a restart instruction to the aggregation layer network equipment group;
and issuing a restart instruction to the core layer network equipment group.
Optionally, the restart instruction issuing module 330 is configured to:
determining a topological connection relationship among each access layer network device in the access layer network device group;
classifying and queuing each access layer network device in the access layer network device group based on the topological connection relationship among each access layer network device to obtain a plurality of access layer network device queues;
and issuing a restart instruction to each access layer network equipment queue in the plurality of access layer network equipment queues in sequence.
Optionally, the restart instruction issuing module 330 is configured to:
determining access layer network equipment which does not have a connection relation with other access layer network equipment based on the topological connection relation among the access layer network equipment, and adding the access layer network equipment into a first access layer network equipment queue; determining a plurality of groups of access layer network equipment which have connection relations with other access layer network equipment based on the topological connection relation among the access layer network equipment, wherein the connection relation exists between the access layer network equipment in each group of access layer network equipment and the connection relation does not exist between the access layer network equipment in other groups of access layer network equipment;
and selecting any access layer network device from each group of access layer network devices, adding a second access layer network device queue, selecting any access layer network device from the remaining access layer network devices in each group of access layer network devices, adding a third access layer network device queue until all the access layer network devices in each group of access layer network devices are added into the access layer network device queue, wherein each access layer network device in each access layer network device queue has no connection relation and only belongs to one access layer device queue.
Optionally, the restart instruction issuing module 330 is configured to:
determining the restart priority of each access layer network equipment queue;
and issuing a restart instruction to each access layer network equipment queue in sequence according to the high-low sequence of the restart priority so as to restart all access layer equipment in the corresponding access layer equipment queue.
Optionally, the restart instruction issuing module 330 is configured to:
determining a topological connection relationship between each aggregation layer network device in the aggregation layer network device group;
classifying and queuing each aggregation layer network device in the aggregation layer network device group based on the topological connection relation among the aggregation layer network devices to obtain a plurality of aggregation layer network device queues;
and issuing a restart instruction to each aggregation layer network equipment queue in the multiple aggregation layer network equipment queues in sequence.
Optionally, the restart instruction issuing module 330 is configured to:
determining a topological connection relation among core layer network devices in the core layer network device group;
classifying and queuing each core layer network device in the core layer network device group based on the topological connection relationship among each core layer network device to obtain a plurality of core layer network device queues;
and issuing a restart instruction to each core layer network device queue in the plurality of core layer network device queues in sequence.
Optionally, the apparatus 300 further comprises:
the restarting monitoring module is used for monitoring the restarting state of the target network equipment after issuing a restarting instruction to the target network equipment; and if the target network equipment is monitored to be unsuccessfully restarted, issuing a restart instruction to the target network equipment again.
The embodiment of the present application provides a readable storage medium, and when being executed by a processor, the computer program performs the method process performed by the electronic device in the method embodiment shown in fig. 3.
The present embodiments disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments, for example, comprising: determining the hierarchy attribute information of each network device in a plurality of network devices needing to be restarted; grouping the network devices based on the level attribute information of each network device to obtain a plurality of groups of network devices, wherein the level attribute information of each network device in each group of network devices is the same; and issuing a restart instruction to each group of network equipment in the multiple groups of network equipment in sequence so that each group of network equipment is restarted in sequence based on the restart instruction.
In summary, the embodiments of the present application provide a method, an apparatus, an electronic device, and a readable storage medium for restarting network devices, in which a plurality of network devices are grouped according to hierarchical attribute information, and a restart instruction is sequentially issued for each group of network devices, so that each group of network devices can receive the restart instruction and restart the network devices in sequence, and the restart operations of the network devices are not affected by each other, thereby realizing batch restart of the network devices.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some communication interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method of network device restart, the method comprising:
determining the hierarchy attribute information of each network device in a plurality of network devices needing to be restarted;
grouping the plurality of network devices based on the hierarchy attribute information of each network device to obtain a plurality of groups of network devices;
issuing a restart instruction to each group of network equipment in the multiple groups of network equipment in sequence so that each group of network equipment is restarted in sequence based on the restart instruction;
the issuing of the restart instruction to each group of network devices in the multiple groups of network devices in sequence comprises:
determining a restart sequence for each of the plurality of sets of network devices;
issuing a restart instruction to each group of network equipment in the plurality of groups of network equipment in sequence according to the restart sequence;
the multiunit network equipment includes access layer network equipment group, assembles layer network equipment group and core layer network equipment group, according to restart the order in proper order to every group network equipment among the multiunit network equipment issues restart instruction, include:
issuing a restart instruction to the access layer network equipment group;
issuing a restart instruction to the aggregation layer network equipment group;
and issuing a restart instruction to the core layer network equipment group.
2. The method of claim 1, wherein said issuing a restart instruction to the set of access layer network devices comprises:
determining a topological connection relationship among each access layer network device in the access layer network device group;
classifying and queuing each access layer network device in the access layer network device group based on the topological connection relationship among each access layer network device to obtain a plurality of access layer network device queues;
and issuing a restart instruction to each access layer network equipment queue in the plurality of access layer network equipment queues in sequence.
3. The method of claim 2, wherein the classifying the access layer network devices in the group of access layer network devices into queues based on the topological connectivity among the respective access layer network devices to obtain a plurality of access layer network device queues comprises:
determining access layer network equipment which does not have a connection relation with other access layer network equipment based on the topological connection relation among the access layer network equipment, and adding the access layer network equipment into a first access layer network equipment queue; and
determining a plurality of groups of access layer network devices which have connection relations with other access layer network devices based on the topological connection relation among the access layer network devices, wherein the connection relation exists between the access layer network devices in each group of access layer network devices and the connection relation does not exist between the access layer network devices in other groups of access layer network devices;
and selecting any access layer network device from each group of access layer network devices, adding a second access layer network device queue, selecting any access layer network device from the remaining access layer network devices in each group of access layer network devices, adding a third access layer network device queue until all the access layer network devices in each group of access layer network devices are added into the access layer network device queue, wherein each access layer network device in each access layer network device queue has no connection relation and only belongs to one access layer device queue.
4. The method of claim 2, wherein said issuing a restart instruction to each of the plurality of access layer network device queues in turn comprises:
determining the restart priority of each access layer network equipment queue;
and issuing a restart instruction to each access layer network equipment queue in sequence according to the high-low sequence of the restart priority so as to restart all access layer equipment in the corresponding access layer equipment queue.
5. The method of claim 1, wherein said issuing a restart instruction to the group of aggregation layer network devices comprises:
determining a topological connection relationship between each aggregation layer network device in the aggregation layer network device group;
classifying and queuing each aggregation layer network device in the aggregation layer network device group based on the topological connection relation among the aggregation layer network devices to obtain a plurality of aggregation layer network device queues;
and issuing a restart instruction to each aggregation layer network equipment queue in the multiple aggregation layer network equipment queues in sequence.
6. The method of claim 1, wherein said issuing a reboot instruction to the group of core layer network devices comprises:
determining a topological connection relation among core layer network devices in the core layer network device group;
classifying and queuing each core layer network device in the core layer network device group based on the topological connection relationship among each core layer network device to obtain a plurality of core layer network device queues;
and issuing a restart instruction to each core layer network device queue in the plurality of core layer network device queues in sequence.
7. The method of claim 1, further comprising:
monitoring the restart state of target network equipment after issuing a restart instruction to the target network equipment;
and if the restart failure of the target network equipment is monitored, issuing a restart instruction to the target network equipment again.
8. An apparatus for restarting a network device, the apparatus comprising:
the hierarchy determining module is used for determining the hierarchy attribute information of each network device in a plurality of network devices needing to be restarted;
the grouping module is used for grouping the plurality of network devices based on the hierarchy attribute information of each network device to obtain a plurality of groups of network devices, wherein the hierarchy attribute information of each network device in each group of network devices is the same;
the restarting instruction issuing module is used for issuing a restarting instruction to each group of network equipment in the plurality of groups of network equipment in sequence so as to enable each group of network equipment to restart in sequence based on the restarting instruction;
the restart instruction issuing module is used for determining the restart sequence of each group of network equipment in the multiple groups of network equipment; issuing a restart instruction to each group of network equipment in the plurality of groups of network equipment in sequence according to the restart sequence;
the multi-group network equipment comprises an access layer network equipment group, a convergence layer network equipment group and a core layer network equipment group, and the restart instruction issuing module is used for:
issuing a restart instruction to the access layer network equipment group;
issuing a restart instruction to the aggregation layer network equipment group;
and issuing a restart instruction to the core layer network equipment group.
9. An electronic device comprising a processor and a memory storing computer readable instructions that, when executed by the processor, perform the method of any one of claims 1-7.
10. A readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN201911092690.7A 2019-11-08 2019-11-08 Network equipment restarting method and device, electronic equipment and readable storage medium Active CN110851186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911092690.7A CN110851186B (en) 2019-11-08 2019-11-08 Network equipment restarting method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911092690.7A CN110851186B (en) 2019-11-08 2019-11-08 Network equipment restarting method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110851186A CN110851186A (en) 2020-02-28
CN110851186B true CN110851186B (en) 2022-12-16

Family

ID=69601134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911092690.7A Active CN110851186B (en) 2019-11-08 2019-11-08 Network equipment restarting method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110851186B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475217B (en) * 2020-04-20 2021-03-23 广州市品高软件股份有限公司 SDN-based service group start-stop method and system
CN112954035B (en) * 2021-02-02 2022-03-18 深圳市禅游科技股份有限公司 Server restarting method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286886A (en) * 2008-06-05 2008-10-15 杭州华三通信技术有限公司 Method and device to recover configuring information of network appliance
CN102594579A (en) * 2011-01-06 2012-07-18 卓思网络公司 Automatic configuration and network deployment for network devices
CN103329486A (en) * 2011-01-18 2013-09-25 思科技术公司 Address compatibility in a network device reload
CN106209390A (en) * 2016-06-30 2016-12-07 武汉大学深圳研究院 Network device management and power-economizing method and resource management apparatus, route energy saver
CN108055207A (en) * 2017-10-26 2018-05-18 北京天元创新科技有限公司 A kind of network topology cognitive method and device
CN108566296A (en) * 2018-03-26 2018-09-21 新华三技术有限公司 Network equipment layered approach, network management device and computer readable storage medium

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7610366B2 (en) * 2001-11-06 2009-10-27 Canon Kabushiki Kaisha Dynamic network device reconfiguration
CN101651536A (en) * 2008-08-13 2010-02-17 中兴通讯股份有限公司 Method and system for realizing synchronization of control sequence numbers
CN101355464A (en) * 2008-08-26 2009-01-28 广州鼎坚资讯科技有限公司 Electric control method and apparatus for monitoring network wire break and automatically restarting network equipment
US8275891B2 (en) * 2009-07-20 2012-09-25 At&T Intellectual Property I, L.P. Method and apparatus for social networking in a dynamic environment
CN104683243B (en) * 2013-11-26 2019-02-01 华为技术有限公司 A kind of data processing method, apparatus and system
CN105763345A (en) * 2014-12-15 2016-07-13 中兴通讯股份有限公司 Network element upgrade management method, device and system
US10355921B2 (en) * 2016-07-20 2019-07-16 Abl Ip Holding Llc Protocol for out of band commissioning of lighting network element
US9949350B2 (en) * 2016-07-21 2018-04-17 Abl Ip Holding Llc Use of position data to determine a group monitor
CN108023745B (en) * 2016-11-02 2022-07-01 中兴通讯股份有限公司 Method and device for automatically setting restart sequence of network equipment
CN106789266B (en) * 2016-12-27 2020-08-25 武汉船舶通信研究所 Network management equipment and network management system
CN108696902B (en) * 2017-04-10 2021-06-04 中国移动通信集团公司 Method and device for balancing network equipment load
CN107682197A (en) * 2017-10-17 2018-02-09 锐捷网络股份有限公司 Device updating method, the network equipment and server
CN109962941B (en) * 2017-12-14 2021-10-26 华为技术有限公司 Communication method, device and server
CN110113197B (en) * 2019-04-26 2022-10-11 新华三技术有限公司合肥分公司 Method for configuring network equipment by SDN controller and SDN controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286886A (en) * 2008-06-05 2008-10-15 杭州华三通信技术有限公司 Method and device to recover configuring information of network appliance
CN102594579A (en) * 2011-01-06 2012-07-18 卓思网络公司 Automatic configuration and network deployment for network devices
CN103329486A (en) * 2011-01-18 2013-09-25 思科技术公司 Address compatibility in a network device reload
CN106209390A (en) * 2016-06-30 2016-12-07 武汉大学深圳研究院 Network device management and power-economizing method and resource management apparatus, route energy saver
CN108055207A (en) * 2017-10-26 2018-05-18 北京天元创新科技有限公司 A kind of network topology cognitive method and device
CN108566296A (en) * 2018-03-26 2018-09-21 新华三技术有限公司 Network equipment layered approach, network management device and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
H3C网络设备配置和维护;杜巍;《电子技术与软件工程》;20180608(第11期);第36页 *

Also Published As

Publication number Publication date
CN110851186A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
JP5625998B2 (en) Information processing system
US9999030B2 (en) Resource provisioning method
CN103026660B (en) Network policy configuration method, management equipment and network management centre device
US8751637B2 (en) Network monitoring server and network monitoring system
CN102843286B (en) Implementation method, and system of virtual routers
JP6444505B2 (en) NETWORKING METHOD FOR DATA CENTER NETWORK AND DATA CENTER NETWORK
US8533316B2 (en) Management computer for setting configuration information of node
CN105049502B (en) The method and apparatus that device software updates in a kind of cloud network management system
US9088477B2 (en) Distributed fabric management protocol
CN105227385B (en) A kind of method and system of troubleshooting
CN103825954A (en) OpenFlow control method and corresponding insert, platform and network thereof
CN104780071A (en) Method and device for upgrading virtual switch
CN109547875B (en) FC switching network arbitrary port access design method
JP2018519736A (en) Method and apparatus for VNF failover
CN109995641A (en) A kind of information processing method, calculate node and storage medium
CN110851186B (en) Network equipment restarting method and device, electronic equipment and readable storage medium
CN103002065A (en) Method and device for sharing internet protocol (IP) address by host device and standby device
CN112653577A (en) Network element management method, device and storage medium
CN114371912A (en) Virtual network management method of data center and data center system
CN110661641A (en) Virtual network function VNF deployment method and device
CN106911769A (en) The processing method of cloud platform route data and the physical server of cloud platform
CN116095145B (en) Data control method and system of VPC cluster
CN112333295A (en) Multipath connection method and device, electronic equipment and storage medium
CN115391058B (en) SDN-based resource event processing method, resource creation method and system
CN104917623B (en) A kind of method and device for realizing SDN network telecommunication management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant