Link Aggregation Control Protocol

LACP-ipcisco-etherchannel

Link Aggregation With LACP

What is Link Aggregation?

Link Aggregation is bundling two or more links as one logical link for increasing bandwidth and availability. This bundle is called Link Aggregation (LAG). To configure link aggregation, there are two way. One of them is using Cisco proprietary EtherChannel, the other is IEEE 802.3ad standard. EtherChannels can be done by one of the two network bundling protocols. One of them is the Cisco proprietary PAgP (Port Aggregation Protocol) and the other is LACP (Link Aggregation Control Protocol). IEEE 802.3ad standard can be used only with LACP. These two protocols does not interoperate each other. You can use only one of them to configure link aggragation. You can also check wiki definion, here.

 

Here, we will focus to the standard based, Link Aggregation Control Protocol.  In another lesson, we will learn How to Configure LACP on Cisco , Juniper LACP Configuration  and Nokia LACP Configuration.  The latest Cisco devices are already use LACP instead of PagP.

 

Link Aggregation on Cisco Devices, LACP, PAgP
Link Aggregation on Cisco Devices
 

To aggragete physical links to a single logical link, firstly we need more than two ports with the same characteristics such as data rate, duplex capability, etc. After that, we can bundle different physical links into one logical link to increase bandwith and the availability of the link.

 

How many links can we bundle together? There is also a limitation about ports in the bundle. In Cisco platforms the ports in a bundle is limited by 8 ports . This can be change in some platforms. For example in Cisco 10000 series, only 4 port is supported in a bundle. We can name the created logical name as “port channel”. Up to 64 port channels is supported per device. As a summary, maximum 8 ports are allowed in a bundle and maximum 64 bundles are allowed in a device.

 

What about loops? Loop is prevented with a mechanism and returning of a multicast or a broadcast packets to the other ports in the bundle, is blocked.

 


What is LACP?

LACP (Link Aggregation Control Protocol) is a data link layer protocol defined in IEEE 802.3ad standard. It is a standard based link aggregation protocol which can be used in different vendor devices. With this protocol we can bundle several physical links and form single logical link as a bundle. Here, the link aggregation is created by LACP packets that are sent every second. And these packets are exchanged between ports in two different LACP modes. These LACP modes are Active and Passive modes.

 

What is the difference between LACP Active and Passive modes? How about PAgP Modes? What is the meaning of these modes?

 


LACP and PAgP Modes

LACP and PAgP are two link aggregation protocols. They have both two different modes. The name of LACP and PAgP channel group modes are given below.

 

ipcisco-lacp-pagp-link-aggregation-modes

 


LACP Modes: Active and Passive

Link Aggregation Control Protocol operates in two modes. These LACP modes are given below:

  • Active
  • Passive

 

LACP Active mode initiates connection by sending LACPDUs. In other words, it actively tries to establish bundle.

LACP Passive mode waits the other end to initate the connection. In other words, it waits passively.

 

If both ends are configured as Active, LACP link aggregation is established. If at least one end is configured with Active mode, LACP link aggregation is also established. But, if both ends are configured with Passive mode, link aggregation is not established. 

 


PAgP Modes: Desirable and Auto

Port Aggregation Protocol operates in two modes. These PAgP modes are given below:

  • Desirable
  • Auto

 

PAgP Desirable mode actively initiates connection for PAgP negotiation. In other words, it actively tries to establish bundle.

PAgP Auto mode waits the other end to initate the connection. In other words, it only responds to connection requests.

 

If both ends are configured with PAgP Desirable mode, link aggregation is established. If at least one end is configured with Desirable mode, PAgP link aggregation is also established. But, if both ends are configured with PagP Auto mode, link aggregation is not established.  

 


How LACP Works?

When we enable LACP on each end, they sends LACPDUs each other according to their modes. After receiving these LACPDUs, firstly, LACP System IDs are compared.

 

LACP System ID = LACP System Priority + MAC Address

 

Here, the part that has the higher LACP System ID is elected as actor. But the key point is “the higher the number, the lower the priority.” In other words, the lower number is elected as actor. The other will be partner.

 

So, firstly, system priorities will be checked and the higher system priority (lower value) will be elected as actor.  If they have same priority values, MAC addresses is used as tie breaker. Then the one that has the lower MAC address is elected as actor.

 

LACP Port Identifier = LACP Port Priority + Port Number

 

After actor selection, according to LACP Port Identifiers, active ports are determined. Again the lower number will be highest. So, the priority value that has the lovest value will be elected. If they are same, then tie breker will be port numbers. Lower ports will be elected as active ports.

 

After selecting these ports, port channel is established. After that load balancing is used between these active links. If one of the ports is failed, then the traffic is switched to the other ports.

 


LACP Parameters

There are some parameters that we can use during Link Aggregation Control Protocol configuration. These parameters are given below.

 

LACP System Priority: This is configured per router. It is used with MAC address to create Link Aggregation Control Protocol System ID. The default system priority is 32768. It can take any valid value between 1 to 65535. The key point is: The higher the number, the lower the priority.

 

LACP System ID = LACP System Priority + MAC Address

 

LACP Port Priority: It is confiured per port. It is used to form Port Identifier with Port Number. It can take any valid value between 1 to 65535. The key point is: The higher the number, the lower the priority.

 

LACP Port Identifier = LACP Port Priority + Port Number

 

It is also used to determine which port should be in standby mode during an hardware limitation.

 

LACP Administrative Key : It is automatically calculated equal to the channel group identification number on each LACP configured port. It defines the ability of a port to aggregate with other ports. The aggragation abiliy is determined by, port characteristics and configuration restrictions.

 

LACP Max-bundle : It is the number of bundled ports in a bundle. As I mentined below it is maximum 8.But in some platforms it can be 4.

 

If all the compatible ports can not be aggregated by Link Aggregation Control Protocol, the the remaining ones go to teh standby state. When there is a failure of one of teh bundled ports, then they become active one by one.

 

Here, there is also another important information about a MAC address. We use MAC address 01:80:C2:00:00:02 to send LACP packets with multiple grouping.

 


Some Important Tips About Bundles

  • Every port that you want to add to the bundle must be identical.
  • The ports in a bundle can be in different line cards.
  • MTU can be configured on port channel and then it is propagated to the ports under it.
  • QoS and CAR are configured at port level. But ACL is configured on port channel.
  • MPLS ip must be enabled on ports that are bundled with the command mpls ip.
  • MAC configurations only allowed in port channel.
  • On port channel you should apply Unicast Reverse Path Forarding(uRPF), with the command ip verify unicast reverse-path.
  • When an interface has an ip address, firstly you must disable the ip address and then you can add the interface to the bundle.
  • Hold queue in command can be used on ports and hold queue out command is used on port channel.

What are the benefits of LACP?

We have learned the details of this aggregation standard. So, what is an advantage of using lacp? What are the benefits of this protocol? There are differet benefits of Link Aggregation Control Protocol. These are given below:

 

  • More bandwith: The main benefit of link aggregation is increased bandwith. By using Link Aggregation Control Protocol, we increase our link bandwith capacity. Because we combine one more link into one logical link.

 

  • Increased reliability and availability: With multiple links, we provide a link failover mechanism as redundancy. Whenever a link fails, the traffic can follow the other links. By doing this, we increase our networks availability.

 

  • Easy to configure: Using Link aggregation provides an easy to configure network redundancy and link capacity increasor.

 

  • Efficient resource utilization: With load balancing, physical link usage is optimized.

 

  • Cost Effectiveness: Without any additional physical devices or upgrades, it provides increased bandwith and redundancy.

 


Link Aggragation FAQ


Why we use link aggregation?

Link aggregation is used to increase bandwith and provide redundancy with multiple links as a logical link. With this configuration, we provide higher bandwith and availability.


Maximum how many links are allowed in a LACP Bundle?

LACP allows maximum 8 Active links and 8 standby links in a Bundle.


Maximum how many links are allowed in a PAgP Bundle?

PAgP allows maximum 8 Active links.


Do LACP and PAgP interoperable?

No. These protocols can not used together. They are not interoperable.


Does LACP increase bandwidth?

Sure. When we bundle multiple links into a single logical link, it adds each link’s bandwith to the total bandwidth.


Does link aggregation increase speed?

Exactly. When we combine several links into one link, this new link provides greater speeds.


What is the difference between EtherChannel and IEEE 802.3ad standard?

EtherChannel is a Cisco standard and IEEE 802.3ad is an open standard that we use for LAGs.


What is the difference between IEEE 802.3ad and IEEE 802.1AX standards?

IEEE 802.1AX standard is the upgraded version of IEEE 802.3ad standard. IEEE 802.1AX standard provides a MAC-independent Link Aggregation capability and provides general information relevant to specific MAC types.


 

You can also view the below LACP Configuration Lessons for different vendors:

 


 

 

Lesson tags: LAG, Link Aggregation, LACP
Back to: CCNP Enterprise 350-401 ENCOR > EtherChannels

Leave a Reply

Your email address will not be published. Required fields are marked *

CCNP Enterprise 350-401 ENCOR

Collapse
Expand