Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Layer 2 VPNs User Guide for EX9200 Switches
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring BFD for VCCV for Layer 2 Circuits

date_range 23-Nov-23

Bidirectional Forwarding Detection (BFD) support for virtual circuit connection verification (VCCV) allows you to configure a control channel for a pseudowire, in addition to the corresponding operations and management functions to be used over that control channel. BFD provides a low resource mechanism for the continuous monitoring of the pseudowire data path and for detecting data plane failures. This feature provides support for asynchronous mode BFD for VCCV as described in RFC 5885, Bidirectional Forwarding Detection (BFD) for the Pseudowire Virtual Circuit Connectivity Verification (VCCV). You can also use a ping to detect pseudowire failures. However, the processing resources required for a ping are greater than what is needed for BFD. In addition, BFD is capable of detecting data plane failure faster than VCCV ping. BFD for pseudowires is supported for Layer 2 circuits (LDP-based).

Before you begin:

  • Configure the device interfaces.

To configure BFD for VCCV:

  1. Specify the threshold for the adaptation of the BFD session detection time.
    content_copy zoom_out_map
    [edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection]
    user@host# set detection-time threshold milliseconds
    

    For example, to set a detection time threshold of 40 milliseconds for OAM BFD liveness detection:

    content_copy zoom_out_map
    [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. Configure the virtual circuit ID for the Layer 2 circuit protocol.
    content_copy zoom_out_map
    [edit protocols l2circuit neighbor IP-address interface interface-name]
    user@host# set virtual-circuit-id virtual-circuit-id
    

    For example, to set the virtual circuit ID as 1 for OAM BFD liveness detection:

    content_copy zoom_out_map
    [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
    
  3. Configure the minimum interval after which the local routing device transmits hello packets and then expects to receive a reply from a neighbor with which it has established a BFD session for the Layer 2 circuit.
    content_copy zoom_out_map
    [edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection]
    user@host# set minimum-interval milliseconds
    

    For example, to set a minimum interval of 300 milliseconds for OAM BFD liveness detection:

    content_copy zoom_out_map
    [edit protocols l2circuit neighbor 192.0.2.1 interface ge-1/1/9.0 oam bfd-liveness-detection]
    user@host# set minimum-interval 300
    
  4. Configure the minimum interval after which the local routing device must receive a reply from a neighbor with which it has established a BFD session for the Layer 2 circuit protocol.
    content_copy zoom_out_map
    [edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection]
    user@host# set minimum-receive-interval milliseconds
    

    For example, to set a minimum receive interval of 10 milliseconds for OAM BFD liveness detection:

    content_copy zoom_out_map
    [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
    
  5. Configure the number of hello packets not received by a neighbor that causes the originating interface to be declared down for the Layer 2 circuit protocol.
    content_copy zoom_out_map
    [edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection]
    user@host# set multiplier number
    

    For example, to set the multiplier as 3 for OAM BFD liveness detection:

    content_copy zoom_out_map
    [edit protocols l2circuit neighbor 192.0.2.1 interface ge-1/1/9.0 oam bfd-liveness-detection]
    user@host# set multiplier 3
    
  6. Configure to disable adaptation.
    content_copy zoom_out_map
    [edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection]
    user@host# set no-adaptation
    
  7. Configure the minimum interval at which the local routing device transmits hello packets to a neighbor with which it has established a BFD session.
    content_copy zoom_out_map
    [edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection transmit-interval]
    user@host# set minimum-interval milliseconds
    

    For example, to set a minimum transmit interval of 5 milliseconds for OAM BFD liveness detection:

    content_copy zoom_out_map
    [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
    
  8. Specify the threshold for the adaptation of the BFD session transmit interval.
    content_copy zoom_out_map
    [edit protocols l2circuit neighbor IP-address interface interface-name oam bfd-liveness-detection transmit-interval]
    user@host# set threshold milliseconds
    

    For example, to set a transmit interval threshold of 30 milliseconds for OAM BFD liveness detection:

    content_copy zoom_out_map
    [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
    
footer-navigation