FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.27k stars 1.24k forks source link

OSPF : default route got flushed after 30mins of refresh timer expiry #3124

Closed rgirada closed 5 years ago

rgirada commented 5 years ago

After 30mins of refresh timer expairy , default route lsa got flushed from the originated router which intern makes it delete the route from peer end before the max expiry timer. Idleay , Originate router should not flush the default route lsa in refresh timer expiry when user configured "default-info originate always".

Steps to reproduce the issue:

  1. Ensure the adjacency b/w the two ospf routers .
  2. configure "default-info originate always" -> default route will be originated and flooded to AS.
  3. wait for lsarefresh timer (30 mins )
  4. check the lsa database - > default route lsa's age will be max_age and flushed after maxage_delay timer.
  5. check the peer ospf router -> default route originated from this router-id will be deleted.

Log :

dev# dev# dev# show ip os neighbor

Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL 55.5.5.10 1 Full/DR 38.221s 55.5.5.10 ens224:55.5.5.5 0 0 0

dev# dev# dev# dev# dev# dev# dev# dev# dev# con te dev(config)# dev(config)# router ospf dev(config-router)# dev(config-router)# dev(config-router)# default-i o always dev(config-router)# do show ip ospf database

   OSPF Router with ID (55.5.5.5)

            Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count 55.5.5.5 55.5.5.5 10 0x80000007 0xd8fc 2 55.5.5.10 55.5.5.10 171 0x80000003 0xf327 1

            Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum 55.5.5.10 55.5.5.10 172 0x80000001 0xd65b

            AS External Link States

Link ID ADV Router Age Seq# CkSum Route 0.0.0.0 55.5.5.5 9 0x80000001 0x92f8 E2 0.0.0.0/0 [0x0]

dev(config-router)# do show ip ospf database

   OSPF Router with ID (55.5.5.5)

            Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count 55.5.5.5 55.5.5.5 86 0x80000007 0xd8fc 2 55.5.5.10 55.5.5.10 247 0x80000003 0xf327 1

            Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum 55.5.5.10 55.5.5.10 248 0x80000001 0xd65b

            AS External Link States

Link ID ADV Router Age Seq# CkSum Route 0.0.0.0 55.5.5.5 85 0x80000001 0x92f8 E2 0.0.0.0/0 [0x0]

dev(config-router)# dev(config-router)# dev(config-router)# dev(config-router)# do show ip ospf database

   OSPF Router with ID (55.5.5.5)

            Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count 55.5.5.5 55.5.5.5 983 0x80000007 0xd8fc 2 55.5.5.10 55.5.5.10 1144 0x80000003 0xf327 1

            Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum 55.5.5.10 55.5.5.10 1145 0x80000001 0xd65b

            AS External Link States

Link ID ADV Router Age Seq# CkSum Route 0.0.0.0 55.5.5.5 982 0x80000001 0x92f8 E2 0.0.0.0/0 [0x0]

dev(config-router)# dev(config-router)# do show ip ospf database

   OSPF Router with ID (55.5.5.5)

            Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count 55.5.5.5 55.5.5.5 1129 0x80000007 0xd8fc 2 55.5.5.10 55.5.5.10 1290 0x80000003 0xf327 1

            Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum 55.5.5.10 55.5.5.10 1291 0x80000001 0xd65b

            AS External Link States

Link ID ADV Router Age Seq# CkSum Route 0.0.0.0 55.5.5.5 1128 0x80000001 0x92f8 E2 0.0.0.0/0 [0x0]

dev(config-router)# dev(config-router)# dev(config-router)# dev(config-router)# dev(config-router)# dev(config-router)# do show ip ospf database

   OSPF Router with ID (55.5.5.5)

            Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count 55.5.5.5 55.5.5.5 1251 0x80000007 0xd8fc 2 55.5.5.10 55.5.5.10 1412 0x80000003 0xf327 1

            Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum 55.5.5.10 55.5.5.10 1413 0x80000001 0xd65b

            AS External Link States

Link ID ADV Router Age Seq# CkSum Route 0.0.0.0 55.5.5.5 1250 0x80000001 0x92f8 E2 0.0.0.0/0 [0x0]

dev(config-router)# dev(config-router)# dev(config-router)# do show running-config Building configuration...

Current configuration: ! frr version 6.1-dev-MyOwnFRRVersion frr defaults traditional hostname dev log file /var/log/frr/ospf_2 log syslog informational ! interface ens192 ip address 44.4.4.4/24 ip ospf area 0 ! interface ens224 ip address 55.5.5.5/24 ip ospf area 0 ! router ospf ospf router-id 55.5.5.5 default-information originate always ! route-map ospf-pm permit 5 set metric 200 ! route-map ospf-rm permit 5 set metric 1000 ! line vty ! end dev(config-router)# dev(config-router)# do show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR, f - OpenFabric,

  • selected route, * - FIB route

