双向转发检测BFD(Bidirectional Forwarding Detection)
是一种全网统一的检测机制,用于快速检测、监控网络中链路或者IP路由的转发连通状况。
多条BPF控制报文的目的端口号是4784
实验拓扑:
![](https://img-blog.csdnimg.cn/img_convert/ffe95d8068a6a4c520c071acfc1823a9.png)
系统视图下输入bfd
![](https://img-blog.csdnimg.cn/img_convert/0c093b5f1ecf43337480086db24a5389.png)
用接口g0/0/0检测对端10.1.1.2,检测方式为单臂回声
![](https://img-blog.csdnimg.cn/img_convert/f21d14c54283a2cc6241fcc764a0a5ab.png)
最小检测时间为0.1秒
![](https://img-blog.csdnimg.cn/img_convert/86d4a4303f3cf46ad0dfdde0c85683ba.png)
单臂回声功能标识符,单项检测只配置本端即可,如果两端互相检测需检测对端的标识符
![](https://img-blog.csdnimg.cn/img_convert/4cb8ff99e1dd99ce11f2c45e3e51af1f.png)
表示配置完成提交保存
![](https://img-blog.csdnimg.cn/img_convert/9a008ac7959e162f0b130159c506baee.png)
挂接在静态路由下
![](https://img-blog.csdnimg.cn/img_convert/edbfa7150b42ae5d1f438ff838f588c8.png)
思科私有协议SLA(服务等级保障协议)
配置:
![](https://img-blog.csdnimg.cn/img_convert/f5afc68ada5552ab3103c91d432ca97a.png)
开启一个SLA监控名称为123
![](https://img-blog.csdnimg.cn/img_convert/cc940d3b43ce6c60f39706de344d38a4.png)
检测类型为echo检测,icmp方式,检测对端100.1.1.1
![](https://img-blog.csdnimg.cn/img_convert/9edd314364ad8ab09e11b22451ce5132.png)
检测频率为5s检测一次
![](https://img-blog.csdnimg.cn/img_convert/ab3b6646960d9abccb7048f492fef32a.png)
开启LSA,持续时间为永远
![](https://img-blog.csdnimg.cn/img_convert/b0d1843a761935d70cec4f7ead2b4889.png)
定义一个追踪路由,响应时间计时器为123,即LSA
![](https://img-blog.csdnimg.cn/img_convert/8efb48a318878c6cf57a6727754ab476.png)
将追踪路由track321挂在静态路由下
timeout 1000 //设置了等待响应包的最大时间
threshold 2 //2ms以上的RTT最大往返时间为超出上限
Ping----ping过去的包叫echo,ping回来的叫echo-reply
![](https://img-blog.csdnimg.cn/img_convert/d3ed1079c8bbad05106b3efb47bc3bc3.png)
![](https://img-blog.csdnimg.cn/img_convert/e4df94307f4be821600e2cd7b7b35bff.png)