Tuesday, March 23, 2021

LAG load distribution concept clarification

We all know the high level concept of how a frame gets load balanced across a LAG. Frame comes in and a hash is taken based on source/destination L2 or L3 or maybe even L4 header information. Hash is pinned to a member link and away it goes , forever pinned to that member link.

The point I need clarification is that based on my readings, the most common way that a hash is generated is for Layer 2 header information. Does this mean that if I have an L3 routed link the switch is only looking at L2 info to make the hash? Or is it based on if I am going over an L2 or L3 link would determine the type of load distribution that will be done?

Cisco documentation: The default load-balancing mode for Layer 3 interfaces is the source and destination IP L4 ports, and the default load-balancing mode for non-IP traffic is the source and destination MAC address

Does that mean that traffic going across a Layer 2 port--channel trunk , by default is non-IP traffic and therefore source/dst MAC address is used?



No comments:

Post a Comment