CN117201391A - Switch MLAG scene routing method, device, equipment and storage medium - Google Patents

Switch MLAG scene routing method, device, equipment and storage medium Download PDF

Info

Publication number
CN117201391A
CN117201391A CN202311289989.8A CN202311289989A CN117201391A CN 117201391 A CN117201391 A CN 117201391A CN 202311289989 A CN202311289989 A CN 202311289989A CN 117201391 A CN117201391 A CN 117201391A
Authority
CN
China
Prior art keywords
lag1
port
mlag
switch
ports
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311289989.8A
Other languages
Chinese (zh)
Inventor
周丹
张小虎
肖杉
舒涵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202311289989.8A priority Critical patent/CN117201391A/en
Publication of CN117201391A publication Critical patent/CN117201391A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a switch MLAG scene routing method, a device, equipment and a storage medium, wherein the method obtains port states of all ports in a group member LAG1 of a multi-box link aggregation group MLAG through a control plane by thread polling, and judges whether all ports in the LAG1 have faults according to the port states; when all ports fail, dynamically adding PEER-LINK port members into the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2; when the LAG1 fault is recovered, the ports in the LAG2 are removed from the LAG1 through the forwarding plane, and the non-unicast packet isolation tables of the LAG1 and the LAG2 are updated, so that protocol switching time can be saved, the switching time is irrelevant to the number of the switched ARPs or the number of the switched MACs, the implementation process is simple, the hardware consumption is saved, and the speed and the efficiency of the MLAG scene routing of the switch are improved.

Description

