Disclosure of Invention
According to an embodiment of the present invention, there is provided a multi-protection group set fast switching method, including the steps of:
creating a first protection group set and a second protection group set in an external network equipment management system, and creating a plurality of member protection groups in the first protection group set, wherein any member protection group comprises a working pipeline, a protection pipeline and a fault detector, and the first fault detector is used for detecting fault information of the working pipeline;
creating a first switch in the first protection group set;
the member protection groups are bound with the first change-over switch, and are respectively connected with working pipelines of the member protection groups through the first change-over switch;
creating a second diverter switch in a second set of protection groups;
when the working pipeline of part of the member protection groups fails, migrating the part of the member protection groups with failure to obtain a plurality of failure protection groups;
and after the faults of the working pipelines of the plurality of fault protection groups are relieved, the plurality of fault protection groups are migrated to the first protection group set.
Further, when the working pipeline of the part of member protection groups fails, migrating the part of member protection groups with failure to obtain a plurality of failure protection groups, wherein the method comprises the following substeps:
when the working pipelines of part of the member protection groups fail, the working state of the first protection group set is switched for the first time;
migrating part of member protection groups with faults of the main pipeline to a second protection group set to obtain a plurality of fault protection groups;
and switching the working state of the first protection group set for the second time.
Further, when the working pipeline of the part of member protection groups fails, the working state of the first protection group set is switched for the first time, which comprises the following sub-steps:
when the working pipelines of part of the member protection groups fail, the failure detector of the member protection groups transmits failure information of the member protection groups to the first protection group set;
the first protection group set switches the first switch to communicate with protection pipes of the plurality of member protection groups.
Further, when the working pipeline of a part of the member protection groups fails, the failure detector of the member protection groups transfers the failure information of the member protection groups to the first protection group set, and the method comprises the following sub-steps:
when the working pipelines of part of the member protection groups fail, the failure detector of the member protection groups transmits failure information of the member protection groups to the member protection groups;
the member protection group communicates failure information to the first protection group set.
Further, the part of member protection groups with faults of the main pipeline are migrated to a second protection group set, so that a plurality of fault protection groups are obtained, and the method comprises the following substeps:
updating the software state of the part of member protection groups with faults of the working pipeline;
the network equipment management system transfers part of member protection groups with faults of the working pipeline to a second protection group set to obtain a plurality of fault protection groups;
binding a plurality of fault protection groups with the second change-over switch, and connecting the plurality of fault protection groups with protection pipelines of the plurality of fault protection groups through the second change-over switch.
Further, the second switching of the working state of the first protection group set includes the following sub-steps:
after the part of member protection groups with faults of the main pipeline are migrated to the second protection group set, the fault detectors of the plurality of fault protection groups transmit switching signals to the first protection group set;
the first protection group set switches the first switch to connect with the working pipes of the remaining member protection groups.
Further, after the failure of the working pipelines of the plurality of failure protection groups is relieved, the plurality of failure protection groups are migrated to the first protection group set, and the method comprises the following substeps:
after the fault of the working pipeline of any fault protection group is relieved, the fault detector of the fault protection group transmits fault relieving information of the fault protection group to the second protection group set;
the network equipment management system migrates the fault protection group to a first protection group set;
binding the fault protection group with a first change-over switch, and connecting the fault protection group with a working pipeline of the fault protection group through the first change-over switch;
the software state of the fault protection group is updated.
Further, after the fault of the working pipeline of any fault protection group is relieved, the fault detector of the fault protection group transmits fault relieving information of the fault protection group to the second protection group set, and the method comprises the following sub-steps:
after the fault of the working pipeline of any fault protection group is relieved, the fault detector of the fault protection group transmits fault relieving information to the fault protection group;
the fault protection group communicates fault relief information to the second protection group set.
According to the multi-protection group set rapid switching method, the problem of error switching of other member protection groups caused by faults of certain member protection groups in the prior art is solved, and the protection switching performance of the protection group set can be effectively ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and are intended to provide further explanation of the technology claimed.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the attached drawings, which further illustrate the present invention.
Firstly, a multi-protection group set fast switching method according to an embodiment of the present invention will be described with reference to fig. 1 to 11, and is used for transmitting data, and the application scenario is wide.
In actual network deployment, in order to meet the requirements of SLAs and the like agreed with customers, a network protection group is typically specifically deployed for each customer, and these network protection groups typically have the same working pipeline and protection pipeline. Thus, the invention introduces the concept of a protection group set, defining a protection group with the same working pipe and protection pipe as one protection group set.
In order to realize reliable switching of the protection group set, the invention defines three states of the protection group set, namely a working stable switching state, a protection stable switching state and a protection instant switching state; the protection instant switching state is used for triggering the protection group set to be rapidly switched to a state of using the protection pipeline to bear the service after the protection group senses the fault; at this time, after the hardware state of the protection group set is uniformly switched, the software state of each member protection group is not updated, and the service is still carried by adopting a working pipeline; the protection stable switching state is used for indicating that after each protection group of the protection group set senses a fault, the software state and the hardware state of each member protection group are consistent, and the protection stable switching state is a state of using a protection pipeline to bear service. The work stable switching state indicates that the working pipelines of the protection groups of all the members of the protection group set and the protection pipelines have no faults, and the software state and the hardware state of all the member protection groups are consistent and are all states for bearing business by using the working pipelines.
As shown in fig. 1 to 11, the multi-protection group set fast switching method according to the embodiment of the present invention includes the following steps:
in S1, as shown in fig. 1 to 4, a first protection group set (protection group set a) and a second protection group set (protection group set B) are created in an external network device management system, and a plurality of member protection groups are created in the first protection group set (protection group set a), wherein any member protection group includes a working pipe, a protection pipe and a fault detector, and the first fault detector is used for detecting fault information of the working pipe.
In S2, as shown in fig. 1 to 4, a first switch is created in the first protection group set (protection group set a).
In S3, as shown in fig. 1 to 4, a second switch is created in a second protection group set (protection group set B).
In S4, as shown in fig. 1 to 4, the plurality of member protection groups are bound to the first switch, and the plurality of member protection groups are connected to working pipes of the plurality of member protection groups through the first switch, respectively, and use the working pipes to carry services, so that the first protection group set (protection group set a) is in a working stable switching state.
In S5, as shown in fig. 1 to 4, when a part of the working pipes of the member protection groups fail, the failed part of the member protection groups is migrated to obtain a plurality of failure protection groups.
In S51, as shown in fig. 1 to 3 and 5, when the working pipe of the part of the member protection groups fails, the working state of the first protection group set (protection group set a) is switched for the first time, and the first protection group set (protection group set a) is switched from the working stable switching state to the protection instant switching state.
Further, when the working pipeline of the partial member protection group fails, the working state of the first protection group set (protection group set a) is switched for the first time, which comprises the following sub-steps:
in S511, as shown in fig. 1 to 3 and 6, when a working pipe of a part of the member protection groups fails, the failure detector of the member protection groups transfers the failure information of the member protection groups to the first protection group set (protection group set a).
Further, when the working pipe of a part of the member protection groups fails, the failure detector of the member protection groups transfers the failure information of the member protection groups to the first protection group set (protection group set a), and the method comprises the following sub-steps:
in S5111, as shown in fig. 1 to 3 and 7, when a working pipe of a part of the member protection groups fails, the failure detector of the member protection groups transmits failure information of the member protection groups to the member protection groups.
In S5112, as shown in fig. 1 to 3 and 7, the member protection group transmits the failure information to the first protection group set (protection group set a).
In S512, as shown in fig. 1 to 3 and 6, the first protection group set (protection group set a) switches the first switch to be connected to the protection pipes of the plurality of member protection groups, so that the plurality of member protection groups use the protection pipe to carry the service, thereby switching the first protection group set (protection group set a) to a protection instant switching state.
In S52, as shown in fig. 1 to 3 and 5, the part of the member protection groups with the main pipeline failure is migrated to the second protection group set (protection group set B), so as to obtain a plurality of failure protection groups.
Further, the part of member protection groups with faults of the main pipeline are migrated to a second protection group set (protection group set B) to obtain a plurality of fault protection groups, and the method comprises the following substeps:
in S521, as shown in fig. 1 to 3 and 8, the software state of the part of the member protection group where the working pipe fails is updated, so that the software state of the member protection group is consistent with the actual link connection state of the member protection group.
In S522, as shown in fig. 1 to 3 and 8, the network device management system migrates the part of the member protection groups with faults in the working pipeline to the second protection group set (protection group set B) to obtain a plurality of fault protection groups.
In S523, as shown in fig. 1 to 3 and 8, a plurality of fault protection groups are bound to the second switch, and the plurality of fault protection groups are connected to protection pipes of the plurality of fault protection groups through the second switch, so that the plurality of fault protection groups use the protection pipes to carry services, and the second protection group set (protection group set B) is in a protection stable switching state.
In S53, as shown in fig. 1 to 3 and 5, the working state of the first protection group set (protection group set a) is switched for the second time, and the first protection group set (protection group set a) is switched from the protection instant switching state to the working stable switching state.
Further, the second switching of the working state of the first protection group set (protection group set a) includes the following sub-steps:
in S531, as shown in fig. 1 to 3 and 9, after the partial member protection groups with faults in the main pipeline migrate to the second protection group set (protection group set B), the fault detectors of the plurality of fault protection groups transmit switching signals to the first protection group set (protection group set a), that is, the information that the faults in the protection group set are notified.
In S532, as shown in fig. 1 to 3 and 9, the first protection group set (protection group set a) switches the first switch to connect with the working pipes of the remaining member protection groups, so that the remaining member protection groups in the first protection group set (protection group set a) carry services through the working pipes, thereby switching the first protection group set (protection group set a) into a working stable switching state.
In S6, as shown in fig. 1 to 4, after the failure of the working pipes of the plurality of failure protection groups is relieved, the plurality of failure protection groups are migrated to the first protection group set (protection group set a).
Further, after the failure of the working pipes of the plurality of failure protection groups is relieved, the plurality of failure protection groups are migrated to the first protection group set (protection group set a), including the following sub-steps:
in S61, as shown in fig. 1 to 3 and 10, after the failure of the working pipe of any one of the failure protection groups is released, the failure detector of the failure protection group transmits failure release information of the failure protection group to the second protection group set (protection group set B).
Further, when the failure of the working pipe of any one of the failure protection groups is released, the failure detector of the failure protection group transfers the failure release information of the failure protection group to the second protection group set (protection group set B), comprising the following sub-steps:
in S611, as shown in fig. 1 to 3 and 11, after the fault of the working pipe of any fault protection group is relieved, the fault detector of the fault protection group transmits the fault relieving information to the fault protection group;
in S612, as shown in fig. 1 to 3 and 11, the fault protection group transmits the fault release information to the second protection group set (protection group set B).
In S62, as shown in fig. 1 to 3 and 10, the network device management system migrates the fault protection group to the first protection group set (protection group set a).
In S63, as shown in fig. 1 to 3 and 10, the fault protection group is bound to the first switch, and the fault protection group is connected to the working pipe of the fault protection group through the first switch, so that the fault protection group uses the working pipe to carry the service through the first switch.
In S64, as shown in fig. 1 to 3 and 10, the software state of the fault protection group is updated so that the software state of the fault protection group migrated back to the first protection group set (protection group set a) matches the actual link connection state of the fault protection group.
The present invention maintains two sets of protection groups, a first set of protection groups (protection group set a) and a second set of protection groups (protection group set B). The first protection group set (protection group set A) maintains two states, namely a work stable switching state and a protection instant switching state, the work stable switching state manages the same software and hardware states, and the protection groups of the work pipeline bearing service are used; the protection instant switching state is that the managed hardware is switched to the protection pipeline bearing service, and the software is still using the working pipeline bearing service. When the first protection group set (protection group set A) is in a protection instant switching state, after receiving a message of 'all working pipeline faults are notified', the first protection group set (protection group set A) is switched to a working stable switching state, and a protection switch is reset to select a working pipeline bearing service. The second protection group set (protection group set B) is fixedly in a protection stable switching state, and the management is in a consistent state of using software and hardware, and is a protection group using a protection pipeline to bear service.
In the above, the method for rapidly switching the multi-protection group set according to the embodiment of the invention is described with reference to fig. 1 to 11, which solves the problem of error switching of other member protection groups caused by faults of certain member protection groups in the prior art, and can effectively ensure the protection switching performance of the protection group set.
It should be noted that in this specification the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
While the present invention has been described in detail through the foregoing description of the preferred embodiment, it should be understood that the foregoing description is not to be considered as limiting the invention. Many modifications and substitutions of the present invention will become apparent to those of ordinary skill in the art upon reading the foregoing. Accordingly, the scope of the invention should be limited only by the attached claims.