LAG protection switching control method, apparatus and device, and readable storage medium
By designing the protection state migration table in the 802.3ad standard protocol, LAG member state switching and activation state update are implemented, the problem of undefined protection control commands in the 802.3ad standard is solved, and operation and maintenance efficiency is improved and signal degradation and signal failure events are supported. LAG protection switch.
Patent Information
- Application Number
- CN202411371981.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-09-29
AI Technical Summary
In the prior art, the 802.3ad standard does not define LAG protection control commands, resulting in low operation and maintenance efficiency and cannot effectively realize LAG protection switching in scenarios such as signal deterioration and issuance of control commands.
By designing the protection state migration table in load mode and non-load mode, using the 802.3ad standard protocol, state switching and activation state updates between LAG members are realized, supporting LAG protection for events such as signal deterioration, signal failure and issuance of control commands. Switch.
It improves operation and maintenance efficiency, realizes LAG protection switching for events such as signal deterioration, signal failure and issuance of control commands under the 802.3ad standard protocol, meets the needs of operators and solves the problem of undefined protection control commands in the standard.
Smart Images

Figure CN119254610A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of communication service protection and switching, and in particular to a LAG protection switching control method, device, equipment and readable storage medium. Background Art
[0002] At present, SF (Signal Fail) caused by LACP (Link Aggregation Control Protocol) protocol failure, BFD (Bidirectional Forwarding Detection) failure, and port failure can trigger LAG (Link Aggregation Group) protection switching; however, in engineering maintenance, not only SF problems will occur, but also line packet loss and false alarms when the link is normal will often be encountered. Therefore, operators have proposed SD (Signal Degrade) and the issuance of control instructions to trigger LAG protection switching. However, the international standard 802.3ad followed by LAG does not have any description of SD, the issuance of control instructions, and the triggering of LAG switching. That is, the 802.3ad standard does not define any LAG protection control command and other operation and maintenance means, so that operation and maintenance personnel must seek help from R&D personnel to stabilize LAG services, which leads to low operation and maintenance efficiency.
[0003] It can be seen that how to achieve effective control of LAG protection switching in scenarios such as SD and issuing control instructions is a problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides a LAG protection switching control method, device, equipment and readable storage medium, which can effectively implement the control of LAG protection switching in scenarios such as SD and issuing control instructions to improve operation and maintenance efficiency.
[0005] In a first aspect, an embodiment of the present application provides a LAG protection switching control method, wherein members in the LAG communicate through an 802.3ad standard protocol, and the method is applied to a LAG in a load mode, comprising the following steps:
[0006] When a target event occurs to the target member at the local end, a first target state corresponding to the target event is determined from a preset first protection state transition table, wherein the first protection state transition table is used to describe the transition relationship between the event request and the state under the load mode, and each state has a request signal corresponding to it, and the target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout end event, a manual activation event, and a manual deactivation event;
[0007] Controlling the local target member to be in a first target state and controlling the activation state of the local target member based on the first target state;
[0008] The second target state is determined from the first protection state transition table according to the request signal of the first target state, and the opposite target member is controlled to be in the second target state and the activation state of the opposite target member is controlled based on the second target state to implement LAG protection switching.
[0009] In a second aspect, an embodiment of the present application provides a LAG protection switching control device, wherein members in the LAG communicate via an 802.3ad standard protocol, and the device is applied to a LAG in a load mode, comprising: a state determination module and a state control module;
[0010] The state determination module is used to determine a first target state corresponding to the target event from a preset first protection state transition table when a target event occurs to the target member of the local end, wherein the first protection state transition table is used to describe the transition relationship between the event request and the state under the load mode, and each state has a request signal corresponding to it, and the target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout end event, a manual activation event, and a manual deactivation event;
[0011] The state control module is used to control the local target member to be in a first target state and control the activation state of the local target member based on the first target state;
[0012] The state determination module is also used to determine the second target state from the first protection state migration table according to the request signal of the first target state, and the state control module is also used to control the opposite target member to be in the second target state and control the activation state of the opposite target member based on the second target state to realize LAG protection switching.
[0013] In a third aspect, an embodiment of the present application provides a LAG protection switching control method, wherein members in the LAG communicate through an 802.3ad standard protocol, and the method is applied to a LAG in a non-load mode, comprising the following steps:
[0014] When a target event occurs to the active member of the local end, a third target state corresponding to the target event is determined from a preset second protection state transition table, wherein the second protection state transition table is used to describe the transition relationship between the event request and the state in the non-load mode, and each state has a request signal corresponding to it, and the target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout end event, a manual activation event, and a manual deactivation event;
[0015] Controlling the active member of the local end to be in a third target state and controlling the activation state of the target member of the local end and the standby member of the local end based on the third target state;
[0016] According to the request signal of the third target state, the fourth target state is determined from the second protection state migration table, and the opposite active member is controlled to be in the fourth target state and the activation state of the opposite active member and the opposite standby member is controlled based on the fourth target state to realize LAG protection switching.
[0017] In a fourth aspect, an embodiment of the present application provides a LAG protection switching control device, wherein members in the LAG communicate via an 802.3ad standard protocol, and the device is applied to a LAG in a non-load mode, comprising: a state determination module and a state control module;
[0018] The state determination module is used to determine a third target state corresponding to the target event from a preset second protection state transition table when a target event occurs to the main member of the local end, the second protection state transition table is used to describe the transition relationship between the event request and the state in the non-load mode, each state has a request signal corresponding to it, and the target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout end event, a manual activation event, and a manual deactivation event;
[0019] The state control module is used to control the active member of the local end to be in the third target state and control the activation state of the target member of the local end and the standby member of the local end based on the third target state;
[0020] The state determination module is also used to determine the fourth target state from the second protection state migration table according to the request signal of the third target state, and the state control module is also used to control the opposite end main member to be in the fourth target state and control the activation state of the opposite end main member and the opposite end backup member based on the fourth target state to realize LAG protection switching.
[0021] In the fifth aspect, an embodiment of the present application provides a LAG protection switching control device, which includes a processor, a memory, and a LAG protection switching control program stored in the memory and executable by the processor, wherein when the LAG protection switching control program is executed by the processor, the steps of the aforementioned LAG protection switching control method are implemented.
[0022] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a LAG protection switching control program is stored, wherein when the LAG protection switching control program is executed by a processor, the steps of the aforementioned LAG protection switching control method are implemented.
[0023] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0024] When signal degradation, signal failure, control command issuance and other events occur during LAG members communicating through the 802.3ad standard protocol, the migration relationship between event requests and states stored in the pre-designed protection state migration table in load mode and the protection state migration table in non-load mode is used to realize the state switching of local members and opposite members in different working modes and update the activation state of local members and opposite members, thereby realizing LAG protection switching corresponding to events such as signal degradation, signal failure, and control command issuance under the 802.3ad standard protocol, solving the problem of low operation and maintenance efficiency in the prior art caused by the fact that no LAG protection control commands and other operation and maintenance means are defined in the 802.3ad standard. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A flowchart of a first embodiment of a LAG protection switching control method of the present application;
[0026] Figure 2 It is a schematic diagram of the state transition of the LAG protection state machine corresponding to the local request event in the load mode involved in the embodiment of the present application;
[0027] Figure 3 It is intended to show the state transition of the LAG protection state machine corresponding to the peer request event in the load mode involved in the embodiment of the present application;
[0028] Figure 4 A schematic diagram of the switching principle of SD failure in the load mode involved in the embodiment of the present application;
[0029] Figure 5 A schematic diagram illustrating the migration of the LAG1 protection state corresponding to the SD fault switching scenario under the load mode involved in the embodiment of the present application;
[0030] Figure 6 A schematic diagram illustrating the migration of the LAG2 protection state corresponding to the SD fault switching scenario under the load mode involved in the embodiment of the present application;
[0031] Figure 7 A schematic diagram of the switching principle of receiving a lock activation control command in a load mode involved in the embodiment of the present application;
[0032] Figure 8 A schematic diagram illustrating the transition of the protection state of LAG1 in a load mode involved in an embodiment of the present application when a lock activation control command is received;
[0033] Fig. 9 A schematic diagram illustrating the transition of the protection state of LAG2 when a lock activation control command is received in a load mode involved in an embodiment of the present application;
[0034] Fig.10 A flowchart of a second embodiment of the LAG protection switching control method of the present application;
[0035] Fig.11 This is a schematic representation of the state transition of the LAG protection state machine corresponding to the local request event in the non-load mode involved in the embodiment of the present application;
[0036] Fig.12 This is a schematic representation of the state transition of the LAG protection state machine corresponding to the peer request event in the non-load mode involved in the embodiment of the present application;
[0037] Fig.13 A schematic diagram of the switching principle of an SD fault in a non-load mode involved in the embodiment of the present application;
[0038] Fig.14 This is a schematic diagram illustrating the LAG1 protection state migration corresponding to the SD fault switching scenario in the non-load mode involved in the embodiment of the present application;
[0039] Fig.15 This is a schematic diagram illustrating the LAG2 protection state migration corresponding to the SD fault switching scenario in the non-load mode involved in the embodiment of the present application;
[0040] Fig.16 A schematic diagram of the switching principle of receiving a lock activation control command in a non-load mode involved in the embodiment of the present application;
[0041] Fig.17 This is a schematic diagram illustrating the transition of the protection state of LAG1 in a non-load mode involved in the embodiment of the present application when a lock activation control command is received;
[0042] Fig.18A schematic diagram illustrating the transition of the protection state of LAG2 in a non-load mode involved in an embodiment of the present application when a lock activation control command is received;
[0043] Fig.19 This is a schematic diagram of the hardware structure of the LAG protection switching control device involved in the embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0046] In a first aspect, an embodiment of the present application provides a LAG protection switching control method.
[0047] In one embodiment, referring to Figure 1 , Figure 1 The flowchart of the first embodiment of the LAG protection switching control method of the present application is shown in FIG. 1 , wherein the members in the LAG communicate via the 802.3ad standard protocol, and the method is applied to the LAG in load mode, such as Figure 1 As shown, the LAG protection switching control method includes:
[0048] Step S10: When a target event occurs in the target member at this end, a first target state corresponding to the target event is determined from a preset first protection state transition table, wherein the first protection state transition table is used to describe the migration relationship between an event request and a state under a load mode, and each state has a request signal corresponding to it. The target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout event, a manual activation event, and a manual deactivation event.
[0049] For example, it should be understood that the control commands defined in the international standards for protection technologies such as G8031 and G8331, such as locking the master and forced switching, cannot be applied to LAG, because there are two working modes of LAG, namely, non-load mode and load mode, and the roles of each member in the load mode LAG are the same, that is, there is no distinction between the master role and the backup role, so it cannot be applied to the description of locking the master, and a new design is required. Therefore, in order to provide a protection method for LAG supporting signal degradation SD and control commands based on 802.3ad in load mode, the present embodiment designs a protection state machine for LAG supporting SD and control commands in load mode.
[0050] First, the LAG request signal and its priority are designed. Specifically, the LAG request signal design is completed by using the reserved 4-bit field in the LACP (Link Aggregation Control Protocol) protocol message format defined in the 802.3ad standard to obtain the LAG request signal and its priority as shown in Table 1.
[0051] Table 1 Request signal and priority design table
[0052]
[0053] Among them, the request signal can be divided into 9 types according to the sequence number, and the request signal in the second column of Table 1 contains 4 bits of specific content, the lowest bit -1 indicates that the member is activated, 0 indicates that the member is not activated, and the corresponding reason is determined by the high bit; for example, the lowest bit in the request signal 1110 corresponding to sequence number 2 is 0, which indicates that the member is not activated, and the high 3 bits are 111, which indicates that the lock is not activated; it should be noted that 0000 is avoided in the steady state without request state for easy distinction; the third and fourth columns in Table 1 are the full English name and abbreviation and Chinese name corresponding to each request signal, and the fifth column indicates the priority of the request signal, and the smaller the sequence number, the higher the priority, for example, the request signal 1111 corresponding to sequence number 1 has the highest priority, and the request signal 0001 corresponding to sequence number 9 has the lowest priority; the sixth column in Table 1 explains the design considerations of the request signal, for example, the highest priority request signals 1 and 2 can interfere with the project operation, request signals 6 and 7 cannot interfere with the project operation, and request signals 3, 4, 5, 8 and 9 are state descriptions of fault scenarios and normal scenarios during the communication process. It should be noted that Table 1 is only a presentation of an embodiment, and the fields in Table 1 may be adjusted according to actual needs.
[0054] Secondly, the state field of the LAG protection state machine in the load mode is designed based on the request signal to obtain the State design table shown in Table 2; it can be understood that each state has a corresponding request signal.
[0055] Table 2 State design table
[0056] State describe Abbreviation A No Request NR Member Active B Lockout of Active LO Active Member Active C Lockout of Inactive LO Inactive Member Inactive D Signal Fail SF Member Inactive E Signal Degrade SD Member Inactive F Wait To Restore WTR Member Inactive G Manual Active Man Active Member Active H Manual Inactive Man Inactive Member Inactive I No Request Inactive NR-Inactive Member Inactive
[0057] Among them, No Request corresponding to state A means no request, referred to as NR, and its communication service bearing state is Member Active, which means that the LAG member is in an active state, that is, in a state of carrying communication services; Lockout of Active corresponding to state B means locked activation, referred to as LO Active, and its communication service bearing state is Member Active, and at this time, regardless of whether the path is faulty, it is in an active state, and only when a Clear control command is received will the state be exited; Lockout of Inactive corresponding to state C means locked inactive, referred to as LOInactive, and its communication service bearing state is Member Inactive, which means that the LAG member is in an inactive state, that is, in a state of not carrying communication services, and at this time, regardless of whether the path is faulty, it is in an inactive state, and only when a Clear or Lockout of Active lock activation control command is received will the state be exited; Signal Fail corresponding to state D means signal failure, referred to as SF, and its service bearing state is Member Inactive, that is, in a state of not carrying communication services.
[0058] Signal Degrade corresponding to the E state indicates signal degradation, referred to as SD, and its service bearing state is Member Inactive, that is, it is in a state of not carrying communication services; Wait To Restore corresponding to the F state indicates waiting for recovery, referred to as WTR, and its service bearing state is Member Inactive, that is, it is in a state of not carrying communication services; Manual Active corresponding to the G state indicates manual activation, referred to as Man Active, and its communication service bearing state is Member Active, that is, it is in a state of carrying communication services, but if a higher priority request signal is encountered, such as line SF or SD, it will exit this state; Manual Inactive corresponding to the H state indicates manual inactivation, referred to as Man Inactive, and its service bearing state is Member Inactive, that is, it is in a state of not carrying communication services; No Request Inactive corresponding to the I state indicates no request inactivation, referred to as NR-Inactive, and its service bearing state is Member Inactive. Member Inactive here means that the local end is normal, that is, there is no path failure at the local end or the local end has not issued a control command, and it is in an inactive state due to a request signal sent by the other end. It should be noted that Table 2 is only a presentation of an embodiment, and the fields in Table 2 may be adjusted according to actual needs.
[0059] Next, the Event of the LAG protection state machine in the load mode is designed; in this embodiment, the Event design of the LAG protection state machine is preferably divided into two categories: (1) Local Request: an event request occurring in the local LAG; (2) Far-end request: an event request occurring in the far-end LAG is received to obtain a local request event table as shown in Table 3 and a far-end request event table as shown in Table 4.
[0060] Table 3 Local request event table
[0061]
[0062] Table 4 Peer request event table
[0063]
[0064] It can be understood that the protection state machine Event stored in Table 3 and Table 4 represents the current event, and the explanation principle of each event is similar; for example, the Lockout of Active corresponding to the a column in Table 3 indicates that the event occurring at this end is receiving a lock activation control command, and then jumping to the State B lock activation state, and it can be seen that the State state and the Event event are both displayed as Lockout of Active; for another example, the Lockout of Inactive corresponding to the b column in Table 3 indicates that the event occurring at this end is receiving a lock inactivation control command, and then jumping to the State C lock inactivation state; wherein, the Recover from SF corresponding to the d event indicates that the event of the local end recovering from signal failure to no alarm occurs, the Recover from SD corresponding to the f event indicates that the event of the local end recovering from signal degradation to no alarm occurs, the WTR timer expires corresponding to the g event indicates that the event of the waiting recovery time timeout ends occurs at this end, and the Clear corresponding to the j event indicates that the local device receives the event of the clear control command. It should be noted that Tables 3 and 4 are only presentations of embodiments, and the fields in Tables 3 and 4 can also be adjusted according to actual needs.
[0065] Finally, based on the LAG request signal and its priority, the state field of the LAG protection state machine in the load mode, and the design of the Event event, the design of the LAG protection state machine state transition table is implemented to obtain the following Figure 2 The LAG protection state machine state transition table corresponding to the local request event in the load mode shown and Figure 3 The LAG protection state machine state transition table corresponding to the peer request event in the load mode shown; it should be noted that, Figure 2 and Figure 3 "N / A" in the request means that the event will not occur or will be ignored if it occurs; "O" means that the request is overridden by the existing condition because it has the same or lower priority than the existing request. It should be understood that Figure 2 and Figure 3 The corresponding LAG protection state machine state transition table constitutes the first protection state transition table of this embodiment, that is, the first protection state transition table includes the LAG protection state machine state transition table corresponding to the local request event under the load mode and the LAG protection state machine state transition table corresponding to the opposite end request event under the load mode, which describes the migration relationship between the event request and the state under the load mode.
[0066] In this embodiment, after completing the design of the first protection state transition table under the load mode, the state switching of members between the local end and the opposite end can be realized based on the first protection state transition table to realize the control of LAG protection switching. It should be noted that the target member of this end refers to the member of this end where target events such as signal degradation event, signal failure event, lock activation control instruction event, lock deactivation control instruction event, waiting recovery time timeout end event, manual activation event or manual deactivation event occur; specifically, when a target event occurs to the target member of this end, the first target state for controlling the state of the target member of this end is determined from the LAG protection state machine state transition table corresponding to the request event of this end under the load mode based on the target event. For example, assuming that the target member of this end is currently in the NR corresponding to the A state and the target event is a signal degradation event (i.e., Signal Degrade corresponding to the e event), then through Figure 2 It can be determined that when event e occurs in the local target member, it needs to switch from state A to state E, that is, the state of the local target member needs to be migrated from A to E, so the first target state is the E state.
[0067] Step S20: controlling the local target member to be in a first target state and controlling the activation state of the local target member based on the first target state.
[0068] Exemplarily, in this embodiment, after determining the first target state, the state migration and activation state update of the local target member can be controlled based on the first target state. For example, the first target state is the E state, and since the service bearing state of the E state is Member Inactive, that is, it is in a state of not bearing communication services, when controlling the state migration of the local target member from the A state to the E state, the activation state of the local target member needs to be updated to inactive, so that the local target member does not bear communication services.
[0069] Step S30: Determine the second target state from the first protection state transition table according to the request signal of the first target state, control the opposite target member to be in the second target state and control the activation state of the opposite target member based on the second target state to implement LAG protection switching.
[0070] Exemplarily, in this embodiment, while the state migration and activation state control are performed on the local target member according to the first target state, a request signal corresponding to the first target state is also sent to the opposite target member communicating with the local target member, so as to obtain the state of the local target member from the opposite target member through the request signal. Figure 3In the LAG protection state machine state transition table corresponding to the peer request event in the load mode shown, a second target state for controlling the state of the peer target member is determined, and based on the second target state, the state migration and activation state update of the peer target member are controlled, thereby automatically realizing the LAG protection switching of different scenario events under the 802.3ad standard protocol.
[0071] For example, assuming that the first target state is E state and the opposite target member is currently in A state, since the request signal corresponding to the E state is 1000, the request signal received by the opposite target member changes from 0001 in A state to 1000; therefore, the request signal 1000 can be used to Figure 3 It is determined that event o has occurred in the opposite target member, and it needs to switch from state A to state I (i.e., inactive state without request), that is, the state of the opposite target member needs to be migrated from A to I, so the second target state is state I. Since the service bearing state of state I is Member Inactive, that is, it is in a state of not bearing communication services, when controlling the state of the opposite target member to migrate from state A to state I, the activation state of the opposite target member needs to be updated to inactive, so that the opposite target member does not bear communication services.
[0072] It can be seen that this embodiment, on the basis of continuing the 802.3ad standard, extends and proposes the name design, request signal type definition and priority definition of LAG supporting signal degradation and control commands, so that when events such as signal degradation, signal failure, and sending of control commands occur during the communication process of LAG members through the 802.3ad standard protocol, the state switching of local members and opposite-end members can be realized and the activation state of local members and opposite-end members can be updated through the migration relationship between event requests and states stored in the protection state migration table under the pre-designed load mode, thereby realizing LAG protection switching corresponding to events such as signal degradation, signal failure, and sending of control commands under the 802.3ad standard protocol, so as to meet the needs of operators and solve the problem of low operation and maintenance efficiency caused by the fact that no operation and maintenance means such as LAG protection control commands are defined in the prior art in the 802.3ad standard.
[0073] Further, in one embodiment, if the target event is a signal degradation event, the first target state is a signal degradation state and its service bearing state is member inactive, and the second target state is a no-request inactive state and its service bearing state is member inactive.
[0074] For example, see Figure 4As shown, it is assumed that network devices NE1 and NE2 are interconnected through 4 optical fibers, and NE1 is deployed in LAG1 and NE2 is deployed in LAG2, wherein LAG1 and LAG2 each contain 4 lag members, that is, the communication service is load-balanced on the 4 members and the 4 members are currently in state A (i.e., no request state); when the LAG load pattern has a switching demand for SD failure, that is, member 1 of LAG1 (i.e., the local target member) perceives SD, that is, member 1 of LAG1 has a signal degradation event e (i.e., the target event), then according to Figure 5 As shown, the state State of member 1 of LAG1 is controlled to jump from A to E (i.e., signal degradation state, i.e., the first target state); since the service bearing state corresponding to the E state is that the member is not activated, member 1 of LAG1 needs to be controlled to be in an inactive state, that is, member 1 of LAG1 is deactivated, and the request signal sent to member 1 of LAG2 (i.e., the target member at the opposite end) will change from 0001 to 1000.
[0075] The request signal received by member 1 of LAG2 will change from 0001 to 1000. Figure 6 As shown, the State of member 1 of LAG2 needs to be controlled to jump from A to I (i.e., no request inactive state, i.e., the second target state); and since the service bearing state corresponding to the I state is member inactive, member 1 of LAG2 needs to be controlled to be inactive, that is, member 1 of LAG2 is deactivated, and the request signal sent to member 1 of LAG1 will change from 0001 to 0010. So far, member 1 in both LAG1 and LAG2 is in the deactivated state, so that the communication service is load-balanced on the remaining three members, thereby realizing the protection switching of SD fault in LAG load mode.
[0076] Further, in one embodiment, if the target event is a lock activation control instruction event, the first target state is a lock activation state and its service bearing state is member activation, and the second target state is a no request state and its service bearing state is member activation.
[0077] For example, see Figure 7 As shown in the figure, assuming that NE1 is deployed in LAG1 and NE2 is deployed in LAG2, and the communication service is load-balanced on the four members, when the LACP protocol corresponding to member 1 of LAG1 flickers back and forth between the normal and faulty states, and the possible cause of the flickering is link packet loss or LACP protocol, etc.; in order to further investigate the cause of the fault, a lock activation control command is issued to member 1 of LAG1, that is, member 1 has a lock activation control command event a, then according to Figure 8As shown, the State of member 1 of LAG1 is controlled to jump from A to B (i.e., locked activation state); since the service bearer state corresponding to state B is member activation, member 1 of LAG1 needs to be controlled to remain in the activation state, and at this time, member 1 remains activated regardless of SF or SD; at the same time, the request signal sent by member 1 of LAG1 to member 1 of LAG2 will change from 0001 to 1111.
[0078] The request signal received by member 1 of LAG2 changes from 0001 to 1111. Fig. 9 As shown, the State of member 1 of LAG2 needs to be controlled to jump from A to A; and since the service bearing state corresponding to the A state is member activation, member 1 of LAG2 needs to be controlled to remain in the activated state, and at this time, whether SF or SD is encountered, member 1 of LAG2 remains activated. So far, the bidirectional service continues to share the load on the four members. At this time, if service packet loss occurs, it means that the link packet loss causes the LACP protocol to flicker back and forth; however, if there is no service packet loss, it means that the link is normal, but the flickering is caused by the LACP protocol itself, which facilitates accurate positioning in the next step and effectively improves the efficiency of troubleshooting.
[0079] For the scenario of issuing a lock activation control command, in addition to issuing a lock activation control command to member 1 of LAG1, a lock activation control command can also be issued to member 1 of LAG1 and member 1 of LAG2 at the same time, so that the State of member 1 at both ends jumps from A to B, and then member 1 at both ends is in an activated state, and the sending request signals of both parties change from 0001 to 1111. At this time, the two-way business can continue to share the load on the four members.
[0080] Further, in one embodiment, if the target event is a lock inactivation control instruction event, the first target state is a lock inactivation state and its service bearing state is member inactivation, and the second target state is a no-request inactivation state and its service bearing state is member inactivation.
[0081] For example, in this embodiment, it is assumed that NE1 is deployed in LAG1, NE2 is deployed in LAG2, and the communication service is load-shared on the four members. If member 1 encounters a problem that requires the replacement of an optical module or optical fiber, in order to reduce service damage, a control command for locking and deactivating member 1 of LAG1 can be issued, that is, member 1 of LAG1 undergoes a locking and deactivating event b. At this time, according to Figure 2From the state transition table of the LAG protection state machine corresponding to the request event on the local side shown, it can be seen that the State of member 1 of LAG1 needs to be controlled to jump from A to C (i.e., locked inactive state); since the service bearer state corresponding to the C state is member inactive, member 1 of LAG1 needs to be controlled in an inactive state, and the request signal sent to member 1 of LAG2 will change from 0001 to 1110.
[0082] At this time, the request signal received by member 1 of LAG2 changes from 0001 to 1110, so the State of member 1 of LAG2 needs to be controlled to jump from A to I; since the service bearer state corresponding to the I state is the member inactive, member 1 of LAG2 needs to be controlled to be in the inactive state, that is, member 1 of LAG2 is deactivated, and the request signal sent to member 1 of LAG1 will change from 0001 to 1110, after which operations such as replacement of optical modules or optical fibers can be performed without affecting communication services; after the operation is completed, if you want to restore the original state, send a clear control command to member 1 of LAG1 to make the State of member 1 of LAG1 jump from C to A, that is, member 1 of LAG1 is in the active state again, and the request signal sent by it changes from 1110 to 0001; and the request signal received by member 1 of LAG2 changes back to 0001, and its State also jumps back from I to A, that is, member 1 of LAG2 is also in the active state.
[0083] For the scenario of issuing a lock-inactivate control command, in addition to issuing a lock-inactivate control command to member 1 of LAG1, a lock-inactivate control command can also be issued to member 1 of LAG1 and member 1 of LAG2 at the same time, so that the State of member 1 at both ends jumps from A to C, and then the member 1 at both ends is in an inactivated state, and the sending request signals of both parties are changed from 0001 to 1110. At this time, the normal replacement operation can be completed without affecting the communication service; after the operation is completed, the clear control command is issued, and at this time the State of member 1 at both ends will jump from C to A again, so that the member 1 at both ends is in an activated state again.
[0084] Further, in one embodiment, if the target event is a signal failure event, the first target state is a signal failure state and its service bearing state is member inactive, and the second target state is a no-request inactive state and its service bearing state is member inactive.
[0085] For example, in this embodiment, it is assumed that NE1 is deployed in LAG1, NE2 is deployed in LAG2, and the communication service is load-shared among the four members. If member 1 of LAG1 encounters a fault such as the construction fiber being cut, member 1 of LAG1 will detect the fault, that is, member 1 of LAG1 will have a signal failure event c. At this time, according to Figure 2 From the state transition table of the LAG protection state machine corresponding to the request event on the local side shown, it can be seen that the State of member 1 of LAG1 needs to be controlled to jump from A to D (i.e., signal failure state); since the service bearer state corresponding to the D state is member inactivation, member 1 of LAG1 needs to be controlled to be in an inactivation state, and the request signal sent to member 1 of LAG2 will change from 0001 to 1010.
[0086] At this time, the request signal received by member 1 of LAG2 will change from 0001 to 1010, so the State of member 1 of LAG2 needs to be controlled to jump from A to I; since the service bearing state corresponding to the I state is the member inactive, member 1 of LAG2 needs to be controlled to be inactive, that is, member 1 of LAG2 is deactivated, and the request signal sent to member 1 of LAG1 will change from 0001 to 1010. So far, member 1 in both LAG1 and LAG2 is in the deactivated state, so that the communication service is load-balanced on the remaining three members, thereby realizing the protection switching of SF failure in LAG load mode.
[0087] In the SF fault scenario, in addition to member 1 of LAG1 being able to detect the fault, member 1 of LAG1 and LAG2 may also detect the fault. In this case, the State of member 1 at both ends can be controlled to jump from A to D, so that member 1 at both ends is in an inactive state, and other members are responsible for carrying communication, thereby ensuring normal communication.
[0088] Further, in one embodiment, if the target event is a waiting recovery time timeout event, the first target state is waiting for recovery and its service bearing state is member inactive, and the second target state is no request inactive state and its service bearing state is member inactive.
[0089] For example, in this embodiment, it is assumed that NE1 is deployed in LAG1, NE2 is deployed in LAG2, and the communication service is load-shared on four members. After the cause of the SF fault is found and the optical fiber is repaired, member 1 of LAG1 will detect that the SF fault is restored. At this time, the State of member 1 of LAG1 will jump from D to F (i.e., waiting for restoration), that is, member 1 of LAG1 enters the waiting for restoration state (for example, waiting for 5 minutes); since the service bearing state corresponding to the F state is member inactivation, it is necessary to control member 1 of LAG1 in the waiting for restoration state to remain in the inactivation state, and the request signal sent to member 1 of LAG2 will change from 1010 to 0110. The request signal received by member 1 of LAG2 will also change from 1010 to 0110, so it is necessary to control the State of member 1 of LAG2 to jump from I to I, that is, the state of member 1 of LAG2 remains unchanged. Since the service bearing state corresponding to the I state is member inactivation, it is necessary to control member 1 of LAG2 to continue to remain in the inactivation state.
[0090] When the waiting recovery time is over, the State of member 1 of LAG1 will jump from F to A, so that member 1 of LAG1 is reactivated, and the request signal it sends changes from 0110 to 0001; and the request signal received by member 1 of LAG2 changes back to 0001, and its State also jumps back from I to A, that is, member 1 of LAG2 is also reactivated.
[0091] For the waiting recovery scenario, in addition to member 1 of LAG1 being able to detect that the fault has been recovered, member 1 of LAG1 and LAG2 may also detect that the fault has been recovered. In this case, the State of member 1 at both ends can be controlled to jump from D to F, that is, member 1 at both ends enter the waiting recovery state, so that both ends of member 1 in the waiting recovery state are in an inactive state; after the waiting recovery time is over, the State of member 1 at both ends is controlled to jump from F to A again, so that both ends of member 1 are in an activated state again.
[0092] Further, in one embodiment, if the target event is a manual deactivation event, the first target state is a manual deactivation state and its service bearer state is member deactivation, and the second target state is a no-request deactivation state and its service bearer state is member deactivation.
[0093] For example, in this embodiment, it is assumed that NE1 is deployed in LAG1, NE2 is deployed in LAG2, and the communication service is load-shared on the four members; if member 1 of LAG1 needs to be deactivated during the day to assist in emergency positioning, etc., but since the daytime is the peak period of communication, in order to avoid the sudden interruption and sudden recovery of the link signal, it is also necessary to give priority to guaranteeing communication, that is, triggering the normal protection switching and recovery process, at this time, a manual deactivation control command can be issued to member 1 of LAG1, that is, member 1 of LAG1 has an artificial deactivation event i, at this time according to Figure 2 From the state transition table of the LAG protection state machine corresponding to the request event on the local side shown, it can be seen that the State of member 1 of LAG1 needs to be controlled to jump from A to H (i.e., manually deactivated state); since the service bearer state corresponding to the H state is member deactivated, member 1 of LAG1 needs to be controlled to be in an deactivated state to assist in emergency positioning, and the request signal sent to member 1 of LAG2 will change from 0001 to 0100.
[0094] At this time, the request signal received by member 1 of LAG2 changes from 0001 to 0100, so the State of member 1 of LAG2 needs to be controlled to jump from A to I. Since the service bearer state corresponding to the I state is the member inactive, member 1 of LAG2 needs to be controlled to be inactive as well, and the request signal sent to member 1 of LAG1 will change from 0001 to 0100. After the positioning is completed, a clear control command can be given to member 1 of LAG1 to make the State of member 1 of LAG1 jump from H to A again, that is, member 1 of LAG1 is in the active state again, and the request signal sent to member 1 of LAG2 changes from 0100 to 0001; and the request signal received by member 1 of LAG2 changes back to 0001, and its State also jumps back from I to A, that is, member 1 of LAG2 is also in the active state again.
[0095] In the scenario where a manual deactivation control command is issued, in addition to issuing a manual deactivation control command to member 1 of LAG1, a manual deactivation control command can also be issued to member 1 of LAG1 and member 1 of LAG2 at the same time, so that the state of member 1 at both ends jumps from A to H, and then the member 1 at both ends is in an inactive state to assist in emergency positioning. When the positioning is completed, the clear control command is issued again, and the state of member 1 at both ends will jump from H to A again, so that the member 1 at both ends is in an activated state again.
[0096] Further, in one embodiment, if the target event is a manual activation event, the first target state is a manual activation state and its service bearer state is member activation, and the second target state is a no request state and its service bearer state is member activation.
[0097] For example, in this embodiment, it is assumed that NE1 is deployed in LAG1, NE2 is deployed in LAG2, and the communication service is load-shared among the four members; after member 1 of LAG1 and member 1 of LAG2 are in an inactive state due to a manual inactivation control command, if the positioning is completed at this time, a manual activation control command can also be issued to member 1 of LAG1, that is, a manual activation event h occurs to member 1 of LAG1; at this time, according to Figure 2 From the LAG protection state machine state transition table corresponding to the local request event shown, it can be seen that the State of member 1 of LAG1 can be controlled to jump from H to G (i.e., manual activation state). Since the service bearer state corresponding to the G state is member activation, member 1 of LAG1 needs to be controlled to be in the activation state again, and the request signal sent to member 1 of LAG2 will change from 0100 to 0101.
[0098] At this time, the request signal received by member 1 of LAG2 will also change from 0100 to 0101, so the state of member 1 of LAG2 needs to be controlled to jump from I to A. Since the service bearer state corresponding to state A is member activation, member 1 of LAG2 needs to be controlled to be in the activated state.
[0099] For the scenario of issuing manual activation control commands, in addition to issuing manual activation control commands to member 1 of LAG1, manual activation control commands can also be issued to member 1 of LAG1 and member 1 of LAG2 at the same time, so that the State of member 1 at both ends jumps from H to G, thereby making member 1 at both ends re-activated.
[0100] In a second aspect, an embodiment of the present application further provides a LAG protection switching control device.
[0101] In one embodiment, members in the LAG communicate via the 802.3ad standard protocol, the LAG protection switching control device is applied to the LAG in load mode, and the LAG protection switching control device includes: a state determination module and a state control module;
[0102] The state determination module is used to determine a first target state corresponding to the target event from a preset first protection state transition table when a target event occurs to the target member of the local end, wherein the first protection state transition table is used to describe the transition relationship between the event request and the state under the load mode, and each state has a request signal corresponding to it, and the target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout end event, a manual activation event, and a manual deactivation event;
[0103] The state control module is used to control the local target member to be in a first target state and control the activation state of the local target member based on the first target state;
[0104] The state determination module is also used to determine the second target state from the first protection state migration table according to the request signal of the first target state, and the state control module is also used to control the opposite target member to be in the second target state and control the activation state of the opposite target member based on the second target state to realize LAG protection switching.
[0105] Further, in one embodiment, if the target event is a signal degradation event, the first target state is a signal degradation state and its service bearing state is member inactive, and the second target state is a no-request inactive state and its service bearing state is member inactive.
[0106] Further, in one embodiment, if the target event is a signal failure event, the first target state is a signal failure state and its service bearing state is member inactive, and the second target state is a no-request inactive state and its service bearing state is member inactive.
[0107] Further, in one embodiment, if the target event is a lock activation control instruction event, the first target state is a lock activation state and its service bearing state is member activation, and the second target state is a no request state and its service bearing state is member activation.
[0108] Further, in one embodiment, if the target event is a lock inactivation control instruction event, the first target state is a lock inactivation state and its service bearing state is member inactivation, and the second target state is a no-request inactivation state and its service bearing state is member inactivation.
[0109] Further, in one embodiment, if the target event is a waiting recovery time timeout event, the first target state is waiting for recovery and its service bearing state is member inactive, and the second target state is no request inactive state and its service bearing state is member inactive.
[0110] Further, in one embodiment, if the target event is a manual activation event, the first target state is a manual activation state and its service bearer state is member activation, and the second target state is a no request state and its service bearer state is member activation.
[0111] Further, in one embodiment, if the target event is a manual deactivation event, the first target state is a manual deactivation state and its service bearer state is member deactivation, and the second target state is a no-request deactivation state and its service bearer state is member deactivation.
[0112] Among them, the functional implementation of each module in the above-mentioned LAG protection switching control device corresponds to the various steps in the above-mentioned LAG protection switching control method embodiment, and its functions and implementation processes are no longer repeated here.
[0113] In a third aspect, an embodiment of the present application also provides another LAG protection switching control method.
[0114] In one embodiment, referring to Fig.10 , Fig.10 The flowchart of the second embodiment of the LAG protection switching control method of the present application is shown in FIG. 1 , wherein the members in the LAG communicate via the 802.3ad standard protocol, and the method is applied to the LAG in the non-load mode, such as Fig.10 As shown, the LAG protection switching control method includes:
[0115] Step N10: When a target event occurs in the main member of this end, a third target state corresponding to the target event is determined from the preset second protection state migration table, wherein the second protection state migration table is used to describe the migration relationship between the event request and the state in the non-load mode, and each state has a request signal corresponding to it. The target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout event, a manual activation event, and a manual deactivation event.
[0116] For example, in this embodiment, in order to provide a protection method for LAG supporting signal degradation SD and control commands based on 802.3ad in non-load mode, a protection state machine for LAG supporting SD and control commands in non-load mode is designed. It should be understood that in non-load mode, LAG has only two members, active and standby, so in this embodiment, Working is used to represent the active member, and Protection is used to represent the standby member, and only one of them can be in an activated state while the other is in an inactive state.
[0117] First, the LAG request signal and its priority are designed to obtain the LAG request signal and its priority as shown in Table 1. Secondly, the state field of the LAG protection state machine in the non-load mode is designed based on the request signal to obtain the State design table shown in Table 5; it can be understood that each state has a corresponding request signal.
[0118] Table 5 State design table
[0119]
[0120]
[0121] Among them, No Request corresponding to state A means no request, referred to as NR for short, and its communication service bearing state is Working Actve / Protection Inactive, which specifically means that the active member is in an active state, that is, in a state of carrying communication services, and the standby member is in an inactive state, that is, in a state of not carrying communication services; Lockout of Active corresponding to state B means locked activation, referred to as LO Active for short, and its communication service bearing state is Working Actve / Protection Inactive, which specifically means that the active member is in an active state, that is, in a state of carrying communication services, and the standby member is in an inactive state, that is, in a state of not carrying communication services, and at this time, regardless of whether the path is faulty, the state is maintained, and the state is exited only when a Clear control command is received; Lockout of Inactive corresponding to state C means locked inactive, referred to as LO Inactive, and its communication service bearing state is Working Inactive / Protection Actve, which specifically means that the active member is in an inactive state, and the standby member is in an active state, and at this time, regardless of whether the path is faulty, the state is maintained, and the state is exited only when a Clear or Lockout of Active lock activation control command is received.
[0122] The Working Signal Fail corresponding to the D state indicates that the signal of the active member fails, abbreviated as SF-W, and its service bearing state is Working Inactive / Protection Actve, which specifically indicates that the active member is in an inactive state, while the standby member is in an active state; the Protection Signal Fail corresponding to the E state indicates that the signal of the standby member fails, abbreviated as SF-P, and its service bearing state is Working Actve / Protection Inactive, which specifically indicates that the active member is in an active state, while the standby member is in an inactive state; the Working Signal Degrade corresponding to the F state indicates that the signal of the active member is degraded, abbreviated as SD-W, and its service bearing state is Working Inactive / Protection Actve, which specifically indicates that the active member is in an inactive state, while the standby member is in an active state; the Protection Signal Degrade corresponding to the G state indicates that the signal of the standby member is degraded, abbreviated as SD-P, and its service bearing state is Working Actve / Protection Inactive, which specifically indicates that the active member is in an active state, while the standby member is in an inactive state.
[0123] The Wait To Restore corresponding to the H state means waiting for recovery, referred to as WTR, and its service bearing state is Working Inactive / Protection Actve, which specifically means that the active member is in an inactive state, while the standby member is in an active state; Manual Active corresponding to the I state means manual activation, referred to as Man Active, and its communication service bearing state is Working Actve / Protection Inactive, which specifically means that the active member is in an active state, while the standby member is in an inactive state, and if a higher priority request signal is encountered, such as the active SF or SD, the state will be exited; Manual Inactive corresponding to the J state means manual inactivation, referred to as Man Inactive, and its service bearing state is Working Inactive / Protection Actve, which specifically means that the active member is in an inactive state, while the standby member is in an active state; No Request Inactive corresponding to the K state means no request inactivation, referred to as NR-Inactive, and its service bearing state is Working Inactive / Protection Inactive. Actve specifically indicates that both ends are normal, that is, the local end has not issued a control command or the primary and backup paths are not faulty. Due to the request signal sent by the other end, the active member is in the inactive state and the backup member is in the active state.
[0124] Next, the Event of the LAG protection state machine in the non-load mode is designed. In this embodiment, the Event design of the LAG protection state machine is still preferably divided into two categories: (1) Local Request: an event request occurring in the local LAG; (2) Far-end request: an event request occurring in the far-end LAG is received to obtain a local request event table as shown in Table 6 and a far-end request event table as shown in Table 7.
[0125] Table 6 Local request event table
[0126]
[0127] Table 7 Peer request event table
[0128]
[0129] It can be understood that the protection state machine Event stored in Table 6 and Table 7 represents the current event, and the explanation principle of each event is similar; for example, the Lockout of Active corresponding to the a column in Table 6 indicates that the event occurring at this end is that the active member receives a lock activation control command, and then jumps to the State B lock activation state, and it can be seen that the State state and the Event event are both displayed as Lockout of Active; for another example, the Lockout of Inactive corresponding to the b column in Table 6 indicates that the event occurring at this end is that the active member receives a lock inactivation control command, and then jumps to the State C lock inactivation state; wherein, Working Recover from SF corresponding to the d event indicates that the active member at this end recovers from signal failure to no alarm; Protection Recover from SF corresponding to the f event indicates that the standby member at this end recovers from signal failure to no alarm; Working Recover from SD corresponding to the h event indicates that the active member at this end recovers from signal degradation to no alarm; Protection Recover from SD corresponding to the j event indicates that the standby member at this end recovers from signal degradation to no alarm.
[0130] Finally, based on the LAG request signal and its priority, the state field of the LAG protection state machine in the non-load mode, and the design of the Event event, the design of the LAG protection state machine state transition table is implemented to obtain the following Fig.11 The LAG protection state machine state transition table corresponding to the local request event in the non-load mode shown in FIG. Fig.12 The LAG protection state machine state transition table corresponding to the peer request event in the non-load mode shown; it should be noted that, Fig.11 and Fig.12 "N / A" in the request means that the event will not occur or will be ignored if it occurs; "O" means that the request is overridden by the existing condition because it has the same or lower priority than the existing request. It should be understood that Fig.11 and Fig.12 The corresponding LAG protection state machine state migration table constitutes the second protection state migration table of this embodiment, that is, the second protection state migration table includes the LAG protection state machine state migration table corresponding to the local request event in the non-load mode and the LAG protection state machine state migration table corresponding to the opposite end request event in the non-load mode, which describes the migration relationship between the event request and the state in the non-load mode.
[0131] In this embodiment, after completing the design of the second protection state transition table in the non-load mode, the state switching of members between the local end and the opposite end can be realized based on the second protection state transition table to realize the control of LAG protection switching. It should be noted that the main member of this end refers to the member of the local end that has a target event such as a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout end event, a manual activation event, or a manual deactivation event; specifically, when a target event occurs to the main member of this end, a third target state for controlling the state of the members of this end is determined from the LAG protection state machine state transition table corresponding to the request event of this end in the non-load mode based on the target event. For example, assuming that the main member of this end is currently in the NR corresponding to the A state and the target event is the signal degradation event of the main member (i.e., the SD on Working corresponding to the g event), then through Fig.11 It can be determined that when event g occurs in the active member at this end, it needs to switch from state A to state F, that is, the state of the active member at this end needs to be migrated from A to F, so the third target state is state F.
[0132] Step N20: Control the active member at the local end to be in the third target state and control the activation states of the target member at the local end and the standby member at the local end based on the third target state.
[0133] Exemplarily, in this embodiment, after the third target state is determined, the state migration and activation state update of the local member can be controlled based on the third target state. For example, the third target state is the F state, and since the service bearing state of the F state is Working Inactive / Protection Actve, that is, the active member does not bear the communication service but the standby member bears the communication service, therefore, when controlling the state migration of the local active member from the A state to the F state, the activation state of the local active member needs to be updated to inactive, and the activation state of the local standby member needs to be updated to active, so that the local active member does not bear the communication service, but the standby member bears the communication service.
[0134] Step N30: Determine the fourth target state from the second protection state migration table according to the request signal of the third target state, control the opposite active member to be in the fourth target state, and control the activation state of the opposite active member and the opposite standby member based on the fourth target state to realize LAG protection switching.
[0135] Exemplarily, in this embodiment, while the state migration and activation state control are performed on the local active member and the local standby member according to the third target state, a request signal corresponding to the third target state is also sent to the opposite active member communicating with the local active member, so as to obtain the activation state from the local active member through the request signal. Fig.12In the non-load mode shown, the fourth target state for controlling the state of the opposite end's main member is determined in the LAG protection state machine state transition table corresponding to the opposite end's request event, and based on the fourth target state, the state migration of the opposite end's main member and the activation state of the opposite end's main member and the opposite end's standby member are controlled to be updated, thereby automatically realizing the LAG protection switching of different scenario events under the 802.3ad standard protocol.
[0136] For example, assuming that the third target state is F state and the peer active member is currently in A state, since the request signal corresponding to F state is 1000, the request signal received by the peer active member changes from 0001 in A state to 1000; therefore, the request signal 1000 can be used to Fig.12 It is determined that event g has occurred in the opposite active member, and it needs to switch from state A to state K (i.e., inactive state without request), that is, the state of the opposite active member needs to be migrated from A to K, so the fourth target state is state K. Since the service bearing state of state K is Working Inactive / Protection Actve, that is, the active member is in a state of not bearing communication services and the standby member is in a state of bearing communication services, when controlling the state of the opposite active member to migrate from state A to state K, the activation state of the opposite active member needs to be updated to inactive and the activation state of the opposite standby member needs to be updated to activated, so that the opposite active member does not bear communication services, and the communication services are carried by the opposite standby member.
[0137] It can be seen that this embodiment, on the basis of continuing the 802.3ad standard, extends and proposes the name design, request signal type definition and priority definition of LAG supporting signal degradation and control commands, so that when events such as signal degradation, signal failure, and sending of control commands occur during the communication process of LAG members through the 802.3ad standard protocol, the state switching of local members and opposite-end members can be realized and the activation state of local members and opposite-end members can be updated through the migration relationship between event requests and states stored in the pre-designed protection state migration table in the non-load mode, thereby realizing LAG protection switching corresponding to events such as signal degradation, signal failure, and sending of control commands under the 802.3ad standard protocol, so as to meet the needs of operators and solve the problem of low operation and maintenance efficiency caused by the fact that no operation and maintenance means such as LAG protection control commands are defined in the prior art in the 802.3ad standard.
[0138] Further, in one embodiment, if the target event is a signal degradation event, the third target state is a signal degradation state of the active member, and its service carrying state is that the active member is inactivated and the backup member is activated, and the fourth target state is a no-request inactivated state, and its service carrying state is that the active member is inactivated and the backup member is activated.
[0139] For example, see Fig.13 As shown in FIG. 1 , it is assumed that network device NE1 is deployed in LAG1 and NE2 is deployed in LAG2, and member 1 is the active member and member 2 is the standby member. Under normal circumstances, communication services are only transmitted through the active member. When the LAG non-load mode has a switching demand for SD failure, that is, the active member of LAG1 (i.e., the active member of the local end) senses SD, that is, the active member of LAG1 has a signal degradation event g (i.e., the target event), then according to Fig.14 As shown, the State of the active member of LAG1 is controlled to jump from A to F (i.e., the active member signal degradation state, i.e., the third target state); since the service bearing state corresponding to the F state is that the active member is inactive and the standby member is active, it is necessary to control the active member of LAG1 to be inactive and the standby member to be active, then the request signal sent by the active member of LAG1 to the active member of LAG2 (i.e., the active member of the opposite end) will change from 0001 to 1000.
[0140] The request signal received by the active member of LAG2 will change from 0001 to 1000. Fig.15 As shown, the State of the active member of LAG2 needs to be controlled to jump from A to K (i.e., the unrequested inactive state, i.e., the fourth target state); and since the service bearing state corresponding to the K state is that the active member is inactive and the standby member is active, the active member of LAG2 needs to be controlled to be inactive and the standby member is active, then the request signal sent by the active member of LAG2 to the active member of LAG1 will change from 0001 to 0010. At this point, the active members in LAG1 and LAG2 are both in the deactivated state, which enables the communication service to be transmitted on the standby member, thereby realizing the protection switching of SD fault in LAG non-load mode.
[0141] Further, in one embodiment, if the target event is a lock activation control instruction event, the third target state is a lock activation state, and its service carrying state is that the primary member is activated and the backup member is not activated, and the fourth target state is a no request state, and its service carrying state is that the primary member is activated and the backup member is not activated.
[0142] For example, see Fig.16As shown in the figure, assuming that NE1 is deployed in LAG1 and NE2 is deployed in LAG2, and member 1 is the active member and member 2 is the standby member, under normal circumstances, communication services only go through the active member; when the LACP protocol corresponding to the active member of LAG1 flickers back and forth between the normal and fault states, and the possible cause of the flickering is link packet loss or LACP protocol, etc.; in order to further investigate the cause of the fault, a lock activation control command is issued to the active member of LAG1, that is, the active member of LAG1 has a lock activation control command event a, then according to Fig.17 As shown, the State of the active member of LAG1 is controlled to jump from A to B (i.e., locked activation state); since the service bearing state corresponding to the B state is that the active member is activated and the standby member is not activated, the active member of LAG1 needs to be controlled to remain in the activated state, while the standby member of LAG1 is in the inactivated state, and at this time, no matter SF or SD is encountered, the active member of LAG1 remains activated and the standby member remains inactivated; at the same time, the request signal sent by the active member of LAG1 to the active member of LAG2 will change from 0001 to 1111.
[0143] The request signal received by the active member of LAG2 changes from 0001 to 1111. Fig.18 As shown, the State of the active member of LAG2 needs to be controlled to jump from A to A; and since the service bearing state corresponding to the A state is that the active member is activated and the standby member is inactivated, the active member of LAG2 needs to be controlled to remain in an activated state and the standby member in an inactivated state. At this time, regardless of SF or SD, the active member of LAG2 remains activated and the standby member remains inactivated. So far, bidirectional services continue to be transmitted only on the active member. If service packet loss occurs at this time, it means that the link packet loss causes the LACP protocol to flicker back and forth; however, if there is no service packet loss, it means that the link is normal, but the flickering is caused by the LACP protocol itself, which facilitates accurate positioning in the next step and effectively improves the efficiency of troubleshooting.
[0144] For the scenario of issuing a lock activation control command, in addition to issuing a lock activation control command to the primary member of LAG1, a lock activation control command can also be issued to the primary member of LAG1 and the primary member of LAG2 at the same time, so that the State of the primary members at both ends jumps from A to B, and then the primary members at both ends are in an activated state, while the standby members at both ends are in an inactivated state, and the sending request signals of both parties are changed from 0001 to 1111. At this time, two-way services can also be transmitted only on the primary members.
[0145] Further, in one embodiment, if the target event is a locked inactivated control instruction event, the third target state is a locked inactivated state, and its service carrying state is that the primary member is inactivated and the backup member is activated, and the fourth target state is a no-request inactivated state, and its service carrying state is that the primary member is inactivated and the backup member is activated.
[0146] For example, in this embodiment, it is assumed that network device NE1 is deployed in LAG1, NE2 is deployed in LAG2, and member 1 is the active member and member 2 is the standby member. Under normal circumstances, communication services are only transmitted through the active member. If the active member of LAG1 encounters a problem that requires the replacement of an optical module or optical fiber, in order to reduce service damage, a lock-inactivation control command may be issued to the active member of LAG1, that is, a lock-inactivation event b occurs to the active member of LAG1. At this time, according to Fig.11 From the state transition table of the LAG protection state machine corresponding to the request event on the local side shown, it can be seen that the State of the main member of LAG1 needs to be controlled to jump from A to C (i.e., locked inactive state); since the service bearing state corresponding to the C state is that the main member is inactive and the backup member is activated, the main member of LAG1 needs to be controlled to be inactive and the backup member to be activated, and the request signal sent by the main member of LAG1 to the main member of LAG2 will change from 0001 to 1110.
[0147] At this time, the request signal received by the active member of LAG2 changes from 0001 to 1110, so the State of the active member of LAG2 needs to be controlled to jump from A to K; because the service bearing state corresponding to the K state is that the active member is inactive and the standby member is active, the active member of LAG2 needs to be controlled to be inactive, while the standby member of LAG2 is in active, and the request signal sent by the active member of LAG2 to the active member of LAG1 changes from 0001 to 1110, after which operations such as replacement of optical modules or optical fibers can be performed without affecting communication services; after the operation is completed After the process is completed, if you want to restore the original state, send a clear control command to the active member of LAG1 to make the State of the active member of LAG1 jump from C to A, that is, the active member of LAG1 is activated again, and the standby member of LAG1 is inactive again, and the request signal it sends changes from 1110 to 0001; and the request signal received by the active member of LAG2 changes back to 0001, and its State also jumps back from K to A, that is, the active member of LAG2 is activated again, and the standby member of LAG2 is inactive again.
[0148] For the scenario of issuing a lock-inactivate control command, in addition to issuing a lock-inactivate control command to the primary member of LAG1, a lock-inactivate control command can also be issued to the primary member of LAG1 and the primary member of LAG2 at the same time, so that the State of the primary members at both ends jumps from A to C, and then the primary members at both ends are in an inactivated state, while the standby members at both ends are in an activated state, and the sending request signals of both parties are changed from 0001 to 1110. At this time, the normal replacement operation can be completed without affecting the communication service; after the operation is completed, the clear control command is issued again, and at this time the State of the primary members at both ends will jump from C to A again, so that the primary members at both ends are in an activated state again, and the standby members at both ends are in an inactivated state again.
[0149] Further, in one embodiment, if the target event is a signal failure event, the third target state is a signal failure state of the active member, its service carrying state is that the active member is inactivated and the backup member is activated, and the fourth target state is a no-request inactivated state, its service carrying state is that the active member is inactivated and the backup member is activated.
[0150] For example, in this embodiment, it is assumed that network device NE1 is deployed in LAG1, NE2 is deployed in LAG2, and member 1 is the active member and member 2 is the standby member. Under normal circumstances, communication services are only transmitted through the active member. If the active member of LAG1 encounters a fault such as the construction optical fiber being cut, the active member of LAG1 will detect the fault, that is, the active member 1 of LAG1 has a signal failure event c. At this time, according to Fig.11 From the state transition table of the LAG protection state machine corresponding to the request event on the local side shown, it can be seen that the State of the main member of LAG1 needs to be controlled to jump from A to D (that is, the main member signal failure state); since the service bearing state corresponding to the D state is that the main member is inactive and the backup member is activated, the main member of LAG1 needs to be controlled to be inactive and the backup member to be activated, and the request signal sent by the main member of LAG1 to the main member of LAG2 will change from 0001 to 1010.
[0151] At this time, the request signal received by the active member of LAG2 will change from 0001 to 1010, so the State of the active member of LAG2 needs to be controlled to jump from A to K; since the service bearing state corresponding to the K state is that the active member is inactive and the standby member is active, the active member of LAG2 needs to be controlled to be inactive and the standby member is active, and the request signal sent by the active member of LAG2 to the active member of LAG1 will change from 0001 to 1010. So far, the active members in LAG1 and LAG2 are in the deactivated state, while the standby members in LAG1 and LAG2 are in the activated state, so that the communication service is transmitted on the standby member, thereby realizing the protection switching of SF failure in LAG non-load mode.
[0152] In the SF fault scenario, in addition to the active member of LAG1 being able to detect the fault, the active members of LAG1 and LAG2 may also detect the fault. In this case, the State of the active members at both ends can be controlled to jump from A to D, so that the active members at both ends are in an inactive state and the standby members at both ends are in an active state, so that the standby members are responsible for carrying communication, thereby ensuring normal communication.
[0153] Further, in one embodiment, if the target event is an event in which the waiting recovery time times out, the third target state is a waiting recovery state, in which the service carrying state is that the primary member is inactivated and the backup member is activated, and the fourth target state is a no-request inactivated state, in which the service carrying state is that the primary member is inactivated and the backup member is activated.
[0154] Exemplarily, in this embodiment, it is assumed that network equipment NE1 is deployed in LAG1, NE2 is deployed in LAG2, and member 1 is the active member and member 2 is the standby member. Under normal circumstances, communication services only pass through the active member; after the cause of the SF fault is found out and the optical fiber has been repaired, the active member of LAG1 will detect that the SF fault has been restored. At this time, the State of the active member of LAG1 will jump from D to H (i.e., waiting for recovery), that is, the active member of LAG1 enters the waiting for recovery state (for example, waiting for 5 minutes); because the service bearing state corresponding to the H state is that the active member is inactive and the standby member is activated, it is necessary to control the active member of LAG1 in the waiting for recovery state to remain in an inactive state and the standby member to be in an activated state, and the request signal sent by the active member of LAG1 to the active member of LAG2 will change from 1010 to 0110. The request signal received by the active member of LAG2 will also change from 1010 to 0110, so the State of the active member of LAG2 needs to be controlled to jump from K to K, that is, the state of the active member of LAG2 remains unchanged. Since the service bearer state corresponding to the K state is that the active member is inactive and the standby member is active, the active member of LAG2 needs to be controlled to remain inactive, while the standby member of LAG2 needs to remain active.
[0155] When the waiting recovery time is over, the State of the active member of LAG1 will jump from H to A again, so that the active member of LAG1 is newly in the activated state and the standby member is in the inactivated state again, and the request signal sent by the active member of LAG1 changes from 0110 to 0001 again; and the request signal received by the active member of LAG2 changes back to 0001, and its State also jumps back from K to A, that is, the active member of LAG2 is also in the activated state again, and the standby member of LAG2 is also in the inactivated state again.
[0156] For the waiting recovery scenario. In addition to the active member of LAG1 being able to detect that the fault has been recovered, the active members of LAG1 and LAG2 may also detect that the fault has been recovered. In this case, the State of the active members at both ends can be controlled to jump from D to H, that is, the active members at both ends enter the waiting recovery state, so that the active members at both ends in the waiting recovery state are in an inactive state, and the backup members at both ends are in an active state; after the waiting recovery time is over, the State of the active members at both ends is controlled to jump from H to A again, so that the active members at both ends are in an activated state again, and the backup members at both ends are in an inactive state again.
[0157] Further, in one embodiment, if the target event is a manual activation event, the third target state is a manual activation state, and its service carrying state is that the primary member is activated and the backup member is not activated, and the fourth target state is a no-request state, and its service carrying state is that the primary member is activated and the backup member is not activated.
[0158] Exemplarily, in this embodiment, it is assumed that network device NE1 is deployed in LAG1, NE2 is deployed in LAG2, and member 1 is the active member and member 2 is the standby member. Under normal circumstances, communication services are only transmitted through the active member. If the active member of LAG1 needs to be deactivated during the day to assist in emergency positioning, etc., but since the daytime is the peak communication period, in order to avoid the sudden interruption and sudden recovery of the link signal, it is also necessary to give priority to guaranteeing communication, that is, triggering the normal protection switching and recovery process, at this time, a manual deactivation control command can be issued to the active member of LAG1, that is, the active member of LAG1 has an artificial deactivation event m, at this time according to Fig.11 From the state transition table of the LAG protection state machine corresponding to the request event on the local side shown, it can be seen that the State of the main member 1 of LAG1 needs to be controlled to jump from A to J (i.e., manually deactivated state); since the service bearing state corresponding to the J state is that the main member is deactivated and the backup member is activated, the main member of LAG1 needs to be controlled to be in an inactivated state and the backup member to be in an activated state to assist in emergency positioning, and the request signal sent by the main member of LAG1 to the main member of LAG2 will change from 0001 to 0100.
[0159] At this time, the request signal received by the active member of LAG2 changes from 0001 to 0100, so the State of the active member of LAG2 needs to be controlled to jump from A to K. Since the service bearer state corresponding to the K state is that the active member is inactive and the standby member is active, the active member of LAG2 needs to be controlled to be inactive, while the standby member of LAG2 is in active, and the request signal sent by the active member of LAG2 to the active member of LAG1 will change from 0001 to 0100. After the positioning is completed, a clear control command can be issued to the master member of LAG1 to make the State of the master member of LAG1 jump from J to A again, that is, the master member of LAG1 is activated again and the standby member is inactive again, and the request signal sent by the master member of LAG1 to the master member of LAG2 changes from 0100 to 0001; the request signal received by the master member of LAG2 changes back to 0001, and its State also jumps back from K to A, that is, the master member of LAG2 is activated again, and the standby member of LAG2 is inactive again.
[0160] In the scenario where a manual deactivation control command is issued, in addition to issuing a manual deactivation control command to the active member of LAG1, a manual deactivation control command can also be issued to the active member of LAG1 and the active member of LAG2 at the same time, so that the state of the active members at both ends jumps from A to J, and then the active members at both ends are in an inactive state, while the standby members at both ends are in an active state, to assist in emergency positioning. When the positioning is completed, a clear control command is issued again, and at this time the state of the active members at both ends will jump from J to A again, so that the active members at both ends are in an activated state again, and the standby members at both ends are in an inactive state again.
[0161] Further, in one embodiment, if the target event is a manual deactivation event, the third target state is a manual deactivation state, and its service carrying state is that the primary member is deactivated and the backup member is activated, and the fourth target state is a no-request deactivation state, and its service carrying state is that the primary member is deactivated and the backup member is activated.
[0162] For example, in this embodiment, it is assumed that network device NE1 is deployed in LAG1, NE2 is deployed in LAG2, and member 1 is the active member and member 2 is the standby member. Under normal circumstances, communication services are only transmitted through the active member. After the active member of LAG1 and the active member of LAG2 are in an inactive state due to a manual inactivation control command, if the positioning is completed at this time, a manual activation control command can also be issued to the active member of LAG1, that is, the active member of LAG1 has an artificial activation event 1. At this time, according to Fig.11 From the state transition table of the LAG protection state machine corresponding to the request event on the local side shown, it can be seen that the State of the z main member of LAG1 can be controlled to jump from J to I (i.e., the manually activated state). Since the service bearing state corresponding to the I state is that the main member is activated and the backup member is not activated, it is necessary to control the main member of LAG1 to be in the activated state again and the backup member to be in the inactivated state again, and the request signal sent by the main member of LAG1 to the main member of LAG2 will change from 0100 to 0101.
[0163] At this time, the request signal received by the active member of LAG2 will also change from 0100 to 0101, and the State of the active member of LAG2 needs to be controlled to jump from K to A. Since the service bearer state corresponding to the A state is that the active member is activated and the standby member is inactivated, the active member of LAG2 needs to be controlled to be in the activated state and the standby member to be in the inactivated state.
[0164] For the scenario of issuing manual activation control commands, in addition to issuing manual activation control commands to the primary member of LAG1, manual activation control commands can also be issued to the primary member of LAG1 and the primary member of LAG2 at the same time, so that the State of the primary members at both ends jumps from J to I, thereby making the primary members at both ends re-activated and the standby members at both ends re-inactivated.
[0165] In summary, this embodiment combines the characteristics of the 802.3ad standard to extend the LACP protocol, implements the control command name design, request signal type definition and priority definition, and proposes a LAG protection state machine migration table that is compatible with load mode and non-load mode. It not only meets the needs of SD, SF and control commands to trigger LAG protection switching, but also solves the deficiency of the 802.3ad standard that does not support control commands, and has the potential for standardization.
[0166] In a fourth aspect, an embodiment of the present application further provides another LAG protection switching control device.
[0167] In one embodiment, members in the LAG communicate via the 802.3ad standard protocol, the LAG protection switching control device is applied to the LAG in a non-load mode, and the LAG protection switching control device includes: a state determination module and a state control module;
[0168] The state determination module is used to determine a third target state corresponding to the target event from a preset second protection state transition table when a target event occurs to the main member of the local end, the second protection state transition table is used to describe the transition relationship between the event request and the state in the non-load mode, each state has a request signal corresponding to it, and the target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout end event, a manual activation event, and a manual deactivation event;
[0169] The state control module is used to control the active member of the local end to be in the third target state and control the activation state of the target member of the local end and the standby member of the local end based on the third target state;
[0170] The state determination module is also used to determine the fourth target state from the second protection state migration table according to the request signal of the third target state, and the state control module is also used to control the opposite end main member to be in the fourth target state and control the activation state of the opposite end main member and the opposite end backup member based on the fourth target state to realize LAG protection switching.
[0171] Further, in one embodiment, if the target event is a signal degradation event, the third target state is a signal degradation state of the active member, and its service carrying state is that the active member is inactivated and the backup member is activated, and the fourth target state is a no-request inactivated state, and its service carrying state is that the active member is inactivated and the backup member is activated.
[0172] Further, in one embodiment, if the target event is a signal failure event, the third target state is a signal failure state of the active member, its service carrying state is that the active member is inactivated and the backup member is activated, and the fourth target state is a no-request inactivated state, its service carrying state is that the active member is inactivated and the backup member is activated.
[0173] Further, in one embodiment, if the target event is a lock activation control instruction event, the third target state is a lock activation state, and its service carrying state is that the primary member is activated and the backup member is not activated, and the fourth target state is a no request state, and its service carrying state is that the primary member is activated and the backup member is not activated.
[0174] Further, in one embodiment, if the target event is a locked inactivated control instruction event, the third target state is a locked inactivated state, and its service carrying state is that the primary member is inactivated and the backup member is activated, and the fourth target state is a no-request inactivated state, and its service carrying state is that the primary member is inactivated and the backup member is activated.
[0175] Further, in one embodiment, if the target event is an event in which the waiting recovery time times out, the third target state is a waiting recovery state, in which the service carrying state is that the primary member is inactivated and the backup member is activated, and the fourth target state is a no-request inactivated state, in which the service carrying state is that the primary member is inactivated and the backup member is activated.
[0176] Further, in one embodiment, if the target event is a manual activation event, the third target state is a manual activation state, and its service carrying state is that the primary member is activated and the backup member is not activated, and the fourth target state is a no-request state, and its service carrying state is that the primary member is activated and the backup member is not activated.
[0177] Further, in one embodiment, if the target event is a manual deactivation event, the third target state is a manual deactivation state, and its service carrying state is that the primary member is deactivated and the backup member is activated, and the fourth target state is a no-request deactivation state, and its service carrying state is that the primary member is deactivated and the backup member is activated.
[0178] Among them, the functional implementation of each module in the above-mentioned LAG protection switching control device corresponds to the various steps in the above-mentioned LAG protection switching control method embodiment, and its functions and implementation processes are no longer repeated here.
[0179] In a fifth aspect, an embodiment of the present application provides a LAG protection switching control device, which may be a device having a data processing function, such as a personal computer (PC), a laptop computer, or a server.
[0180] Reference Fig.19 , Fig.19 Schematic diagram of the hardware structure of the LAG protection switching control device involved in the embodiment of the present application. In the embodiment of the present application, the LAG protection switching control device may include a processor, a memory, a communication interface and a communication bus.
[0181] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.
[0182] The communication interface includes input / output (I / O) interface, physical interface and logical interface, etc., which are used to realize the interconnection of devices inside the LAG protection switching control device, and the interface used to realize the interconnection between the LAG protection switching control device and other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber interface, an ATM interface, etc.; the user device can be a display (Display), a keyboard (Keyboard), etc.
[0183] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0184] The processor may be a general-purpose processor, and the general-purpose processor may call the LAG protection switching control program stored in the memory and execute the LAG protection switching control method provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the LAG protection switching control program is called may refer to the various embodiments of the LAG protection switching control method of the present application, and will not be described in detail here.
[0185] Those skilled in the art will understand that Fig.19 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0186] In a sixth aspect, an embodiment of the present application also provides a computer-readable storage medium.
[0187] The readable storage medium of the present application stores a LAG protection switching control program, wherein when the LAG protection switching control program is executed by a processor, the steps of the above-mentioned LAG protection switching control method are implemented.
[0188] Among them, the method implemented when the LAG protection switching control program is executed can refer to the various embodiments of the LAG protection switching control method of the present application, and will not be repeated here.
[0189] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0190] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0191] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0192] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0193] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0194] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0195] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A LAG protection switching control method, characterized in that: The members in the LAG communicate with each other through the 802.3ad standard protocol. The method is applied to the LAG in load mode and includes the following steps: When a target event occurs to the target member at the local end, a first target state corresponding to the target event is determined from a preset first protection state transition table, wherein the first protection state transition table is used to describe the transition relationship between the event request and the state under the load mode, and each state has a request signal corresponding to it, and the target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout end event, a manual activation event, and a manual deactivation event; Controlling the local target member to be in a first target state and controlling the activation state of the local target member based on the first target state; The second target state is determined from the first protection state transition table according to the request signal of the first target state, and the opposite target member is controlled to be in the second target state and the activation state of the opposite target member is controlled based on the second target state to realize LAG protection switching.
2. The LAG protection switching control method according to claim 1, characterized in that: If the target event is a signal degradation event, the first target state is a signal degradation state and its service bearer state is member inactive, and the second target state is a no-request inactive state and its service bearer state is member inactive.
3. The LAG protection switching control method according to claim 1, characterized in that: If the target event is a signal failure event, the first target state is a signal failure state and its service bearer state is member inactive, and the second target state is a no-request inactive state and its service bearer state is member inactive.
4. The LAG protection switching control method according to claim 1, characterized in that: If the target event is a lock activation control instruction event, the first target state is a lock activation state and its service bearer state is member activation, and the second target state is a no request state and its service bearer state is member activation.
5. The LAG protection switching control method according to claim 1, characterized in that: If the target event is a lock inactivation control instruction event, the first target state is a lock inactivation state and its service bearer state is member inactivation, and the second target state is a no request inactivation state and its service bearer state is member inactivation.
6. The LAG protection switching control method according to claim 1, characterized in that: If the target event is a waiting recovery timeout event, the first target state is waiting for recovery and its service bearer state is member inactive, and the second target state is no request inactive state and its service bearer state is member inactive.
7. The LAG protection switching control method according to claim 1, characterized in that: If the target event is a manual activation event, the first target state is a manual activation state and its service bearer state is member activation, and the second target state is a no request state and its service bearer state is member activation.
8. The LAG protection switching control method according to claim 1, characterized in that: If the target event is a manual deactivation event, the first target state is a manual deactivation state and its service bearer state is member deactivation, and the second target state is a no-request deactivation state and its service bearer state is member deactivation.
9. A LAG protection switching control device, characterized in that: The members in the LAG communicate via the 802.3ad standard protocol, and the device is applied to the LAG in load mode, including: a state determination module and a state control module; The state determination module is used to determine a first target state corresponding to the target event from a preset first protection state transition table when a target event occurs to the target member of the local end, wherein the first protection state transition table is used to describe the transition relationship between the event request and the state under the load mode, and each state has a request signal corresponding to it, and the target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout end event, a manual activation event, and a manual deactivation event; The state control module is used to control the local target member to be in a first target state and control the activation state of the local target member based on the first target state; The state determination module is also used to determine the second target state from the first protection state migration table according to the request signal of the first target state, and the state control module is also used to control the opposite target member to be in the second target state and control the activation state of the opposite target member based on the second target state to realize LAG protection switching.
10. A LAG protection switching control method, characterized in that: The members in the LAG communicate with each other through the 802.3ad standard protocol. The method is applied to the LAG in the non-load mode and includes the following steps: When a target event occurs to the active member of the local end, a third target state corresponding to the target event is determined from a preset second protection state transition table, wherein the second protection state transition table is used to describe the transition relationship between the event request and the state in the non-load mode, and each state has a request signal corresponding to it, and the target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout end event, a manual activation event, and a manual deactivation event; Controlling the active member of the local end to be in a third target state and controlling the activation state of the target member of the local end and the standby member of the local end based on the third target state; According to the request signal of the third target state, the fourth target state is determined from the second protection state migration table, and the opposite active member is controlled to be in the fourth target state and the activation state of the opposite active member and the opposite standby member is controlled based on the fourth target state to realize LAG protection switching.
11. The LAG protection switching control method according to claim 10, characterized in that: If the target event is a signal degradation event, the third target state is a signal degradation state of the active member, and its service bearing state is that the active member is inactivated and the standby member is activated; the fourth target state is a no-request inactivated state, and its service bearing state is that the active member is inactivated and the standby member is activated.
12. The LAG protection switching control method according to claim 10, characterized in that: If the target event is a signal failure event, the third target state is a signal failure state of the active member, its service bearing state is that the active member is inactivated and the backup member is activated, and the fourth target state is a no-request inactivated state, its service bearing state is that the active member is inactivated and the backup member is activated.
13. The LAG protection switching control method according to claim 10, characterized in that: If the target event is a lock activation control instruction event, the third target state is a lock activation state, and its service bearing state is that the primary member is activated and the backup member is not activated; the fourth target state is a no request state, and its service bearing state is that the primary member is activated and the backup member is not activated.
14. The LAG protection switching control method according to claim 10, characterized in that: If the target event is a locked inactivated control instruction event, the third target state is a locked inactivated state, and its service bearing state is that the active member is inactivated and the standby member is activated; the fourth target state is a no-request inactivated state, and its service bearing state is that the active member is inactivated and the standby member is activated.
15. The LAG protection switching control method according to claim 10, characterized in that: If the target event is an event in which the waiting recovery time has timed out, the third target state is a waiting recovery state, in which the service carrying state is that the active member is inactive and the standby member is activated, and the fourth target state is a no-request inactive state, in which the service carrying state is that the active member is inactive and the standby member is activated.
16. The LAG protection switching control method according to claim 10, characterized in that: If the target event is a manual activation event, the third target state is a manual activation state, and its service bearing state is that the primary member is activated and the backup member is not activated; the fourth target state is a no-request state, and its service bearing state is that the primary member is activated and the backup member is not activated.
17. The LAG protection switching control method according to claim 10, characterized in that: If the target event is a manual deactivation event, the third target state is a manual deactivation state, and its service bearing state is that the active member is deactivated and the standby member is activated; the fourth target state is a no-request deactivation state, and its service bearing state is that the active member is deactivated and the standby member is activated.
18. A LAG protection switching control device, characterized in that: The members in the LAG communicate via the 802.3ad standard protocol, and the device is applied to the LAG in the non-load mode, and includes: a state determination module and a state control module; The state determination module is used to determine a third target state corresponding to the target event from a preset second protection state transition table when a target event occurs to the main member of the local end, the second protection state transition table is used to describe the transition relationship between the event request and the state in the non-load mode, each state has a request signal corresponding to it, and the target event is any one of a signal degradation event, a signal failure event, a lock activation control instruction event, a lock deactivation control instruction event, a wait recovery time timeout end event, a manual activation event, and a manual deactivation event; The state control module is used to control the active member of the local end to be in the third target state and control the activation state of the target member of the local end and the standby member of the local end based on the third target state; The state determination module is also used to determine the fourth target state from the second protection state migration table according to the request signal of the third target state, and the state control module is also used to control the opposite end main member to be in the fourth target state and control the activation state of the opposite end main member and the opposite end backup member based on the fourth target state to realize LAG protection switching.
19. A LAG protection switching control device, characterized in that: The LAG protection switching control device includes a processor, a memory, and a LAG protection switching control program stored in the memory and executable by the processor, wherein when the LAG protection switching control program is executed by the processor, the steps of the LAG protection switching control method according to any one of claims 1 to 8 and 10 to 17 are implemented.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a LAG protection switching control program, wherein when the LAG protection switching control program is executed by the processor, the steps of the LAG protection switching control method according to any one of claims 1 to 8 and 10 to 17 are implemented.
Citation Information
Patent Citations
State transition method and network node device
CN101394261A
Processing method and device of APS (automatic protection switching) state machine
CN102355414A
Method and means for state transition of Ethernet linear protection switching
CN102474429A
Status switching method and system based on Ethernet linear protection switching
CN103580932A
Automatic protection switching APS state processing method, device and APS node
CN105227339A
