Community discussions

MikroTik App
 
User avatar
blazej44800
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Thu Feb 20, 2014 6:16 pm

Route flap after DR goes down

Sun Oct 27, 2019 10:09 pm

Hello,

I just experienced different behaviour in OSPF - RouterOS vs. Cisco iOS according to GNS3 simulation.

I have few routers connected to switch. They are running OSPF broadcast network type with DR/BDR election. With RouterOS when DR router goes down, all other routers flush route table for dead-interval and then reinitialize. All these routers have working BDR, why this route flap?

With Cisco iOS in the same topology no route flap happen.

Blažej
Last edited by blazej44800 on Mon Oct 28, 2019 10:04 am, edited 1 time in total.
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: Route flap after DR goes down

Mon Oct 28, 2019 12:17 am

Are you only experiencing this in gns3 or same on actual Mikrotik devices?

What is your gns3 setup?
 
User avatar
blazej44800
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Thu Feb 20, 2014 6:16 pm

Re: Route flap after DR goes down

Mon Oct 28, 2019 12:02 pm

I just proved this issue with real devices - simple 4 routers star with switch in the middle.
R1 - PRIO: 200 - 192.168.0.1/24 - LOOPBACK: 192.168.1.1
R2 - PRIO: 190 - 192.168.0.2/24 - LOOPBACK: 192.168.2.1
R3 - PRIO: 180 - 192.168.0.3/24 - LOOPBACK: 192.168.3.1
R4 - PRIO: 170 - 192.168.0.4/24 - LOOPBACK: 192.168.4.1

Tested with default timers (hello 10s, dead 40s) and custom timers (hello 1s, dead 5s).
R1 is DR, R2 BDR. From R4 I'm pinging R2 loopback. Then I disconnect R1 and wait until dead-interval reached. R2 becomes DR, R3 BDR. Attaching screen record: https://youtu.be/jizkX_4a-CI

In GNS3 I had little bigger simulation with the same results. Attaching screenshot.
You do not have the required permissions to view the files attached to this post.
 
User avatar
jprietove
Trainer
Trainer
Posts: 212
Joined: Fri Jun 03, 2016 3:00 pm
Location: Cádiz, Spain
Contact:

Re: Route flap after DR goes down

Mon Oct 28, 2019 3:44 pm

Please provide export of the routers

Enviado desde mi Mi A2 mediante Tapatalk

 
User avatar
blazej44800
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Thu Feb 20, 2014 6:16 pm

Re: Route flap after DR goes down

Mon Oct 28, 2019 5:08 pm

Export below.
You do not have the required permissions to view the files attached to this post.
 
User avatar
jprietove
Trainer
Trainer
Posts: 212
Joined: Fri Jun 03, 2016 3:00 pm
Location: Cádiz, Spain
Contact:

Re: Route flap after DR goes down

Mon Oct 28, 2019 5:45 pm

Use LOOPBACK ip Address as Router-ID:

* R1, /routing ospf instance set [ find default=yes ] router-id=192.168.2.1
* The same in all others Routrers

This will solve all your problems
 
User avatar
blazej44800
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Thu Feb 20, 2014 6:16 pm

Re: Route flap after DR goes down

Mon Oct 28, 2019 7:26 pm

Use LOOPBACK ip Address as Router-ID:

* R1, /routing ospf instance set [ find default=yes ] router-id=192.168.2.1
* The same in all others Routrers

This will solve all your problems
No change. Did you test it?
 
User avatar
jprietove
Trainer
Trainer
Posts: 212
Joined: Fri Jun 03, 2016 3:00 pm
Location: Cádiz, Spain
Contact:

Re: Route flap after DR goes down

Mon Oct 28, 2019 7:57 pm

No change. Did you test it?
Sorry, I didn't... I will give a look and I'll tell you
 
User avatar
jprietove
Trainer
Trainer
Posts: 212
Joined: Fri Jun 03, 2016 3:00 pm
Location: Cádiz, Spain
Contact:

Re: Route flap after DR goes down

Fri Dec 10, 2021 5:05 pm

Sorry, I didn't... I will give a look and I'll tell you
Well, quite a bit late. I am testing OSPF and BGP routing in new v7 and updating my training documents for v7. So I tried this and yes, routes flaps in v6 AND routes still flaps in v7 after DR goes down.


[Edited]
But, packets are lost in transit for several seconds in the change from BDR to DR. I'm testing it to verify if it is (still) a bug.
[/Edited]
[Edited 2]
Well, after deeper tests, the BUG is still present in OSPF for RouterOS v.7.1. Changing from BDR to DR is not always smooth. Sometimes the routes don't flap and sometimes they do.
If the routes don't flap, a continous PING between is broken for 5 seconds. If the routes flap, it takes 10 seconds.
[/Edited 2]

Who is online

Users browsing this forum: No registered users and 38 guests