-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgp_nhg_zapi_scalability: add route update avoidance with nhg
When using bgp nexthop groups, it is possible to avoid route updates, and this test ensures that the number of zapi route messages from BGP to ZEBRA can be reduced, for instance when a failover happens. Signed-off-by: Philippe Guibert <[email protected]>
- Loading branch information
1 parent
2404364
commit 9c19460
Showing
26 changed files
with
1,423 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
debug bgp nexthop-group | ||
debug bgp zebra | ||
debug bgp nexthop | ||
debug bgp nht | ||
bgp suppress-fib-pending | ||
router bgp 64500 | ||
bgp router-id 192.0.2.1 | ||
no bgp ebgp-requires-policy | ||
neighbor rrserver peer-group | ||
neighbor rrserver remote-as 64500 | ||
neighbor rrserver update-source lo | ||
neighbor rrserver timers connect 2 | ||
neighbor 192.0.2.3 peer-group rrserver | ||
neighbor 192.0.2.3 bfd | ||
address-family ipv4 unicast | ||
neighbor rrserver next-hop-self | ||
neighbor rrserver activate | ||
exit-address-family | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
hostname r1 | ||
interface lo | ||
ip router isis 1 | ||
isis passive | ||
! | ||
interface r1-eth1 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r1-eth2 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r1-eth4 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
router isis 1 | ||
net 49.0123.6452.0001.00 | ||
is-type level-2-only | ||
mpls-te on | ||
segment-routing on | ||
segment-routing global-block 16000 17000 | ||
segment-routing node-msd 10 | ||
segment-routing prefix 192.0.2.1/32 index 1 | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
log stdout | ||
!debug zebra packet recv | ||
!debug zebra nexthop detail | ||
interface lo | ||
ip address 192.0.2.1/32 | ||
! | ||
interface r1-eth0 | ||
ip address 172.31.10.1/24 | ||
! | ||
interface r1-eth1 | ||
ip address 172.31.0.1/24 | ||
mpls enable | ||
! | ||
interface r1-eth2 | ||
ip address 172.31.2.1/24 | ||
mpls enable | ||
! | ||
interface r1-eth3 | ||
ip address 172.31.11.1/24 | ||
mpls enable | ||
! | ||
interface r1-eth4 | ||
ip address 172.31.8.1/24 | ||
mpls enable | ||
! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
router bgp 64500 | ||
bgp router-id 192.0.2.3 | ||
neighbor rr peer-group | ||
neighbor rr remote-as 64500 | ||
neighbor rr update-source lo | ||
neighbor rr bfd check-control-plane-failure | ||
bgp listen range 192.0.2.0/24 peer-group rr | ||
! | ||
address-family ipv4 unicast | ||
neighbor rr activate | ||
neighbor rr route-reflector-client | ||
neighbor rr addpath-tx-all-paths | ||
exit-address-family | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
hostname r3 | ||
interface lo | ||
ip router isis 1 | ||
isis passive | ||
! | ||
interface r3-eth0 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r3-eth1 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r3-eth2 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r3-eth3 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r3-eth4 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r3-eth5 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
router isis 1 | ||
net 49.0123.6452.0003.00 | ||
is-type level-2-only | ||
mpls-te on | ||
segment-routing on | ||
segment-routing global-block 16000 17000 | ||
segment-routing node-msd 10 | ||
segment-routing prefix 192.0.2.3/32 index 3 | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
log stdout | ||
interface lo | ||
ip address 192.0.2.3/32 | ||
! | ||
interface r3-eth0 | ||
ip address 172.31.0.3/24 | ||
mpls enable | ||
! | ||
interface r3-eth1 | ||
ip address 172.31.4.3/24 | ||
mpls enable | ||
! | ||
interface r3-eth2 | ||
ip address 172.31.5.3/24 | ||
mpls enable | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
hostname r4 | ||
interface lo | ||
ip router isis 1 | ||
isis passive | ||
! | ||
interface r4-eth0 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r4-eth1 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r4-eth2 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r4-eth3 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
router isis 1 | ||
net 49.0123.6452.0004.00 | ||
is-type level-2-only | ||
mpls-te on | ||
segment-routing on | ||
segment-routing global-block 16000 17000 | ||
segment-routing node-msd 10 | ||
segment-routing prefix 192.0.2.4/32 index 4 | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
log stdout | ||
interface lo | ||
ip address 192.0.2.4/32 | ||
! | ||
interface r4-eth0 | ||
ip address 172.31.2.4/24 | ||
mpls enable | ||
! | ||
interface r4-eth1 | ||
ip address 172.31.6.4/24 | ||
mpls enable | ||
! | ||
interface r4-eth2 | ||
ip address 172.31.7.4/24 | ||
mpls enable | ||
! | ||
interface r4-eth3 | ||
mpls enable | ||
! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
router bgp 64500 | ||
bgp router-id 192.0.2.5 | ||
no bgp ebgp-requires-policy | ||
no bgp network import-check | ||
neighbor rrserver peer-group | ||
neighbor rrserver remote-as 64500 | ||
neighbor rrserver update-source lo | ||
neighbor rrserver bfd | ||
neighbor rrserver timers connect 2 | ||
neighbor 192.0.2.3 peer-group rrserver | ||
address-family ipv4 unicast | ||
network 192.0.2.9/32 | ||
neighbor rrserver activate | ||
neighbor rrserver next-hop-self | ||
redistribute sharp | ||
exit-address-family | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
hostname r5 | ||
interface lo | ||
ip router isis 1 | ||
isis passive | ||
! | ||
interface r5-eth1 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r5-eth2 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r5-eth3 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
router isis 1 | ||
net 49.0123.6452.0005.00 | ||
is-type level-2-only | ||
mpls-te on | ||
segment-routing on | ||
segment-routing global-block 16000 17000 | ||
segment-routing node-msd 10 | ||
segment-routing prefix 192.0.2.5/32 index 55 | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
log stdout | ||
debug zebra packet recv | ||
!debug zebra rib detail | ||
mpls label dynamic-block 5000 5999 | ||
interface lo | ||
ip address 192.0.2.5/32 | ||
! | ||
interface r5-eth0 | ||
ip address 172.31.12.5/24 | ||
! | ||
interface r5-eth1 | ||
ip address 172.31.4.5/24 | ||
mpls enable | ||
! | ||
interface r5-eth2 | ||
ip address 172.31.7.5/24 | ||
mpls enable | ||
! | ||
interface r5-eth3 | ||
ip address 172.31.21.5/24 | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
router bgp 64500 | ||
bgp router-id 192.0.2.6 | ||
no bgp ebgp-requires-policy | ||
no bgp network import-check | ||
neighbor rrserver peer-group | ||
neighbor rrserver remote-as 64500 | ||
neighbor rrserver update-source lo | ||
neighbor rrserver bfd | ||
neighbor 192.0.2.3 peer-group rrserver | ||
address-family ipv4 unicast | ||
network 192.0.2.9/32 | ||
neighbor rrserver activate | ||
neighbor rrserver next-hop-self | ||
redistribute sharp | ||
exit-address-family | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
hostname r6 | ||
interface lo | ||
ip router isis 1 | ||
isis passive | ||
! | ||
interface r6-eth1 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r6-eth2 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
router isis 1 | ||
net 49.0123.6452.0006.00 | ||
is-type level-2-only | ||
mpls-te on | ||
segment-routing on | ||
segment-routing global-block 16000 17000 | ||
segment-routing node-msd 10 | ||
segment-routing prefix 192.0.2.6/32 index 6 | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sharp install routes 193.0.0.1 nexthop 192.0.2.6 2000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
log stdout | ||
mpls label dynamic-block 6000 6999 | ||
interface lo | ||
ip address 192.0.2.6/32 | ||
! | ||
interface r6-eth0 | ||
ip address 172.31.13.6/24 | ||
! | ||
interface r6-eth1 | ||
ip address 172.31.5.6/24 | ||
mpls enable | ||
! | ||
interface r6-eth2 | ||
ip address 172.31.6.6/24 | ||
mpls enable | ||
! | ||
interface r6-eth3 | ||
ip address 172.31.22.6/24 | ||
! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
hostname r7 | ||
interface lo | ||
ip router isis 1 | ||
isis passive | ||
! | ||
interface r7-eth0 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
interface r7-eth1 | ||
ip router isis 1 | ||
isis network point-to-point | ||
! | ||
router isis 1 | ||
net 49.0123.6452.0007.00 | ||
is-type level-2-only | ||
mpls-te on | ||
segment-routing on | ||
segment-routing global-block 16000 17000 | ||
segment-routing node-msd 10 | ||
segment-routing prefix 192.0.2.7/32 index 7 | ||
! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
log stdout | ||
interface lo | ||
ip address 192.0.2.7/32 | ||
! | ||
interface r7-eth0 | ||
ip address 172.31.8.7/24 | ||
mpls enable | ||
! shutdown | ||
! | ||
interface r7-eth1 | ||
ip address 172.31.9.7/24 | ||
mpls enable | ||
! | ||
|
Oops, something went wrong.