K> 10.5.97.57/32 [0/0] via 10.112.157.253, ens160, 00:28:18 C> 10.112.156.0/23 is directly connected, ens160, 00:34:21 O 44.4.4.0/24 [110/10] is directly connected, ens192, 00:24:43 C> 44.4.4.0/24 is directly connected, ens192, 00:34:21 O 55.5.5.0/24 [110/10] is directly connected, ens224, 00:23:47 C> 55.5.5.0/24 is directly connected, ens224, 00:34:21 dev(config-router)# dev(config-router)# dev(config-router)# do show ip ospf database

   OSPF Router with ID (55.5.5.5)

            Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count 55.5.5.5 55.5.5.5 1274 0x80000007 0xd8fc 2 55.5.5.10 55.5.5.10 1435 0x80000003 0xf327 1

            Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum 55.5.5.10 55.5.5.10 1436 0x80000001 0xd65b

            AS External Link States

Link ID ADV Router Age Seq# CkSum Route 0.0.0.0 55.5.5.5 1273 0x80000001 0x92f8 E2 0.0.0.0/0 [0x0]

dev(config-router)# dev(config-router)# do show ip ospf database

   OSPF Router with ID (55.5.5.5)

            Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count 55.5.5.5 55.5.5.5 1356 0x80000007 0xd8fc 2 55.5.5.10 55.5.5.10 1517 0x80000003 0xf327 1

            Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum 55.5.5.10 55.5.5.10 1518 0x80000001 0xd65b

            AS External Link States

Link ID ADV Router Age Seq# CkSum Route 0.0.0.0 55.5.5.5 1355 0x80000001 0x92f8 E2 0.0.0.0/0 [0x0]

dev(config-router)# do show ip ospf database

   OSPF Router with ID (55.5.5.5)

            Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count 55.5.5.5 55.5.5.5 1470 0x80000007 0xd8fc 2 55.5.5.10 55.5.5.10 1631 0x80000003 0xf327 1

            Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum 55.5.5.10 55.5.5.10 1632 0x80000001 0xd65b

            AS External Link States

Link ID ADV Router Age Seq# CkSum Route 0.0.0.0 55.5.5.5 1469 0x80000001 0x92f8 E2 0.0.0.0/0 [0x0]

dev(config-router)# do show ip ospf database

   OSPF Router with ID (55.5.5.5)

            Router Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum Link count 55.5.5.5 55.5.5.5 123 0x80000008 0xd6fd 2 55.5.5.10 55.5.5.10 304 0x80000004 0xf128 1

            Net Link States (Area 0.0.0.0)

Link ID ADV Router Age Seq# CkSum 55.5.5.10 55.5.5.10 284 0x80000002 0xd45c

dev(config-router)# do show running-config Building configuration...

Current configuration: ! frr version 6.1-dev-MyOwnFRRVersion frr defaults traditional hostname dev log file /var/log/frr/ospf_2 log syslog informational ! interface ens192 ip address 44.4.4.4/24 ip ospf area 0 ! interface ens224 ip address 55.5.5.5/24 ip ospf area 0 ! router ospf ospf router-id 55.5.5.5 default-information originate always ! route-map ospf-pm permit 5 set metric 200 ! route-map ospf-rm permit 5 set metric 1000 ! line vty ! end dev(config-router)# dev(config-router)# do show version FRRouting 6.1-dev-MyOwnFRRVersion-geec50ad (dev). Copyright 1996-2005 Kunihiro Ishiguro, et al. This is a git build of frr-6.1-dev-103-geec50ad Associated branch(es): local:master github/frrouting/frr.git/master

configured with: '--prefix=/usr' '--enable-exampledir=/usr/share/doc/frr/examples/' '--localstatedir=/var/run/frr' '--sbindir=/usr/lib/frr' '--sysconfdir=/etc/frr' '--enable-pimd' '--enable-watchfrr' '--enable-ospfclient=yes' '--enable-ospfapi=yes' '--enable-multipath=64' '--enable-user=frr' '--enable-group=frr' '--enable-vty-group=frrvty' '--enable-configfile-mask=0640' '--enable-logfile-mask=0640' '--enable-rtadv' '--enable-fpm' '--enable-systemd=yes' '--with-pkg-git-version' '--with-pkg-extra-version=-MyOwnFRRVersion' dev(config-router)#

Thanks.

rgirada commented 5 years ago

Please assign it me , I will start look into this .

manoj-viswanath commented 5 years ago

This issue can be marked as closed.