Switch MLAG scene routing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communication device switch chip forwarding technologies, and in particular, to a method, an apparatus, a device, and a storage medium for selecting a path in an MLAG scene of a switch.
Background
With the rapid development of cloud computing, big data, AI and other services, the flow of the interconnection of the data centers is rapidly increased, the bandwidth capacity of a single optical fiber is continuously increased, and higher requirements are provided for network protection switching time.
The Multi-chassis link aggregation group (Multi-Chassis Link Aggregation Group, MLAG) is to aggregate a server with two other devices in a cross-device link, as if the server and one device establish a link aggregation relationship, so as to improve the link reliability from a single board level to a device level.
When Link Aggregation (LAG) of MLAG member equipment is in fault, the flow from network side return equipment needs to be rerouted to Peer-Link, wherein the Peer-Link is a direct connection Aggregation Link between two pieces of equipment for deploying MLAG and is used for exchanging protocol messages and transmitting partial flow so as to ensure the normal work of MLAG; for chips without LAG-level protection pipelining and insufficient next-hop entries, configuration of an exit of each address resolution protocol (Address Resolution Protocol, ARP) and media access control sublayer (Medium Access Control, MAC) to protect the next hop is not done, at this time, switching is initiated by the protocol, the switching time is long, and the switching time and ARP, the MAC entries linearly increase, and when the protection switching hardware resources are insufficient, the switching function cannot be implemented, and the data forwarding cost is increased.
Disclosure of Invention
The invention mainly aims to provide a switch MLAG scene routing method, device, equipment and storage medium, which aim to solve the technical problems that in the prior art, protocol switching time is long, switching time and ARP, MAC items linearly increase, and data forwarding cost is increased.
In a first aspect, the present invention provides a switch MLAG scene routing method, where the switch MLAG scene routing method includes the following steps:
the control plane obtains port states of all ports in a group member LAG1 of a multi-chassis link aggregation group MLAG through thread polling, and judges whether all ports in the LAG1 have faults according to the port states;
when all ports fail, dynamically adding PEER-LINK port members into the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2;
and when the LAG1 fault is recovered, removing the port in the LAG2 from the LAG1 through a forwarding plane, and updating non-unicast packet isolation tables of the LAG1 and the LAG 2.
Optionally, the control plane obtains port states of all ports in a group member LAG1 of the multi-chassis link aggregation group MLAG through thread polling, and determines whether all ports in the LAG1 have faults according to the port states, including:
The control plane obtains PORT1 PORT states of PORT1 in group member LAG1 of the multi-chassis link aggregation group MLAG through threads;
reporting to the control plane when the PORT1 PORT state is a fault, and judging whether ARP FAST SWITCH is enabled or not;
when ARP FAST SWITCH is enabled, judging whether the failed port is the last port of the LAG 1;
when the failed PORT is the last PORT of the LAG1, or the PORT1 PORT state is no failure, or ARP FAST SWITCH is not enabled, utilizing a thread to poll the PORT states of all PORTs in the MLAG;
and when the fault port is the last port of the LAG1, reporting the fault port.
Optionally, when all ports fail, dynamically adding a PEER-LINK port member to the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG2, including:
when all ports have faults, judging whether member dynamic STATUS2 of the ports in the PEER-LINK port member LAG2 is DOWN;
when the member dynamic STATUS2 is DOWN, the port states of all ports in the LAG1 are obtained again, and whether all ports have faults or not is judged;
And when the member dynamic STATUS2 is UP, dynamically adding a PORT2 in the LAG2 into the LAG1, simultaneously removing a fault PORT from the LAG1, and reconfiguring a non-unicast packet isolation table of the LAG 2.
Optionally, when the member dynamic STATUS2 is UP, dynamically adding a PORT2 in the LAG2 to the LAG1, and simultaneously removing a failed PORT from the LAG1, and reconfiguring a non-unicast packet isolation table of the LAG2, including:
when the member dynamic STATUS2 is UP, dynamically adding a PORT2 in the LAG2 into the LAG 1;
the members in the LAG1 are set to be in a non-forwarding state, the current forwarding path is updated to be the PEER-LINK port through the drive, and meanwhile, a fault port is removed from the LAG 1;
and simultaneously adding PORT1 of the LAG1 into the MLAG and PEER-LINK PORTs, switching the flow to the PEER-LINK PORTs, and configuring a non-unicast packet isolation table of the LAG 2.
Optionally, the removing, by the forwarding plane, the port in the LAG2 from the LAG1 when the LAG1 fails to recover, and updating the non-unicast packet isolation tables of the LAG1 and the LAG2, includes:
accepting the announcement of the control plane when the LAG1 fault is recovered;
When the dynamic STATUS1 advertised as a member of the LAG1 is UP, removing a PORT2 in the LAG2 from the LAG1 through a forwarding plane, and switching traffic to the LAG1;
and configuring non-unicast packet isolation tables of the LAG1 and the LAG2, updating non-unicast packet isolation functions of the LAG1 and the LAG2, updating ARP and MAC tables by a protocol, and directing to exit the LAG1.
Optionally, the control plane obtains port states of all ports in a group member LAG1 of the multi-chassis link aggregation group MLAG through thread polling, and before judging whether all ports in the LAG1 fail according to the port states, the switch MLAG scene routing method further includes:
configuring PEER-LINK port LAG2 and member dynamic STATUS2 for a group member LAG1 of the MLAG, and configuring member dynamic STATUS1 for the group member LAG1 of the MLAG to obtain configuration information;
enabling an address resolution protocol fast switch to ENABLE ARP FAST SWITCH ENABLE, and storing the configuration information through a driver;
the control plane receives fault feedback information of a aggregation port reported by the forwarding plane, and announces that the member state 1 of the LAG1 is DOWN;
and updating an outlet of an address resolution protocol ARP through the control plane to be PEER-LINK port member LAG2.
Optionally, after the updating, by the control plane, that the exit of the address resolution protocol ARP is a PEER-LINK port member LAG2, the method for selecting a scene by the switch MLAG further includes:
setting default forwarding paths of ARP and MAC as LAG1, and setting backup forwarding paths of ARP and MAC as PEER-LINK port.
In a second aspect, to achieve the above object, the present invention further provides a switch MLAG scene routing device, where the switch MLAG scene routing device includes:
the port fault judging module is used for obtaining port states of all ports in a group member LAG1 of the multi-machine box link aggregation group MLAG through thread polling by the control plane, and judging whether all ports in the LAG1 have faults according to the port states;
the dynamic configuration module is used for dynamically adding PEER-LINK port members into the LAG1 through driving when all ports have faults, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2;
and the isolation table updating module is used for removing the port in the LAG2 from the LAG1 through a forwarding plane when the LAG1 fails to recover, and updating the non-unicast packet isolation tables of the LAG1 and the LAG 2.
In order to achieve the above object, the present invention further provides a switch MLAG scene routing device, where the switch MLAG scene routing device includes: a memory, a processor, and a switch MLAG scene routing program stored on the memory and executable on the processor, the switch MLAG scene routing program configured to implement the steps of the switch MLAG scene routing method as described above.
In a fourth aspect, to achieve the above object, the present invention also proposes a storage medium having stored thereon a switch MLAG scene routing program which, when executed by a processor, implements the steps of the switch MLAG scene routing method as described above.
According to the switch MLAG scene routing method, port states of all ports in a group member LAG1 of a multi-box link aggregation group MLAG are obtained through a control plane through thread polling, and whether all ports in the LAG1 have faults or not is judged according to the port states; when all ports fail, dynamically adding PEER-LINK port members into the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2; when the LAG1 is in fault recovery, the ports in the LAG2 are removed from the LAG1 through a forwarding plane, and the non-unicast packet isolation tables of the LAG1 and the LAG2 are updated, so that protocol switching time can be effectively saved, the switching time is irrelevant to the number of switched ARPs or MACs, the implementation process is simple, chip hardware consumption is saved, the method is suitable for application scenes without port level or LAG level protection switching functions or with insufficient protection switching hardware resources, the accuracy of switch MLAG scene routing is improved, and the speed and efficiency of switch MLAG scene routing are improved.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart of a first embodiment of a switch MLAG scene routing method according to the present invention;
fig. 3 is a flowchart of a second embodiment of a switch MLAG scene routing method according to the present invention;
fig. 4 is a schematic flow chart of a third embodiment of a method for selecting a path in an MLAG scene of a switch according to the present invention;
fig. 5 is a flowchart of a fourth embodiment of a switch MLAG scene routing method according to the present invention;
fig. 6 is a flowchart of a fifth embodiment of a switch MLAG scene routing method according to the present invention;
fig. 7 is a flowchart of a sixth embodiment of a switch MLAG scene routing method according to the present invention;
fig. 8 is a functional block diagram of a first embodiment of the MLAG scene routing apparatus of the switch of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The solution of the embodiment of the invention mainly comprises the following steps: obtaining port states of all ports in a group member LAG1 of a multi-cabinet link aggregation group MLAG through a control plane by thread polling, and judging whether all ports in the LAG1 have faults according to the port states; when all ports fail, dynamically adding PEER-LINK port members into the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2; when the LAG1 fault is recovered, the ports in the LAG2 are removed from the LAG1 through a forwarding plane, a non-unicast packet isolation table of the LAG1 and the LAG2 is updated, protocol switching time can be effectively saved, the switching time is irrelevant to the number of switched ARPs or MACs, the implementation process is simple, chip hardware consumption is saved, the method is suitable for application scenes without port level or LAG level protection switching functions or insufficient protection switching hardware resources, the accuracy of switch MLAG scene routing is improved, the speed and efficiency of switch MLAG scene routing are improved, the technical problems that the protocol switching time is long, the switching time and ARPs and MAC items linearly grow, and the data forwarding cost is increased are solved.
Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., wi-Fi interface). The Memory 1005 may be a high-speed RAM Memory or a stable Memory (Non-Volatile Memory), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the apparatus structure shown in fig. 1 is not limiting of the apparatus and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating device, a network communication module, a user interface module, and a switch MLAG scene routing program may be included in a memory 1005 as one storage medium.
The apparatus of the present invention calls the switch MLAG scene routing program stored in the memory 1005 through the processor 1001, and performs the following operations:
the control plane obtains port states of all ports in a group member LAG1 of a multi-chassis link aggregation group MLAG through thread polling, and judges whether all ports in the LAG1 have faults according to the port states;
when all ports fail, dynamically adding PEER-LINK port members into the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2;
and when the LAG1 fault is recovered, removing the port in the LAG2 from the LAG1 through a forwarding plane, and updating non-unicast packet isolation tables of the LAG1 and the LAG 2.
The device of the present invention calls the switch MLAG scene routing program stored in the memory 1005 through the processor 1001, and also performs the following operations:
the control plane obtains PORT1 PORT states of PORT1 in group member LAG1 of the multi-chassis link aggregation group MLAG through threads;
reporting to the control plane when the PORT1 PORT state is a fault, and judging whether ARP FAST SWITCH is enabled or not;
when ARP FAST SWITCH is enabled, judging whether the failed port is the last port of the LAG 1;
When the failed PORT is the last PORT of the LAG1, or the PORT1 PORT state is no failure, or ARP FAST SWITCH is not enabled, utilizing a thread to poll the PORT states of all PORTs in the MLAG;
and when the fault port is the last port of the LAG1, reporting the fault port.
The device of the present invention calls the switch MLAG scene routing program stored in the memory 1005 through the processor 1001, and also performs the following operations:
when all ports have faults, judging whether member dynamic STATUS2 of the ports in the PEER-LINK port member LAG2 is DOWN;
when the member dynamic STATUS2 is DOWN, the port states of all ports in the LAG1 are obtained again, and whether all ports have faults or not is judged;
and when the member dynamic STATUS2 is UP, dynamically adding a PORT2 in the LAG2 into the LAG1, simultaneously removing a fault PORT from the LAG1, and reconfiguring a non-unicast packet isolation table of the LAG 2.
The device of the present invention calls the switch MLAG scene routing program stored in the memory 1005 through the processor 1001, and also performs the following operations:
when the member dynamic STATUS2 is UP, dynamically adding a PORT2 in the LAG2 into the LAG 1;
The members in the LAG1 are set to be in a non-forwarding state, the current forwarding path is updated to be the PEER-LINK port through the drive, and meanwhile, a fault port is removed from the LAG1;
and simultaneously adding PORT1 of the LAG1 into the MLAG and PEER-LINK PORTs, switching the flow to the PEER-LINK PORTs, and configuring a non-unicast packet isolation table of the LAG 2.
The device of the present invention calls the switch MLAG scene routing program stored in the memory 1005 through the processor 1001, and also performs the following operations:
accepting the announcement of the control plane when the LAG1 fault is recovered;
when the dynamic STATUS1 advertised as a member of the LAG1 is UP, removing a PORT2 in the LAG2 from the LAG1 through a forwarding plane, and switching traffic to the LAG1;
and configuring non-unicast packet isolation tables of the LAG1 and the LAG2, updating non-unicast packet isolation functions of the LAG1 and the LAG2, updating ARP and MAC tables by a protocol, and directing to exit the LAG1.
The device of the present invention calls the switch MLAG scene routing program stored in the memory 1005 through the processor 1001, and also performs the following operations:
configuring PEER-LINK port LAG2 and member dynamic STATUS2 for a group member LAG1 of the MLAG, and configuring member dynamic STATUS1 for the group member LAG1 of the MLAG to obtain configuration information;
Enabling an address resolution protocol fast switch to ENABLE ARP FAST SWITCH ENABLE, and storing the configuration information through a driver;
the control plane receives fault feedback information of a aggregation port reported by the forwarding plane, and announces that the member state 1 of the LAG1 is DOWN;
and updating an outlet of an address resolution protocol ARP through the control plane to be PEER-LINK port member LAG2.
The device of the present invention calls the switch MLAG scene routing program stored in the memory 1005 through the processor 1001, and also performs the following operations:
setting default forwarding paths of ARP and MAC as LAG1, and setting backup forwarding paths of ARP and MAC as PEER-LINK port.
According to the scheme, the port states of all ports in the group member LAG1 of the multi-cabinet link aggregation group MLAG are obtained through the control plane through thread polling, and whether all ports in the LAG1 have faults or not is judged according to the port states; when all ports fail, dynamically adding PEER-LINK port members into the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2; when the LAG1 is in fault recovery, the ports in the LAG2 are removed from the LAG1 through a forwarding plane, and the non-unicast packet isolation tables of the LAG1 and the LAG2 are updated, so that protocol switching time can be effectively saved, the switching time is irrelevant to the number of switched ARPs or MACs, the implementation process is simple, chip hardware consumption is saved, the method is suitable for application scenes without port level or LAG level protection switching functions or with insufficient protection switching hardware resources, the accuracy of switch MLAG scene routing is improved, and the speed and efficiency of switch MLAG scene routing are improved.
Based on the above hardware structure, the embodiment of the switch MLAG scene routing method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a switch MLAG scene routing method according to the present invention.
In a first embodiment, the switch MLAG scene routing method includes the steps of:
and step S10, the control plane obtains port states of all ports in a group member LAG1 of the multi-cabinet link aggregation group MLAG through thread polling, and judges whether all ports in the LAG1 have faults according to the port states.
It should be noted that, in the Multi-chassis link aggregation group (Multi-Chassis Link Aggregation Group, MLAG) scenario, the traffic active switching path may be performed through the forwarding plane, and first, the port states of all ports in the group member LAG1 of the Multi-chassis link aggregation group MLAG may be obtained through thread polling by the control plane, and then, whether all ports in the LAG1 have faults may be determined through the port states.
And step S20, when all ports fail, dynamically adding PEER-LINK port members into the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2.
It can be understood that when all ports of the member LAG1 of the MLAG fail, before the driver reports the failed ports to the control plane, the driver actively adds the saved member of the PEER-LINK port to the LAG1 dynamically, and the non-unicast packet isolation table of the member LAG2 of the PEER-LINK port can be reconfigured, that is, after the member LAG1 of the MLAG fails, the flows of ARP and MAC can be rapidly switched to the PEER-LINK port.
And step S30, when the LAG1 is recovered from faults, removing the ports in the LAG2 from the LAG1 through a forwarding plane, and updating the non-unicast packet isolation tables of the LAG1 and the LAG 2.
It should be appreciated that, when the LAG1 fails to recover, the member ports in the PEER-LINK may be actively added to the LAG1 through the forwarding plane, while the last failed port in the LAG1 is dynamically removed from the LAG1, i.e., the ports in the LAG2 are removed from the LAG1 through the forwarding plane, so as to update the non-unicast packet isolation tables of the LAG1 and the LAG 2.
In the specific implementation, on a chip without LAG-level protection running water and insufficient next hop entries, the LAG-level protection can be simulated and realized by dynamically modifying the member ports of the MLAG member LAGs, and the rapid switching of high-capacity ARP and MAC flows is realized, wherein the switching time is irrelevant to ARP and MAC capacities.
According to the scheme, the port states of all ports in the group member LAG1 of the multi-cabinet link aggregation group MLAG are obtained through the control plane through thread polling, and whether all ports in the LAG1 have faults or not is judged according to the port states; when all ports fail, dynamically adding PEER-LINK port members into the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2; when the LAG1 is in fault recovery, the ports in the LAG2 are removed from the LAG1 through a forwarding plane, and the non-unicast packet isolation tables of the LAG1 and the LAG2 are updated, so that protocol switching time can be effectively saved, the switching time is irrelevant to the number of switched ARPs or MACs, the implementation process is simple, chip hardware consumption is saved, the method is suitable for application scenes without port level or LAG level protection switching functions or with insufficient protection switching hardware resources, the accuracy of switch MLAG scene routing is improved, and the speed and efficiency of switch MLAG scene routing are improved.
Further, fig. 3 is a flow chart of a second embodiment of the switch MLAG scene routing method according to the present invention, as shown in fig. 3, the second embodiment of the switch MLAG scene routing method according to the present invention is proposed based on the first embodiment, in this embodiment, the step S10 specifically includes the following steps:
In step S11, the control plane obtains PORT1 PORT states of PORTs PORT1 in the group member LAG1 of the multi-chassis link aggregation group MLAG through threads.
It should be noted that, the member PORT of LAG1 is PORT1, and the control plane obtains the PORT1 PORT state of PORT1 in the group member LAG1 of the multi-chassis link aggregation group MLAG through the thread.
And step S12, when the PORT1 PORT state is a fault, reporting the fault to the control plane, and judging whether ARP FAST SWITCH is enabled or not.
It can be appreciated that when a fault occurs, that is, when the PORT1 PORT status is faulty, the control plane is reported, and whether the ARP fast switching function is enabled is further determined.
And step S13, judging whether the fault port is the last port of the LAG1 when ARP FAST SWITCH is enabled.
It should be appreciated that when ARP FAST SWITCH is enabled, it may be further determined whether the failed PORT1 is the last PORT of LAG 1.
In step S14, when the failed PORT is the last PORT of the LAG1, or when the PORT1 PORT status is no failure, or ARP FAST SWITCH is not enabled, the PORT status of all PORTs in the MLAG is polled by a thread.
It can be understood that, when the failed PORT is the last PORT of the LAG1, the step S11 may be returned to acquire the PORT1 PORT state of the PORT1 in the LAG1 again, and determine whether the PORT1 fails; correspondingly, when the PORT1 PORT state is that no fault exists, returning to the step S11, re-acquiring the PORT1 PORT state of the PORT1 in the LAG1, and judging whether the PORT1 has the fault or not; accordingly, ARP FAST SWITCH returns to step S11 when not enabled, re-acquires PORT1 PORT status of PORT1 in LAG1, and determines whether PORT1 has failed.
And step S15, reporting the fault port when the fault port is the last port of the LAG 1.
It should be understood that when the failed port is the last port of LAG1, the failed port may be reported, and if the failed port is not the last port of LAG1, only the failed port is reported, and the process returns to step S11.
According to the scheme, the PORT1 PORT state of the PORT1 in the group member LAG1 of the multi-chassis link aggregation group MLAG is obtained through threads by the control plane; reporting to the control plane when the PORT1 PORT state is a fault, and judging whether ARP FAST SWITCH is enabled or not; when ARP FAST SWITCH is enabled, judging whether the failed port is the last port of the LAG 1; when the failed PORT is the last PORT of the LAG1, or the PORT1 PORT state is no failure, or ARP FAST SWITCH is not enabled, utilizing a thread to poll the PORT states of all PORTs in the MLAG; when the fault port is the last port of the LAG1, reporting the fault port, and rapidly judging whether all ports in the LAG1 have faults, so that the accuracy of the switch MLAG scene routing is improved, and the speed and the efficiency of the switch MLAG scene routing are improved.
Further, fig. 4 is a flow chart of a third embodiment of the switch MLAG scene routing method according to the present invention, as shown in fig. 4, the third embodiment of the switch MLAG scene routing method according to the present invention is proposed based on the first embodiment, and in this embodiment, the step S20 specifically includes the following steps:
and S21, judging whether the member dynamic STATUS2 of the port in the PEER-LINK port member LAG2 is DOWN or not when all ports are in fault.
It should be noted that, when all ports fail, the member dynamic STATUS2 of the port in the member LAG2 of the PEER-LINK port is further obtained, so as to determine whether the member dynamic STATUS2 is DOWN, and after the failed port of the LAG1 is reported to the control plane, the protocol updates the traffic outlet to be the PEER-LINK port LAG2, so that no packet is lost in the process.
And step S22, when the member dynamic STATUS2 is DOWN, the port states of all ports in the LAG1 are obtained again, and whether all ports have faults is judged.
It can be understood that, when the member dynamic STATUS2 is DOWN, the process returns to step S11, and the PORT1 PORT state of the PORT1 in LAG1 is re-acquired, and whether the PORT1 fails is determined.
Step S23, when the member dynamic STATUS2 is UP, dynamically adding a PORT PORT2 in the LAG2 into the LAG1, removing a fault PORT from the LAG1, and reconfiguring a non-unicast packet isolation table of the LAG 2.
It can be understood that when the member dynamic STATUS2 is UP, the member of the failed PORT2 in the LAG2 can be dynamically added into the LAG1, and meanwhile, the failed PORT2 is removed from the LAG1, so as to ensure that the traffic is rapidly switched to the PEER-LINK PORT, reconfigure the non-unicast packet BLOCK table of the LAG2, namely, the non-unicast packet isolation table, and ensure the normal forwarding of the non-unicast packet.
According to the scheme, when all ports are in fault, whether the member dynamic STATUS2 of the port in the PEER-LINK port member LAG2 is DOWN is judged; when the member dynamic STATUS2 is DOWN, the port states of all ports in the LAG1 are obtained again, and whether all ports have faults or not is judged; when the member dynamic STATUS2 is UP, dynamically adding a PORT2 in the LAG2 into the LAG1, simultaneously removing a fault PORT from the LAG1, and reconfiguring a non-unicast packet isolation table of the PEER-LINK PORT member LAG 2; the non-unicast packet isolation table of the LAG2 can be reconfigured, protocol switching time is effectively saved, the switching time is irrelevant to the number of the switched ARPs or the number of the switched MACs, the implementation process is simple, the consumption of chip hardware is saved, and the accuracy of the MLAG scene routing of the switch is improved.
Further, fig. 5 is a flow chart of a fourth embodiment of the switch MLAG scene routing method according to the present invention, as shown in fig. 5, and the fourth embodiment of the switch MLAG scene routing method according to the present invention is proposed based on the third embodiment, in this embodiment, the step S23 specifically includes the following steps:
step S231, dynamically adding the PORT2 in the LAG2 to the LAG1 when the member dynamic STATUS2 is UP.
It should be noted that, when the member dynamic STATUS2 is UP, the PORT2 in the PEER-LINK member LAG2 may be dynamically added to the LAG 1.
And step 232, setting the members in the LAG1 to be in a non-forwarding state, updating the current forwarding path to be the PEER-LINK port through the drive, and simultaneously removing the fault port from the LAG 1.
It can be understood that the forwarding outlet for replacing ARP is driven to actively add the PEERLINK member PORT into the MLAG member LAG1, the PORT1 is set in a non-forwarding state from the members in the MLAG member LAG1 in advance, the forwarding path is driven to be updated through the DOWN state of the MLAG member PORT LAG1, the UP state of the PEERLINK member LAG2, and the forwarding paths of ARP and MAC are PEERLINK PORTs.
And step S233, adding PORT1 of the LAG1 into an MLAG and PEER-LINK PORT simultaneously, switching the flow to the PEER-LINK PORT, and configuring a non-unicast packet isolation table of the LAG 2.
It should be appreciated that PORT1 of the LAG1 is added to both the MLAG and the PEER-LINK PORTs, thereby configuring the non-unicast packet isolation table of the LAG 2.
According to the embodiment, through the scheme, when the member dynamic STATUS2 is UP, a PORT2 in the LAG2 is dynamically added into the LAG 1; the members in the LAG1 are set to be in a non-forwarding state, the current forwarding path is updated to be the PEER-LINK port through the drive, and meanwhile, a fault port is removed from the LAG 1; and the PORT PORT1 of the LAG1 is added into the MLAG and PEER-LINK PORTs at the same time, the traffic is switched to the PEER-LINK PORTs, and the non-unicast packet isolation table of the LAG2 is configured, so that the non-unicast packet isolation table of the LAG2 can be reconfigured, the protocol switching time is effectively saved, the switching time is irrelevant to the number of switched ARPs or MACs, the implementation process is simple, the consumption of chip hardware is saved, the accuracy of the MLAG scene routing of the switch is improved, and the speed and the efficiency of the MLAG scene routing of the switch are improved.
Further, fig. 6 is a flowchart of a fifth embodiment of the switch MLAG scene routing method according to the present invention, as shown in fig. 6, and the fifth embodiment of the switch MLAG scene routing method according to the present invention is proposed based on the first embodiment, in this embodiment, the step S30 specifically includes the following steps:
And step S31, when the LAG1 fault is recovered, the notification of the control plane is accepted.
Note that, when the LAG1 failure of the MLAG member recovers, the notification of the control plane feedback is accepted.
Step S32, when the member dynamic STATUS1 advertised as the LAG1 is UP, removing the PORT2 in the LAG2 from the LAG1 through the forwarding plane, and switching the traffic to the LAG1.
It will be appreciated that when the dynamic STATUS1 advertised as a member of the LAG1 is UP, the forwarding plane removes the port in the PEER-LINK port LAG2 from the LAG1, updates the non-unicast BLOCK tables of the LAG1 and LAG2, i.e., updates the non-unicast packet isolation tables of the LAG1 and LAG 2.
In a specific implementation, on a switch of a data center LEAF node, after multiple times of verification, the switching time of 48K ARP is switched from the previous protocol, the time is reduced to about 11S to 3.2MS, the requirement of a carrier level can be met, the switching time is irrelevant to the number of the switched ARP or MAC, the code implementation is simple, the chip hardware appearance is saved, and the method is suitable for application scenes without port level or LAG level protection switching functions or insufficient protection switching hardware resources.
Step S33, configuring non-unicast packet isolation tables of the LAG1 and the LAG2, updating non-unicast packet isolation functions of the LAG1 and the LAG2, updating ARP and MAC tables by a protocol, and directing to exit the LAG1.
It should be understood that the isolation tables of non-unicast packets of MLAG members LAG1 and PEERLINK LAG are configured, at this time, the same port PROT1 is added to both the MLAG1 member and PEERLINK ports, the isolation of non-unicast packets is configured, the non-unicast packet isolation functions of said LAG1 and said LAG2 are updated, the protocol slowly updates the ARP and MAC tables, and points to egress of said LAG1.
Through the scheme, the embodiment accepts the notification of the control plane when the LAG1 fault is recovered; when the dynamic STATUS1 advertised as a member of the LAG1 is UP, removing a PORT2 in the LAG2 from the LAG1 through a forwarding plane, and switching traffic to the LAG1; the non-unicast packet isolation tables of the LAG1 and the LAG2 are configured, the non-unicast packet isolation functions of the LAG1 and the LAG2 are updated, the protocol updates the ARP and the MAC table, and the protocol points to the exit of the LAG1, so that the protocol switching time can be effectively saved, the switching time is irrelevant to the number of the switched ARP or MAC, the implementation process is simple, the chip hardware consumption is saved, the method is suitable for application scenes without port level or LAG level protection switching functions or with insufficient protection switching hardware resources, the accuracy of switch MLAG scene routing is improved, and the speed and the efficiency of switch MLAG scene routing are improved.
Further, fig. 7 is a flowchart of a sixth embodiment of the switch MLAG scene routing method according to the present invention, as shown in fig. 7, and the sixth embodiment of the switch MLAG scene routing method according to the present invention is proposed based on the first embodiment, and in this embodiment, before the step S10, the switch MLAG scene routing method further includes the following steps:
step S01, configuring PEER-LINK port LAG2 and member dynamic STATUS2 for a group member LAG1 of the MLAG, and configuring member dynamic STATUS1 for the group member LAG1 of the MLAG to obtain configuration information.
It should be noted that, the PEER-LINK port is configured as LAG2 and the STATUS is STATUS2, the MLAG member port LAG1 is configured, and the STATUS is STATUS1, so as to obtain the corresponding configuration information.
And step S02, enabling an address resolution protocol fast switch to ENABLE ARP FAST SWITCH ENABLE, and storing the configuration information through driving.
It will be appreciated that enabling address resolution protocol fast switch ENABLEs ARP FAST SWITCH ENABLE, which in turn can save the configuration information through a driver.
Step S03, the control plane receives the fault feedback information of the aggregation port reported by the forwarding plane, and notifies the member state STATUS1 of the LAG1 to be DOWN.
It should be appreciated that STATUS1 is advertised as DOWN after configuration information is saved by the driver, accepting failure information reported by the forwarding plane.
In a specific implementation, the MLAG GROUP member ports LAG1 and LAG1 may be configured to be in an UP or DOWN state, and the PEER-LINK ports and PEER-LINK may be configured to be in an UP or DOWN state.
And step S04, updating an outlet of an address resolution protocol ARP through the control plane to be PEER-LINK port member LAG2.
It can be appreciated that the control plane updates the ARP exit to the PEER-LINK member port LAG2, and typically announces STATUS1 as UP after the MLAG greop member LAG1 fails back.
It should be understood that the control plane is responsible for configuring aggregation PORTs LAG1 and LAG2, wherein the member PORT1 of LAG1 and the member PORT of LAG2 are PORT2, receiving the failure information of the aggregation PORT reported by the forwarding plane, and changing the flow path at the same time; the forwarding plane is responsible for reporting fault information of the aggregation port member ports and switching service messages in advance, service traffic enters from the ports, is forwarded from the LAG1 when the LAG1 has no fault, and actively switches traffic forwarding paths when the LAG2 has fault, so that packet loss is reduced.
Further, after the step S04, the switch MLAG scene routing method further includes the following steps:
setting default forwarding paths of ARP and MAC as LAG1, and setting backup forwarding paths of ARP and MAC as PEER-LINK port.
It should be understood that before the driver acquires the port state by using the thread or interrupt, ARP and MAC may be configured to need to switch the port, and in cooperation with the LAG1 state UP of the MLAG1 member, the LAG2 state UP of the PEERLINK member is configured, the forwarding paths of the default ARP and MAC are the local LAG1 of the MLAG member, and the backup forwarding path is the PEERLINK port.
Through the scheme, the PEER-LINK port LAG2 and the member dynamic STATUS2 are configured for the group member LAG1 of the MLAG, and the member dynamic STATUS1 is configured for the group member LAG1 of the MLAG, so that configuration information is obtained; enabling an address resolution protocol fast switch to ENABLE ARP FAST SWITCH ENABLE, and storing the configuration information through a driver; the control plane receives fault feedback information of a aggregation port reported by the forwarding plane, and announces that the member state 1 of the LAG1 is DOWN; updating an outlet of an address resolution protocol ARP through the control plane to be PEER-LINK port member LAG2; the configuration before path switching can be carried out through the control plane, protocol switching time is effectively saved, the switching time is irrelevant to the number of switched ARPs or MACs, the implementation process is simple, and the speed and the efficiency of the switch MLAG scene routing are improved.
Correspondingly, the invention further provides a switch MLAG scene routing device.
Referring to fig. 8, fig. 8 is a functional block diagram of a first embodiment of a switch MLAG scene routing apparatus of the present invention.
In a first embodiment of the present invention, the switch MLAG scene routing device includes:
the port failure judging module 10 is configured to obtain port states of all ports in a group member LAG1 of the multi-chassis link aggregation group MLAG by using the control plane through thread polling, and judge whether all ports in the LAG1 have a failure according to the port states.
And the dynamic configuration module 20 is configured to dynamically add the PEER-LINK port member to the LAG1 through driving when all ports fail, and reconfigure the non-unicast packet isolation table of the PEER-LINK port member LAG 2.
And the isolation table updating module 30 is configured to, when the LAG1 fails to recover, remove the port in the LAG2 from the LAG1 through the forwarding plane, and update the non-unicast packet isolation tables of the LAG1 and the LAG 2.
The PORT failure judging module 10 is further configured to obtain, by using a control plane, a PORT1 PORT state of a PORT1 in a group member LAG1 of the multi-chassis link aggregation group MLAG through a thread; reporting to the control plane when the PORT1 PORT state is a fault, and judging whether ARP FAST SWITCH is enabled or not; when ARP FAST SWITCH is enabled, judging whether the failed port is the last port of the LAG 1; when the failed PORT is the last PORT of the LAG1, or the PORT1 PORT state is no failure, or ARP FAST SWITCH is not enabled, utilizing a thread to poll the PORT states of all PORTs in the MLAG; and when the fault port is the last port of the LAG1, reporting the fault port.
The dynamic configuration module 20 is further configured to determine whether a member dynamic STATUS2 of a port in the PEER-LINK port member LAG2 is DOWN when all ports fail; when the member dynamic STATUS2 is DOWN, the port states of all ports in the LAG1 are obtained again, and whether all ports have faults or not is judged; and when the member dynamic STATUS2 is UP, dynamically adding a PORT2 in the LAG2 into the LAG1, simultaneously removing a fault PORT from the LAG1, and reconfiguring a non-unicast packet isolation table of the LAG 2.
The dynamic configuration module 20 is further configured to dynamically add a PORT2 in the LAG2 to the LAG1 when the member dynamic STATUS2 is UP; the members in the LAG1 are set to be in a non-forwarding state, the current forwarding path is updated to be the PEER-LINK port through the drive, and meanwhile, a fault port is removed from the LAG1; and simultaneously adding PORT1 of the LAG1 into the MLAG and PEER-LINK PORTs, switching the flow to the PEER-LINK PORTs, and configuring a non-unicast packet isolation table of the LAG 2.
The isolation table updating module 30 is further configured to accept notification of the control plane when the LAG1 fails to recover; when the dynamic STATUS1 advertised as a member of the LAG1 is UP, removing a PORT2 in the LAG2 from the LAG1 through a forwarding plane, and switching traffic to the LAG1; and configuring non-unicast packet isolation tables of the LAG1 and the LAG2, updating non-unicast packet isolation functions of the LAG1 and the LAG2, updating ARP and MAC tables by a protocol, and directing to exit the LAG1.
The port failure judging module 10 is further configured to configure a PEER-LINK port LAG2 and a member dynamic STATUS2 for a group member LAG1 of the MLAG, and configure the member dynamic STATUS1 for the group member LAG1 of the MLAG to obtain configuration information; enabling an address resolution protocol fast switch to ENABLE ARP FAST SWITCH ENABLE, and storing the configuration information through a driver; the control plane receives fault feedback information of a aggregation port reported by the forwarding plane, and announces that the member state 1 of the LAG1 is DOWN; and updating an outlet of an address resolution protocol ARP through the control plane to be PEER-LINK port member LAG2.
The port failure judging module 10 is further configured to set default forwarding paths of ARP and MAC to LAG1, and set backup forwarding paths of ARP and MAC to PEER-LINK ports.
The steps of implementing each functional module of the switch MLAG scene routing device may refer to each embodiment of the switch MLAG scene routing method of the present invention, which is not described herein.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a switch MLAG scene routing program, and the switch MLAG scene routing program realizes the following operations when being executed by a processor:
The control plane obtains port states of all ports in a group member LAG1 of a multi-chassis link aggregation group MLAG through thread polling, and judges whether all ports in the LAG1 have faults according to the port states;
when all ports fail, dynamically adding PEER-LINK port members into the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2;
and when the LAG1 fault is recovered, removing the port in the LAG2 from the LAG1 through a forwarding plane, and updating non-unicast packet isolation tables of the LAG1 and the LAG 2.
Further, when the switch MLAG scene routing program is executed by the processor, the following operations are further implemented:
the control plane obtains PORT1 PORT states of PORT1 in group member LAG1 of the multi-chassis link aggregation group MLAG through threads;
reporting to the control plane when the PORT1 PORT state is a fault, and judging whether ARP FAST SWITCH is enabled or not;
when ARP FAST SWITCH is enabled, judging whether the failed port is the last port of the LAG 1;
when the failed PORT is the last PORT of the LAG1, or the PORT1 PORT state is no failure, or ARP FAST SWITCH is not enabled, utilizing a thread to poll the PORT states of all PORTs in the MLAG;
And when the fault port is the last port of the LAG1, reporting the fault port.
Further, when the switch MLAG scene routing program is executed by the processor, the following operations are further implemented:
when all ports have faults, judging whether member dynamic STATUS2 of the ports in the PEER-LINK port member LAG2 is DOWN;
when the member dynamic STATUS2 is DOWN, the port states of all ports in the LAG1 are obtained again, and whether all ports have faults or not is judged;
and when the member dynamic STATUS2 is UP, dynamically adding a PORT2 in the LAG2 into the LAG1, simultaneously removing a fault PORT from the LAG1, and reconfiguring a non-unicast packet isolation table of the LAG 2.
Further, when the switch MLAG scene routing program is executed by the processor, the following operations are further implemented:
when the member dynamic STATUS2 is UP, dynamically adding a PORT2 in the LAG2 into the LAG 1;
the members in the LAG1 are set to be in a non-forwarding state, the current forwarding path is updated to be the PEER-LINK port through the drive, and meanwhile, a fault port is removed from the LAG 1;
and simultaneously adding PORT1 of the LAG1 into the MLAG and PEER-LINK PORTs, switching the flow to the PEER-LINK PORTs, and configuring a non-unicast packet isolation table of the LAG 2.
Further, when the switch MLAG scene routing program is executed by the processor, the following operations are further implemented:
accepting the announcement of the control plane when the LAG1 fault is recovered;
when the dynamic STATUS1 advertised as a member of the LAG1 is UP, removing a PORT2 in the LAG2 from the LAG1 through a forwarding plane, and switching traffic to the LAG1;
and configuring non-unicast packet isolation tables of the LAG1 and the LAG2, updating non-unicast packet isolation functions of the LAG1 and the LAG2, updating ARP and MAC tables by a protocol, and directing to exit the LAG1.
Further, when the switch MLAG scene routing program is executed by the processor, the following operations are further implemented:
configuring PEER-LINK port LAG2 and member dynamic STATUS2 for a group member LAG1 of the MLAG, and configuring member dynamic STATUS1 for the group member LAG1 of the MLAG to obtain configuration information;
enabling an address resolution protocol fast switch to ENABLE ARP FAST SWITCH ENABLE, and storing the configuration information through a driver;
the control plane receives fault feedback information of a aggregation port reported by the forwarding plane, and announces that the member state 1 of the LAG1 is DOWN;
and updating an outlet of an address resolution protocol ARP through the control plane to be PEER-LINK port member LAG2.
Further, when the switch MLAG scene routing program is executed by the processor, the following operations are further implemented:
setting default forwarding paths of ARP and MAC as LAG1, and setting backup forwarding paths of ARP and MAC as PEER-LINK port.
According to the scheme, the port states of all ports in the group member LAG1 of the multi-cabinet link aggregation group MLAG are obtained through the control plane through thread polling, and whether all ports in the LAG1 have faults or not is judged according to the port states; when all ports fail, dynamically adding PEER-LINK port members into the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2; when the LAG1 is in fault recovery, the ports in the LAG2 are removed from the LAG1 through a forwarding plane, and the non-unicast packet isolation tables of the LAG1 and the LAG2 are updated, so that protocol switching time can be effectively saved, the switching time is irrelevant to the number of switched ARPs or MACs, the implementation process is simple, chip hardware consumption is saved, the method is suitable for application scenes without port level or LAG level protection switching functions or with insufficient protection switching hardware resources, the accuracy of switch MLAG scene routing is improved, and the speed and efficiency of switch MLAG scene routing are improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The switch MLAG scene routing method is characterized by comprising the following steps of:
The control plane obtains port states of all ports in a group member LAG1 of a multi-chassis link aggregation group MLAG through thread polling, and judges whether all ports in the LAG1 have faults according to the port states;
when all ports fail, dynamically adding PEER-LINK port members into the LAG1 through driving, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2;
and when the LAG1 fault is recovered, removing the port in the LAG2 from the LAG1 through a forwarding plane, and updating non-unicast packet isolation tables of the LAG1 and the LAG 2.
2. The method for selecting a switch MLAG scene according to claim 1, wherein the control plane obtains port states of all ports in a group member LAG1 of a multi-chassis link aggregation group MLAG by thread polling, and determines whether all ports in the LAG1 have a failure according to the port states, including:
the control plane obtains PORT1 PORT states of PORT1 in group member LAG1 of the multi-chassis link aggregation group MLAG through threads;
reporting to the control plane when the PORT1 PORT state is a fault, and judging whether ARP FAST SWITCH is enabled or not;
when ARP FAST SWITCH is enabled, judging whether the failed port is the last port of the LAG 1;
When the failed PORT is the last PORT of the LAG1, or the PORT1 PORT state is no failure, or ARP FAST SWITCH is not enabled, utilizing a thread to poll the PORT states of all PORTs in the MLAG;
and when the fault port is the last port of the LAG1, reporting the fault port.
3. The switch MLAG scene routing method of claim 1, wherein said reconfiguring a non-unicast packet isolation table of said PEER-LINK port member LAG2 by driving a dynamic addition of a PEER-LINK port member to said LAG1 when said all ports fail comprises:
when all ports have faults, judging whether member dynamic STATUS2 of the ports in the PEER-LINK port member LAG2 is DOWN;
when the member dynamic STATUS2 is DOWN, the port states of all ports in the LAG1 are obtained again, and whether all ports have faults or not is judged;
and when the member dynamic STATUS2 is UP, dynamically adding a PORT2 in the LAG2 into the LAG1, simultaneously removing a fault PORT from the LAG1, and reconfiguring a non-unicast packet isolation table of the LAG 2.
4. The switch MLAG scene routing method of claim 3, wherein said dynamically adding PORT2 in said LAG2 to said LAG1 while removing a failed PORT from said LAG1 when said member dynamic STATUS2 is UP, reconfiguring a non-unicast packet isolation table of said LAG2, comprises:
When the member dynamic STATUS2 is UP, dynamically adding a PORT2 in the LAG2 into the LAG1;
the members in the LAG1 are set to be in a non-forwarding state, the current forwarding path is updated to be the PEER-LINK port through the drive, and meanwhile, a fault port is removed from the LAG1;
and simultaneously adding PORT1 of the LAG1 into the MLAG and PEER-LINK PORTs, switching the flow to the PEER-LINK PORTs, and configuring a non-unicast packet isolation table of the LAG 2.
5. The switch MLAG scenario routing method of claim 1, wherein said updating non-unicast packet isolation tables of said LAG1 and said LAG2 upon said LAG1 failure recovery by removing ports in said LAG2 from said LAG1 through a forwarding plane comprises:
accepting the announcement of the control plane when the LAG1 fault is recovered;
when the dynamic STATUS1 advertised as a member of the LAG1 is UP, removing a PORT2 in the LAG2 from the LAG1 through a forwarding plane, and switching traffic to the LAG1;
and configuring non-unicast packet isolation tables of the LAG1 and the LAG2, updating non-unicast packet isolation functions of the LAG1 and the LAG2, updating ARP and MAC tables by a protocol, and directing to exit the LAG1.
6. The switch MLAG scene routing method of claim 1, wherein said control plane obtains port states of all ports in a group member LAG1 of a multi-chassis link aggregation group MLAG by thread polling, and before determining whether all ports in said LAG1 fail according to said port states, said switch MLAG scene routing method further comprises:
configuring PEER-LINK port LAG2 and member dynamic STATUS2 for a group member LAG1 of the MLAG, and configuring member dynamic STATUS1 for the group member LAG1 of the MLAG to obtain configuration information;
enabling an address resolution protocol fast switch to ENABLE ARP FAST SWITCH ENABLE, and storing the configuration information through a driver;
the control plane receives fault feedback information of a aggregation port reported by the forwarding plane, and announces that the member state 1 of the LAG1 is DOWN;
and updating an outlet of an address resolution protocol ARP through the control plane to be PEER-LINK port member LAG2.
7. The method for selecting a switch MLAG scene according to claim 6, wherein after said updating the exit of the address resolution protocol ARP by the control plane is the PEER-LINK port member LAG2, the method for selecting a switch MLAG scene further comprises:
Setting default forwarding paths of ARP and MAC as LAG1, and setting backup forwarding paths of ARP and MAC as PEER-LINK port.
8. A switch MLAG scene routing apparatus, said switch MLAG scene routing apparatus comprising:
the port fault judging module is used for obtaining port states of all ports in a group member LAG1 of the multi-machine box link aggregation group MLAG through thread polling by the control plane, and judging whether all ports in the LAG1 have faults according to the port states;
the dynamic configuration module is used for dynamically adding PEER-LINK port members into the LAG1 through driving when all ports have faults, and reconfiguring a non-unicast packet isolation table of the PEER-LINK port member LAG 2;
and the isolation table updating module is used for removing the port in the LAG2 from the LAG1 through a forwarding plane when the LAG1 fails to recover, and updating the non-unicast packet isolation tables of the LAG1 and the LAG 2.
9. A switch MLAG scene routing device, said switch MLAG scene routing device comprising: a memory, a processor, and a switch MLAG scene routing program stored on the memory and executable on the processor, the switch MLAG scene routing program configured to implement the steps of the switch MLAG scene routing method of any one of claims 1 to 7.
10. A storage medium, wherein a switch MLAG scene routing program is stored on the storage medium, which when executed by a processor, implements the steps of the switch MLAG scene routing method according to any one of claims 1 to 7.
CN202311289989.8A 2023-09-28 2023-09-28 Switch MLAG scene routing method, device, equipment and storage medium Pending CN117201391A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311289989.8A CN117201391A (en) 2023-09-28 2023-09-28 Switch MLAG scene routing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311289989.8A CN117201391A (en) 2023-09-28 2023-09-28 Switch MLAG scene routing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117201391A true CN117201391A (en) 2023-12-08

