IBM Support

Etherchannel Performance Issue due to Adapter’s LLDP Capability.

White Papers


Abstract

When Etherchannel configured in Network Interface backup mode, if its underlying adapter is supported and enabled LLDP, then there can be network performance issues.

Content

The Link Layer Discovery Protocol (LLDP) is used by network devices for advertising their identity and capabilities to its neighbours on a local area network. The LLDP information is sent by devices at a fixed interval in the form of an ethernet frame and hence it contains the source and destination Mac addresses. The Ethernet frame used in LLDP typically has its destination Mac address set to a special multicast address.

By default, the LLDP capabilities are enabled for the Mellanox adapters from its firmware version 12.18.1000 and later. Currently, the AIX Enhanced Transmission Selection (ETS) is the only consumer of LLDP in AIX but AIX doesn’t have a mechanism to enable or disable the adapter LLDP capability until AIX 7200-05-03 and AIX 7300-00.
By now you know what is LLDP and its position in AIX based on Mellanox adapters, let’s look at the impact of LLDP on Etherchannel in network interface backup (NIB) mode.
Let’s first understand how the traffic ideally flows through Etherchannel with an example and what are the problems caused by LLDP enablement on the network adapter.

 
In the following diagram, in LPAR1, the adapter ent2 is an Etherchannel in NIB mode that has ent0 as primary and ent1 as backup adapters. In LPAR1, the ent0 is connected to port 10 and ent1 is connected to port11 on the network switch. In LPAR2 and LPAR3, the ent0 is connected to port 20 and port 30 on the network switch. When Etherchannel is in primary mode, the network switch changes the traffic between ports 10 and 20 for the network traffic between LPAR1 and LPAR2. Similarly, the network switch switches the traffic between ports 10 and 30 for the network traffic between LPAR1 and LPAR3. By default the Mac address of Etherchannel adapter (ent2) will be same as that of its primary adapter (ent0). Therefore the Mac address of ent0 and ent2 are same in this situation in LPAR1.
 

image 10875

 When LPAR1 Etherchannel is in primary mode, while establishing network traffic through it, the switch will learn that the Mac address associated to its port 10 is the same as that of ent2 (that is,     Mac address of ent0). Consequently any ingress packets that the switch receives that is intended for ent2 of LPAR1 will be passed to the port10 by the network switch. Similarly, when the LPAR1 Etherchannel fails over to its backup, the Etherchannel sends Gratuitous Address Resolution Protocol (ARP) packets that have the source Mac address as of ent2 (that is,Mac address of ent0) through the adapter ent1. Hence, the network switch relearns that the port associated to the Mac address of LPAR1 ent2 is now port 11. That means, from then onwards, any ingress packets that the switch gets that is intended for ent2 of LPAR1 must be passed to the port 11.

Please note that the LLDP being a Link Layer protocol, the adapter will transmit and receive LLDP packets without the knowledge of LPAR’s OS. So when the LPAR1 Etherchannel being in backup mode, the ent0 adapter will still transmit LLDP packets. That means when Etherchannel being in backup mode, the network switch gets network packets having same source Mac address from ent0 (the LLDP packets) to its port 10 and from ent1 (the network traffic from ent2) to its port 11, this confuses the switch, because the switch learns the Mac address to port mapping based on network traffic as well. This confusion in the switch can cause poor network performance due to packet loss because while the Etherchannel is in Back up mode, ingress packets that the switch gets that are intended for ent2 of LPAR1 can be passed to the port 10 sometimes and hence those packets will be lost.

There are the 3 possible solutions to this problem and their advantages and disadvantages:

  • Starting from AIX version 7200-05-03 and 7300-00, AIX added a feature to enable and disable the Mellanox adapter’s LLDP capability. Since ETS is the only AIX feature that needs the adapter LLDP capability, from this level of AIX onwards, the adapter will enable its LLDP capability only when the ETS is enabled, otherwise the LLDP capability of the adapter will be disabled. By disabling ETS, the above mentioned Etherchannel performance issue can be resolved but the disadvantage here is that you cannot use the ETS feature when Etherchannel is configured in NIB mode with this way.

By default, ETS is disabled in AIX and hence forms AIX version 7200-05-03 and 7300-00 onwards, the Mellanox Adapter’s LLDP capability will be disabled by default.

To disable ETS on an adapter, enter the following command: 

# chdev -l entX -a ets_mode=disabled

  • By setting the Etherchannel optional field ‘Enable Alternate Address’ to ‘Yes’, you can specify a Mac address that you want to use for an Etherchannel instead of it using the Mac address of the primary adapter. Here the difficulty is, you must identify a unique Mac address that doesn’t exist in the network to assign to the Etherchannel. If you can do that, aligning with the above example, the adapters ent0, ent1, and ent2 will have different Mac address and hence the above-mentioned performance issue will not exist.

To enable alternate address on an existing Etherchannel permanently, enter the following command:

            # chdev -l entX -a alt_addr=0x......
            # chdev -l entX -a use_alt_addr=yes

  • By setting the Etherchannel attribute ‘mac_swap’ to ‘Yes’. If you enable mac_swap, when Etherchannel fails over to backup Mode, then its underlying primary and backup adapters Mac addresses will be swapped. That means in the above example, when ent2 fails back to ent1, ent1 will get the Mac address of ent0 and ent0 will get the Mac address of ent1 and hence you can avoid the above-mentioned Etherchannel performance issue. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Authors: Prajith P Kumaran, Soumya Menon
Operating System: AIX and VIOS
Hardware: Power
Feedback: aix_feedback@wwpdl.vnet.ibm.com, prajithpk@in.ibm.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[{"Type":"MASTER","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"ARM Category":[{"code":"a8m0z000000cw42AAA","label":"Networking->Drivers"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
15 September 2021

UID

ibm16470587