Page 1 of 1

iBGP vs OSPF

Posted: Tue May 23, 2023 3:22 pm
by GRYyzli
Hi. Currently running hub&spoke vpn config with around 900 spokes, two vpns to each + ospf on top of it. Spokes splited around 100 per area so pretty big LSA database.
As ros7 support dynamic bgp neighbors I'm considering switching to iBGP, but never had experience with it.
Any advices? Pros cons? How many routers can speak in singe AS? Do I need to split spokes to different AS as in areas using ospf? Or can I use single AS for all routers?
Thanks,

Re: iBGP vs OSPF

Posted: Wed May 24, 2023 6:55 am
by wiseroute
hello gryyzli,

interesting. listening mode=on🤔
As ros7 support dynamic bgp neighbors
hmm.. never heard of it. could you elaborate?

Re: iBGP vs OSPF

Posted: Wed May 24, 2023 11:28 am
by GRYyzli
hello gryyzli,

interesting. listening mode=on🤔
As ros7 support dynamic bgp neighbors
hmm.. never heard of it. could you elaborate?
You can define bgp connection using network as remote address, like below:
/routing bgp connection
add as=123456 disabled=no local.address=10.0.0.1 .role=ibgp name=bgp1 nexthop-choice=force-self output.redistribute=static remote.address=10.0.0.0/24 routing-table=main templates=default
No need to specify exact address of peer.

Re: iBGP vs OSPF

Posted: Wed May 24, 2023 12:36 pm
by wiseroute
hello
No need to specify exact address of peer.
hmm... getting more interesting 🤔

ok. before getting deeper into this dynamic peer, from your previous diagram - let us say : *ospf vs ibgp* for simplicity - i am just wondering what do you have in mind?

what i mean is:
a. where or which part of your network will you put those ibgp routers? what kind of industry would fit to your proposal? ie : isp? data center? other businesses?

b. in what way those ibgp router you consider could replace ospf, aside from database?

Re: iBGP vs OSPF

Posted: Thu May 25, 2023 9:47 am
by GRYyzli
It is a business case, HQ and 900 branches. All working fine on ospf regarding rare situations when there is a problem with Internet links in HQ. It causes multiple reconnections on routers in HQ and sometimes crush ospf process, then restart is needed.

Now there is a need of connecting all branches to AWS so it is good opportunity for me to consider switching to BGP instead of creating new multiple areas, ospf instances etc.
So I'm wondering if I can connect all 900 branches with BGP using one AS? Or better split it to multiple AS. Is there a limit of BGP sessions in Mikrotik. How does it scale. etc.

Re: iBGP vs OSPF

Posted: Thu May 25, 2023 12:43 pm
by wiseroute
hello gryyzli,

[*]
Now there is a need of connecting all branches to AWS so it is good opportunity for me to consider switching to BGP instead of creating new multiple areas, ospf instances etc.
[*]

do you mean you were thinking about having *sd-wan like* bgp over the cloud, to overcome hq session and hardware failure?

well, I think the most obvious thing is bandwidth traversing the cloud, and perhaps some security concerns as well. 900 spokes.

but, if you insist that cloud *route reflector* method - i was thinking about dmvpn.

just a thought 🤔

Re: iBGP vs OSPF

Posted: Fri May 26, 2023 5:51 pm
by DarkNate
Use OSPF for underlay to learn loopbacks of all adjacent neighbours. Use iBGP to full-mesh with all loopbacks.

Re: iBGP vs OSPF

Posted: Wed May 31, 2023 12:53 am
by spippan
Use OSPF for underlay to learn loopbacks of all adjacent neighbours. Use iBGP to full-mesh with all loopbacks.
would this not just rank up convergence timers and overhead?

sure sounds like a quite good plan but timing, i guess may be problematic here 🤔

Re: iBGP vs OSPF

Posted: Fri Jun 02, 2023 1:36 pm
by DarkNate
OSPF+BFD. BGP+BFD. This is a MikroTik problem that's likely resolved in 7.10 stable upcoming.

The OSPF+BGP design is used by Facebook as well in their large-scale deployments. It's not a new design approach.

Re: iBGP vs OSPF

Posted: Sat Jun 03, 2023 12:08 pm
by spippan
OSPF+BFD. BGP+BFD. This is a MikroTik problem that's likely resolved in 7.10 stable upcoming.

The OSPF+BGP design is used by Facebook as well in their large-scale deployments. It's not a new design approach.
hopefully yes. then this design surely should work fine.

oh do they, didn't know about that. thx

Re: iBGP vs OSPF

Posted: Sun Jun 04, 2023 9:37 am
by DarkNate
You can read here for more details, but I'm sure you can find more design info in the public web, Facebook isn't the only one doing this design, ISP/Telcos who are up-to speed do as well:
https://www.rfc-editor.org/rfc/rfc7938.html

Preferably OSPF should be replaced with ISIS, but that's not supported on MikroTik.

Re: iBGP vs OSPF

Posted: Sun Jun 04, 2023 9:41 pm
by spippan
You can read here for more details, but I'm sure you can find more design info in the public web, Facebook isn't the only one doing this design, ISP/Telcos who are up-to speed do as well:
https://www.rfc-editor.org/rfc/rfc7938.html

Preferably OSPF should be replaced with ISIS, but that's not supported on MikroTik.
thanks a lot
will have a look into this.