虚拟电路连接验证 (VCCV) 支持双向转发检测 (BFD),除了要通过该控制通道使用的相应作和管理功能外,您还可以为伪线配置控制通道。BFD 为伪线数据路径的连续监控和检测数据平面故障提供了低资源机制。此功能支持 VCCV 的异步模式 BFD,如 RFC 5885 Bidirectional Forwarding Detection (BFD) for the Pseudowire Virtual Circuit Connectivity Verification (VCCV)中所述。您还可以使用 ping 来检测伪线故障。但是,ping 所需的处理资源大于 BFD 所需的资源。此外,BFD 检测数据平面故障的速度比 VCCV ping 更快。第 2 层电路(基于 LDP)支持伪线的 BFD。
- 指定调整 BFD 会话检测时间的阈值。
[edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection]
user@host# set detection-time threshold milliseconds
例如,要将 OAM BFD 活体检测的检测时间阈值设置为 40 毫秒:
[edit protocols l2circuit neighbor 192.0.2.1 interface ge-1/1/9.0 oam bfd-liveness-detection]
user@host# set detection-time threshold 40
- 为第 2 层电路协议配置虚拟电路 ID。
[edit protocols l2circuit neighbor IP-address interface interface-name]
user@host# set virtual-circuit-id virtual-circuit-id
例如,要将 OAM BFD 活跃度检测的虚拟电路 ID 设置为 1:
[edit protocols l2circuit neighbor 192.0.2.1 interface ge-1/1/9.0 oam bfd-liveness-detection]
user@host# set virtual-circuit-id 1
- 配置本地路由设备传输 hello 数据包然后期望从已与其为第 2 层电路建立 BFD 会话的邻接方接收回复的最小间隔。
[edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection]
user@host# set minimum-interval milliseconds
例如,要将 OAM BFD 活跃度检测的最小间隔设置为 300 毫秒:
[edit protocols l2circuit neighbor 192.0.2.1 interface ge-1/1/9.0 oam bfd-liveness-detection]
user@host# set minimum-interval 300
- 配置最小间隔,在此间隔之后,本地路由设备必须从已与其为第 2 层电路协议建立 BFD 会话的邻接方接收回复。
[edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection]
user@host# set minimum-receive-interval milliseconds
例如,要将 OAM BFD 活跃度检测的最小接收间隔设置为 10 毫秒:
[edit protocols l2circuit neighbor 192.0.2.1 interface ge-1/1/9.0 oam bfd-liveness-detection]
user@host# set minimum-receive-interval 10
- 配置邻接方未收到的 hello 数据包数,这会导致始发接口在第 2 层电路协议中声明关闭。
[edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection]
user@host# set multiplier number
例如,要将 OAM BFD 活体检测的乘数设置为 3:
[edit protocols l2circuit neighbor 192.0.2.1 interface ge-1/1/9.0 oam bfd-liveness-detection]
user@host# set multiplier 3
- 配置为禁用适应。
[edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection]
user@host# set no-adaptation
- 配置本地路由设备向已与其建立 BFD 会话的邻接方传输 hello 数据包的最小间隔。
[edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection transmit-interval]
user@host# set minimum-interval milliseconds
例如,要将 OAM BFD 活跃度检测的最小传输间隔设置为 5 毫秒:
[edit protocols l2circuit neighbor 192.0.2.1 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-intreval]
user@host# set minimum-interval 5
- 指定调整 BFD 会话传输间隔的阈值。
[edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection transmit-interval]
user@host# set threshold milliseconds
例如,要将 OAM BFD 活跃度检测的传输间隔阈值设置为 30 毫秒:
[edit protocols l2circuit neighbor 192.0.2.1 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-intreval]
user@host# set threshold 30