What is LACP?
Based on the LACP of IEEE802.3ad standard, the full name of Link Aggregation Control Protocol in English is translated into Chinese as Link Aggregation Control Protocol, which is used to achieve link dynamic convergence and de-convergence.
LACP interacts with its peers through LACPDU.DU refers to Data Unit, a data unit.MAC address, priority, port number, Key, etc. can be advertised to the peer.After receiving the information, the other side determines whether to join or exit a pool group by comparing and calculating with the information it keeps.
What is it mainly used for?Yes, convergence is, of course, used for port convergence.You can also do load sharing, link backup (automatic switching).
Note that manual load sharing, basic Eth-Trunk interface mode configuration, no need to configure LACP, member interfaces (selected) participate in data forwarding.
If LACP is configured, it can be either static or dynamic.The difference is that in static mode, member interfaces are manually configured, but those interfaces are selected, and those of standby are determined by the LACP protocol.In dynamic mode, including the joining of member interfaces and the choice of active interfaces are all determined by the LACP protocol, even if devices that start dynamic LACP do not need to create Eth-Trunk interfaces or specify interfaces.
When using the LACP protocol, both the Selected and Standby ports can send and receive LACPDU s, but the standby interface does not forward user messages.
In addition, in the case of LACP, the standby port state you see is down, whether it is static or dynamic.
Let's look at the actual case.
Huawei NE05E G0/2/4 and G0/2/5 are configured as follows:
#NE05E: # interface Eth-Trunk15 portswitch port trunk allow-pass vlan 1 to 100 mode lacp-static load-balance l4 # interface GigabitEthernet0/2/4 undo shutdown eth-trunk 15 dcn # interface GigabitEthernet0/2/5 undo shutdown eth-trunk 15 dcn # #MA5800X7: [lacp-config] <lacp-config> link-aggregation lacp-key 0/8/0 1 link-aggregation add-member 0/8/0 0/9 0 link-aggregation add-member 0/8/0 0/9 1 link-aggregation add-member 0/8/0 0/9 2 link-aggregation add-member 0/8/0 0/9 3 #
In the MA5800 configuration, you can't actually see statements like "link-aggregation add-member 0/8/0/9 0" when displaying current, but you can view them with different commands.The following "display lacp link-aggregation summary" shows that there are two selected ports and six standby ports, corresponding to 0/8/0 and 0/9/0 and the other six unselected ports (in fact, none of these ports have physical connections, mainly two 10G ports are sufficient, so the light module is a bit less expensive)
(config)#display lacp link-aggregation summary { <cr>||<K> }: Command: display lacp link-aggregation summary Actor Priority : 32768 MAC Address: 7858-6000-e7ab Short Period : 1 s Long Period: 30 s Priority Preemption: Disable Timeout : Fast ---------------------------------------------------------------------------- Agg Partner Partner Select Standby Load Backup Master Admin ID Pri MAC Ports Ports Sharing Protect Port Key ---------------------------------------------------------------------------- 1 32768 80b5-75c2-27e5 2 6 YES NO 0 /8 /0 1 ---------------------------------------------------------------------------- (config)#display lacp link-aggregation verbose 1 { <cr>||<K> }: Command: display lacp link-aggregation verbose 1 System Priority : 32768 MAC Address : 7858-6000-e7ab Protect Mode : Non-BackupProtect Admin Key : 1 Preempt Delay(s): 0 Master Port: 0/8/0 Actor Port Priority : 16384 Oper-key : 1 Port Role : SELECTED Port Status: C&D Partner System Priority: 32768 MAC Address: 80b5-75c2-27e5 Port Priority : 32768 Oper-key : 3905 Sub Port: 0/9/0 Actor Port Priority : 16384 Oper-key : 1 Port Role : SELECTED Port Status: C&D Partner System Priority: 32768 MAC Address: 80b5-75c2-27e5 Port Priority : 32768 Oper-key : 3905 Sub Port: 0/8/1 Actor Port Priority : 16384 Oper-key : 0 Port Role : STANDBY Port Status: Non-C&D Sub Port: 0/8/2 Actor Port Priority : 16384 Oper-key : 0 Port Role : STANDBY Port Status: Non-C&D Sub Port: 0/8/3 Actor Port Priority : 16384 Oper-key : 0 Port Role : STANDBY Port Status: Non-C&D Sub Port: 0/9/1 Actor Port Priority : 16384 Oper-key : 0 Port Role : STANDBY Port Status: Non-C&D Sub Port: 0/9/2 Actor Port Priority : 16384 Oper-key : 0 Port Role : STANDBY Port Status: Non-C&D Sub Port: 0/9/3 Actor Port Priority : 16384 Oper-key : 0 Port Role : STANDBY Port Status: Non-C&D
Take a look at the statistics on the router:
[~NE05E_01]disp lacp brief System Priority: 32768 System ID : 80b5-75c2-27e5 [~NE05E_01]disp lacp statistics eth-trunk 15 Eth-Trunk15's PDU statistic is: ------------------------------------------------------------------------------- Port LacpRevPdu LacpSentPdu MarkerRevPdu MarkerSentPdu GigabitEthernet0/2/4 764414 23278073 0 0 GigabitEthernet0/2/5 764422 23278081 0 0 [~NE05E_01]disp int Eth-Trunk 15 Eth-Trunk15 current state : UP (ifindex: 38) Line protocol current state : UP Link quality grade : GOOD Description: Switch Port, TPID : 8100(Hex), Hash arithmetic : According to flow,Maximal BW: 20Gbps, Current BW: 20Gbps, The Maximum Transmit Unit(L3) is 1500 bytes Internet protocol processing : disabled IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 80b5-75c2-27e5 Current system time: 2019-05-17 23:11:49 Physical is ETH_TRUNK Last 300 seconds input rate 817341 bits/sec, 914 packets/sec Last 300 seconds output rate 23899360 bits/sec, 2080 packets/sec Input: 2349976240 packets,344045983992 bytes 2308742671 unicast,39406270 broadcast,1827299 multicast 0 errors,0 drops Output:5942717725 packets,8154570342640 bytes 5814368771 unicast,77054633 broadcast,51294321 multicast 0 errors,0 drops Last 300 seconds input utility rate: 0.01% Last 300 seconds output utility rate: 0.11% ---------------------------------------------------------- PortName Status Weight ---------------------------------------------------------- GigabitEthernet0/2/4 UP 1 GigabitEthernet0/2/5 UP 1 ---------------------------------------------------------- The Number of Ports in Trunk : 2 The Number of UP Ports in Trunk : 2 [~NE05E_01]disp eth-trunk 15 Eth-Trunk15's state information is: Local: LAG ID: 15 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to flow System Priority: 32768 System ID: 80b5-75c2-27e5 Least Active-linknumber: 1 Max Active-linknumber: 8 Operate status: up Number Of Up Ports In Trunk: 2 Timeout Period: Slow -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/2/4 Selected 10GE 32768 1 3905 10111100 1 GigabitEthernet0/2/5 Selected 10GE 32768 2 3905 10111100 1 Partner: -------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet0/2/4 32768 7858-6000-e7ab 16384 1 1 11111100 GigabitEthernet0/2/5 32768 7858-6000-e7ab 16384 5 1 11111100
I did a link test and everything worked fine, not to mention the details.
By the way, I also have some Adtran OLT TA5000 series, which are called Cross-slot LAG for up-link aggregation on dual master boards. Configure lag as follows (depending on which master board is currently, 1/A is modified with the following template, 1/B is modified accordingly):
interface ten-gigabit-ethernet 1/A/1 lacp mode active no shutdown exit interface ten-gigabit-ethernet 1/B/1 lacp mode active no shutdown exit lacp response-mode 1/A interactive interface lag-group 1/A/1 cross-slot alias "LAG1" link ten-gigabit-ethernet 1/A/1 link ten-gigabit-ethernet 1/B/1 active-links-minimum 1 no shutdown exit no ethernet default interface ethernet default interface lag-group LAG1
View status:
OL02-EAS-LON#sh int lag lag-group 1/B/1 is IS And up Alias : LAG1 Cross-Slot : enabled Minimum Active Links : 1 Active Links : 2 Link : ten-gig-eth 1/B/1 (UP) Link : ten-gig-eth 1/A/1 (UP)