Bfd Ospfv3

Test to check BFD protocol in OSPFv3.

../../../_images/bfdospfv3.svg

Test Connection

Description

Tests connection between two devices with BFD in OSPFv3 by checking if they are each others peers and their status is up.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces dummy dum0 address '2001::1/128'
set interfaces dummy dum0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 address '2001:db8:0:10::1/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 ipv6 ospfv3 bfd
set interfaces ethernet eth0 ipv6 ospfv3 network point-to-point
set protocols ospfv3 area 0.0.0.0 range '2001:db8:0:10::/64'
set protocols ospfv3 parameters router-id 1.1.1.1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces dummy dum0 address '2001::2/128'
set interfaces dummy dum0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 address '2001:db8:0:10::2/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 ipv6 ospfv3 bfd
set interfaces ethernet eth0 ipv6 ospfv3 network point-to-point
set protocols ospfv3 area 0.0.0.0 range '2001:db8:0:10::/64'
set protocols ospfv3 parameters router-id 2.2.2.2
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Check connectivity

Step 3: Ping the IP address 2001:db8:0:10::2 from DUT0:

admin@DUT0$ ping 2001:db8:0:10::2 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:10::2(2001:db8:0:10::2) 56 data bytes
64 bytes from 2001:db8:0:10::2: icmp_seq=1 ttl=64 time=0.259 ms

--- 2001:db8:0:10::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.259/0.259/0.259/0.000 ms

Step 4: Ping the IP address 2001:db8:0:10::1 from DUT1:

admin@DUT1$ ping 2001:db8:0:10::1 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:10::1(2001:db8:0:10::1) 56 data bytes
64 bytes from 2001:db8:0:10::1: icmp_seq=1 ttl=64 time=0.583 ms

--- 2001:db8:0:10::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.583/0.583/0.583/0.000 ms

Note

Check that they are each other’s neighbors

Step 5: Run the command protocols ospfv3 show neighbor on DUT0 and check whether the output contains the following tokens:

2.2.2.2
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
2.2.2.2           1    00:00:39     Init/PointToPoint    00:00:00 eth0[PointToPoint]

Step 6: Run the command protocols ospfv3 show neighbor on DUT1 and check whether the output contains the following tokens:

1.1.1.1
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
1.1.1.1           1    00:00:38     Full/PointToPoint    00:00:01 eth0[PointToPoint]

Note

Check that they are each other’s peers and that their status is up (the BFD session has been successfully established)

Step 7: Run the command protocols bfd show peers on DUT0 and check whether the output contains the following tokens:

interface eth0
Status: up
Show output
BFD Peers:
peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
ID: 571165286
Remote ID: 2409071521
Active mode
Status: up
Uptime: 2 second(s)
Diagnostics: ok
Remote diagnostics: ok
Peer Type: dynamic
RTT min/avg/max: 0/0/0 usec
Local timers:
Detect-multiplier: 3
Receive interval: 300ms
Transmission interval: 300ms
Transmission interval (actual with jitter): 285ms
Detection timeout: 900ms
Echo receive interval: 50ms
Echo transmission interval: disabled
Remote timers:
Detect-multiplier: 3
Receive interval: 300ms
Transmission interval: 300ms
Echo receive interval: 50ms

Step 8: Run the command protocols bfd show peers on DUT1 and check whether the output contains the following tokens:

interface eth0
Status: up
Show output
BFD Peers:
peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c10 vrf default interface eth0
ID: 2409071521
Remote ID: 571165286
Active mode
Status: up
Uptime: 2 second(s)
Diagnostics: ok
Remote diagnostics: ok
Peer Type: dynamic
RTT min/avg/max: 0/0/0 usec
Local timers:
Detect-multiplier: 3
Receive interval: 300ms
Transmission interval: 300ms
Transmission interval (actual with jitter): 252ms
Detection timeout: 900ms
Echo receive interval: 50ms
Echo transmission interval: disabled
Remote timers:
Detect-multiplier: 3
Receive interval: 300ms
Transmission interval: 300ms
Echo receive interval: 50ms

Test Profile

Description

Checks that all BFD profile configured parameters are shown.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces dummy dum0 address '2001::1/128'
set interfaces dummy dum0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 address '2001:db8:0:10::1/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 ipv6 ospfv3 bfd
set interfaces ethernet eth0 ipv6 ospfv3 network point-to-point
set protocols bfd profile PFL detect-multiplier 5
set protocols bfd profile PFL echo-interval 60
set protocols bfd profile PFL echo-mode
set protocols bfd profile PFL passive-mode
set protocols bfd profile PFL receive-interval 400
set protocols bfd profile PFL transmit-interval 400
set protocols ospfv3 area 0.0.0.0 range '2001:db8:0:10::/64'
set protocols ospfv3 parameters router-id 1.1.1.1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Modify the following configuration lines in DUT0 :

