Disclosure of Invention
The embodiment of the invention provides a node protection alarm linkage optimization method and device, aiming at solving the problem that in the related technology, a service cannot be normally forwarded under the condition that a signaling channel fails and an AC side fault occurs.
The embodiment of the invention provides a node protection alarm linkage optimization method which is characterized by comprising the following steps:
selecting a main member from LAG members, and enabling the main member to be used for starting OAM service;
when the LAG member is newly added or deleted, the main member keeps opening the OAM service and realizes dynamic deletion and establishment of the service member;
after the main member starts the OAM service, the OAM service alarm is transmitted to the redundancy protection service side through the overhead frame to realize synchronous switching.
In some embodiments, the maintaining of opening the OAM service by the master member and implementing dynamic deletion of service members when adding or deleting an LAG member includes:
and when a new LAG member is added, judging whether the slot position of the new LAG member exists, if not, issuing configuration data to the slot position of the new LAG member, wherein the configuration data comprises corresponding port logic configuration, LSP configuration, LIF configuration and VPWS service configuration.
In some embodiments, the maintaining of opening the OAM service by the master member and implementing dynamic deletion of service members when adding or deleting an LAG member includes:
when deleting the LAG member, if the slot position of the main member is changed and the LAG member slot is deleted, then:
broadcasting and issuing the updated LAG member configuration;
judging whether the operation has OAM operation, if yes, refreshing the slot position of the main member and sending the current OAM configuration to the newly added slot position and the slot position of the export disk;
and deleting the configuration data in the deleted LAG member slot.
In some embodiments, the maintaining of opening the OAM service by the master member and implementing dynamic deletion of service members when adding or deleting an LAG member includes:
when deleting the LAG member, if the slot of the main member is changed and no LAG member slot is deleted, then:
broadcasting and issuing the updated LAG member configuration;
and judging whether the OAM service exists in the service, if so, refreshing the slot position of the main member and issuing the current OAM configuration to the newly added slot position and the slot position of the export disk.
In some embodiments, the maintaining of opening the OAM service by the master member and implementing dynamic deletion of service members when adding or deleting an LAG member includes:
and when the LAG member is deleted, if the slot position of the main member is not changed and no LAG member slot is deleted, broadcasting and issuing the updated LAG member configuration.
In some embodiments, the maintaining of opening the OAM service by the master member and implementing dynamic deletion of service members when adding or deleting an LAG member includes:
when deleting LAG members, if the slot position of the main member is not changed and the LAG member slot is deleted, then:
broadcasting and issuing the updated LAG member configuration;
and deleting the configuration data in the deleted LAG member slot.
On one hand, the embodiment of the present invention provides a node protection alarm linkage optimization device, which is characterized in that the device includes:
a main member selection module, configured to select a main member from LAG members, and enable the main member to start an OAM service;
the member deleting module is used for keeping the main member open the OAM service when the LAG member is newly added or deleted and realizing dynamic deleting of the service member;
and the synchronous switching module is used for transmitting the OAM service alarm to a redundancy protection service side through an overhead frame to realize synchronous switching after the main member starts the OAM service.
In some embodiments, the member deletion module is further configured to:
and when a new LAG member is added, judging whether the slot position of the new LAG member exists, if not, issuing configuration data to the slot position of the new LAG member, wherein the configuration data comprises corresponding port logic configuration, LSP configuration, LIF configuration and VPWS service configuration.
In some embodiments, the member deletion module is further configured to:
when a member of the LAG is deleted,
if the slot of the master member is changed and the LAG member slot is deleted, then:
broadcasting and issuing the updated LAG member configuration;
judging whether the operation has OAM operation, if yes, refreshing the slot position of the main member and sending the current OAM configuration to the newly added slot position and the export disk slot position;
deleting the configuration data in the deleted LAG member slot;
if the slot of the master member changes and no LAG member slot is deleted, then:
broadcasting and issuing the updated LAG member configuration;
and judging whether the OAM service exists in the service, if so, refreshing the slot position of the main member and issuing the current OAM configuration to the newly added slot position and the slot position of the export disk.
In some embodiments, the member deletion module is further configured to:
when deleting LAG members, if the slot position of the main member is not changed and no LAG member slot is deleted, broadcasting and issuing updated LAG member configuration;
and when deleting the LAG member, if the slot position of the main member is not changed and the LAG member slot is deleted, broadcasting and issuing the updated LAG member configuration, and deleting the configuration data in the deleted LAG member slot.
The technical scheme provided by the invention has the beneficial effects that:
the embodiment of the invention provides a method for refreshing the configuration of a main member by dynamically adding and deleting LAG members so as to solve the problem of VC-OAM alarm transmission in an LAG scene; and meanwhile, the dynamically switched alarm information carries out link alarm transmission through overhead frames, so that the problem that the service cannot be normally forwarded when a signaling channel fails and an AC side fails is solved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a node protection alarm linkage optimization method, including the steps of:
s100, selecting a main member from the LAG members, and enabling the main member to be used for starting OAM service;
s200, when the LAG member is newly or deleted, the main member keeps opening the OAM service and realizes the dynamic deletion of the service member;
and S300, after the main member starts the OAM service, transmitting the OAM service alarm to a redundancy protection service side through an overhead frame to realize synchronous switching.
It should be noted that LAG is currently only available to UNI-NNI (user side to network side) edge PE sites, i.e. sites that configure the services of UNI-LAG. LAG addition or deletion is shown in fig. 2 and 3. The service scenario specifically related to the present invention includes: UNI-LAG bonded non-protected TP traffic (TP is an abbreviation of MPLS-TP (MPLS-Transport Profile) traffic, i.e., multiprotocol label Transport mode), UNI-LAG bonded non-protected ETH/EOO traffic (where ETH is ordinary ethernet traffic, EOO is ODUk1+1 protection, i.e., ETH traffic is carried on ODUk (optical channel data unit)) UNI-LAG overlay LSP1:1 (where LSP1:1 refers to label Switched path LSP (label Switched path)1:1 protection, i.e. tunnel protection), UNI-LAG overlay PW1:1 (where PW1:1 refers to pseudowire 1:1 protection), UNI-LAG overlay ETH1+1, and UNI-LAG overlay EOO1+1 (where ETH1+1 refers to ethernet traffic 1+1, EOO1+1 refers to ETH OVER ODUK1+1 protection).
In this embodiment, the problem of VC-OAM alarm delivery in an LAG scene is solved by a method for dynamically adding, deleting and refreshing the configuration of a master member by an LAG member; and meanwhile, the dynamically switched alarm information carries out link alarm transmission through overhead frames, so that the problem that the service cannot be normally forwarded when a signaling channel fails and an AC side fails is solved.
In some embodiments, S200 includes the steps of:
and S210, when the LAG member is newly added, judging whether the slot position of the newly added LAG member exists, if not, issuing configuration data to the slot position of the newly added LAG member, wherein the configuration data comprises corresponding port logic configuration, LSP configuration, LIF configuration and VPWS service configuration.
It should be noted that, determining whether the slot of the new LAG member exists means determining whether the slot in which the new LAG member is located has other ports already in the LAG member group.
In some embodiments, S200 includes the steps of:
s221, when deleting LAG members, if the slot of the main member is changed and the LAG member slot is deleted, then:
broadcasting and issuing the updated LAG member configuration;
judging whether the operation has OAM operation, if yes, refreshing the slot position of the main member and sending the current OAM configuration to the newly added slot position and the slot position of the export disk;
and deleting the configuration data in the deleted LAG member slot.
It will be appreciated that refreshing the slot of the master member then means that the master member has been updated to ensure that the master member remains open OAM.
In some embodiments, S200 includes the steps of:
s222, when deleting the LAG member, if the slot of the main member is changed and no LAG member slot is deleted, then:
broadcasting and issuing the updated LAG member configuration;
and judging whether the OAM service exists in the service, if so, refreshing the slot position of the main member and issuing the current OAM configuration to the newly added slot position and the slot position of the export disk.
In some embodiments, S200 includes the steps of:
and S223, when deleting the LAG member, if the slot position of the main member is not changed and no LAG member slot is deleted, broadcasting and issuing the updated LAG member configuration.
In some embodiments, S200 includes the steps of:
s224, when deleting LAG member, if the slot of the main member is not changed and the LAG member slot is deleted, then:
broadcasting and issuing the updated LAG member configuration;
and deleting the configuration data in the deleted LAG member slot.
In some embodiments, in a scenario where UNI-LAG binds to an unprotected TP service or an unprotected ETH/EOO service, when members of a LAG (Link Aggregation Group) increase or decrease, OAM services are dynamically switched according to changes of the members of the LAG, so as to implement alarm linkage while ensuring OAM functions.
Broadcasting the new configuration to each service disk and APS (automatic protection switching) when the LAG members are newly added; a master control NMU (Network Management Unit) judges whether a new LAG member slot position exists or not, and if the LAG member slot position exists, the new LAG member slot position is not processed; if the LAG slot is newly added, issuing corresponding port logic configuration, LSP (Label Switched Path) configuration, LIF (local interface) configuration and VPWS Service (Virtual Private Wire Service) configuration to the newly added LAG slot.
When deleting LAG members, this can be done in two cases:
the first case is a LAG master member slot change;
if the LAG member slot is deleted in the first instance, the method comprises the following steps:
firstly, a main control broadcast issues an updated LAG configuration; judging whether the service has VC-OAM, if not, not processing, if so, refreshing the LAG master member slot position and issuing the LAG master member slot position to the newly added slot position; thirdly, sending LIF and service deletion to the deleted LAG member slot; fourthly, deleting LSP from the deleted LAG member slot, and fifthly, issuing port logic configuration deletion to the deleted LAG member slot.
If in the first instance the LAG member slot is not deleted, then the method includes the steps of:
firstly, a main control broadcast issues an updated LAG configuration; judging whether the service has VC-OAM, if not, not processing, if so, refreshing the main member slot of OAM configuration, and sending the main member slot to the new LAG main member slot and the outlet disk slot.
The second case is that the LAG master member slot is unchanged;
if the LAG member slot is deleted in the second case, the method comprises the following steps: firstly, a main control broadcast issues an updated LAG configuration; secondly, sending LIF and service deletion to the deleted LAG member slot; deleting LSP from the deleted LAG member slot, and issuing port logic configuration deletion to the deleted LAG member slot.
If in the second case the LAG member slot is not deleted, then the method includes the steps of: the main control broadcast issues LAG configuration.
In some embodiments, at UNI-LAG overlay LSP1:1 (the UNI side of LSP traffic is the LAG interface),
broadcasting the new configuration to each service disk and APS when the LAG members are newly added; the main control NMU adaptation layer judges whether a newly added LAG member slot position exists or not, and if the LAG member slot position exists, no processing is carried out; and if the LAG slot position is newly added, issuing corresponding port logic configuration, tunnel protection configuration, LSP configuration, LIF configuration and VPWS service configuration to the newly added LAG slot position in sequence.
When deleting LAG members, this can be done in two cases:
the first case is a LAG master member slot change;
if the LAG member slot is deleted in the first instance, the method comprises the following steps:
firstly, a main control broadcast issues an updated LAG configuration; judging whether the service has VC-OAM, if not, not processing, if so, refreshing the information of the master slot position in the OAM configuration, and sending the information to a new LAG master member slot and an outlet disk (LSP1:1 has two master outlet slots and two slave outlet slots, please notice); thirdly, lif and service deletion are issued to the deleted LAG member slot; fourthly, issuing and issuing main and standby LSP deletion to the deleted LAG member slot; fifthly, issuing tunnel protection deletion to the deleted LAG member slot; sixthly, issuing port logic configuration deletion to the deleted LAG member slot.
If in the first instance the LAG member slot is not deleted, then the method includes the steps of:
firstly, a main control broadcast issues an updated LAG configuration; judging whether the service has VC-OAM, if not, not processing, if so, refreshing the main slot position information in the OAM configuration, and sending the main slot position information to a new LAG main member slot and an outlet disk slot position (LSP1:1 has a main outlet disk and a spare outlet disk, please notice).
The second case is that the LAG master member slot is unchanged;
if the LAG member slot is deleted in the second case, the method comprises the following steps:
firstly, a main control broadcast issues an updated LAG configuration; secondly, sending LIF and service deletion to the deleted LAG member slot; thirdly, sending main and standby LSP deletion to the deleted LAG member slot; fourthly, sending tunnel protection group deletion to the deleted LAG member slot; and fifthly, issuing port logic configuration deletion to the deleted LAG member slot.
If in the second case the LAG member slot is not deleted, then the method includes the steps of: and (4) issuing the updated LAG configuration by the main control broadcast.
In some embodiments, at UNI-LAG overlap PW1: 1. in the scenario of the UNI-LAG overlay ETH1+1 and the UNI-LAG overlay EOO1+1,
broadcasting the new configuration to each service disk and APS when the LAG members are newly added; the main control NMU adaptation layer judges whether a newly added LAG member slot position exists or not, and if the LAG member slot position exists, no processing is carried out; if the LAG slot position is newly added, issuing corresponding port logic configuration to the newly added LAG slot position in sequence; issuing LSP configuration corresponding to the service configuration and issuing LIF and service configuration.
When deleting LAG members, this can be done in two cases:
the first case is a LAG master member slot change;
if the LAG member slot is deleted in the first instance, the method comprises the following steps:
firstly, a main control broadcast issues an updated LAG configuration; judging whether the service has VC-OAM, if not, not processing, if so, refreshing the main slot position information in the OAM configuration, and sending the information to a new LAG main member slot and an outlet disk slot position (LSP1:1 has a main outlet disk and a spare outlet disk).
If in the first instance the LAG member slot is not deleted, then the method includes the steps of:
firstly, a main control broadcast issues an updated LAG configuration; and refreshing the slot position information of the LAG main member in the OAM configuration, and sending the information to the new LAG main member slot and the corresponding export disk.
The second case is that the LAG master member slot is unchanged;
if the LAG member slot is deleted in the second case, the method comprises the following steps:
firstly, a main control broadcast issues an updated LAG configuration; secondly, sending LIF and service deletion to the deleted LAG member slot; thirdly, issuing LSP deletion to the deleted LAG member slot; and fourthly, issuing port logic configuration deletion to the deleted LAG member slot.
If in the second case the LAG member slot is not deleted, then the method includes the steps of: and (4) issuing the updated LAG configuration by the main control broadcast.
As shown in fig. 4, an embodiment of the present invention provides a node protection alarm linkage optimization apparatus, which includes:
a main member selection module, configured to select a main member from LAG members, and enable the main member to start an OAM service;
the member deleting module is used for keeping the main member open the OAM service when the LAG member is newly added or deleted and realizing dynamic deleting of the service member;
and the synchronous switching module is used for transmitting the OAM service alarm to a redundancy protection service side through an overhead frame to realize synchronous switching after the main member starts the OAM service.
In some embodiments, the member deletion module is further configured to:
and when a new LAG member is added, judging whether the slot position of the new LAG member exists, if not, issuing configuration data to the slot position of the new LAG member, wherein the configuration data comprises corresponding port logic configuration, LSP configuration, LIF configuration and VPWS service configuration.
In some embodiments, the member deletion module is further configured to:
when deleting the LAG member, if the slot of the main member is changed and the LAG member slot is deleted, then:
broadcasting and issuing the updated LAG member configuration;
judging whether the operation has OAM operation, if yes, refreshing the slot position of the main member and sending the current OAM configuration to the newly added slot position and the slot position of the export disk;
and deleting the configuration data in the deleted LAG member slot.
When deleting the LAG member, if the slot of the main member is changed and no LAG member slot is deleted, then:
broadcasting and issuing the updated LAG member configuration;
and judging whether the OAM service exists in the service, if so, refreshing the slot position of the main member and issuing the current OAM configuration to the newly added slot position and the slot position of the export disk. .
In some embodiments, the member deletion module is further configured to:
when deleting LAG members, if the slot position of the main member is not changed and no LAG member slot is deleted, broadcasting and issuing updated LAG member configuration;
and when deleting the LAG member, if the slot position of the main member is not changed and the LAG member slot is deleted, broadcasting and issuing the updated LAG member configuration, and deleting the configuration data in the deleted LAG member slot.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable storage media, which may include computer readable storage media (or non-transitory media) and communication media (or transitory media).
The above embodiments are only specific embodiments of the present invention, but the scope of the embodiments of the present invention is not limited thereto, and any person skilled in the art can easily think of various equivalent modifications or substitutions within the technical scope of the embodiments of the present invention, and these modifications or substitutions should be covered by the scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.