CN106911506B - Method and device for avoiding management network disconnection during network service restart - Google Patents

Method and device for avoiding management network disconnection during network service restart Download PDF

Info

Publication number
CN106911506B
CN106911506B CN201710108787.7A CN201710108787A CN106911506B CN 106911506 B CN106911506 B CN 106911506B CN 201710108787 A CN201710108787 A CN 201710108787A CN 106911506 B CN106911506 B CN 106911506B
Authority
CN
China
Prior art keywords
port group
route
network port
data network
metric value
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
CN201710108787.7A
Other languages
Chinese (zh)
Other versions
CN106911506A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201710108787.7A priority Critical patent/CN106911506B/en
Publication of CN106911506A publication Critical patent/CN106911506A/en
Application granted granted Critical
Publication of CN106911506B publication Critical patent/CN106911506B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime

Abstract

The embodiment of the invention provides a method and a device for avoiding management network disconnection when restarting network service, wherein the method comprises the following steps: if an instruction for restarting the network service is detected, the established management network port group and the data network port group are deleted as the network needs to be initialized and configured; after the management network port group is rebuilt and a network is configured for the management network port group, a route of the management network port group is generated in a route table in a default mode, and the metric value of the route generated in the default mode is zero; after the data network port group is rebuilt and the network is configured for the data network port group, if the data network and the management network are in the same network segment, the route which is generated for the data network port group by default in the route table is deleted, the route of the data network port group is added again in the route table according to the route before deletion, and the metric value of the route of the data network port group which is added again is configured to be larger than zero. The embodiment of the invention can ensure the continuity of the management network connection.

Description

