Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Extension of Pseudowire Redundancy Condition Logic to Pseudowire Subscriber Logical Interface

    This example shows how to configure pro-active loss and delay measurements for point-to-point ultimate-hop popping label-switched paths (LSPs) in MPLS networks to monitor network performance.

    Requirements

    This example uses the following hardware and software components:

    • Two MX Series 3D Universal Edge routers that contain MPC/MICs only
    • Junos OS Release 15.1 or later running on all the routers

    Before you begin:

    1. Configure the device interfaces.
    2. Configure the autonomous system numbers and router IDs for the devices.
    3. Configure the following protocols:
      1. MPLS
      2. OSPF
      3. RSVP

    Overview

    Starting with Junos OS Release 15.1, a pro-active tool to monitor and measure packet loss, packet delay, or both for associated bidirectional MPLS ultimate-hop popping point-to-point label-switched paths (LSPs) is introduced.

    This feature provides the following performance metrics:

    • Inter-packet delay variation (IPDV)
    • Loss measurement
    • Round-trip delay (RTT)
    • Throughput measurement
    • Two-way channel delay

    This functionality provides real-time visibility into network performance, thereby facilitating network performance planning, troubleshooting, and evaluation.

    Topology

    Figure 1 illustrates the pro-active loss and delay measurements using a simple two-router topology.

    Figure 1: Configuring Pro-Active Loss and Delay Measurements

    Configuring Pro-Active Loss and Delay Measurements

    In this example, an associated bidirectional LSP is configured between Routers R1 and R2, for which the performance metrics are measured.

    Configuration

    CLI Quick Configuration

    To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

    R1

    set chassis network-services enhanced-ipset interfaces ge-0/0/0 unit 0 family inet address 1.1.1.1/30set interfaces ge-0/0/0 unit 0 family mplsset interfaces lo0 unit 0 family inet address 10.0.0.1/32set interfaces lo0 unit 0 family mplsset protocols mpls interface ge-0/0/0.0set protocols mpls interface lo0.0set protocols mpls interface fxp0.0 disableset protocols mpls label-switched-path R1-R2 associate-lsp R2-R1set protocols mpls label-switched-path R1-R2 install 20.10.30.0/24 activeset protocols mpls label-switched-path R1-R2 oam mpls-tp-modeset protocols mpls label-switched-path R1-R2 oam performance-monitoring querier delay traffic-class tc-0 query-interval 1000set protocols mpls label-switched-path R1-R2 oam performance-monitoring querier loss traffic-class none query-interval 1000set protocols mpls label-switched-path R1-R2 oam performance-monitoring querier loss-delay traffic-class tc-0 query-interval 1000set protocols mpls label-switched-path R1-R2 oam performance-monitoring responder delay min-query-interval 1000set protocols mpls label-switched-path R1-R2 oam performance-monitoring responder loss min-query-interval 1000set protocols mpls label-switched-path R1-R2 to 20.0.0.1set protocols mpls label-switched-path R1-R2 ultimate-hop-poppingset protocols mpls statistics traffic-class-statisticsset protocols ospf area 0.0.0.0 interface ge-0/0/0.0set protocols ospf area 0.0.0.0 interface lo0.0set protocols ospf area 0.0.0.0 interface fxp0.0 disableset protocols ospf traffic-engineeringset protocols rsvp interface ge-0/0/0.0set protocols rsvp interface lo0.0set protocols rsvp interface fxp0.0 disableset routing-options router-id 10.0.0.1

    R2

    set chassis network-services enhanced-ipset interfaces ge-0/0/0 unit 0 family inet address 1.1.1.2/30set interfaces ge-0/0/0 unit 0 family mplsset interfaces lo0 unit 0 family inet address 20.0.0.1/32set interfaces lo0 unit 0 family mplsset protocols mpls interface ge-0/0/0.0set protocols mpls interface lo0.0set protocols mpls interface fxp0.0 disableset protocols mpls label-switched-path R2-R1 associate-lsp R1-R2set protocols mpls label-switched-path R2-R1 install 10.10.20.0/24 activeset protocols mpls label-switched-path R2-R1 oam mpls-tp-modeset protocols mpls label-switched-path R2-R1 oam performance-monitoring responder delay min-query-interval 1000set protocols mpls label-switched-path R2-R1 oam performance-monitoring responder loss min-query-interval 1000set protocols mpls label-switched-path R2-R1 oam performance-monitoring querier delay traffic-class tc-0 query-interval 1000set protocols mpls label-switched-path R2-R1 oam performance-monitoring querier loss traffic-class none query-interval 1000set protocols mpls label-switched-path R2-R1 oam performance-monitoring querier loss-delay traffic-class tc-0 query-interval 1000set protocols mpls label-switched-path R2-R1 to 10.0.0.1set protocols mpls label-switched-path R2-R1 ultimate-hop-poppingset protocols mpls statistics traffic-class-statisticsset protocols ospf area 0.0.0.0 interface ge-0/0/0.0set protocols ospf area 0.0.0.0 interface lo0.0set protocols ospf area 0.0.0.0 interface fxp0.0 disableset protocols ospf traffic-engineeringset protocols rsvp interface ge-0/0/0.0set protocols rsvp interface lo0.0set protocols rsvp interface fxp0.0 disableset routing-options router-id 20.0.0.1

    Step-by-Step Procedure

    The following example requires that you navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

    To configure Router R1:

    1. Enable the enhanced IP network services configuration.
      [edit chassis]user@R1# set network-services enhanced-ip
    2. Configure the interfaces for Router R1.
      [edit interfaces]user@R1# set ge-0/0/0 unit 0 family inet address 1.1.1.1/30user@R1# set ge-0/0/0 unit 0 family mpls
      user@R1# set lo0 unit 0 family inet address 10.0.0.1/32user@R1# set lo0 unit 0 family mpls
    3. Configure the router ID for Router R1.
      [edit routing-options]user@R1# set router-id 10.0.0.1
    4. Enable RSVP on all the interfaces of Router R1, excluding the management interface.
      [edit protocols]user@R1# set rsvp interface ge-0/0/0.0user@R1# set rsvp interface lo0.0user@R1# set rsvp interface fxp0.0 disable
    5. Enable MPLS on all the interfaces of Router R1, excluding the management interface.
      [edit protocols]user@R1# set mpls interface ge-0/0/0.0user@R1# set mpls interface lo0.0user@R1# set mpls interface fxp0.0 disable
    6. Configure an associated bidirectional LSP to Router R2.
      [edit protocols]user@R1# set mpls label-switched-path R1-R2 to 20.0.0.1user@R1# set mpls label-switched-path R1-R2 install 20.10.30.0/24 activeuser@R1# set mpls label-switched-path R1-R2 oam mpls-tp-modeuser@R1# set mpls label-switched-path R1-R2 ultimate-hop-poppinguser@R1# set mpls label-switched-path R1-R2 associate-lsp R2-R1
    7. Create traffic classes for maintaining data traffic statistics per traffic class.

      This enables traffic class scoped loss and delay measurement.

      [edit protocols]user@R1# set mpls statistics traffic-class-statistics
    8. Configure performance monitoring at the querier side.
      [edit protocols]user@R1# set mpls label-switched-path R1-R2 oam performance-monitoring querier delay traffic-class tc-0 query-interval 1000user@R1# set mpls label-switched-path R1-R2 oam performance-monitoring querier loss traffic-class none query-interval 1000user@R1# set mpls label-switched-path R1-R2 oam performance-monitoring querier loss-delay traffic-class tc-0 query-interval 1000
    9. Configure performance monitoring at the responder side.
      [edit protocols]user@R1# set mpls label-switched-path R1-R2 oam performance-monitoring responder delay min-query-interval 1000user@R1# set mpls label-switched-path R1-R2 oam performance-monitoring responder loss min-query-interval 1000
    10. Configure OSPF with traffic engineering capabilities, and enable OSPF on all the interfaces of Router R1, excluding the management interface.
      [edit protocols]user@R1# set ospf traffic-engineeringuser@R1# set ospf area 0.0.0.0 interface ge-0/0/0.0user@R1# set ospf area 0.0.0.0 interface lo0.0user@R1# set ospf interface fxp0.0 disable

    Results

    From configuration mode, confirm your configuration by entering the show chassis, show interfaces, show routing-options, and show protocols commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

    user@R1# show chassisnetwork-services enhanced-ip;
    user@R1# show interfaces
    ge-0/0/0 {unit 0 {family inet {address 1.1.1.1/30;}family mpls;}}
    lo0 {unit 0 {family inet {address 10.0.0.1/32;}family mpls;}}
    user@R1# show routing-optionsrouter-id 10.0.0.1;
    user@R1# show protocols
    rsvp {interface ge-0/0/0.0;interface lo0.0;interface fxp0.0 {disable;}}
    mpls {label-switched-path R1-R2 {to 20.0.0.1;install 20.10.30.0/24 active;oam {mpls-tp-mode;performance-monitoring {querier {loss {traffic-class none {query-interval 1000;}}delay {traffic-class tc-0 {query-interval 1000;}}loss-delay {traffic-class none {query-interval 1000;}}}responder {loss {min-query-interval 1000;}delay {min-query-interval 1000;}}}}ultimate-hop-popping;associate-lsp R2-R1;}}
    ospf {traffic-engineering;area 0.0.0.0 {interface ge-0/0/0.0;interface lo0.0;interface fxp0.0 {disable;}}}

    Verification

    Verifying Loss and Delay Measurement

    Purpose

    Verify the loss and delay measurement.

    Action

    From operational mode, run the show performance-monitoring mpls lsp command.

    user@R1> show performance-monitoring mpls lsp
    Session Total: 3 Up: 3 Down: 0
      LSP name:R1-R2, PM State:Up
        Loss measurement Data:
          Duration: 00:04:43
          Traffic-class: None
          Queries sent: 282
          Responses received: 282
          Responses dropped due to errors: 0
          Queries timeout: 0
          Forward loss measurement:
            Average packet loss: 0
            Average packet throughput: 554338
          Reverse loss measurement:
            Average packet loss: 0
            Average packet throughput: 1352077
      LSP name:R1-R2, PM State:Up
        Delay measurement Data:
          Duration: 00:04:43
          Traffic-class: 0
          Queries sent: 282
          Responses received: 282
          Responses dropped due to errors: 0
          Queries timeout: 0
          Best 2-way channel delay: 72 usecs
          Worst 2-way channel delay: 365 usecs
          Best round trip time: 843 usecs
          Worst round trip time: 105523 usecs
          Avg absolute fw delay variation: 1619 usecs
          Avg absolute rv delay variation: 1619 usecs
      LSP name:R1-R2, PM State:Up
        Loss measurement Data:
          Duration: 00:04:43
          Traffic-class: None
          Queries sent: 282
          Responses received: 282
          Responses dropped due to errors: 0
          Queries timeout: 0
          Forward loss measurement:
            Average packet loss: 0
            Average packet throughput: 553927
          Reverse loss measurement:
            Average packet loss: 0
            Average packet throughput: 1351531
        Delay measurement Data:
          Best 2-way channel delay: 76 usecs
          Worst 2-way channel delay: 368 usecs
          Best round trip time: 1082 usecs
          Worst round trip time: 126146 usecs
          Avg absolute fw delay variation: 1618 usecs
          Avg absolute rv delay variation: 1619 usecs
    

    Meaning

    The packet loss and delay measurement metrics for LSP are displayed.

    Modified: 2017-02-08