Another experiment: I've turned off the BGP session with my uplink peer in my VPP router (I was running with the iBGP session turned off to avoid problems). After that, obviously Bird has no more routes, and neither does the kernel (other than the device routes):

# birdc show route
BIRD 2.16.1 ready.
#

# ip r|grep -v "scope link"
#

However VPP still has a lot of routes:

# vppctl show ip fib|grep "via x.y.z.w"|wc -l
575106

Trying to remove these routes manually doesn't work either:

# vppctl ip route del 1.0.168.0/24

# vppctl show ip fib 1.0.168.0/24
ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto flowlabel ] epoch:0 flags:none locks:[adjacency:1, default-route:1, lcp-rt:1, ]
1.0.168.0/24 fib:0 index:345621 locks:2
  lcp-rt-dynamic refs:1 src-flags:added,contributing,active,
path-list:[77] locks:1150210 flags:shared,popular, uPRF-list:70 len:1 itfs:[3, ] path:[103] pl-index:77 ip4 weight=1 pref=32 attached-nexthop: oper-flags:resolved,
        x.y.z.w uplink1
[@0]: ipv4 via x.y.z.w uplink1: mtu:1500 next:5 flags:[] b49691b2a989b49691b2a6200800

 forwarding:   unicast-ip4-chain
[@0]: dpo-load-balance: [proto:ip4 index:345622 buckets:1 uRPF:70 to:[0:0]] [0] [@5]: ipv4 via x.y.z.w uplink1: mtu:1500 next:5 flags:[] b49691b2a989b49691b2a6200800 ipv4-VRF:180, fib_index:1, flow hash:[src dst sport dport proto flowlabel ] epoch:0 flags:none locks:[recursive-resolution:1, lcp-rt:1, ]
0.0.0.0/0 fib:1 index:47 locks:2
default-route refs:1 entry-flags:drop, src-flags:added,contributing,active, path-list:[64] locks:2 flags:drop, uPRF-list:60 len:0 itfs:[] path:[90] pl-index:64 ip4 weight=1 pref=0 special: cfg-flags:drop, [@0]: dpo-drop ip4 forwarding: unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:48 buckets:1 uRPF:60 to:[3736:194742]]
    [0] [@0]: dpo-drop ip4


In this state, I've tried the test 'ip route add'/'ip route replace' proposed earlier, and that test still works, so the problem only seems to affect routes learned via BGP. I'm not sure if the problem is the protocol itself or if the high number of route modifications is causing VPP to miss those netlink messages.

Best,
Andre


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#26288): https://lists.fd.io/g/vpp-dev/message/26288
Mute This Topic: https://lists.fd.io/mt/114547460/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/14379924/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to