Got it

Implementation of Link Aggregation in LACP Mode

Latest reply: Oct 11, 2021 13:46:38 496 45 30 0 0

Link Aggregation


Implementation of Link Aggregation in LACP Mode


LACP, as specified in IEEE 802.3ad, implements dynamic link aggregation and de-aggregation, allowing both ends to exchange LACPDUs.


After member interfaces are added to the Eth-Trunk interface in LACP mode, each end sends LACPDUs to inform its peer of its system priority, MAC address, member interface priorities, interface numbers, and keys. After being informed, the peer compares this information with that saved on itself, and selects which interfaces to be aggregated. Then, LACP negotiation occurs, selecting the active interfaces and links.


For detailed information about LACPDUs, see Figure 1.


01

Figure 1 LACPDU


Explanation of main fields follow as:

ItemDescription
Actor_Port/Partner_PortInterface of the Actor or Partner.
Actor_State/Partner_StateStatus of the Actor or Partner.
Actor_System_Priority/Partner_System_PrioritySystem priority of the Actor or Partner.
Actor_System/Partner_SystemSystem ID of the Actor or Partner.
Actor_Key/Partner_KeyOperational Key of the Actor or Partner.
Actor_Port_Priority/Partner_Port_PriorityInterface priority of the Actor or Partner.


The process of setting up an Eth-Trunk link in LACP mode is as follows:


1. Devices at both ends send LACPDUs to each other.


As shown in Figure 2, you need to manually create an Eth-Trunk link in LACP mode on Device A and Device B and add member interfaces to the Eth-Trunk. Then the member interfaces are enabled with LACP, and devices at both ends can send LACPDUs to each other.


03

Figure 2 LACPDUs sent in LACP mode network diagram


2. Determine the Actor and active links.


As shown in Figure 3, devices at both ends receive LACPDUs from each other. For example, when Device B receives LACPDUs from Device A, Device B checks and records information about Device A and compares system priorities. If the system priority of Device A is higher than that of Device B, Device A acts as the Actor.


After devices at both ends select the Actor, they select active interfaces according to the priorities of the Actor's interfaces. Then active interfaces are selected, active links in the LAG are specified, and load balancing is implemented across these active links.


04

Figure 3 Actor selection process in LACP mode network diagram


  • LACP preemption


After LACP preemption is enabled, interfaces with higher priorities in an LAG function as active interfaces.


As shown in Figure 4, port1, port2, and port3 are member interfaces of an Eth-Trunk. The upper threshold for the number of active interfaces is 2. LACP priorities of port1, port2, and port3 are 10, 20, and 30 respectively. When LACP negotiation is complete, port1 and port2 are selected as active interfaces because their LACP priorities are higher, and port3 is selected as the backup interface.


05

Figure 4 LACP preemption


LACP preemption is typically enabled in the following situations:


  • port1 becomes faulty, and then recovers. When port1 fails, port3 replaces port1 to transmit services. After port1 recovers, if LACP preemption is not enabled on Eth-Trunk, port1 still retains in backup state. If LACP preemption is enabled on Eth-Trunk, port1 becomes the active interface and port3 becomes the backup interface.


  • If LACP preemption is enabled and port3 needs to replace port1 or port2 to become the active interface, set the highest LACP priority value for port3. If LACP preemption is not enabled, the system neither re-selects the active interface nor switches the active interface when the priority of a backup interface is higher than that of the active interface.


LACP preemption delay


After LACP preemption occurs, the backup link waits for a set period of time before switching to active status. This period is called LACP preemption delay. The LACP preemption delay is set to prevent unstable data transmission along Eth-Trunk links caused by frequent status changes in member links.


As shown in Figure 4, port1 becomes inactive due to a link failure. After a period, the link recovers. If LACP preemption is enabled and the LACP preemption delay is set, port1 switches to active after the LACP preemption delay.


Switchover between active links and inactive links


In LACP mode, a link switchover in the LAG is triggered if a device at one end detects one of the following events:


  • An active link goes Down.

  • Ethernet OAM detects a link fault.

  • LACP detects a link fault.

  • An active interface becomes unavailable.

  • If LACP preemption is enabled, the backup interface's priority is changed to be higher than that of the current active interface.


When any of the preceding triggering conditions is met, the link switchover is performed in the following steps:


  • The faulty link is disabled.

  • The highest priority backup link is selected to replace the faulty active link.

  • The highest priority backup link becomes the active link and begins forwarding data.



- END -


Vlada85
MVE Author Created Sep 13, 2021 19:41:15

Well done! Thank you for sharing!
View more
  • x
  • convention:

Serges_armel
Serges_armel Created Sep 13, 2021 21:25:15 (1) (0)
 
andersoncf1
andersoncf1 Created Sep 16, 2021 16:43:57 (0) (0)
you're welcome  
user_4237671
user_4237671 Created Sep 23, 2021 01:18:39 (0) (0)
 
Diego.Silva
MVE Author Created Sep 13, 2021 19:44:30

Very well! thank you for sharing!
View more
  • x
  • convention:

chantha
chantha Created Sep 14, 2021 03:41:53 (1) (0)
 
andersoncf1
andersoncf1 Created Sep 16, 2021 16:44:03 (0) (0)
you're welcome  
Zemo_Mccracken
Zemo_Mccracken Created Sep 21, 2021 14:40:51 (0) (0)
 
Interesting content.
View more
  • x
  • convention:

simchamnan
simchamnan Created Sep 14, 2021 03:53:17 (1) (0)
 
andersoncf1
andersoncf1 Created Sep 19, 2021 16:08:41 (0) (0)
Thanks master  
thank for sharing
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Sep 19, 2021 16:09:00 (0) (0)
you’re welcome dear  
Excellent, thank you for sharing!
View more
  • x
  • convention:

user_4237671
user_4237671 Created Sep 23, 2021 01:18:46 (0) (0)
 
andersoncf1
andersoncf1 Created Sep 23, 2021 16:07:31 (0) (0)
you’re welcome  
Important concept
View more
  • x
  • convention:

BAZ
MVE Author Created Sep 14, 2021 03:14:28

What's ideal Pre delay normally?
View more
  • x
  • convention:

Good
View more
  • x
  • convention:

AliBinHussain
AliBinHussain Created Sep 14, 2021 17:03:46 (0) (0)
 
Good
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.