HSRP with BFD


初期設定

Before

[2023-07-20 21:56:30.837] iosv-2(config-if)#shut
[2023-07-20 21:56:52.492] iosv-2(config-if)#
[2023-07-20 21:56:56.200] *Jul 19 15:40:02.589: %HSRP-5-STATECHANGE: GigabitEthernet0/0 Grp 1 state Active -> Init
[2023-07-20 21:56:56.531] iosv-2(config-if)#
[2023-07-20 21:57:01.695] *Jul 19 15:40:04.503: %LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to administratively down
[2023-07-20 21:57:01.947] *Jul 19 15:40:05.504: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down
[2023-07-20 21:57:02.466] iosv-2(config-if)#

[2023-07-20 21:56:39.898] iosv-0#ping 192.168.100.1 repeat 100
[2023-07-20 21:56:51.524] Type escape sequence to abort.
[2023-07-20 21:56:51.717] Sending 100, 100-byte ICMP Echos to 192.168.100.1, timeout is 2 seconds:
[2023-07-20 21:56:52.237] !!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2023-07-20 21:57:01.003] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2023-07-20 21:57:03.055] Success rate is 99 percent (99/100), round-trip min/avg/max = 6/16/26 ms

Activeの切り替わりに約2秒かかっている。

After

[2023-07-20 22:01:00.580] iosv-2(config-if)#shut
[2023-07-20 22:01:14.879] iosv-2(config-if)#
[2023-07-20 22:01:18.915] *Jul 19 15:41:47.568: %HSRP-5-STATECHANGE: GigabitEthernet0/0 Grp 1 state Active -> Init
[2023-07-20 22:01:19.284] iosv-2(config-if)#
[2023-07-20 22:01:24.531] *Jul 19 15:41:49.566: %LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to administratively down
[2023-07-20 22:01:24.845] *Jul 19 15:41:50.566: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down

[2023-07-20 22:01:25.258] iosv-0#ping 192.168.100.1 repeat 100
[2023-07-20 22:02:17.076] Type escape sequence to abort.
[2023-07-20 22:02:17.184] Sending 100, 100-byte ICMP Echos to 192.168.100.1, timeout is 2 seconds:
[2023-07-20 22:02:17.544] !!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2023-07-20 22:02:25.856] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2023-07-20 22:02:27.440] Success rate is 99 percent (99/100), round-trip min/avg/max = 9/20/50 ms

CCOにHSRP supports BFD by default.とあるため、検証ではBefore(BFD有効)After(BFD無効)となっている。
ただ、何回やっても切り替わり時間は変わらなかった。

SLA

どっちかというとSLAのtimeout, thresholdをそれぞれ5000に、frequencyを5に変えたときのほうが切り替わり時間が伸びていたため、オブジェクトトラッキングによる経路切り替えのほうがBFDよりも影響が大きそう↓

[2023-07-20 21:35:59.755] iosv-0#ping 192.168.100.1 repeat 100
[2023-07-20 21:36:09.569] Type escape sequence to abort.
[2023-07-20 21:36:09.569] Sending 100, 100-byte ICMP Echos to 192.168.100.1, timeout is 2 seconds:
[2023-07-20 21:36:09.671] !!!!!!!!!!!!!!!!!!!!!!!!.....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2023-07-20 21:36:24.573] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2023-07-20 21:36:25.285] Success rate is 95 percent (95/100), round-trip min/avg/max = 11/21/56 ms

この記事が気に入ったらサポートをしてみませんか?