Method and device for avoiding management network disconnection during network service restart
Technical Field
The invention relates to the technical field of server virtualization systems, in particular to a method and a device for avoiding disconnection of a management network when network service is restarted.
Background
A server virtualization system (hereinafter referred to as a virtualization system) refers to a system in which physical resources of a server are abstracted into logical resources, and one server is changed into a system constructed by a plurality of virtual servers isolated from each other, and the virtualization system can improve the utilization rate of resources, simplify system management, and achieve server integration, and is typically a virtualization system such as the cloud server virtualization system (InCloud Sphere).
After a management network port group and a data network port group are created by a current virtualization system, if the virtualization system restarts network services, the management network port group and the data network port group need to be deleted and rebuilt respectively in order to recover the initial states of the management network and the data network; however, in this process, there is a high possibility that the management network is disconnected, and there is a risk of the virtualized system being crashed.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for avoiding disconnection of a management network when restarting a network service, so as to reduce the possibility of disconnection of the management network, reduce the risk of crash of a virtualization system, and improve the operation stability of the virtualization system in the process of restarting the network service by the virtualization system.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a method of avoiding management network disconnection when restarting network services, comprising:
if the command of restarting the network service is detected, deleting the created management network port group and the created data network port group;
after the management network port group is rebuilt and a network is configured for the management network port group, a route of the management network port group is generated in a route table in a default mode, and the metric value of the route generated in the default mode is zero;
after the data network port group is rebuilt and a network is configured for the data network port group, if the data network and the management network are in the same network segment, deleting the route which is generated for the data network port group in the route table by default, re-adding the route of the data network port group in the route table according to the route before deletion, and configuring the metric value of the route of the re-added data network port group to be larger than zero.
Optionally, the smaller the metric value of the route is, the higher the priority of the route is; the metric value being greater than zero includes: the metric value is a non-zero positive integer.
Optionally, the configuring that the metric value of the route of the data network port group to be re-added is greater than zero includes: the metric value for the route configuring the re-added data network port group is 1.
Optionally, the method further includes:
storing the metric value of the route of the newly added data network port group.
Optionally, if there are a plurality of reconstructed data network port groups, and the reconstructed data network port group is in the same network segment as the existing data network port group, configuring that the metric value of the route of the newly added data network port group is greater than zero includes:
and setting the metric value of the route of the newly added data network port group as corresponding to the reconstruction ordinal number of the data network port group according to the reconstruction ordinal number of the reconstructed data network port group in the same network segment.
The embodiment of the invention also provides a device for avoiding the disconnection of a management network when restarting the network service, which comprises the following steps:
the port group deleting module is used for deleting the created management network port group and the created data network port group if an instruction for restarting the network service is detected;
the management network configuration module is used for generating a route of the management network port group in a default mode in a route table after reconstructing the management network port group and configuring a network for the data network port group, and the metric value of the route generated in the default mode is zero;
and the data network reconfiguration module is used for deleting the route which is generated for the data network port group in the routing table by default if the data network and the management network are in the same network segment after the data network port group is rebuilt and the network is configured for the data network port group, re-adding the route of the data network port group in the routing table according to the route before deletion, and configuring that the metric value of the route of the re-added data network port group is larger than zero.
Optionally, the smaller the metric value of the route is, the higher the priority of the route is; the metric value being greater than zero includes: the metric value is a non-zero positive integer.
Optionally, the data network reconfiguration module is configured to configure that the metric value of the route of the data network port group to be newly added is greater than zero, and specifically includes:
the metric value for the route configuring the re-added data network port group is 1.
Optionally, the apparatus further comprises:
and the metric value storage module is used for storing the metric value of the route of the newly added data network port group.
Optionally, if there are a plurality of reconstructed data network port groups, and the reconstructed data network port group and the existing data network port group are in the same network segment, the data network reconfiguration module is configured to configure that the metric value of the route of the newly added data network port group is greater than zero, and specifically includes:
and setting the metric value of the route of the newly added data network port group as corresponding to the reconstruction ordinal number of the data network port group according to the reconstruction ordinal number of the reconstructed data network port group in the same network segment.
Based on the above technical solution, the method for avoiding disconnection of the management network when restarting the network service provided by the embodiment of the present invention includes: if the command of restarting the network service is detected, deleting the created management network port group and the created data network port group; after the management network port group is rebuilt and a network is configured for the data network port group, a route of the management network port group is generated in a route table in a default mode, and a metric value of the route of the management network port group generated in the default mode is zero; after the data network port group is rebuilt and a network is configured for the data network port group, if the data network and the management network are in the same network segment, deleting a route which is generated for the data network port group in the routing table by default, re-adding the route of the data network port group in the routing table according to the route before deletion, and configuring that the metric value of the route of the re-added data network port group is larger than zero; so that the metric value of the route of the data network port group added in the routing table again is larger than the default generated metric value of the route of the management network port group in the routing table; furthermore, based on the principle that the smaller the metric value of the route, the higher the priority of the route, the priority of the route of the port group of the management network reconstructed after the network service is restarted by the virtualization system is higher than the priority of the route of the port group of the data network, thereby ensuring the continuity of the connection of the management network, reducing the possibility of disconnection of the management network and reducing the risk of crash of the virtualization system.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for avoiding disconnection of a management network when restarting a network service according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a node of a virtualization system;
fig. 3 is a block diagram illustrating an apparatus for avoiding disconnection of a management network when restarting a network service according to an embodiment of the present invention;
fig. 4 is another block diagram of an apparatus for avoiding management network disconnection during network service restart according to an embodiment of the present invention.
Detailed Description
The inventor of the present invention finds, through analysis, that in the process of restarting the network service by the virtualization system, because the network in the system needs to be reset, after deleting the port group of the management network and the port group of the data network, if the data network and the management network are in the same network segment, the reconstruction of the port group of the management network is earlier than that of the port group of the data network, so after reconstructing the port group of the management network and configuring the network, the priority of the default generated route of the port group of the management network in the routing table is lower than that of the port group of the data network reconstructed in the same network segment;
in the virtualization system, a management node mainly manages a computing node through a management network port group, and in the process of restarting network services, the priority of a route of the management network port group in a routing table is lower than that of a data network port group in the same network segment, so that the disconnection of the management network is caused, and the virtualization system has the possibility of a collapse risk;
after analyzing the reasons that the management network is disconnected and the virtualization system has risks in the process of restarting the network service by the virtualization system, the inventor provides the method for avoiding disconnection of the management network when restarting the network service by research, so as to improve the routing setting when the data network port group is reconstructed in the process of restarting the network service by the virtualization system, so that the priority of the routing of the management network port group in the routing table is higher than that of the data network port group in the same network segment, thereby ensuring the continuity of the connection of the management network and reducing the risks of crash of the virtualization system in the process of restarting the network service by the virtualization system;
for the method proposed by the inventor through research to avoid the management network disconnection during restarting the network service, the technical scheme will be clearly and completely described below with reference to the attached drawings in the embodiment of the present invention; it is obvious that the embodiment described below is only a part of the embodiment of the present invention, and not all of the embodiment. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
Fig. 1 is a flowchart of a method for avoiding disconnection of a management network when restarting a network service according to an embodiment of the present invention, where the method is applicable to a virtualization system, and in particular, to a host of the virtualization system; referring to fig. 1, the method may include:
and step S100, if an instruction for restarting the network service is detected, deleting the created management network port group and the created data network port group.
When the instruction for restarting the network service is detected, the virtualization system enters a stage of restarting the network service, and the management network port group and the data network port group which are established in the virtualization system need to be deleted respectively so as to be reconstructed later.
Step S110, after reconstructing the management network port group and configuring the network for the management network port group, generating a route of the management network port group in the routing table by default, where a metric value of the route of the management network port group generated by default is zero.
In the virtualization system, if the data network and the management network are in the same network segment, the reconstruction of the port group of the management network is earlier than that of the port group of the data network, the port group of the management network can be reconstructed and the management network can be configured in the embodiment of the invention, and the metric value (measurement value) of the route of the generated port group of the management network is zero at the moment; the metric value is a metric used by the routing algorithm to determine the best path to reach the destination, such as path length;
in general, the smaller the metric value of a route, the higher the priority of the route.
Step S120, after the data network port group is rebuilt and a network is configured for the data network port group, if the data network and the management network are in the same network segment, deleting the route which is generated by default for the data network port group in the routing table, re-adding the route of the data network port group in the routing table according to the route information before deletion, and configuring that the metric value of the route of the re-added data network port group is greater than zero.
Alternatively, the metric value greater than zero may be a positive integer that is not zero.
Optionally, the route of the data network port group newly added in the routing table corresponds to a route path of a route generated by default for the data network port group in the routing table.
In the prior art, because the creation of the data network port group is later than that of the management network port group, when the data network port group and the management network port group create and configure a network, a route is respectively generated for the data network port group and the management network port group in a routing table by default, and a metric value of the route generated by default is 0;
in the process of restarting the network server by the virtualization system, the creation of the data network port group is later than that of the management network port group, after the management network port group is created and the network is configured, the route of the management network port group is generated in a routing table in a default mode, and the metric value of the route is 0; for the data network port group created later, the route of the data network port group is also generated in the routing table by default, and the metric value of the route is also 0; this results in the priority of the route generated by the data network port group created later as a default is higher than that of the route generated by the management network port group created earlier as a default, so that the priority of the route of the management network port group in the routing table is lower than that of the data network port group in the same network segment, which results in the disconnection of the management network and the possibility of the crash risk of the virtualization system;
in view of this, in the embodiments of the present invention, after the management network port group is created and the network is configured, a route of the management port group may be generated in the routing table by default, and after the data network port group is reconstructed and the network is configured, if the data network and the management network are in the same network segment, a route generated in the routing table by default for the data network port group is deleted, so that a route of the data network port group is re-added in the routing table according to the routing information before deletion, and a metric value of the route of the re-added data network port group is configured to be greater than zero, so that the metric value of the route of the data network port group re-added in the routing table is greater than the metric value of the route of the management network port group generated in the routing table by default;
based on the principle that the smaller the metric value of the route, the higher the priority of the route, the priority of the route of the reconstructed management network port group after the network service is restarted by the virtualization system is higher than the priority of the route of the data network port group, the continuity of the connection of the management network is ensured, the possibility of disconnection of the management network is reduced, and the risk of crash of the virtualization system is reduced.
The method for avoiding management network disconnection during network service restart provided by the embodiment of the invention comprises the following steps: if the command of restarting the network service is detected, deleting the created management network port group and the created data network port group; reestablishing a management network port group and configuring a network, generating a route of the management network port group in a routing table by default, wherein the metric value of the route of the management network port group generated by default is zero; after the data network port group is rebuilt and the network is configured, if the data network and the management network are in the same network segment, deleting the route which is generated for the data network port group in the routing table by default, re-adding the route of the data network port group in the routing table according to the route information before deletion, and configuring that the metric value of the route of the re-added data network port group is larger than zero; so that the metric value of the route of the data network port group added in the routing table again is larger than the default generated metric value of the route of the management network port group in the routing table; furthermore, based on the principle that the smaller the metric value of the route, the higher the priority of the route, the priority of the route of the port group of the management network reconstructed after the network service is restarted by the virtualization system is higher than the priority of the route of the port group of the data network, thereby ensuring the continuity of the connection of the management network, reducing the possibility of disconnection of the management network and reducing the risk of crash of the virtualization system.
Optionally, configuring the metric value of the route of the data network port group to be newly added to be greater than zero may be that the metric value of the route of the data network port group to be newly added is configured to be 1;
it can be understood that, after a data network port group is created and an ip address is configured for the data network port group, a route of the data network port group is automatically generated in a routing table, when a data network and a management network are in the same network segment, because the creation of the data network port group is later than that of the management network port group, when the data network port group and the management network port group create and configure a network, routes of the management network port group and the data network port group are respectively generated in the routing table by default, and metric values of the routes of the management network port group and the data network port group are 0, at this time, the priority of the route generated by default when the data network is created is higher than that of the route automatically generated when the management network is created, which will cause network disconnection of the management network;
for the situation that the management network and the data network are in the same network segment, in the process of restarting the network service, the embodiment of the invention deletes the route generated by the data network in the routing table by default and adds the route again, and specifies that the metric value of the route of the data network added again is 1 (other numerical values which are not 0 but are larger than 0 can be also specified), so that the priority of the route of the data network port group in the routing table is larger than 1, the priority of the route of the data network port group can be ensured to be lower than that of the route of the management network port group, and the continuity of the connection of the management network is ensured in the process of restarting the network service by the virtualization system.
For example, as shown in FIG. 2, the IP address of the management node is 100.2.49.8/24, the IP address of the management network port group on the compute node is 100.2.49.6/24, the IP address of the data network port group is 100.2.49.5/24, and the IP address of the storage device is 100.2.49.7/24;
what needs to be introduced is that the virtualization system can be responsible for completing virtual fusion, allocation as required and efficient management of the bottom layer physical resources, so that the agility and flexibility of resource delivery can be obviously improved, the use efficiency of the resources is improved, and uninterrupted resource guarantee and scalable resource supply are provided for upper layer services; the virtualization system can be constructed based on an open source module openvswitch, specifically can be constructed through openvswitch on a computing node, and constructs a port group on a virtual switch, wherein the port group has the attribute of vlan, is specifically divided into a management network port group, a data network port group and a computing network port group, and is implemented by separating three network flows;
the computing node is a container for running the virtual machine and is responsible for executing bottom operation in the system management process; the management node is a processing center of system communication, state and service logic and is also an entrance of an administrator control and management system; the management network port group can be configured with an ip address, is connected with the management node and is used for bearing the flow for managing the computing node; the data network port group is a port group for bearing data network flow, ip addresses are configured on the data network port group and are connected with storage, so that a virtual machine on a host machine can use underlying storage resources;
in fig. 2, the management node manages the computing node through the management network port group, the data network port group and the management network port group are in the same network segment, and when the data network port group and the management network port group are created and the network is configured, because the creation of the management network port group is earlier than the data network port group, the priority of the route automatically generated by the data network port group created in the routing table is higher than the route automatically generated when the management network port group is created, at this time, the embodiment of the present invention deletes the route generated by default when the data network port group is created, re-adding the route of the data network port group in the routing table (the path of the route of the re-added data network port group is the same as the path of the route of the data network port group generated by default in the routing table), and specifying that the metric value of the route of the re-added data network port group is greater than zero (for example, 1);
the specific implementation may be that, when a data network port group is re-added in the routing table, a route generated by default by the data network port group is deleted and the route is re-added, and a value of metric is configured to be 1, and the specific command is as follows:
ip route del 100.2.49.0/24dev DataPg;
ip route add 100.2.49.0/24dev DataPg metric 1;
wherein, DataPg represents the port group of the data network; in this way, when the management network port group creates the configuration network, the metric value of the route generated by default in the routing table is 0, so the priority is higher than that of the route of the DataPg, the possibility of disconnection of the management network can be reduced in the process of restarting the network service of the virtualization system, and the risk of crash of the virtualization system can be reduced.
It can be seen that, the embodiment of the present invention takes priority setting of a route as a starting point, when a data network port group is created, a metric value is configured for a route generated by default for the data network port group, since the metric value of the route generated when a management network is reconstructed is 0, and the smaller the metric value is, the higher the priority of the route is, therefore, if a metric value that is not 0 and is greater than 0 is configured for the data network route, it can be ensured that the priority of the route of the data network port group in the same network segment as the management network port group is lower than the priority of the route generated by default for the management network port group, so that continuity of connection of the management network is ensured in a process of restarting network services by a virtualization system.
It should be noted that, when reconstructing a data network port group in the same network segment, because an operation of deleting a route of the reconstructed data network port group needs to be performed in the routing table, and when reconstructing a route of another data network port group, if a value of the metric is also 1, the static route will not be added at this time, a value of the metric of a route corresponding to each data network port group in the routing table needs to be stored on the management node according to an addition sequence of the data network port groups, a value of the metric of a route corresponding to a first added data network port group is 1, and a value of the metric of a route corresponding to a second added data network port group is 2;
i.e. the routing of the data network port group re-added to the routing table and the configuration of the metric value.
If a plurality of reconstructed data network port groups exist, and the reconstructed data network port groups and the existing data network port groups are in the same network segment, the embodiment of the present invention needs to set the metric value of the route of the newly added data network port group to be corresponding to the reconstruction ordinal number of the data network port group according to the reconstructed data network port group and the reconstruction ordinal number in the data network port group in the same network segment;
for example, if there are three data network port groups in the same network segment as the management network, which are respectively DataPg1, DataPg2 and DataPg3, and it is assumed that the network segment is 100.2.49.0/24, therefore, according to the sequence of creating the data network port groups, the value of the metric routed in the routing table by the first created data network port group is recorded as 1, the value of the metric routed in the routing table by the second created data network port group is recorded as 2, and the value of the metric routed in the routing table by the third created data network port group is recorded as 3;
then, when restarting the network service, the system deletes the route automatically generated in the route table when the three data network port groups create and configure the network, reconstructs the same route information, and specifies the metallic values for the routes created by the three data network port groups in the main route table according to the metallic values recorded by the system.
According to the above description, in particular in the implementation of restarting the network service, the following commands may be executed:
ip route del 100.2.49.0/24dev DataPg1;
ip route add 100.2.49.0/24dev DataPg1metric 1;
ip route del 100.2.49.0/24dev DataPg2;
ip route add 100.2.49.0/24dev DataPg2metric 2;
ip route del 100.2.49.0/24dev DataPg3;
ip route add 100.2.49.0/24dev DataPg3metric 3;
thus, after restarting the network service, the priority of the route in the routing table is ensured to be consistent with the priority sequence before restarting the network.
The following describes an apparatus for avoiding disconnection of a management network when restarting a network service according to an embodiment of the present invention, and the apparatus described below may be referred to in correspondence with the contents of the method described above.
Fig. 3 is a block diagram of an apparatus for avoiding disconnection of a management network when restarting a network service according to an embodiment of the present invention, where the apparatus is applicable to a virtualization system, and in particular, to a host of the virtualization system;
referring to fig. 3, the apparatus may include:
a port group deleting module 100, configured to delete a created management network port group and a created data network port group if an instruction to restart a network service is detected;
the management network configuration module 200 is configured to, after reconstructing the management network port group and configuring a network for the management network port group, generate a route of the management network port group in the routing table by default, where a metric value of the route of the management network port group generated by default is zero;
the data network reconfiguration module 300 is configured to delete a route, which is generated by default for the data network port group, in the routing table if the data network and the management network are in the same network segment after the data network port group is rebuilt and a network is configured for the data network port group, and re-add a route of the data network port group in the routing table according to the routing information before deletion, and configure that a metric value of the route of the re-added data network port group is greater than zero.
Optionally, in the embodiment of the present invention, the smaller the metric value of the route is, the higher the priority of the route is; optionally, the metric value being greater than zero may include: the metric value is a non-zero positive integer.
Further, the data network reconfiguration module 300 is configured to configure that the metric value of the route of the data network port group to be newly added is greater than zero, and specifically includes: the metric value for the route configuring the re-added data network port group is 1.
Optionally, fig. 4 is another structural block diagram of an apparatus for avoiding management network disconnection when restarting a network service according to an embodiment of the present invention, and with reference to fig. 3 and 4, the apparatus may further include:
and a metric value storage module 400, configured to store a metric value of a route of the newly added data network port group.
Optionally, if there are a plurality of reconstructed data network port groups and the reconstructed data network port group and the existing data network port group are in the same network segment, the metric value of the route used by the data network reconfiguration module 300 to configure the data network port group to be added again is greater than zero, which specifically includes:
and setting the metric value of the route of the newly added data network port group as corresponding to the reconstruction ordinal number of the data network port group according to the reconstruction ordinal number of the reconstructed data network port group in the same network segment.
The embodiment of the invention can reduce the possibility of disconnection of the management network, reduce the risk of crash of the virtualization system and improve the operation stability of the virtualization system in the process of restarting the network service of the virtualization system.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A method for avoiding management network disconnection during network service restart, comprising:
if the command of restarting the network service is detected, deleting the created management network port group and the created data network port group;
after the management network port group is rebuilt and a network is configured for the management network port group, a route of the management network port group is generated in a route table in a default mode, and the metric value of the route generated in the default mode is zero;
after the data network port group is rebuilt and a network is configured for the data network port group, if the data network and the management network are in the same network segment, deleting a route which is generated for the data network port group in the routing table by default, re-adding a route of the data network port group in the routing table according to the route before deletion, and configuring a metric value of the route of the re-added data network port group to be larger than zero, wherein the smaller the metric value of the route is, the higher the priority of the route is, and the metric value is larger than zero comprises: the metric value is a non-zero positive integer.
2. The method of claim 1, wherein configuring the metric value for the route of the re-added data network port group to be greater than zero comprises: the metric value for the route configuring the re-added data network port group is 1.
3. The method of claim 1, further comprising:
storing the metric value of the route of the newly added data network port group.
4. The method of claim 1, wherein if there are multiple reconstructed data network port sets and the reconstructed data network port set is in the same segment as the existing data network port set, the configuring the metric value of the route of the re-added data network port set to be greater than zero comprises:
and setting the metric value of the route of the newly added data network port group as corresponding to the reconstruction ordinal number of the data network port group according to the reconstruction ordinal number of the reconstructed data network port group in the same network segment.
5. An apparatus for avoiding management network disconnection during network service restart, comprising:
the port group deleting module is used for deleting the created management network port group and the created data network port group if an instruction for restarting the network service is detected;
the management network configuration module is used for generating a route of the management network port group in a route table in a default mode after the management network port group is rebuilt and a network is configured for the management network port group, and the metric value of the route generated in the default mode is zero;
a data network reconfiguration module, configured to delete a route, which is generated by default for the data network port group, in the routing table if the data network and the management network are in the same network segment after the data network port group is rebuilt and the network is configured for the data network port group, and re-add a route of the data network port group in the routing table according to the route before deletion, and configure that a metric value of the route of the re-added data network port group is greater than zero, where a smaller metric value of the route is, a higher priority of the route is, and the metric value greater than zero includes: the metric value is a non-zero positive integer.
6. The apparatus according to claim 5, wherein the data network reconfiguration module is configured to configure the metric value of the route of the data network port group to be added again to be greater than zero, and specifically includes:
the metric value for the route configuring the re-added data network port group is 1.
7. The apparatus of claim 5, further comprising:
and the metric value storage module is used for storing the metric value of the route of the newly added data network port group.
8. The apparatus of claim 5, wherein if there are multiple reconstructed data network port groups and the reconstructed data network port groups are in the same segment as the existing data network port groups, the data network reconfiguration module is configured to configure the metric value of the route of the re-added data network port group to be greater than zero, and specifically includes:
and setting the metric value of the route of the newly added data network port group as corresponding to the reconstruction ordinal number of the data network port group according to the reconstruction ordinal number of the reconstructed data network port group in the same network segment.
CN201710108787.7A 2017-02-27 2017-02-27 Method and device for avoiding management network disconnection during network service restart Active CN106911506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710108787.7A CN106911506B (en) 2017-02-27 2017-02-27 Method and device for avoiding management network disconnection during network service restart

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710108787.7A CN106911506B (en) 2017-02-27 2017-02-27 Method and device for avoiding management network disconnection during network service restart

