detection-time (BFD Liveness Detection)
语法
detection-time { threshold milliseconds; }
边界网关协议
[edit logical-systems name protocols bgp bfd-liveness-detection], [edit logical-systems name protocols bgpgroup bfd-liveness-detection], [edit logical-systems name protocols bgp group name neighbor address bfd-liveness-detection], [edit logical-systems name routing-instances name protocols bgp bfd-liveness-detection], [edit logical-systems name routing-instances name protocols bgpgroup bfd-liveness-detection], [edit logical-systems name routing-instances name protocols bgpgroup neighbor address bfd-liveness-detection], [edit logical-systems name tenants name routing-instances name protocols bgp bfd-liveness-detection], [edit logical-systems name tenants name routing-instances name protocols bgpgroup bfd-liveness-detection], [edit logical-systems name tenants name routing-instances name protocols bgpgroup neighbor address bfd-liveness-detection], [edit protocols bgp bfd-liveness-detection], [edit protocols bgp group bfd-liveness-detection], [edit protocols bgp group neighbor address bfd-liveness-detection], [edit routing-instances name protocols bgp bfd-liveness-detection], [edit routing-instances name protocols bgp group bfd-liveness-detection], [edit routing-instances name protocols bgp group neighbor address bfd-liveness-detection], [edit tenants name routing-instances name protocols bgp bfd-liveness-detection] [edit tenants name routing-instances name protocols bgp group bfd-liveness-detection] [edit tenants name routing-instances name protocols bgp groupneighbor address bfd-liveness-detection]
EVPN、L2VPN、VPLS
[edit logical-systems name routing-instances name protocols (evpn | l2vpn | vpls) oam bfd-liveness-detection], [edit logical-systems name routing-instances name protocols (evpn | l2vpn | vpls) neighbor neighbor-id oam bfd-liveness-detection], [edit logical-systems name routing-instances name protocols (evpn | l2vpn | vpls)mesh-group mesh-group-name neighbor neighbor-id oam bfd-liveness-detection], [edit logical-systems name tenants name routing-instances name protocols (evpn | l2vpn | vpls) oam bfd-liveness-detection], [edit logical-systems name tenants name routing-instances name protocols (evpn | l2vpn | vpls)neighbor neighbor-id oam bfd-liveness-detection], [edit logical-systems name tenants name routing-instances name protocols (evpn | l2vpn | vpls)mesh-group mesh-group-name neighbor neighbor-id oam bfd-liveness-detection], [edit routing-instances name protocols (evpn | l2vpn | vpls) oam bfd-liveness-detection], [edit routing-instances name protocols (evpn | l2vpn | vpls) neighbor neighbor-id oam bfd-liveness-detection], [edit routing-instances name protocols (evpn | l2vpn | vpls)mesh-group mesh-group-name neighbor neighbor-id oam bfd-liveness-detection], [edit tenants name routing-instances name protocols (evpn | l2vpn | vpls) oam bfd-liveness-detection], [edit tenants name routing-instances name protocols (evpn | l2vpn | vpls) neighbor neighbor-id oam bfd-liveness-detection], [edit tenants name routing-instances name protocols (evpn | l2vpn | vpls)mesh-group mesh-group-name neighbor neighbor-id oam bfd-liveness-detection],
描述
启用 BFD 故障检测。BFD 故障检测计时器是自适应的,可以调整为更快或更慢。BFD 故障检测计时器值越低,故障检测速度越快,反之亦然。例如,如果邻接失败(即计时器检测故障的速度较慢),计时器可以适应更高的值。或者,邻接方可以协商计时器高于配置值的值。当 BFD 会话翻动在 15 秒内发生 3 次以上时,计时器将适应更高的值。如果本地 BFD 实例是会话翻动的原因,则回退算法会将接收 (Rx) 间隔增加两个。如果远程 BFD 实例是会话翻动的原因,则传输 (Tx) 间隔将增加 2。您可以使用 clear bfd adaptation
命令将 BFD 间隔计时器返回到其配置的值。命令 clear bfd adaptation
是无中断的,这意味着命令不会影响路由设备上的流量。
从 Junos OS 20.3R1 版开始,我们支持在带有 SPC3 卡的 SRX5000 系列设备上使用分布式模式进行 BFD 故障检测。分布式模式可提供 300 (3 x 100) ms 的更快 BFD 故障检测。当您配置小于 500 毫秒的 BFD 故障检测计时器值时,可以启用分布式模式。
从 Junos OS 版本 21.1R1 开始,我们支持在 SRX1500、SRX4100、SRX4200 和 SRX4600 上为 BFD 提供分布式模式。此模式提供 3 x 300 毫秒的更快 BFD 故障检测时间。
为了进行优化和提高性能,必须以 50 毫秒的倍数配置 BFD 故障检测计时器值。
从 Junos OS 24.3R1 版开始,我们在 vSRX 3.0 上引入了用于 BFD 故障检测的分布式模式。要启用分布式模式,请将 BFD 故障检测时间值配置为 500 毫秒。vSRX 3.0 上的独立模式和 L3-HA 模式支持此功能。
借助这项支持,我们还在 vSRX 3.0 上添加了专用的 CPU 卸载功能。专用卸载 CPU 功能会重新调度流线程,并使用 NIC 上的 DPDK 流过滤器将高优先级数据包(BGP、RIPv2、OSPF、PIM、组播、IGMP、单跳 BFD 和多跳 BFD)移动到专用流线程上。借助此功能,数据包由其自己的专用流线程或队列进行处理,即使在转发平面超额订阅并丢弃数据包的情况下也是如此。
要在 vSRX 3.0 上启用专用卸载 CPU 功能,请运行命令 set security forwarding-options dedicated-offload-cpu
。
要查看数据包转发引擎的当前专用卸载 CPU 状态,请使用命令 show security forward-options dedicated-offload-cpu
。此命令显示数据包转发引擎是否启用或禁用了专用卸载 CPU 功能。
选项
threshold milliseconds | 指定 BFD 会话检测时间适配阈值。当检测时间适应于等于或大于阈值的值时,将发送单个陷阱和单个系统日志消息。
注意:
阈值必须等于或大于传输间隔。 阈值时间必须等于或大于或
|
所需权限级别
路由 — 要在配置中查看此语句。
routing-control - 将此语句添加到配置中
发布信息
在 Junos OS 8.2 版中引入的语句。
支持在 Junos OS 9.6 版中引入的 BFD 身份验证。