[f-nsp] Getting the maximum into the CAM on the MLX
Jörg Kost
jk at ip-clear.de
Sat Jun 27 04:58:54 EDT 2020
Hello friends,
if you are still on -X generation cards and on a BGP full feed or in a
SLX transition project, I have continued the idea of filtering out some
AS numbers on some of our MLXs to make life easier for a while.
https://github.com/ipcjk/aspather
https://github.com/ipcjk/aspather/releases
takes the output from your personal SLX / BGP "show ip bgp routes |
show ipv6 bgp routes" - command and tries to calculate up to the best /
maximum solution for filling up the available CAM space. With the help
of a user and country defined AS mapping, the target is also to produce
a smaller filter set.
Maybe someone will find this useful, too.
./aspather -camsize 760000 -routes fullroutes -personal config_personal
-debug
2020/06/27 10:04:15 Starting optimizer, target cam size 760000
input: 817765 routes in 98885 bgp autonomous systems
758305 in 0 zero 30899 match 67972 nospace 14 nospaceRoutes 59324
Routes not installed:
AS not seen in BGP: 30899
AS not enough CAM: 14
Not installed by country:
IL:1 CA:1 AU:1 ES:1 MX:1 CR:1 SA:1 VN:2 US:3 TR:1 ID:1
ip as-path access-list savethefib permit _11492$
ip as-path access-list savethefib permit _11830$
ip as-path access-list savethefib permit _12479$
ip as-path access-list savethefib permit _22773$
ip as-path access-list savethefib permit _39891$
ip as-path access-list savethefib permit _45899$
ip as-path access-list savethefib permit _6327$
ip as-path access-list savethefib permit _7155$
ip as-path access-list savethefib permit _7545$
ip as-path access-list savethefib permit _7552$
ip as-path access-list savethefib permit _7713$
ip as-path access-list savethefib permit _8151$
ip as-path access-list savethefib permit _8551$
ip as-path access-list savethefib permit _9121$
2020/06/27 10:04:15 Alloc = 152 MiB
2020/06/27 10:04:15 TotalAlloc = 558 MiB
2020/06/27 10:04:15 Sys = 205 MiB
2020/06/27 10:04:15 NumGC = 26
Regards and take care
Jörg
More information about the foundry-nsp
mailing list