Publications (2)

Publication Number Publication Date
CN106911506A CN106911506A (en) 2017-06-30
CN106911506B true CN106911506B (en) 2020-07-10

Family

ID=59208392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710108787.7A Active CN106911506B (en) 2017-02-27 2017-02-27 Method and device for avoiding management network disconnection during network service restart

Country Status (1)

Country Link
CN (1) CN106911506B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8667171B2 (en) * 2010-05-28 2014-03-04 Microsoft Corporation Virtual data center allocation with bandwidth guarantees
CN103813336B (en) * 2012-11-07 2017-08-18 华为技术有限公司 WLAN transfer control method, equipment and system
BR112016025264B1 (en) * 2014-05-05 2022-02-01 Telefonaktiebolaget Lm Ericsson (Publ) Control plane device in a cloud computing system to run a plurality of virtual machines to deploy network function virtualization
CN106034077B (en) * 2015-03-18 2019-06-28 华为技术有限公司 A kind of dynamic route collocating method, apparatus and system
US9378043B1 (en) * 2015-05-28 2016-06-28 Altera Corporation Multilayer quality of service (QOS) for network functions virtualization platforms

Also Published As

Publication number Publication date
CN106911506A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
US11704144B2 (en) Creating virtual machine groups based on request
JP7014729B2 (en) How and equipment to expand a high availability server cluster
US10523513B2 (en) Automated configuration of switch zones in a switch fabric
JP6466003B2 (en) Method and apparatus for VNF failover
CN104956332B (en) Method, storage medium and computing system for managing computing resources
CN105407117B (en) The methods, devices and systems of distributed backup data
US10541862B2 (en) VNF processing policy determining method, apparatus, and system
US8321617B1 (en) Method and apparatus of server I/O migration management
CN107818104B (en) Database deployment method, database deployment device, control equipment and system
CN109995552B (en) VNF service instantiation method and device
JP2017507415A (en) Method and apparatus for IT infrastructure management in cloud environment
US11650859B2 (en) Cloud environment configuration based on task parallelization
CN105095103A (en) Storage device management method and device used for cloud environment
US11947425B2 (en) Storage volume snapshot object management
US11153173B1 (en) Dynamically updating compute node location information in a distributed computing environment
CN112217727B (en) Multi-metric-dimension routing method and device, computer equipment and storage medium
CN116095145B (en) Data control method and system of VPC cluster
CN106911506B (en) Method and device for avoiding management network disconnection during network service restart
US10305987B2 (en) Method to syncrhonize VSAN node status in VSAN cluster
CN111355602B (en) Resource object management method and device
CN106453118B (en) Flow control method and flow control system
US10033803B1 (en) Data volume auto-repair based on volume degradation level
CN112889247B (en) VNF service instantiation method and device
CN111092770B (en) Virtual network management method and electronic equipment
US11245660B1 (en) Communication of endpoint information among virtual switches

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200611

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant