Describes the configuration and management of port channels, which bundle multiple physical interfaces into a single logical interface to provide increased bandwidth and redundancy between network devices.
A port channel is a logical interface that
bundles multiple physical interfaces into a single logical interface
provides increased bandwidth and redundancy between network devices, and
enables load balancing of traffic across multiple physical links.
PC host load balancing algorithms
The following table provides the default hash algorithm and symmetric hash algorithm options used in port channel load balancing across Cisco Application Policy Infrastructure Controller (ACI) leaf node downlinks. The symmetric hash algorithm options were introduced in Cisco Application Policy Infrastructure Controller (APIC) release 2.3(1e).
Table 1. PC host load balancing algorithms
Traffic Type
Hashing Data Points
End Host PC (default)
For Layer 2 traffic:
Source MAC address
Destination MAC address
Segment ID (VXLAN VNID) or VLAN ID
For IP Traffic:
Source MAC address
Destination MAC address
Source IP address
Destination IP address
Protocol type
Source Layer 4 port
Destination Layer 4 port
Segment ID (VXLAN VNID) or VLAN ID
PC symmetric hash (configurable)
Choose one option:
Source IP address
Destination IP address
Source Layer 4 port
Destination Layer 4 port
When there is more than one port channel on a leaf switch, such as Po1 and Po2, then the following scenario is supported:
Po1: Enable symmetric hash with SIP only.
Po2: Do not enable symmetric hash. Use default hashing.
However, the following scenario is not supported because the second port channel Po2 has a different hash parameter:
Po1: Enable symmetric hash with SIP only.
Po2: Enable symmetric hash with DIP only.
That is, on a single leaf switch, all port channels that require symmetric hashing should use the same hash policy/parameter or use the default hashing.
Symmetric hashing is not supported on the following switches:
Cisco Nexus 93128TX
Cisco Nexus 9372PX
Cisco Nexus 9372PX-E
Cisco Nexus 9372TX
Cisco Nexus 9372TX-E
Cisco Nexus 9396PX
Cisco Nexus 9396TX
Note
Port channel hash algorithms are applied at each individual leaf node independently. The algorithms do not have influence on load balancing within the fabric, such as load balancing to leaf nodes in a vPC pair. Thus, symmetrical hashing is not supported on a vPC.
Configure Cisco ACI leaf switch port channel using the GUI
This task enables you to create a port channel configuration on Cisco ACI leaf switch interfaces to provide redundancy and increased bandwidth for device connectivity.
This procedure uses either the Fabric > Access Policies > Quick Start > Configure Interfaces or the Fabric > Access Policies > Interface Configuration page to attach a server to a Cisco Application Centric Infrastructure (ACI) leaf switch interface with a port channel. The steps would be the same for attaching other kinds of devices to a Cisco ACI leaf switch interface.
Figure 1. Switch port channel configuration
Before you begin
The Cisco ACI fabric is installed, APIC controllers are online, and the APIC cluster is formed and healthy.
An APIC fabric administrator account is available that will enable creating the necessary fabric infrastructure configurations.
The target leaf switches are registered in the Cisco ACI fabric and available.
Starting with Cisco APIC 6.1(3), you can configure 32 members per port channel. The lacp min-links value is used in LACP port-channels to define the minimum number of links to be active for the port-channel to be active. This is now extended to 32. The FEX and SAN port-channel will continue to support only 16 members.
Follow these steps to configure a Cisco ACI leaf switch port channel using the GUI:
Procedure
Choose Fabric > Access Policies.
Open the Configure Interfaces dialog using one of the following methods:
Method 1:
In the Navigation pane, choose Quick Start.
In the Work pane, click Configure Interfaces.
Method 2:
In the Navigation pane, choose Interface Configuration.
In the Work pane, choose Actions > Configure Interfaces.
In the Configure Interfaces dialog, configure the interface settings:
For Node Type, click Leaf.
For Port Type, click Access.
For Interface Type, choose the desired type.
For Interface Aggregation Type, choose PC.
For Node, click Select Node, put a check in the box for the desired switch (node), then click OK.
For Interfaces, click Select Interfaces, put checks in the boxes for the ports that are to be combined to create the port channel, then click OK.
For PC/vPC Interface Policy Group, click Select PC/vPC Interface Policy Group, then select an existing port channel policy group or create new one.
For Port Channel Member Policy, click Select Port Channel Member Policy, then select an existing port channel member policy or create new one.
In the Select PC/vPC Interface Policy Group dialog, choose an existing policy group or click Create PC/vPC Interface Policy Group to create a new one.
Click Save.
What to do next
This completes the port channel configuration steps.
Note
While this configuration enables hardware connectivity, no data traffic can flow without a valid application profile, EPG, and contract that is associated with this hardware configuration.
Configure port channels in leaf nodes and FEX devices using the NX-OS CLI
Port channels are logical interfaces in NX-OS used to aggregate bandwidth for multiple physical ports and also for providing redundancy in case of link failures. In NX-OS, port channel interfaces are identified by user-specified numbers in the range 1 to 4096 unique within a node. Port channel interfaces are either configured explicitly (using the interface port-channel command) or created implicitly (using the channel-group command). The configuration of the port channel interface is applied to all the member ports of the port channel. There are certain compatibility parameters (speed, for example) that cannot be configured on the member ports.
In the ACI model, port channels are configured as logical entities identified by a name to represent a collection of policies that can be assigned to set of ports in one or more leaf nodes. Such assignment creates one port channel interface in each of the leaf nodes identified by an auto-generated number in the range 1 to 4096 within the leaf node, which may be same or different among the nodes for the same port channel name. The membership of these port channels may be same or different as well. When a port channel is created on the FEX ports, the same port channel name can be used to create one port channel interface in each of the FEX devices attached to the leaf node. Thus, it is possible to create up to N+1 unique port channel interfaces (identified by the auto-generated port channel numbers) for each leaf node attached to N FEX modules. This is illustrated with the examples below. Port channels on the FEX ports are identified by specifying the fex-id along with the port channel name (interface port-channel foo fex 101, for example).
Figure 2. Example with port channels on leaf switches and FEX ports
N+1 instances per leaf of port channel foo are possible when each leaf is connected to N FEX nodes.
Leaf ports and FEX ports cannot be part of the same port channel instance.
Each FEX node can have only one instance of port channel foo.
Follow these steps to configure port channels in leaf nodes and FEX devices using the NX-OS CLI:
Procedure
Enter global configuration mode.
Example:
apic1# configure
Create a new port channel or configure an existing port channel.
Example:
apic1(config)# template port-channel foo
Deploy the EPG with the VLAN on all ports with which the port channel is associated.
The channel-mode command is equivalent to the mode option in the channel-group command in NX-OS. In ACI, however, this is supported for the port channel (not on a member port).
Example:
apic1(config-po-ch-if)# channel-mode active
Note
To enable symmetric hashing, enter the lacp symmetric-hash command:
apic1(config-po-ch-if)# lacp symmetric-hash
Symmetric hashing is not supported on the following switches:
Cisco Nexus 93128TX
Cisco Nexus 9372PX
Cisco Nexus 9372PX-E
Cisco Nexus 9372TX
Cisco Nexus 9372TX-E
Cisco Nexus 9396PX
Cisco Nexus 9396TX
Exit to configure mode.
Example:
apic1(config-po-ch-if)# exit
Specify the leaf switches to be configured.
The node-id can be a single node ID or a range of IDs, in the form node-id1- node-id2, to which the configuration will be applied.
Example:
apic1(config)# leaf 101
Specify the physical interface to be configured.
Example:
apic1(config-leaf)# interface ethernet 1/1
Add the interface to the port channel.
Example:
apic1(config-leaf-if)# channel-group foo
Verify the port channel configuration.
Example:
apic1(config-leaf-if)# show running-config interface port-channel foo
The following table shows various commands for global configurations of port channel properties in the ACI model. These commands can also be used for configuring overrides for port channels in a specific leaf in the (config-leaf-if) CLI mode. The configuration made on the port channel is applied to all member ports.
[no] channel-mode { active | passive | on| mac-pinning }
LACP mode for the link in port channel l
[no] lacp min-links <value>
Set minimum number of links
[no] lacp max-links <value>
Set maximum number of links
[no] lacp fast-select-hot-standby
LACP fast select for hot standby ports
[no] lacp graceful-convergence
LACP graceful convergence
[no] lacp load-defer
LACP load defer member ports
[no] lacp suspend-individual
LACP individual Port suspension
[no] lacp port-priority
LACP port priority
[no] lacp rate
LACP rate
Examples
Configure a port channel (global configuration). A logical entity foo is created that represents a collection of policies with two configurations: speed and channel mode. More properties can be configured as required.
Note
The channel mode command is equivalent to the mode option in the channel group command in NX-OS. In ACI, however, this supported for the port channel (not on member port).
Configure ports to a port channel in a FEX. In this example, port channel foo is assigned to ports Ethernet 1/1-2 in FEX 101 attached to leaf node 102 to create an instance of port channel foo. The leaf node will auto-generate a number, say 1002 to identify the port channel in the switch. This port channel number would be unique to the leaf node 102 regardless of how many instance of port channel foo are created.
Note
The configuration to attach the FEX module to the leaf node must be done before creating port channels using FEX ports.
Configure ports to a port channel in multiple leaf nodes. In this example, port channel foo is assigned to ports Ethernet 1/1-2 in each of the leaf nodes 101-103. The leaf nodes will auto generate a number unique in each node (which may be same or different among nodes) to represent the port channel interfaces.
Add members to port channels. This example would add two members eth1/3-4 to the port channel in each leaf node, so that port channel foo in each node would have members eth 1/1-4.
Remove members from port channels. This example would remove two members eth1/2, eth1/4 from the port channel foo in each leaf node, so that port channel foo in each node would have members eth 1/1, eth1/3.
apic1(config)# leaf 101-103
apic1(config-leaf)# interface eth 1/2,1/4
apic1(config-leaf-if)# no channel-group foo
Configure port channel with different members in multiple leaf nodes. This example shows how to use the same port channel foo policies to create a port channel interface in multiple leaf nodes with different member ports in each leaf. The port channel numbers in the leaf nodes may be same or different for the same port channel foo. In the CLI, however, the configuration will be referred as interface port channel foo. If the port channel is configured for the FEX ports, it would be referred to as interface port channel foo fex <fex-id>.
Configure per port properties for LACP. This example shows how to configure member ports of a port channel for per-port properties for LACP.
Note
In ACI model, these commands are allowed only after the ports are member of a port channel. If a port is removed from a port channel, configuration of these per-port properties would be removed as well.
Configure admin state for port channels. In this example, a port channel foo is configured in each of the leaf nodes 101-103 using the channel-group command. The admin state of port channel(s) can be configured in each leaf using the port channel interface. In ACI model, the admin state of the port channel cannot be configured in the global scope.
// create port-channel foo in each leaf
apic1(config)# leaf 101-103
apic1(config-leaf)# interface ethernet 1/3-4
apic1(config-leaf-if)# channel-group foo
// configure admin state in specific leaf
apic1(config)# leaf 101
apic1(config-leaf)# interface port-channel foo
apic1(config-leaf-if)# shut
Override config is very helpful to assign specific vlan-domain, for example, to the port channel interfaces in each leaf while sharing other properties.
// configure a port channel global config
apic1(config)# interface port-channel foo
apic1(config-if)# speed 1G
apic1(config-if)# channel-mode active
// create port-channel foo in each leaf
apic1(config)# leaf 101-103
apic1(config-leaf)# interface ethernet 1/1-2
apic1(config-leaf-if)# channel-group foo
// override port-channel foo in leaf 102
apic1(config)# leaf 102
apic1(config-leaf)# interface port-channel foo
apic1(config-leaf-if)# speed 10G
apic1(config-leaf-if)# channel-mode on
apic1(config-leaf-if)# vlan-domain dom-foo
This example shows how to change port channel assignment for ports using the channel-group command. There is no need to remove port channel membership before assigning to other port channel.
Port channel dynamic load balancing is a networking technique that
distributes traffic across multiple links in a port channel based on the load of each link
adjusts traffic distribution on the links of a port channel based on the current load of the links
monitors egress traffic load on each link and selects the link with the least utilization to distribute the traffic.
Port channel load balancing methods
Port channel load balancing includes static and dynamic methods.
Port channel static load balancing: In port channel static load balancing, traffic is consistently hashed to the same link in the port channel, irrespective of the load on each link. The egress member link is statically selected based on a 5-tuple hash. When a switch forwards a packet to a server or another switch through a port channel with multiple bundled links, it uses a hashing algorithm to choose the link for that packet. The hashing algorithm considers parameters such as the source and destination IP addresses, source and destination port numbers, and occasionally protocol type.
Disadvantage of port channel static load balancing: Port channel static load balancing approach can result in uneven traffic distribution on the links of a port channel, with some links being highly utilized while others remain underutilized.
Dynamic load balancing policies: You can choose either Flowlet Load Balancing or Per Packet Load Balancing under DLB policy.
Fabric port dynamic load balancing: Fabric port dynamic load balancing (DLB) within a data center or network fabric support DLB for fabric ports on ACI Leaf built on CloudScale ASICs. This feature allows network administrators to enable or disable DLB on individual leaf nodes using a new configuration setting. This gives customers flexibility to deploy DLB across all leaf nodes in their fabric or only on a subset of nodes. For proper and seamless operation, all leaf devices must be configured with identical Fabric-DLB settings.
Flowlet: A flowlet is a group of consecutive packets, or a burst, within the same flow, separated by an idle interval. Each flowlet can be forwarded independently without causing packet reordering.
Flowlet aging time: The flowlet table maintains information about flowlets and uses aging to identify flowlet gaps and prevent packet reordering. For example, the flowlet aging time is set to x microseconds. If traffic is not received for an existing flowlet for x microseconds, the flowlet entry will be marked for deletion. After one additional x microseconds, this flowlet entry will be permanently removed. When the burst gap is less than the configured flowlet aging time, packets are sent on the same link as the flowlet entry still exists in the flowlet table. When the burst gap exceeds the configured flowlet aging time, packets are sent on different links as the flowlet entry for these packets is removed.
Per Packet Load Balancing: Each packet is treated as the first packet of new flowlet and system uses Flowlet load balancing to select an output port. This can cause packets from the same flow to be sent across different ports, leading to reordering. This method effectively distributes network traffic across all available links, which helps to reduce congestion caused by large or long lived flow. The port is selected based on the Dynamic Rate Estimator (DRE) metrics (port with the least DRE metric). If multiple ports have the same DRE metric, one is chosen randomly. This is a global setting that applies to all flows forcing them to use either Flowlet or Per-Packet load balancing mode. Changes to the Per Packet load balancing mode are allowed even without a DLB configuration. This is supported on L2 and L3 Port-channels on ACI Leaf Nodes.
Port channel DLB benefits:
Efficient traffic distribution: balances traffic based on real-time link utilization, preventing network congestion.
Improved network performance: reduces the impact of long-lived bursty flows on network congestion.
Faster convergence: adapts to changes in port status without requiring software intervention.
Port channel DLB limitations:
FEX HIF, NIF, and FC ports are not supported.
SAN and fibre channel port channels are not supported.
The number of port channel member ports with DLB supported is 32 in each slice and 64 in each switch.
Note
The number of fabric links with Uplink Port Fast Link Failover enabled is also included in the maximum port capacity in each switch, which is 64.This is irrespective of whether the fabric port has link connected to it. This is an existing behavior from Uplink Port Fast Link Failover.
NoteA switch consists of one or more slices. Each slice is a self-contained switching subsystem. The ports in the switch are distributed among the slices.
BUM (Broadcast, Unknown Unicast, and Multicast traffic) is not supported.
LEM-based chassis such as Cisco Nexus 9400 is not supported.
Create port channel dynamic load balancing policy using the GUI
Follow these steps to create a port channel dynamic load balancing policy using the GUI.
Procedure
On the menu bar, choose Fabric > Access Policies.
In the Navigation pane, expand Policies > Switch, right-click Dynamic Load Balancing, and choose Create Dynamic Load Balancing Policy.
The Create Dynamic Load Balancing Policy dialog box appears.
Enter the name and description of the policy.
Select Flowlet or Per packet mode in the Load Balancing Mode field.
Enter the aging time, in microseconds, in the Flowlet Aging Time field.
The range of Flowlet Aging Time is from 1 to 2000000 microseconds. The default value is 500 microseconds. The recommended value is twice the maximum Round Trip Time (RTT) observed in the traffic flows.
Enter the threshold values for Level 1 to Level 7 in the DRE Threshold field.
Select Enabled or Disabled in the Fabric port DLB field.
Click Submit.
Associate fabric port channel dynamic load balancing policy to a switch policy group using the GUI
Before you begin
Follow these steps to associate a fabric port channel dynamic load balancing policy to a switch policy group using the GUI:
Procedure
On the menu bar, choose Fabric > Access Policies.
In the Navigation pane, expand Switches > Leaf Switches > Policy Groups and choose a switch policy group.
The Access Switch Policy Group pane appears.
In the Dynamic Load Balancing Policy drop-down list, choose a DLB policy.
Click Submit.
Enable dynamic load balancing on the port channel using the GUI
Follow these steps to enable dynamic load balancing on the port channel using the GUI.
Procedure
On the menu bar, choose Fabric > Access Policies.
In the Navigation pane, expand Interfaces > Leaf Interfaces > Profiles and expand an access profile.
Choose a port channel from the access profile.
The Access Port Selector pane appears.
In the Policy Group drop-down list, perform one of the following:
Choose an existing policy group and click the icon next to the Policy Group drop-down list. The PC/vPC Interface Policy Group dialog box appears.
Choose Create PC Interface Policy Group. The Create PC Interface Policy Group dialog box appears. Enter the name of the policy group.
Choose Create VPC Interface Policy Group. The Create VPC Interface Policy Group appears. Enter the name of the policy group.
In the Port Channel Policy drop-down list, perform one of the following:
Choose an exisitng port channel policy and click the icon next to the Port Channel Policy drop-down list. The Port Channel Policy dialog box appears.
Choose Create Port Channel Policy. The Create Port Channel Policy dialog box appears. Enter the name of the port channel policy.
In the Port Channel Policy dialog box or Create Port Channel Policy dialog box, click the Dynamic toggle button to enable dynamic load balancing on the port channel.
Click Submit.
View port channel dynamic load balancing configurations using the GUI
Follow these steps to view the port channel dynamic load balancing configurations using the GUI.
Procedure
On the menu bar, choose Fabric > Inventory.
In the Navigation pane, expand Pod > Leaf.
Choose Dynamic Load Balancing and Fast Link Failover.
The Port-Channel Dynamic Load Balancing and Uplink Port Fast Link Failover pane appears.
Click the Policy tab to view the flowlet aging time ,configured load balancing mode, DRE thresholds. Additionally, it shows if Fabric Port DLB is enabled or not.
Click the Operational > Per Switch Usage tabs to view the number of ports that currently use DLB or Uplink Port Fast Link Failover and the maximum number of ports supported at the switch level.
The number of ports activated with DLB or Uplink Port Fast Link Failover must not exceed the switch capacity.
Click the Operational > Per Slice Usage (DLB Only) tabs to view the number of ports that currently use DLB and the maximum number of ports supported at the slice level.
The number of ports in each slice activated with DLB must not exceed the slice capacity.
Click the Operational > Interface tabs to view current DLB resource usage, and which interfaces are using DLB.
In the Navigation pane, expand Pod > Node and click the Summary > DLB Interfaces pane to view the number of ports that currently use DLB or Uplink Port Fast Link Failover and the maximum number of ports supported at the node level.
View port channel dynamic load balancing statistics using the GUI
Follow these steps to view the port channel dynamic load balancing statistics using the GUI.
Procedure
On the menu bar, choose Fabric > Inventory.
In the Navigation pane, expand Pod > Leaf.
Choose Dynamic Load Balancing and Fast Link Failover.
The Port-Channel Dynamic Load Balancing and Uplink Port Fast Link Failover pane appears.
Click the Stats tab to view the DLB statistics information.
Table 2. Description of DLB statistics
DLB Statistics
Description
Total DLB Ingress Packets
Total packets received in DLB
Total Flowlets with Collision
Number of occurrences of flowlet collisions
Total Flowlets Created
Number of new flowlet entries created
Total Flowlets Hit
Number of times an incoming packet matched an existing flowlet entry
Verify port channel dynamic load balancing configurations using the CLI
Follow these steps to verify the port channel dynamic load balancing configurations using the CLI.
Procedure
Run the show port-channel dlb usage command to verify the DLB resources used by all the port channels.
Example:
node# show port-channel dlb usage
Dynamic load balancing resource usage for port-channel1
Interface Configured Operational State
Port-channel: port-channel1 dynamic dynamic (SU)
Members: Ethernet1/31 dynamic dynamic (up)
Ethernet1/32 dynamic dynamic (up)
Ethernet1/33 dynamic dynamic (up)
Ethernet1/34 dynamic dynamic (up)
Ethernet1/35 dynamic dynamic (up)
DLB resources utilized by port-channel1: 5
Dynamic load balancing resource usage for port-channel2
Interface Configured Operational State
Port-channel: port-channel2 static static (SU)
Members: Ethernet1/1 static static (up)
DLB resources utilized by port-channel2: 0
Dynamic load balancing resource usage for port-channel3
Interface Configured Operational State
Port-channel: port-channel3 static static (SU)
Members: Ethernet1/3 static static (up)
DLB resources utilized by port-channel3: 0
Dynamic load balancing resource usage for port-channel4
Interface Configured Operational State
Port-channel: port-channel4 dynamic dynamic (SU)
Members: Ethernet1/7 dynamic dynamic (up)
Ethernet1/8 dynamic dynamic (up)
Ethernet1/9 dynamic dynamic (up)
Ethernet1/10 dynamic dynamic (up)
DLB resources utilized by port-channel4: 4
Dynamic load balancing resource usage for port-channel5
Interface Configured Operational State
Port-channel: port-channel5 static static (RU)
Members: Ethernet1/4 static static (up)
Ethernet1/5 static static (up)
DLB resources utilized by port-channel5: 0
Dynamic Load Balance Resource Summary for above port-channels
Total DLB configured port-channels: 2
Total DLB operational port-channels: 2
Total DLB non operational port-channels: 0
Total DLB not supported port-channels: 0
Total DLB resources utilized by port-channels: 9
Run the show port-channel dlb usage interface port-channel command to verify the DLB resources used by a specific port channel.
Example:
node# show port-channel dlb usage interface port-channel 4
Dynamic load balancing resource usage for port-channel4
Interface Configured Operational State
Port-channel: port-channel4 dynamic dynamic (SU)
Members: Ethernet1/7 dynamic dynamic (up)
Ethernet1/8 dynamic dynamic (up)
Ethernet1/9 dynamic dynamic (up)
Ethernet1/10 dynamic dynamic (up)
DLB resources utilized by port-channel4: 4
Dynamic Load Balance Resource Summary for above port-channels
Total DLB configured port-channels: 1
Total DLB operational port-channels: 1
Total DLB non operational port-channels: 0
Total DLB not supported port-channels: 0
Total DLB resources utilized by port-channels: 4
Run the show port-channel internal info command to verify the DLB status of ports of the port channel.