Family

ID=89001684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311289989.8A Pending CN117201391A (en) 2023-09-28 2023-09-28 Switch MLAG scene routing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117201391A (en)

Similar Documents

Publication Publication Date Title
CN107431642B (en) System and method for controlling a switch to capture and monitor network traffic
Wang et al. Virtual routers on the move: live router migration as a network-management primitive
US7715382B2 (en) Softrouter
US8396053B2 (en) Method and apparatus for VLAN-based selective path routing
US7463579B2 (en) Routed split multilink trunking
US7751329B2 (en) Providing an abstraction layer in a cluster switch that includes plural switches
US8134922B2 (en) Reducing flooding in a bridged network
CN101938370B9 (en) Redundant pseudowires for a border gateway protocol based virtual private local area network service multihoming environment
EP3316555B1 (en) Mac address synchronization method, device and system
US9008080B1 (en) Systems and methods for controlling switches to monitor network traffic
KR101691759B1 (en) Virtual chassis system control protocols
CN111901244A (en) Network message forwarding architecture
CN109412951B (en) Method and device for sending routing information
CN107911291A (en) VRRP routers switching method, router, VRRP active-standby switch system and storage medium
WO2013066604A1 (en) Control and provisioning in a data center network with at least one central controller
CN114531395B (en) Method, device and system for advertising processing capability of network device
CN113992569A (en) Multi-path service convergence method and device in SDN network and storage medium
CN108989204B (en) Link state determination method and device
US20240214243A1 (en) Designated forwarder df election method and device
CN113938405A (en) Data processing method and device
CN110391987B (en) Method, apparatus and computer readable medium for selecting a designated forwarder from a carrier edge device set
CN110380966B (en) Method for discovering forwarding path and related equipment thereof
US20120284274A1 (en) Method and device for service management
CN114157600A (en) Method, equipment and system for forwarding message
CN117201391A (en) Switch MLAG scene routing method, device, equipment and storage medium

Legal Events

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