cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
1511
Views
15
Helpful
7
Replies

Load balance need to do between 2 switches when they are connected b2b

Naive
Level 1
Level 1

Hello Team,

One of interviewers asked me a question regarding switching [attached scenario]

We need to load balance between both links without using Etherchannel.
SW1 and Sw2 are connected B2B with 2 links.

 

Scenario 1: Both are access links

Scenario 2: Both are trunk links

 

 

 

1 Accepted Solution

Accepted Solutions

Hello,

 

it used to be that you can change the STP priority in order to achieve load balancing (that works for trunks):

 

VLAN Load Balancing Between Trunks via STP Port Priority

 

https://www.cisco.com/c/en/us/support/docs/lan-switching/spanning-tree-protocol/10555-15.html

View solution in original post

7 Replies 7

hola011
Level 1
Level 1

.

pman
Spotlight

Hi,

 

you can use MST.

MST provides load-balancing capability without the scalability issues that are attached with legacy STP.

 

Here is Example:

This diagram shows Switches A and B connected with access ports each located in different VLANs. VLAN 10 and VLAN 20 are mapped to different instances. VLAN 10 is mapped to instance 0, while VLAN 20 is mapped to instance 1.

pman_1-1644052373866.png

 

 

 

Thank you for your reply..

I believe you suggested, a solution if both links are access links connecting to access ports.

If both are trunk links, how we can achieve it.

Hello,

 

it used to be that you can change the STP priority in order to achieve load balancing (that works for trunks):

 

VLAN Load Balancing Between Trunks via STP Port Priority

 

https://www.cisco.com/c/en/us/support/docs/lan-switching/spanning-tree-protocol/10555-15.html

Thank you so much for sharing this... Its very informative..

Joseph W. Doherty
Hall of Fame
Hall of Fame

BTW, just to be clear, such LBing, w/o Etherchannel, requires you to have multiple VLANs and "manually" determine which link they will use.

Although even with Etherchannel, it can be difficult to obtain good LBing, as Etherchannel is flow based, and general has multiple options for how to distribute flows, often you would achieve better LB results using Etherchannel.

From an engineering perspective, for such an interview question, possibly the best (first) response would be "why do you want to do this?"

 

However, though, be warned, some interviewers only want whatever answer they want.  Laugh, a personal example, many years ago I interviewed for a DBA (MS SQL databases) position at the Federal Reserve, in DC.  One question they asked, what's the command to backup a database?  I answered, off the top of my head, I don't know, I would need to consult the manual.  What I've done in the past, was set up scheduled backups, and my concern then was checking to insure they succeeded (actually, my automation would send me messages if there was an issue).  This wasn't the answer they wanted.

They also asked me, how would you partition a database for performance?  I said, partition?  Ah, you do know about striping and mirroring disks at the server level?  Which, often, does a much better job of dynamically distributing I/O load than I can achieve via manual database partitioning.  Again, not the answer they wanted.

They also asked, what else might you do to improve database performance?  I responded, teaching your database programmers, a bit more, how it works, under the covers.  Once again, that didn't seem the answer they wanted (i.e. I suspected, whatever they had read in a DBA manual).

Not sure what kind of impression I made on them, but they surely made an impression on me.  First, and only time, I called the following day and asked to be withdrawn from consideration.

 

I believe you are right!!! Maybe interviewer wants to check how candidate going to attempt the question, rather than answer is correct or not. 

 

and thank you for sharing your interview experience, Its crazy