Bfd Ospf

Test to check BFD protocol in OSPF.

Test Connection

Description

Tests BFD connection in OSPF.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces dummy dum0 address 10.0.0.1/24
set interfaces ethernet eth0 address 192.168.1.1/24
set interfaces ethernet eth0 ip ospf bfd
set interfaces ethernet eth0 ip ospf network point-to-point
set protocols ospf area 0 network 10.0.0.0/24
set protocols ospf area 0 network 192.168.1.0/24
set protocols ospf 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 10.0.0.2/24
set interfaces ethernet eth0 address 192.168.1.2/24
set interfaces ethernet eth0 ip ospf bfd
set interfaces ethernet eth0 ip ospf network point-to-point
set protocols ospf area 0 network 10.0.0.0/24
set protocols ospf area 0 network 192.168.1.0/24
set protocols ospf parameters router-id 2.2.2.2
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run command protocols ospf show neighbor at DUT0 and check if output matches the following regular expressions:

2.2.2.2
Show output
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
2.2.2.2           1 Full/-          0.604s            39.394s 192.168.1.2     eth0:192.168.1.1                     1     0     0

Step 4: Run command protocols ospf show neighbor at DUT1 and check if output matches the following regular expressions:

1.1.1.1
Show output
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
1.1.1.1           1 Full/-          0.725s            37.495s 192.168.1.1     eth0:192.168.1.2                     1     0     0

Step 5: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

peer 192.168.1.2
Show output
BFD Peers:
        peer 192.168.1.2 vrf default interface eth0
                ID: 4209943041
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 1 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

Step 6: Run command protocols bfd show peers at DUT1 and check if output matches the following regular expressions:

peer 192.168.1.1
Show output
BFD Peers:
        peer 192.168.1.1 vrf default interface eth0
                ID: 873886632
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 1 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

Step 7: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Status: up
Show output
BFD Peers:
        peer 192.168.1.2 vrf default interface eth0
                ID: 4209943041
                Remote ID: 873886632
                Active mode
                Status: up
                Uptime: 1 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
                        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 command protocols bfd show peers at DUT1 and check if output matches the following regular expressions:

Status: up
Show output
BFD Peers:
        peer 192.168.1.1 vrf default interface eth0
                ID: 873886632
                Remote ID: 4209943041
                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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 9: Ping IP address 192.168.1.2 from DUT0:

admin@DUT0$ ping 192.168.1.2 count 1 size 56 timeout 1
Show output
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.198 ms

--- 192.168.1.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.198/0.198/0.198/0.000 ms

Step 10: Ping IP address 192.168.1.1 from DUT1:

admin@DUT1$ ping 192.168.1.1 count 1 size 56 timeout 1
Show output
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.173 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.173/0.173/0.173/0.000 ms

Test Connection With Three Devices

Description

Tests BFD connection in OSPF between 3 devices.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces dummy dum0 address 10.0.0.1/24
set interfaces ethernet eth0 address 192.168.1.1/24
set interfaces ethernet eth0 ip ospf bfd
set interfaces ethernet eth0 ip ospf network point-to-point
set interfaces ethernet eth1 address 192.168.2.1/24
set interfaces ethernet eth1 ip ospf bfd
set interfaces ethernet eth1 ip ospf network point-to-point
set protocols ospf area 0 network 10.0.0.0/24
set protocols ospf area 0 network 192.168.1.0/24
set protocols ospf area 1 network 192.168.2.0/24
set protocols ospf 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 10.0.0.2/24
set interfaces ethernet eth0 address 192.168.2.2/24
set interfaces ethernet eth0 ip ospf bfd
set interfaces ethernet eth0 ip ospf network point-to-point
set interfaces ethernet eth1 address 192.168.3.2/24
set interfaces ethernet eth1 ip ospf bfd
set interfaces ethernet eth1 ip ospf network point-to-point
set protocols ospf area 0 network 10.0.0.0/24
set protocols ospf area 1 network 192.168.2.0/24
set protocols ospf area 2 network 192.168.3.0/24
set protocols ospf parameters router-id 2.2.2.2
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2 :

set interfaces dummy dum0 address 10.0.0.3/24
set interfaces ethernet eth0 address 192.168.1.3/24
set interfaces ethernet eth0 ip ospf bfd
set interfaces ethernet eth0 ip ospf network point-to-point
set interfaces ethernet eth1 address 192.168.3.3/24
set interfaces ethernet eth1 ip ospf bfd
set interfaces ethernet eth1 ip ospf network point-to-point
set protocols ospf area 0 network 10.0.0.0/24
set protocols ospf area 0 network 192.168.1.0/24
set protocols ospf area 2 network 192.168.3.0/24
set protocols ospf parameters router-id 3.3.3.3
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 4: Run command protocols ospf show neighbor at DUT0 and check if output matches the following regular expressions:

