Community discussions

MikroTik App
 
GRYyzli
just joined
Topic Author
Posts: 9
Joined: Fri Aug 29, 2014 11:22 am
Location: Poland

iBGP vs OSPF

Tue May 23, 2023 3:22 pm

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,
 
wiseroute
Member
Member
Posts: 423
Joined: Sun Feb 05, 2023 11:06 am

Re: iBGP vs OSPF

Wed May 24, 2023 6:55 am

hello gryyzli,

interesting. listening mode=on🤔
As ros7 support dynamic bgp neighbors
hmm.. never heard of it. could you elaborate?
 
GRYyzli
just joined
Topic Author
Posts: 9
Joined: Fri Aug 29, 2014 11:22 am
Location: Poland

Re: iBGP vs OSPF

Wed May 24, 2023 11:28 am

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.
 
wiseroute
Member
Member
Posts: 423
Joined: Sun Feb 05, 2023 11:06 am

Re: iBGP vs OSPF

Wed May 24, 2023 12:36 pm

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?
 
GRYyzli
just joined
Topic Author
Posts: 9
Joined: Fri Aug 29, 2014 11:22 am
Location: Poland

Re: iBGP vs OSPF

Thu May 25, 2023 9:47 am

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.
 
wiseroute
Member
Member
Posts: 423
Joined: Sun Feb 05, 2023 11:06 am

Re: iBGP vs OSPF

Thu May 25, 2023 12:43 pm

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 🤔
 
DarkNate
Forum Guru
Forum Guru
Posts: 1065
Joined: Fri Jun 26, 2020 4:37 pm

Re: iBGP vs OSPF

Fri May 26, 2023 5:51 pm

Use OSPF for underlay to learn loopbacks of all adjacent neighbours. Use iBGP to full-mesh with all loopbacks.
 
User avatar
spippan
Member
Member
Posts: 460
Joined: Wed Nov 12, 2014 1:00 pm

Re: iBGP vs OSPF

Wed May 31, 2023 12:53 am

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 🤔
 
DarkNate
Forum Guru
Forum Guru
Posts: 1065
Joined: Fri Jun 26, 2020 4:37 pm

Re: iBGP vs OSPF

Fri Jun 02, 2023 1:36 pm

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.
 
User avatar
spippan
Member
Member
Posts: 460
Joined: Wed Nov 12, 2014 1:00 pm

Re: iBGP vs OSPF

Sat Jun 03, 2023 12:08 pm

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
 
DarkNate
Forum Guru
Forum Guru
Posts: 1065
Joined: Fri Jun 26, 2020 4:37 pm

Re: iBGP vs OSPF

Sun Jun 04, 2023 9:37 am

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.
 
User avatar
spippan
Member
Member
Posts: 460
Joined: Wed Nov 12, 2014 1:00 pm

Re: iBGP vs OSPF

Sun Jun 04, 2023 9:41 pm

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.

Who is online

Users browsing this forum: No registered users and 3 guests