cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
421
Views
0
Helpful
2
Replies
Highlighted
Beginner

Port channel load balance algorithm

Hello,


I am having trouble understanding the direction in which the load-balancing algorithm is applied in a switching scenario.


Consider two switches S1 and S2 connect together via a port-channel.

S1 is on the left and S2 is on the right.

On S1 if I set the port-channel load balancing algorithm to "src-mac", from S1's perspective, will this be MAC addresses coming IN from S2 or will it be MAC addresses currently residing on S1?

As technically if a host on S1 sends a frame the SRC MAC address will be the hosts MAC address.

My issue is understanding how the switch considers what is classed as "SRC" - coming from outside, or coming from inside?

Many thanks

2 REPLIES 2
Highlighted
Rising star

The src MAC it uses for load balancing in this scenario will be the Source MAC of the host sending the traffic.

As you are going across a Layer 2 link, the Source MAC will not change as it goes over the connection between the switches, it will stay the same.

The source will be that, the source of the frame which by default will be the sending host.

If Host A is plugged into S1 and it tries to send traffic to Host B which is plugged into S2, assuming the hosts are within the same broadcast domain, the Source MAC when it goes across the Port Channel will be Host A's MAC.

Highlighted
Enthusiast

Balancing can only happen on output - a switch can only control where to send a frame, obviously it cannot decide what interface a frame is received on (that can only be done by the switch transmitting the frame, at the other end of the link).

So, the switch looks at the frames it has to send, for information relevant to its configured load-balancing method (source / destination MAC / IP etc) - in order for the balancing to happen on both directions, switches on both ends of the port-channel need to be properly configured.

Content for Community-Ad