Way too many routes imported in OSPF
Hi, I’ve set up an OSPF as an IGP to resolve the BGP next-hops on the routes learned from eBGP sessions. On one of my border routers (running FreeBSD), the counters are correct: root@nominoe:~ # birdc 'show protocols all "ospf_*"' BIRD 2.0.2 ready. Name Proto Table State Since Info ospf_ipv4 OSPF master4 up 16:29:14.755 Running Channel ipv4 State: UP Table: master4 Preference: 150 Input filter: (unnamed) Output filter: (unnamed) Import limit: 200 Action: block Routes: 59 imported, 0 filtered, 26 exported Route change stats: received rejected filtered ignored accepted Import updates: 114 0 0 0 114 Import withdraws: 43 0 --- 0 43 Export updates: 4343089 79 4342789 --- 221 Export withdraws: 25677 --- --- --- 195 ospf_ipv6 OSPF master6 up 16:29:14.755 Running Channel ipv6 State: UP Table: master6 Preference: 150 Input filter: (unnamed) Output filter: (unnamed) Import limit: 200 Action: block Routes: 16 imported, 0 filtered, 13 exported Route change stats: received rejected filtered ignored accepted Import updates: 178 0 0 0 178 Import withdraws: 161 0 --- 0 161 Export updates: 210288 168 210107 --- 13 Export withdraws: 4415 --- --- --- 0 On the other (running Gentoo), I can’t have so much: asbr02 ~ # birdc 'show protocols all "ospf_*"' BIRD 2.0.3 ready. Name Proto Table State Since Info ospf_ipv4 OSPF master4 up 17:07:45.751 Running Channel ipv4 State: UP Table: master4 Preference: 150 Input filter: (unnamed) Output filter: (unnamed) Import limit: 200 Action: block Routes: 64 imported, 0 filtered, 4294120544 exported Route change stats: received rejected filtered ignored accepted Import updates: 258 0 0 0 258 Import withdraws: 181 0 --- 0 181 Export updates: 2107116 242 2106865 --- 9 Export withdraws: 21844 --- --- --- 846761 ospf_ipv6 OSPF master6 up 17:02:14.667 Running Channel ipv6 State: UP Table: master6 Preference: 150 Input filter: (unnamed) Output filter: (unnamed) Import limit: 200 Action: block Routes: 19 imported, 0 filtered, 4294870086 exported Route change stats: received rejected filtered ignored accepted Import updates: 204 0 0 0 204 Import withdraws: 185 0 --- 0 185 Export updates: 325977 194 325773 --- 10 Export withdraws: 10926 --- --- --- 97220 asbr02 ~ # birdc 'show route count table master4' BIRD 2.0.3 ready. 2461149 of 2461149 routes for 737465 networks in table master4 asbr02 ~ # birdc 'show route count table master6' BIRD 2.0.3 ready. 239266 of 239266 routes for 63527 networks in table master6 I already tried to restart the protocols, but it doesn’t change anything. Any idea? Thanks, -- Alarig
On 24/01/2019 10:23, Alarig Le Lay wrote:
asbr02 ~ # birdc 'show route count table master4' BIRD 2.0.3 ready. 2461149 of 2461149 routes for 737465 networks in table master4 asbr02 ~ # birdc 'show route count table master6' BIRD 2.0.3 ready. 239266 of 239266 routes for 63527 networks in table master6
I already tried to restart the protocols, but it doesn’t change anything. Any idea?
Have you setup any import filters for OSPF? https://bird.network.cz/?get_doc&v=20&f=bird-6.html#ss6.8 https://gitlab.labs.nic.cz/labs/bird/wikis/OSPF_example -Christoffer
On jeu. 24 janv. 10:51:21 2019, Christoffer Hansen wrote:
On 24/01/2019 10:46, Christoffer Hansen wrote:
Have you setup any import filters for OSPF?
Maybe export filters would be the trick?
I already have an import filter: ################## # OSPF # ################## protocol ospf ospf_ipv4 { ipv4 { import all; import keep filtered; import limit 200 action block; import filter { accept; }; export filter { if (proto = "kernel1" || proto = "direct1") then accept; else reject; }; }; area 0.0.0.0 { interface "enp3s0f1.33"; }; } protocol ospf v3 ospf_ipv6 { ipv6 { import all; import keep filtered; import limit 200 action block; import filter { accept; }; export filter { if (proto = "kernel1" || proto = "direct1") then accept; else reject; }; }; area 0.0.0.0 { interface "enp3s0f1.33"; }; } But if I use 'route count', I have reasonable values: bird> show route count protocol ospf_ipv4 63 of 2461477 routes for 737544 networks in table master4 bird> show route count protocol ospf_ipv6 19 of 239272 routes for 63565 networks in table master6 bird> show route count export ospf_ipv4 9 of 2461477 routes for 737544 networks in table master4 bird> show route count export ospf_ipv6 10 of 239279 routes for 63564 networks in table master6 -- Alarig
Hi, Just FYI, I had the same issue with a BGP session today: bird> show protocols all bgp_netensia_ipv4 Name Proto Table State Since Info bgp_netensia_ipv4 BGP --- up 2019-01-19 Established Description: netensia BGP state: Established Neighbor address: 46.18.103.41 Neighbor AS: 35665 Neighbor ID: 130.117.40.122 Local capabilities Multiprotocol AF announced: ipv4 Route refresh Graceful restart 4-octet AS numbers Enhanced refresh Long-lived graceful restart Neighbor capabilities Multiprotocol AF announced: ipv4 Route refresh 4-octet AS numbers Session: external AS4 Source address: 46.18.103.42 Hold timer: 151.721/180 Keepalive timer: 36.508/60 Channel ipv4 State: UP Table: master4 Preference: 100 Input filter: bgp_filter_netensia_in_ipv4 Output filter: (unnamed) Receive limit: 800000 Action: block Export limit: 4 [HIT] Action: block Routes: 734238 imported, 392 filtered, 4294444577 exported Route change stats: received rejected filtered ignored accepted Import updates: 3331383 0 8324 56 3323003 Import withdraws: 228571 0 --- 8013 228882 Export updates: 15907711 5947699 9959998 --- 14 Export withdraws: 288737 --- --- --- 2000972 BGP Next hop: 46.18.103.42 I downgraded to bird 2.0.2 and now ospf counters are correct: ospf_ipv4 OSPF master4 up 17:20:56.788 Running Channel ipv4 State: UP Table: master4 Preference: 150 Input filter: (unnamed) Output filter: (unnamed) Import limit: 200 Action: block Routes: 62 imported, 0 filtered, 18 exported Route change stats: received rejected filtered ignored accepted Import updates: 63 0 0 0 63 Import withdraws: 0 0 --- 0 0 Export updates: 909026 54 908954 --- 18 Export withdraws: 5 --- --- --- 0 ospf_ipv6 OSPF master6 up 17:20:56.788 Running Channel ipv6 State: UP Table: master6 Preference: 150 Input filter: (unnamed) Output filter: (unnamed) Import limit: 200 Action: block Routes: 17 imported, 0 filtered, 20 exported Route change stats: received rejected filtered ignored accepted Import updates: 18 0 0 0 18 Import withdraws: 1 0 --- 0 1 Export updates: 146559 8 146531 --- 20 Export withdraws: 3 --- --- --- 0 -- Alarig
On Tue, Jan 29, 2019 at 05:27:27PM +0100, Alarig Le Lay wrote:
Hi,
Just FYI, I had the same issue with a BGP session today:
Hi I guess it is just an overflow in counter during its decrease. Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
On Tue, Jan 29, 2019 at 05:27:27PM +0100, Alarig Le Lay wrote:
Hi,
Just FYI, I had the same issue with a BGP session today:
BTW, it is possible that it is triggered by change/reconfiguration of export filters? -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Hi Ondrej, On mar. 29 janv. 19:08:12 2019, Ondrej Zajicek wrote:
On Tue, Jan 29, 2019 at 05:27:27PM +0100, Alarig Le Lay wrote:
Hi,
Just FYI, I had the same issue with a BGP session today:
BTW, it is possible that it is triggered by change/reconfiguration of export filters?
On BGP yes, on OSPF I don’t know, I did have this value since bird starts. -- Alarig
participants (3)
-
Alarig Le Lay -
Christoffer Hansen -
Ondrej Zajicek