3.3.3.3
Show output
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
3.3.3.3           1 Init/-          0.598s            39.401s 192.168.1.3     eth0:192.168.1.1                     0     0     0
2.2.2.2           1 Full/-          4.821s            37.311s 192.168.2.2     eth1:192.168.2.1                     1     0     0

Step 5: Run command protocols ospf show neighbor at DUT0 and check if output matches the following regular expressions:

2.2.2.2
Show output
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
3.3.3.3           1 Init/-          0.720s            39.279s 192.168.1.3     eth0:192.168.1.1                     0     0     0
2.2.2.2           1 Full/-          4.943s            37.189s 192.168.2.2     eth1:192.168.2.1                     1     0     0

Step 6: Run command protocols ospf show neighbor at DUT1 and check if output matches the following regular expressions:

1.1.1.1
Show output
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
1.1.1.1           1 Full/-          5.023s            34.975s 192.168.2.1     eth0:192.168.2.2                     1     0     0
3.3.3.3           1 Init/-          0.799s            39.200s 192.168.3.3     eth1:192.168.3.2                     0     0     0

Step 7: Run command protocols ospf show neighbor at DUT1 and check if output matches the following regular expressions:

3.3.3.3
Show output
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
1.1.1.1           1 Full/-          5.121s            34.877s 192.168.2.1     eth0:192.168.2.2                     1     0     0
3.3.3.3           1 Init/-          0.897s            39.102s 192.168.3.3     eth1:192.168.3.2                     0     0     0

Step 8: Run command protocols ospf show neighbor at DUT2 and check if output matches the following regular expressions:

1.1.1.1
Show output
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
1.1.1.1           1 Full/-          1.445s            38.553s 192.168.1.1     eth0:192.168.1.3                     1     0     0

Step 9: Run command protocols ospf show neighbor at DUT2 and check if output matches the following regular expressions:

2.2.2.2
Show output
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
1.1.1.1           1 Full/-          3.618s            36.380s 192.168.1.1     eth0:192.168.1.3                     1     0     0
2.2.2.2           1 Full/-          1.485s            38.514s 192.168.3.2     eth1:192.168.3.3                     1     0     0

Step 10: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

peer 192.168.1.3
Show output
BFD Peers:
        peer 192.168.1.3 vrf default interface eth0
                ID: 4173346882
                Remote ID: 2417171107
                Active mode
                Status: up
                Uptime: 1 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.2.2 vrf default interface eth1
                ID: 1146443698
                Remote ID: 511605353
                Active mode
                Status: up
                Uptime: 12 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 11: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

peer 192.168.2.2
Show output
BFD Peers:
        peer 192.168.1.3 vrf default interface eth0
                ID: 4173346882
                Remote ID: 2417171107
                Active mode
                Status: up
                Uptime: 1 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.2.2 vrf default interface eth1
                ID: 1146443698
                Remote ID: 511605353
                Active mode
                Status: up
                Uptime: 12 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 12: Run command protocols bfd show peers at DUT1 and check if output matches the following regular expressions:

peer 192.168.2.1
Show output
BFD Peers:
        peer 192.168.2.1 vrf default interface eth0
                ID: 511605353
                Remote ID: 1146443698
                Active mode
                Status: up
                Uptime: 12 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.3.3 vrf default interface eth1
                ID: 1648418974
                Remote ID: 2843922612
                Active mode
                Status: init
                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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: 50ms

Step 13: Run command protocols bfd show peers at DUT1 and check if output matches the following regular expressions:

peer 192.168.3.3
Show output
BFD Peers:
        peer 192.168.2.1 vrf default interface eth0
                ID: 511605353
                Remote ID: 1146443698
                Active mode
                Status: up
                Uptime: 12 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.3.3 vrf default interface eth1
                ID: 1648418974
                Remote ID: 2843922612
                Active mode
                Status: up
                Uptime: 0 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 14: Run command protocols bfd show peers at DUT2 and check if output matches the following regular expressions:

peer 192.168.1.1
Show output
BFD Peers:
        peer 192.168.3.2 vrf default interface eth1
                ID: 2843922612
                Remote ID: 1648418974
                Active mode
                Status: up
                Uptime: 0 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.1.1 vrf default interface eth0
                ID: 2417171107
                Remote ID: 4173346882
                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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 15: Run command protocols bfd show peers at DUT2 and check if output matches the following regular expressions:

peer 192.168.3.2
Show output
BFD Peers:
        peer 192.168.3.2 vrf default interface eth1
                ID: 2843922612
                Remote ID: 1648418974
                Active mode
                Status: up
                Uptime: 0 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.1.1 vrf default interface eth0
                ID: 2417171107
                Remote ID: 4173346882
                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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 16: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Status: up
Show output
BFD Peers:
        peer 192.168.1.3 vrf default interface eth0
                ID: 4173346882
                Remote ID: 2417171107
                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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.2.2 vrf default interface eth1
                ID: 1146443698
                Remote ID: 511605353
                Active mode
                Status: up
                Uptime: 13 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 17: Run command protocols bfd show peers at DUT1 and check if output matches the following regular expressions:

Status: up
Show output
BFD Peers:
        peer 192.168.2.1 vrf default interface eth0
                ID: 511605353
                Remote ID: 1146443698
                Active mode
                Status: up
                Uptime: 13 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.3.3 vrf default interface eth1
                ID: 1648418974
                Remote ID: 2843922612
                Active mode
                Status: up
                Uptime: 1 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 18: Run command protocols bfd show peers at DUT2 and check if output matches the following regular expressions:

Status: up
Show output
BFD Peers:
        peer 192.168.3.2 vrf default interface eth1
                ID: 2843922612
                Remote ID: 1648418974
                Active mode
                Status: up
                Uptime: 0 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.1.1 vrf default interface eth0
                ID: 2417171107
                Remote ID: 4173346882
                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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 19: Run command protocols bfd show peers at DUT0 and check if output does not match the following regular expressions:

Status: down
Show output
BFD Peers:
        peer 192.168.1.3 vrf default interface eth0
                ID: 4173346882
                Remote ID: 2417171107
                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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.2.2 vrf default interface eth1
                ID: 1146443698
                Remote ID: 511605353
                Active mode
                Status: up
                Uptime: 13 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 20: Run command protocols bfd show peers at DUT1 and check if output does not match the following regular expressions:

Status: down
Show output
BFD Peers:
        peer 192.168.2.1 vrf default interface eth0
                ID: 511605353
                Remote ID: 1146443698
                Active mode
                Status: up
                Uptime: 13 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.3.3 vrf default interface eth1
                ID: 1648418974
                Remote ID: 2843922612
                Active mode
                Status: up
                Uptime: 1 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 21: Run command protocols bfd show peers at DUT2 and check if output does not match the following regular expressions:

Status: down
Show output
BFD Peers:
        peer 192.168.3.2 vrf default interface eth1
                ID: 2843922612
                Remote ID: 1648418974
                Active mode
                Status: up
                Uptime: 1 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer 192.168.1.1 vrf default interface eth0
                ID: 2417171107
                Remote ID: 4173346882
                Active mode
                Status: up
                Uptime: 3 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 22: Ping IP address 192.168.1.3 from DUT0:

admin@DUT0$ ping 192.168.1.3 count 1 size 56 timeout 1
Show output
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.237 ms

--- 192.168.1.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.237/0.237/0.237/0.000 ms

Step 23: Ping IP address 192.168.2.2 from DUT0:

admin@DUT0$ ping 192.168.2.2 count 1 size 56 timeout 1
Show output
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
64 bytes from 192.168.2.2: icmp_seq=1 ttl=64 time=0.195 ms

--- 192.168.2.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.195/0.195/0.195/0.000 ms

Step 24: Ping IP address 192.168.2.1 from DUT1:

admin@DUT1$ ping 192.168.2.1 count 1 size 56 timeout 1
Show output
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=0.217 ms

--- 192.168.2.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.217/0.217/0.217/0.000 ms

Step 25: Ping IP address 192.168.3.3 from DUT1:

admin@DUT1$ ping 192.168.3.3 count 1 size 56 timeout 1
Show output
PING 192.168.3.3 (192.168.3.3) 56(84) bytes of data.
64 bytes from 192.168.3.3: icmp_seq=1 ttl=64 time=0.192 ms

--- 192.168.3.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.192/0.192/0.192/0.000 ms

Step 26: Ping IP address 192.168.1.1 from DUT2:

admin@DUT2$ ping 192.168.1.1 count 1 size 56 timeout 1
Show output
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.200 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.200/0.200/0.200/0.000 ms

