对虚拟电路连接验证 (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
- 配置本地路由设备将 hello 数据包传输至与之建立 BFD 会话的邻接方的最低间隔。
[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