set interfaces ethernet eth0 ipv6 ospfv3 bfd profile PFL

Step 3: Set the following configuration in DUT1 :

set interfaces dummy dum0 address '2001::2/128'
set interfaces dummy dum0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 address '2001:db8:0:10::2/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 ipv6 ospfv3 bfd
set interfaces ethernet eth0 ipv6 ospfv3 network point-to-point
set protocols bfd profile PFL echo-mode
set protocols ospfv3 area 0.0.0.0 range '2001:db8:0:10::/64'
set protocols ospfv3 parameters router-id 2.2.2.2
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 4: Modify the following configuration lines in DUT1 :

set interfaces ethernet eth0 ipv6 ospfv3 bfd profile PFL

Note

Check connectivity

Step 5: Ping the IP address 2001:db8:0:10::2 from DUT0:

admin@DUT0$ ping 2001:db8:0:10::2 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:10::2(2001:db8:0:10::2) 56 data bytes
64 bytes from 2001:db8:0:10::2: icmp_seq=1 ttl=64 time=0.788 ms

--- 2001:db8:0:10::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.788/0.788/0.788/0.000 ms

Step 6: Ping the IP address 2001:db8:0:10::1 from DUT1:

admin@DUT1$ ping 2001:db8:0:10::1 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:10::1(2001:db8:0:10::1) 56 data bytes
64 bytes from 2001:db8:0:10::1: icmp_seq=1 ttl=64 time=0.448 ms

--- 2001:db8:0:10::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.448/0.448/0.448/0.000 ms

Note

Check that they are each other’s neighbors

Step 7: Run the command protocols ospfv3 show neighbor on DUT0 and check whether the output contains the following tokens:

2.2.2.2
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
2.2.2.2           1    00:00:38     Init/PointToPoint    00:00:01 eth0[PointToPoint]

Step 8: Run the command protocols ospfv3 show neighbor on DUT1 and check whether the output contains the following tokens:

1.1.1.1
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
1.1.1.1           1    00:00:39     Full/PointToPoint    00:00:00 eth0[PointToPoint]

Note

Check that they are each other’s peers and that their status is up (the BFD session has been successfully established). Check that all configured profile parameters are shown in DUT0

Step 9: Run the command protocols bfd show peers on DUT0 and check whether the output contains the following tokens:

interface eth0
Status: up
Detect-multiplier: 5
Echo receive interval: 60ms
Echo transmission interval: 60ms
Passive mode
Receive interval: 400ms
Transmission interval: 400ms
Show output
BFD Peers:
peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
ID: 1802337670
Remote ID: 3475221362
Passive mode
Status: up
Uptime: 0 second(s)
Diagnostics: ok
Remote diagnostics: ok
Peer Type: dynamic
RTT min/avg/max: 0/0/0 usec
Profile: PFL
Local timers:
Detect-multiplier: 5
Receive interval: 400ms
Transmission interval: 400ms
Transmission interval (actual with jitter): 336ms
Detection timeout: 1200ms
Echo receive interval: 60ms
Echo transmission interval: 60ms
Echo transmission interval (actual with jitter): 48ms
Remote timers:
Detect-multiplier: 3
Receive interval: 300ms
Transmission interval: 300ms
Echo receive interval: 50ms

Step 10: Run the command protocols bfd show peers on DUT1 and check whether the output contains the following tokens:

interface eth0
Status: up
Show output
BFD Peers:
peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c10 vrf default interface eth0
ID: 3475221362
Remote ID: 1802337670
Active mode
Status: up
Uptime: 0 second(s)
Diagnostics: ok
Remote diagnostics: ok
Peer Type: dynamic
RTT min/avg/max: 0/0/0 usec
Profile: PFL
Local timers:
Detect-multiplier: 3
Receive interval: 300ms
Transmission interval: 300ms
Transmission interval (actual with jitter): 360ms
Detection timeout: 2000ms
Echo receive interval: 50ms
Echo transmission interval: 50ms
Echo transmission interval (actual with jitter): 46ms
Remote timers:
Detect-multiplier: 5
Receive interval: 400ms
Transmission interval: 400ms
Echo receive interval: 60ms