Step 27: Ping IP address 192.168.3.2 from DUT2:

admin@DUT2$ ping 192.168.3.2 count 1 size 56 timeout 1
Show output
PING 192.168.3.2 (192.168.3.2) 56(84) bytes of data.
64 bytes from 192.168.3.2: icmp_seq=1 ttl=64 time=0.213 ms

--- 192.168.3.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.213/0.213/0.213/0.000 ms

Test Profile

Description

Checks BFD profile in OSPF.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces dummy dum0 address 10.0.0.1/24
set interfaces ethernet eth0 address 192.168.1.1/24
set interfaces ethernet eth0 ip ospf bfd
set interfaces ethernet eth0 ip ospf 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 ospf area 0 network 10.0.0.0/24
set protocols ospf area 0 network 192.168.1.0/24
set protocols ospf 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 ip ospf bfd profile PFL

Step 3: Set the following configuration in DUT1 :

set interfaces dummy dum0 address 10.0.0.2/24
set interfaces ethernet eth0 address 192.168.1.2/24
set interfaces ethernet eth0 ip ospf bfd
set interfaces ethernet eth0 ip ospf network point-to-point
set protocols ospf area 0 network 10.0.0.0/24
set protocols ospf area 0 network 192.168.1.0/24
set protocols ospf parameters router-id 2.2.2.2
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 4: Run command protocols ospf show neighbor at DUT0 and check if output matches the following regular expressions:

192.168.1.2
Show output
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
2.2.2.2           1 Full/-          0.678s            39.320s 192.168.1.2     eth0:192.168.1.1                     1     0     0

Step 5: Run command protocols ospf show neighbor at DUT1 and check if output matches the following regular expressions:

192.168.1.1
Show output
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
1.1.1.1           1 Full/-          0.748s            36.686s 192.168.1.1     eth0:192.168.1.2                     1     0     0

Step 6: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

192.168.1.2
Show output
BFD Peers:
        peer 192.168.1.2 vrf default interface eth0
                ID: 851634954
                Remote ID: 0
                Passive mode
                Status: down
                Downtime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

Step 7: Run command protocols bfd show peers at DUT1 and check if output matches the following regular expressions:

192.168.1.1
Show output
BFD Peers:
        peer 192.168.1.1 vrf default interface eth0
                ID: 3388244214
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 1 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

Step 8: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Status: up
Show output
BFD Peers:
        peer 192.168.1.2 vrf default interface eth0
                ID: 851634954
                Remote ID: 3388244214
                Passive mode
                Status: up
                Uptime: 0 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 103/103/103 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 9: Run command protocols bfd show peers at DUT1 and check if output matches the following regular expressions:

Status: up
Show output
BFD Peers:
        peer 192.168.1.1 vrf default interface eth0
                ID: 3388244214
                Remote ID: 851634954
                Active mode
                Status: up
                Uptime: 0 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
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms

Step 10: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Detect-multiplier: 5
Show output
BFD Peers:
        peer 192.168.1.2 vrf default interface eth0
                ID: 851634954
                Remote ID: 3388244214
                Passive mode
                Status: up
                Uptime: 0 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 103/193/250 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 11: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Echo receive interval: 60ms
Show output
BFD Peers:
        peer 192.168.1.2 vrf default interface eth0
                ID: 851634954
                Remote ID: 3388244214
                Passive mode
                Status: up
                Uptime: 0 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 103/192/250 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 12: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Echo transmission interval: 60ms
Show output
BFD Peers:
        peer 192.168.1.2 vrf default interface eth0
                ID: 851634954
                Remote ID: 3388244214
                Passive mode
                Status: up
                Uptime: 0 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 103/200/250 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 13: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Passive mode
Show output
BFD Peers:
        peer 192.168.1.2 vrf default interface eth0
                ID: 851634954
                Remote ID: 3388244214
                Passive mode
                Status: up
                Uptime: 0 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 154/206/234 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 14: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Receive interval: 400ms
Show output
BFD Peers:
        peer 192.168.1.2 vrf default interface eth0
                ID: 851634954
                Remote ID: 3388244214
                Passive mode
                Status: up
                Uptime: 0 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 154/204/234 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 15: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Transmission interval: 400ms
Show output
BFD Peers:
        peer 192.168.1.2 vrf default interface eth0
                ID: 851634954
                Remote ID: 3388244214
                Passive mode
                Status: up
                Uptime: 0 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 154/212/234 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms