CN112910734B - Method and system for switching link aggregation group - Google Patents
Method and system for switching link aggregation group Download PDFInfo
- Publication number
- CN112910734B CN112910734B CN202110128728.2A CN202110128728A CN112910734B CN 112910734 B CN112910734 B CN 112910734B CN 202110128728 A CN202110128728 A CN 202110128728A CN 112910734 B CN112910734 B CN 112910734B
- Authority
- CN
- China
- Prior art keywords
- link aggregation
- stacking system
- aggregation group
- sub
- link
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
- H04L45/245—Link aggregation, e.g. trunking
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Abstract
The application provides a method and a system for switching a link aggregation group. The method comprises the steps that when the stacking system is divided into a first sub-stacking system and a second sub-stacking system, the stacking system is connected with other equipment through a link aggregation group; the first sub-stacking system sends a first link aggregation group splitting message through aggregation member ports in the link aggregation group, wherein the aggregation member ports belong to all working states of the first sub-stacking system, so that ports of other equipment receiving the first link aggregation group splitting message are split into the same link aggregation group; the second sub-stacking system sends a second link aggregation group splitting message through aggregation member ports in the link aggregation group, wherein the aggregation member ports belong to the working states of the second sub-stacking system; so that the port of the other device receiving the second link aggregation group splitting message is split to the other link aggregation group.
Description
Technical Field
The present application relates to communications technologies, and in particular, to a method and a system for switching a link aggregation group.
Background
The stack is one of N: the virtualization technology is characterized in that multiple devices are connected together and virtualized into one device, so that hardware resources and software processing capacity of the multiple devices are integrated, and unified management and maintenance of the multiple devices are realized. When the stacking system is split due to the disconnection of the stacking link in the stacking system, only one system in a plurality of systems after the stacking system is split can execute forwarding through an election keep-active (active) state, and the service ports of other systems after the stacking system is split are closed (down) and do not forward data messages any more.
Fig. 1 is a schematic diagram of a stacked system cross-device aggregation application scenario. The stacking system 10 and the device 11 are connected by an aggregation link. After the stacking system 10 is split, the active stacking system 1A and the device 11 continue to forward data packets through the aggregation link. But the aggregated link between the stacking device 1B and the device 11 is wasted and cannot continue to participate in data packet forwarding.
Disclosure of Invention
The present application aims to provide a method, an apparatus, and a system for switching a link aggregation group, which are used for automatically splitting or merging a cross-device link aggregation group of an elastic-only architecture system.
To achieve the above object, the present application provides a method for switching a link aggregation group, the method comprising: when the stacking system is divided into a first sub-stacking system and a second sub-stacking system and the stacking system is connected with other equipment through a link aggregation group; the first sub-stacking system sends a first link aggregation group splitting message through aggregation member ports in the link aggregation group, wherein the aggregation member ports belong to all working states of the first sub-stacking system, so that ports of other equipment receiving the first link aggregation group splitting message are split into the same link aggregation group; the second sub-stacking system sends a second link aggregation group splitting message through aggregation member ports in each working state of the second sub-stacking system in the link aggregation group; so that the port of the other device receiving the second link aggregation group splitting message is split to the other link aggregation group.
To achieve the above object, the present application also provides a stacking system, the stack being connected to other devices through a link aggregation group; when the stacking system is split into a first sub-stacking system and a second sub-stacking system; the first sub-stacking system sends a first link aggregation group splitting message through each aggregation member port belonging to the first sub-stacking system in the link aggregation group, so that ports of other equipment receiving the first link aggregation group splitting message are split into the same link aggregation group; the second sub-stacking system sends a second link aggregation group splitting message through an aggregation member port belonging to the second sub-stacking system in the link aggregation group; so that the port of the other device receiving the second link aggregation group splitting message is split to the other link aggregation group.
The method and the device have the advantages that the split sub-stacking system of the stacking system splits the link aggregation group of the stacking system, and informs another device connected with the stacking system by the link aggregation group to split the port receiving the first link aggregation group splitting message into the same link aggregation group, and splits the port receiving the second link aggregation group splitting message into another link aggregation group.
Drawings
FIG. 1 is a schematic diagram of a stacked system cross-device aggregation application scenario;
FIG. 2 is a flow diagram of an embodiment of a method of switching a link aggregation group;
3A-3B are diagrams illustrating a stacking system notifying a split link aggregation group;
fig. 4 is a diagram illustrating a notification of a merged link aggregation group by a stacking system.
Detailed Description
A detailed description will be given of a number of examples shown in a number of figures. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the examples.
The term "including" as that term is used is meant to include, but is not limited to; the term "comprising" means including but not limited to; the terms "above," "within," and "below" include the instant numbers; the terms "greater than" and "less than" mean that the number is not included. The term "based on" means based on at least a portion thereof.
FIG. 2 is a flow diagram of an embodiment of a method of switching a link aggregation group;
the embodiment shown in fig. 2 has the beneficial effects that the split sub-stacking system of the stacking system splits the link aggregation group of the stacking system, and notifies another device connected to the stacking system by the link aggregation group to split the port receiving the first link aggregation group split message into the same link aggregation group, and splits the port receiving the second link aggregation group split message into another link aggregation group.
Fig. 3A and 3B are schematic diagrams illustrating link aggregation group splitting provided in the present application. In fig. 3A, the IP addresses of the devices 32, 33, and 34 are IP1, IP2, and IP3, respectively, the MAC addresses of the devices 32, 33, and 34 are MAC32, 33, and 34, respectively, the devices 32, 33, and 34 are virtualized as the stack system 30, and the device 32 is elected as the master. The devices 32, 33, 34 run the VRRP protocol with the virtual IP address IP30 as the gateway IP address and the MAC address MAC32 of the master device 32 as the MAC address of the stacked system. The three-tier interface of the stacked system 30 is configured with IP1, IP2, IP3, and IP 30. The IP addresses IP1 and IP30 of the three-layer interface of the stack system 30 are active; wherein, the activated IP address IP1 can be used as a management IP address; IP2 and IP3 of the IP addresses of the three-tier interface of the stack system 30 are inactive; the activated IP address IP2 serves as a management IP address.
Stacking system 30 has a link aggregation group S-LAG configured to connect to device 31, and device 31 has a U-LAG configured to connect to stacking system 30. The ports of the link aggregation group S-LAG of the stacking system 30 are distributed to the devices 32, 33, and 34, respectively.
In fig. 3B, the stack link between devices 33 and 34 is broken, the stack system 30 is split into stack systems 30A and 30B, devices 32 and 33 elect that device 32 be the master of stack system 30A, IP addresses IP1 and IP30 of the three-tier interface of stack system 30A are active, and IP addresses IP3 and IP30 of the three-tier interface of stack system 30B are active.
The master device 32 of the stacking system 30A repeatedly sends the aggregation link advertisement message 311 through the aggregation member ports belonging to 1 working state of the stacking system 30A in the S-LAG, and the stacking link repeatedly sends the aggregation link advertisement message 311 to the device 33 through the connection device 33. Then, the device 33 sends the aggregation link advertisement message 311 received via the stacking link via the aggregation member ports belonging to 2 working states of the stacking system 30A in the S-LAG; that is, the stacking system 30A sends the aggregation link advertisement message 311 as a link aggregation group splitting message through the aggregation member ports in 3 working states.
The master device of the stacking system 30B repeatedly sends an aggregation link advertisement message 321 as a link aggregation group splitting message through the aggregation member ports belonging to 2 working states of the stacking system 30B in the S-LAG, and notifies the device 31 to split the link aggregation group U-LAG.
The main structure of the aggregated link advertisement message is shown in table 1:
TABLE 1
Basic information T-L-V (Type 0X01) of a link aggregation port and basic information T-L-V (Type 0X02) of an aggregation member port, which are carried in an aggregation link advertisement message:
the basic information T-L-V of the link aggregation port is shown in Table 2
TABLE 2
The basic information T-L-V of the aggregation member port is shown in Table 3:
Octets | Fields | Fixed Valvues | description of the invention |
1 | Information Type | 0X02 | Type of announcement message |
1 | Information Length | 0X06 | Length of announcement message |
2 | Port_Ifindex | Port indexing | |
1 | Port_Type | Port type | |
1 | Port_State | Port state |
TABLE 3
In an aggregated link advertisement message 311 sent by the master device 32 and the slave device 33 of the stacking system 30A, the source MAC address is the MAC address MAC32 of the master device 32 of the stacking system 30A, the aggregation port ID in the basic information T-L-V of the link aggregation port is the aggregation port ID of the link aggregation group of the stacking system 30, and the number of aggregation member ports is 3 (in the stacking system 30A); in the basic information T-L-V of the aggregation member port, the port index is the port index of the three aggregation member ports on the master device 32 and the slave device 33.
In an aggregation link advertisement message 321 sent by the master device 34 of the stacking system 30B, a source MAC address is the MAC address MAC34 of the master device 34 of the stacking system 30B, an aggregation port ID in the basic information T-L-V of the link aggregation port is an aggregation port ID of a link aggregation group of the stacking system 30, and the number of aggregation member ports is 2 (in the stacking system 30B); in the basic information T-L-V of the aggregation member port, the port index is an index of 2 aggregation member ports that normally operate on the master device 34; that is, in the stacking system 30B, the master device 34 sends the aggregation link advertisement message 321 through the aggregation member ports in 2 working states.
The device 31 receives the aggregated link advertisement message 311 and 321 with different source MAC addresses from different aggregated member ports of the aggregated port of the same link aggregation group multiple times.
The device 31 determines that the source MAC address of the aggregated link advertisement message 311 received by the three ports connected to the aggregated member link of the stacking system 30A is MAC32, and the source MAC address of the aggregated link advertisement message 321 received by one port connected to the aggregated member link of the stacking system 30B is MAC 34. Device 31 splits the link aggregation group U-LAG into U-LAG1 received aggregated link advertisement message 311 and U-LAG2 received aggregated link advertisement message 321.
When stacking system 30B connects to stacking system 30A and the stacking link is restored, devices 32, 33, 34 re-elect device 32 as the master device and the failed aggregate member port of device 34 is not restored.
The IP addresses IP1 and IP30 of the three-layer interface of the stack system 30A are active, and the IP addresses IP2 and IP3 of the three-layer interface of the stack system 30B are inactive.
When the 30 link aggregation group S-LAG of the stacking system is recovered, the master device 32 of the stacking system 30 repeatedly transmits the aggregation link advertisement message 331 as a link aggregation group merge message through the aggregation member ports of 2 working states in the S-LAG, and the stacking link repeatedly transmits the aggregation link advertisement message 331 to the devices 33 and 34 through the connection device 33. Then, the device 33 sends the aggregation link advertisement message 331 received via the stacking link through the aggregation member ports in 1 working state in the S-LAG. The device 34 sends the aggregated link advertisement message 331 received via the stacked link via the aggregated member ports in 2 working states in the S-LAG.
In the aggregated link advertisement message 331 sent by the master device 32 and the slave devices 33 and 34 of the stacking system, the source MAC addresses are all the MAC addresses MAC32 of the master device 32 of the stacking system 30A, the aggregation port ID in the basic information T-L-V of the link aggregation port is the aggregation port ID of the link aggregation group of the stacking system 30, and the number of aggregation member ports is 5 (in the stacking system 30); in the basic information T-L-V of the aggregation member port, the port index is the port index of the aggregation member port in 5 working states on the master device 32, the slave devices 33, and 34.
The device 31 receives the aggregation link advertisement message 331 having the same source MAC address and carrying the same aggregation member port index from the aggregation member ports of the aggregation ports of the two link aggregation groups multiple times. The device 31 merges the two link aggregation groups U-LAG1 and U-LAG2 that received the aggregated link advertisement message 331 into a U-LAG.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (6)
1. A method of switching a link aggregation group, the method comprising:
the stacking system is split into a first sub-stacking system and a second sub-stacking system; wherein the stacking system is connected with other devices through a link aggregation group;
the first sub-stacking system sends a first link aggregation group splitting message through aggregation member ports in the link aggregation group, wherein the aggregation member ports belong to the working states of the first sub-stacking system, so that the ports of other devices receiving the first link aggregation group splitting message are split into the same link aggregation group;
the second sub-stacking system sends a second link aggregation group splitting message through aggregation member ports in the link aggregation group, wherein the aggregation member ports belong to the working states of the second sub-stacking system; so that the port of the other device receiving the second link aggregation group splitting message is split to other link aggregation groups;
a first link aggregation group splitting message sent by each aggregation member port of the first sub-stacking system carries the MAC address of the master device of the first sub-stacking system and the port identifier of each aggregation member port belonging to the first sub-stacking system in the link aggregation group;
a second link aggregation group splitting packet sent by each aggregation member port of the second sub-stacking system carries the MAC address of the master device of the second sub-stacking system and the port identifier of each aggregation member port belonging to the second sub-stacking system in the link aggregation group;
the first link aggregation group splitting message and the second link aggregation group splitting message carry the identifier of the link aggregation group.
2. The method of claim 1, further comprising:
the first sub-stacking system and the second sub-stacking system are merged into a stacking system;
the main device of the stacking system sends link aggregation combination and messages through each aggregation member port of the link aggregation group; so that the other devices merge all the aggregation member ports receiving the link aggregation combination and message into the same link aggregation group.
3. The method of claim 1,
the link aggregation group combination message carries the MAC address of the master device of the stacking system, the identifier of the link aggregation group, and the identifiers of all aggregation member ports of the link aggregation group.
4. A stacking system, wherein the stack is connected to other devices through a link aggregation group;
the stacking system is split into a first sub-stacking system and a second sub-stacking system;
the first sub-stacking system sends a first link aggregation group splitting message through each aggregation member port belonging to the first sub-stacking system in the link aggregation group, so that the ports of the other devices receiving the first link aggregation group splitting message are split into the same link aggregation group;
the second sub-stacking system sends a second link aggregation group splitting message through an aggregation member port belonging to the second sub-stacking system in the link aggregation group; so that the port of the other device receiving the second link aggregation group splitting message is split to other link aggregation groups;
a first link aggregation group splitting message sent by each aggregation member port of the first sub-stacking system carries the MAC address of the master device of the first sub-stacking system and the port identifier of each aggregation member port belonging to the first sub-stacking system in the link aggregation group;
a second link aggregation group splitting packet sent by each aggregation member port of the second sub-stacking system carries the MAC address of the master device of the second sub-stacking system and the port identifier of each aggregation member port belonging to the second sub-stacking system in the link aggregation group;
the first link aggregation group splitting message and the second link aggregation group splitting message carry the identifier of the link aggregation group.
5. The system of claim 4,
the first sub-stacking system and the second sub-stacking system are merged into a stacking system;
the main equipment of the stacking system sends link aggregation combination and messages through each aggregation member port of the link aggregation group; so that the other devices merge all the aggregation member ports receiving the link aggregation combination and message into the same link aggregation group.
6. The system of claim 4,
the link aggregation group combination message carries the MAC address of the master device of the stacking system, the identifier of the link aggregation group, and the identifiers of all aggregation member ports of the link aggregation group.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110128728.2A CN112910734B (en) | 2021-01-29 | 2021-01-29 | Method and system for switching link aggregation group |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110128728.2A CN112910734B (en) | 2021-01-29 | 2021-01-29 | Method and system for switching link aggregation group |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112910734A CN112910734A (en) | 2021-06-04 |
CN112910734B true CN112910734B (en) | 2022-07-12 |
Family
ID=76121382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110128728.2A Active CN112910734B (en) | 2021-01-29 | 2021-01-29 | Method and system for switching link aggregation group |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112910734B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115102897B (en) * | 2022-06-06 | 2024-01-05 | 上海华信长安网络科技有限公司 | Stacking splitting protection method based on link aggregation |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102255751A (en) * | 2011-06-30 | 2011-11-23 | 杭州华三通信技术有限公司 | Stacking conflict resolution method and equipment |
CN102916857A (en) * | 2012-11-09 | 2013-02-06 | 迈普通信技术股份有限公司 | Stacking and splitting quick detection method and device |
CN103095568A (en) * | 2013-01-30 | 2013-05-08 | 迈普通信技术股份有限公司 | System and method for achieving stacking of rack type switching devices |
CN105591952A (en) * | 2015-08-12 | 2016-05-18 | 杭州华三通信技术有限公司 | Traffic switching method and device applied to stack splitting |
CN105656645A (en) * | 2014-11-12 | 2016-06-08 | 杭州华三通信技术有限公司 | Decision making method and device for fault processing of stacking system |
CN106921527A (en) * | 2017-04-27 | 2017-07-04 | 新华三技术有限公司 | The processing method and processing device of stacking conflict |
CN108900415A (en) * | 2018-08-31 | 2018-11-27 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Master-slave equipment switching method and system under fault of M L AG interface |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8649379B2 (en) * | 2011-03-15 | 2014-02-11 | Force10 Networks, Inc. | Method and apparatus for configuring a link aggregation group on a stacked switch |
US9807051B1 (en) * | 2015-06-23 | 2017-10-31 | Cisco Technology, Inc. | Systems and methods for detecting and resolving split-controller or split-stack conditions in port-extended networks |
US20180307474A1 (en) * | 2017-04-19 | 2018-10-25 | Hewlett Packard Enterprise Development Lp | Firmware update in a stacked network device |
US10498644B2 (en) * | 2017-09-27 | 2019-12-03 | Hewlett Packard Enterprise Development Lp | Grace link state advertisement (LSA) from a virtual stack device |
-
2021
- 2021-01-29 CN CN202110128728.2A patent/CN112910734B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102255751A (en) * | 2011-06-30 | 2011-11-23 | 杭州华三通信技术有限公司 | Stacking conflict resolution method and equipment |
CN102916857A (en) * | 2012-11-09 | 2013-02-06 | 迈普通信技术股份有限公司 | Stacking and splitting quick detection method and device |
CN103095568A (en) * | 2013-01-30 | 2013-05-08 | 迈普通信技术股份有限公司 | System and method for achieving stacking of rack type switching devices |
CN105656645A (en) * | 2014-11-12 | 2016-06-08 | 杭州华三通信技术有限公司 | Decision making method and device for fault processing of stacking system |
CN105591952A (en) * | 2015-08-12 | 2016-05-18 | 杭州华三通信技术有限公司 | Traffic switching method and device applied to stack splitting |
CN106921527A (en) * | 2017-04-27 | 2017-07-04 | 新华三技术有限公司 | The processing method and processing device of stacking conflict |
CN108900415A (en) * | 2018-08-31 | 2018-11-27 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Master-slave equipment switching method and system under fault of M L AG interface |
Also Published As
Publication number | Publication date |
---|---|
CN112910734A (en) | 2021-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11178001B2 (en) | Multi-stage switch fabric fault detection and handling | |
CN104104570B (en) | Aggregation processing method in IRF systems and device | |
CN103338161B (en) | A kind of method and apparatus realizing cross-equipment aggregation | |
US8761005B2 (en) | Multi-chassis link aggregation on network devices | |
US9262191B2 (en) | Method, apparatus, and system for processing service flow | |
CN101841451B (en) | Virtual local area network-based speed limiting method and system for cloud hosts | |
CN102045332B (en) | Method for processing control message in intelligent resilient framework and line card boards | |
US9998366B2 (en) | System, method and device for forwarding packet | |
US10015098B2 (en) | Systems and methods to create highly scalable network services | |
CN112968836B (en) | Cross-device aggregation link configuration method, device, equipment and readable storage medium | |
CN104798350A (en) | Virtual link aggregations across multiple fabric switches | |
CN111294291A (en) | Protocol message processing method and device | |
CN105490937B (en) | Ether virtual network gateway switching method and service provider's edge node devices | |
CN112910734B (en) | Method and system for switching link aggregation group | |
CN101262412A (en) | A method and its access device for multicast recovery with minimal delay | |
CN104539539A (en) | Multi-service-board data forwarding method for AC device | |
CN109039707A (en) | The method and system of the rapid active-standby switching of Vxlan channel service | |
CN108111323A (en) | Realization system of igmpsnooping protocol under vxworks system | |
CN107179970B (en) | Large-scale OAM detection system and method in distributed equipment | |
CN112910959A (en) | SDN-based network interconnection method for multiple Kubernets clusters | |
CN101695040B (en) | Modularization switch and method thereof for exchanging data | |
CN114760245B (en) | Stacked member equipment and method for forwarding broadcast message thereof | |
CN116471227A (en) | Method and equipment for managing virtual router backup group | |
CN112218181B (en) | Protection switching method and system | |
CN116016385A (en) | State synchronization method, device and equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |