cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10343
Views
0
Helpful
5
Replies

Load-balancing Algorithm for NX-OS Port Channels

SATORU SAEGUSA
Level 1
Level 1

Hi, all

 

I do not understand description of port-channel load-balance ethernet command.

 

switch(config)# port-channel load-balance ethernet ?
  destination-ip         Destination IP address
  destination-mac        Destination MAC address
  destination-port       Destination TCP/UDP port
  source-dest-ip         Source & Destination IP address (includes l2)
  source-dest-ip-only    Source & Destination IP addresses only
  source-dest-mac        Source & Destination MAC address
  source-dest-port       Source & Destination TCP/UDP port (includes l2 and l3)
  source-dest-port-only  Source & Destination TCP/UDP port only
  source-ip              Source IP address
  source-mac             Source MAC address
  source-port            Source TCP/UDP port

 


Please tell me what the following descriptions mean.

 

  Source & Destination IP address (includes l2)
  Source & Destination TCP/UDP port (includes l2 and l3)


What are the meaning of "includes l2" and "includes l2 and l3" ?

 


Thank you for your cooperation in advance.

2 Accepted Solutions

Accepted Solutions

richbarb
Cisco Employee
Cisco Employee

Hi Satoru,

Source & Destination IP address (includes l2)
It means that hash will include L2/L3 information, if available.

Source & Destination TCP/UDP port (includes l2 and l3)
The same way, basically means that hash algorithm will include all L2/L3/L4 information, if available.

Otherwise, if you choose the option:   source-dest-port-only  Source & Destination TCP/UDP port only
It means the etherchannel hash will include only the L4 information in the hash algorithm to balance the traffic among the interfaces.

Regards,
Richard

View solution in original post

Hi Satoru,

 

On the Nexus 5000/6000 platforms, all FEXs will inherit the global hashing algorithm from the parent device.
 
On the Nexus 7000 platform, hashing algorithms can be assigned on a per FEX basis (all load balancing changes must be made from the Admin VDC):
 
N7K-A(config)# port-channel load-balance src-dst ip-l4port fex 134
 
Any FEX without a hashing algorithm configured with inherit the global hash. Making changes to the modular/global hash will not alter FEX specific hashing algorithms.

To verify the configuration applied you can use this command:

N5K_A# show port-channel load-balance

On the Nexus 7000, the per FEX algorithm can be checked by appending the ‘fex <#>’ to the end of the command in the Admin VDC or the FEX’s respective VDC:
 
N7K-A(config)# show port-channel load-balance fex 134

 

Regards,

Richard

View solution in original post

5 Replies 5

richbarb
Cisco Employee
Cisco Employee

Hi Satoru,

Source & Destination IP address (includes l2)
It means that hash will include L2/L3 information, if available.

Source & Destination TCP/UDP port (includes l2 and l3)
The same way, basically means that hash algorithm will include all L2/L3/L4 information, if available.

Otherwise, if you choose the option:   source-dest-port-only  Source & Destination TCP/UDP port only
It means the etherchannel hash will include only the L4 information in the hash algorithm to balance the traffic among the interfaces.

Regards,
Richard

Hello richbarb,

 

Thank you for posting the comment.

Does that mean that L2 information is MAC address?  Similarly, does L3 information mean IP address?

 

Kind regards,

Satoru

Hi Satoru,

 

That's it.

 

Richard

Hi richbarb,

 

Please let me ask one more question.

Does this configuration also work the port-channel interface operating in FEX-fabric mode?

 

Kind regards,

Satoru

Hi Satoru,

 

On the Nexus 5000/6000 platforms, all FEXs will inherit the global hashing algorithm from the parent device.
 
On the Nexus 7000 platform, hashing algorithms can be assigned on a per FEX basis (all load balancing changes must be made from the Admin VDC):
 
N7K-A(config)# port-channel load-balance src-dst ip-l4port fex 134
 
Any FEX without a hashing algorithm configured with inherit the global hash. Making changes to the modular/global hash will not alter FEX specific hashing algorithms.

To verify the configuration applied you can use this command:

N5K_A# show port-channel load-balance

On the Nexus 7000, the per FEX algorithm can be checked by appending the ‘fex <#>’ to the end of the command in the Admin VDC or the FEX’s respective VDC:
 
N7K-A(config)# show port-channel load-balance fex 134

 

Regards,

Richard

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: