Community discussions

MikroTik App
 
geryperisic
just joined
Topic Author
Posts: 1
Joined: Thu Oct 18, 2018 12:33 pm

LAN RSTP bridge

Thu Oct 18, 2018 12:49 pm

Hi,

I have two routers with two links between them. Ether1 on both router is Prmary link, ether2 on both router is Backup link, and Ether3 on both router is Customer.
I created bridge on both routers and put all port in them(ether1, ether2, ether3) and set protocol RSTP(master rouer set priority 7000). I also set up port cost(20) for backup ports cost and port priority(90).
Now primary link is root port and backup link is alternate port. When i shuttown primary link, backup link then changes to root port and everything works fine, but when is my primary link full of capacity and lossing packet, then RSTP protocol wont change backup link like root port. Why?

BR,
Milan
 
tdw
Forum Guru
Forum Guru
Posts: 2032
Joined: Sat May 05, 2018 11:55 am

Re: LAN RSTP bridge

Thu Oct 18, 2018 2:55 pm

STP/RSTP/MSTP were designed to reorganise networks when links failed, not provide bandwidth sharing.If you wish to use both links at the same time see https://wiki.mikrotik.com/wiki/Manual:Interface/Bonding
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11114
Joined: Mon Dec 04, 2017 9:19 pm

Re: LAN RSTP bridge

Sat Oct 20, 2018 9:22 pm

when is my primary link full of capacity and lossing packet, then RSTP protocol wont change backup link like root port. Why?
As said above by @tdw, with STP, a "backup" is a backup against a complete failure, not against exhaustion of capacity.

But in your simple case, you may create a bond of ether1 and ether2 and make the bond a member port of the bridge, and it will work both ways - as long as both paths are working, the load will be distributed between them (unless all the traffic goes between just two IP addresses), and if one of them fails, all traffic will take the remaining one.
 
ste
Forum Guru
Forum Guru
Posts: 1932
Joined: Sun Feb 13, 2005 11:21 pm

Re: LAN RSTP bridge

Fri Nov 02, 2018 8:47 am

when is my primary link full of capacity and lossing packet, then RSTP protocol wont change backup link like root port. Why?
As said above by @tdw, with STP, a "backup" is a backup against a complete failure, not against exhaustion of capacity.

But in your simple case, you may create a bond of ether1 and ether2 and make the bond a member port of the bridge, and it will work both ways - as long as both paths are working, the load will be distributed between them (unless all the traffic goes between just two IP addresses), and if one of them fails, all traffic will take the remaining one.
Looking into MSTP now. If read correctly it should be possible to spread vlans over links on a per vlan basis.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11114
Joined: Mon Dec 04, 2017 9:19 pm

Re: LAN RSTP bridge

Fri Nov 02, 2018 11:28 am

I'm afraid that while each MST instance does build its individual topology (it's the essence of MST functionality), you cannot set different priority/cost to a single port in each instance. So if your idea was to say that port A has lower cost than port B for MSTI 0 and port B has lower cost than port A for MSTI1, and thus make member VLANs of MSTI 0 use port A and member VLANs of MSTI 1 use port B if both ports are working, and only send member VLANs of both via one of the ports if the other one is down, it won't work.
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: LAN RSTP bridge  [SOLVED]

Fri Nov 02, 2018 12:21 pm

I'm afraid that while each MST instance does build its individual topology (it's the essence of MST functionality), you cannot set different priority/cost to a single port in each instance. So if your idea was to say that port A has lower cost than port B for MSTI 0 and port B has lower cost than port A for MSTI1, and thus make member VLANs of MSTI 0 use port A and member VLANs of MSTI 1 use port B if both ports are working, and only send member VLANs of both via one of the ports if the other one is down, it won't work.
Actually, you can do this, and that is one of the advantages of MSTP:
https://wiki.mikrotik.com/wiki/Manual:S ... T_Override
 
ste
Forum Guru
Forum Guru
Posts: 1932
Joined: Sun Feb 13, 2005 11:21 pm

Re: LAN RSTP bridge

Fri Nov 02, 2018 3:09 pm

I'm afraid that while each MST instance does build its individual topology (it's the essence of MST functionality), you cannot set different priority/cost to a single port in each instance. So if your idea was to say that port A has lower cost than port B for MSTI 0 and port B has lower cost than port A for MSTI1, and thus make member VLANs of MSTI 0 use port A and member VLANs of MSTI 1 use port B if both ports are working, and only send member VLANs of both via one of the ports if the other one is down, it won't work.
Actually, you can do this, and that is one of the advantages of MSTP:
https://wiki.mikrotik.com/wiki/Manual:S ... T_Override
Thanks for clarification. Was wondering what it should be all about with MSTP if this wasn't possible. I will test this with a 317 and 2x305 in lab before rolling it out. They should do it in HW.
 
pranoy1083
just joined
Posts: 3
Joined: Fri Jan 04, 2019 12:26 pm

Re: LAN RSTP bridge

Wed Jan 16, 2019 12:58 pm

Hello....
I have created a bridge with my 2 WAN links for auto redundancy. Enable rstp as protocol mode. Fiber link is connected on ether11 and Radio link is on ether12. I want to make fiber link as root port. But Radio link goes to be a root port. As radio link is backup, i am getting the full bandwidth. How can i set the fiber port as root port?

Who is online

Users browsing this forum: garyjduk, mukkelek, vingjfg and 22 guests