Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Example: Configuring an RFC 2544-Based Benchmarking Test for NNI Direction of Ethernet Pseudowires

date_range 01-Dec-23

This example shows how to configure the benchmarking test for a network-to-network interface (NNI) direction of an Ethernet pseudowire service.

Requirements

This example uses the following hardware and software components:

  • An ACX Series router

  • Junos OS Release 12.3X52 or later

Overview

Consider a sample topology in which a router, Router A, functions as an initiator and terminator of the test frames for an RFC 2544-based benchmarking test. Router A operates as a provider edge device, PE1, which is connected to a customer edge device, CE1, on one side and over an Ethernet pseudowire to another router, Router B, which functions as a reflector to reflect back the test frames it receives from Router A. Router B operates as a provider edge device, PE2, which is the remote router located at the other side of the service provider core. The UNI direction of CE1 is connected to the NNI direction of PE1. An MPLS tunnel connects PE1 and PE2 over the Ethernet pseudowire or the Ethernet line (E-LINE).

This benchmarking test is used to compute the performance attributes in the network-to-network interface (NNI) direction of an Ethernet pseudowire service between Router A and Router B. The logical interface under test on Router A is the CE1 interface with UNI as the direction, and the logical interface under test on Router B is the CE2 interface with NNI as the direction. Data traffic arriving from UNI towards NNI is ignored while the test is in progress. Packets from NNI are not sent toward the customer edge because all packets are assumed to be test frames. The CCC family and NNI direction are configured on routers A and B.

Figure 1 shows the sample topology to perform an RFC 2544 test for the NNI direction of an Ethernet pseudowire service.

Figure 1: RFC 2544-Based Benchmarking Test for NNI Direction of an Ethernet PseudowireRFC 2544-Based Benchmarking Test for NNI Direction of an Ethernet Pseudowire

Configuration

In this example, you configure the benchmarking test for the NNI direction of an Ethernet pseudowire service that is enabled between two routers to detect and analyze the performance of the interconnecting routers.

CLI Quick Configuration

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

Configuring Benchmarking Test Parameters on Router A

content_copy zoom_out_map
set interfaces ge-0/0/0 vlan-tagging
set interfaces ge-0/0/0 unit 0 encapsulation vlan-ccc
set interfaces ge-0/0/0 unit 0 vlan-id 101
set services rpm rfc2544-benchmarking profiles test-profile throughput test-type throughput
set services rpm rfc2544-benchmarking profiles test-profile throughput packet-size 64
set services rpm rfc2544-benchmarking profiles test-profile throughput test-duration 20
set services rpm rfc2544-benchmarking profiles test-profile throughput bandwidth-kbps 500
set services rpm rfc2544-benchmarking tests test-name test1 interface ge-0/0/0.1
set services rpm rfc2544-benchmarking tests test-name test1 test-profile throughput
set services rpm rfc2544-benchmarking tests test-name test1 mode initiate-and-terminate
set services rpm rfc2544-benchmarking tests test-name test1 family ccc
set services rpm rfc2544-benchmarking tests test-name test1 direction nni

Configuring Benchmarking Test Parameters on Router B

content_copy zoom_out_map
set interfaces ge-0/0/4 vlan-tagging
set interfaces ge-0/0/4 unit 0 encapsulation vlan-ccc
set interfaces ge-0/0/4 unit 0 vlan-id 101
set services rpm rfc2544-benchmarking tests test-name test1 interface ge-0/0/4.1
set services rpm rfc2544-benchmarking tests test-name test1 mode reflect
set services rpm rfc2544-benchmarking tests test-name test1 reflector-port 25
set services rpm rfc2544-benchmarking tests test-name test1 mode family ccc
set services rpm rfc2544-benchmarking tests test-name test1 direction uni

Configuring Benchmarking Test Parameters on Router B

Step-by-Step Procedure

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

To configure the test parameters on Router A:

  1. In configuration mode, go to the [edit interfaces] hierarchy level:

    content_copy zoom_out_map
    [edit]
    user@host# edit interfaces
    
  2. Configure the interface on which the test must be run.

    content_copy zoom_out_map
    [edit interfaces]
    user@host# edit ge-0/0/0
    
  3. Configure VLAN tagging for transmission and reception of 802.1Q VLAN-tagged frames.

    content_copy zoom_out_map
    [edit interfaces ge-0/0/0]
     user@host# set vlan-tagging
    
  4. Configure a logical unit for the interface.

    content_copy zoom_out_map
    [edit interfaces ge-0/0/0]
     user@host# edit unit 0
    
  5. Specify the encapsulation for Ethernet VLAN circuits.

    content_copy zoom_out_map
    [edit interfaces ge-0/0/0 unit 0]
     user@host# set encapsulation vlan-ccc
    
  6. Configure the VLAN ID on the logical interface.

    content_copy zoom_out_map
    [edit interfaces ge-0/0/0 unit 0]
    user@host# set vlan-id 101
    
  7. Go to the top level of the configuration command mode.

    content_copy zoom_out_map
    [edit interfaces ge-0/0/0 unit 0]
    user@host# top
    
  8. In configuration mode, go to the [edit services] hierarchy level.

    content_copy zoom_out_map
    [edit]
    user@host# edit services
    
  9. Configure a real-time performance monitoring service (RPM) instance.

    content_copy zoom_out_map
    [edit services]
    user@host# edit rpm
    
  10. Configure an RFC 2544-based benchmarking test for the RPM instance.

    content_copy zoom_out_map
    [edit services rpm]
    user@host# edit rfc2544-benchmarking
    
  11. Define a name for a test profile—for example, throughput.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking]
    user@host# edit profiles test-profile throughput
    
  12. Configure the type of test to be performed as throughput.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking profiles test-profile throughput]
    user@host# set test-type throughput
    
  13. Specify the size of the test packet as 64 bytes.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking profiles test-profile throughput]
    user@host# set test-type packet-size 64
    
  14. Specify the period—for example, 20 minutes—for which the test is to be performed in hours, minutes, or seconds by specifying a number followed by the letter h (for hours), m (for minutes), or s (for seconds).

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking profiles test-profile throughput]
    user@host# set test-type test-duration 20m
    
  15. Define the theoretical maximum bandwidth for the test in kilobits per second, with a value from 1 Kbps through 1,000,000 Kbps.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking profiles test-profile throughput]
    user@host# set test-type bandwidth-kbps 500
    
  16. Enter the up command to go the previous level in the configuration hierarchy.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking profiles test-profile throughput]
    user@host# up
    
  17. Enter the up command to go the previous level in the configuration hierarchy.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking profiles]
    user@host# up
    
  18. Define a name for the test—for example, test1. The test name identifier can be up to 32 characters in length.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking]
    user@host# edit tests test-name test1
    
  19. Specify the name of the test profile—for example, throughput—to be associated with a particular test name.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking tests test-name test1]
    user@host# set test-profile throughput
    
  20. Specify the logical interface, ge-0/0/0.1, on which the RFC 2544-based benchmarking test is run.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking tests test-name test1]
    user@host# set test-interface ge-0/0/0.1
    
  21. Specify the test mode for the packets that are sent during the benchmarking test as initiation and termination.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking tests test-name test1]
    user@host# set mode initiate-and-terminate
    
  22. Configure the address type family, ccc, for the benchmarking test.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking tests test-name test1]
    user@host# set family ccc
    
  23. Specify the direction of the interface on which the test must be run, which is NNI in this example.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking tests test-name test1]
    user@host# set direction nni
    

Configuring Benchmarking Test Parameters on Router B

Step-by-Step Procedure

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

To configure the test parameters on Router B:

  1. In configuration mode, go to the [edit interfaces] hierarchy level:

    content_copy zoom_out_map
    [edit]
    user@host# edit interfaces
    
  2. Configure the interface on which the test must be run.

    content_copy zoom_out_map
    [edit interfaces]
    user@host# edit ge-0/0/4
    
  3. Configure VLAN tagging for transmission and reception of 802.1Q VLAN-tagged frames.

    content_copy zoom_out_map
    [edit interfaces ge-0/0/4]
     user@host# set vlan-tagging
    
  4. Configure a logical unit for the interface.

    content_copy zoom_out_map
    [edit interfaces ge-0/0/4]
     user@host# edit unit 0
    
  5. Specify the encapsulation for Ethernet VLAN circuits.

    content_copy zoom_out_map
    [edit interfaces ge-0/0/4 unit 0]
     user@host# set encapsulation vlan-ccc
    
  6. Configure the VLAN ID on the logical interface.

    content_copy zoom_out_map
    [edit interfaces ge-0/0/4 unit 0]
    user@host# set vlan-id 101
    
  7. Go to the top level of the configuration command mode.

    content_copy zoom_out_map
    [edit interfaces ge-0/0/4 unit 0]
    user@host# top
    
  8. In configuration mode, go to the [edit services] hierarchy level.

    content_copy zoom_out_map
    [edit]
    user@host# edit services
    
  9. Configure a real-time performance monitoring service (RPM) instance.

    content_copy zoom_out_map
    [edit services]
    user@host# edit rpm
    
  10. Configure an RFC 2544-based benchmarking test for the RPM instance.

    content_copy zoom_out_map
    [edit services rpm]
    user@host# edit rfc2544-benchmarking
    
  11. Define a name for the test—for example, test1. The test name identifier can be up to 32 characters in length.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking]
    user@host# edit tests test-name test1
    
  12. Specify the logical interface, ge-0/0/4.1, on which the RFC 2544-based benchmarking test is run.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking tests test-name test1]
    user@host# set test-interface ge-0/0/4.1
    
  13. Specify reflect as the test mode for the packets that are sent during the benchmarking test.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking tests test-name test1]
    user@host# set mode reflect
    
  14. Configure the address type family, ccc, for the benchmarking test.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking tests test-name test1]
    user@host# set family ccc
    
  15. Specify the direction of the interface on which the test must be run, which is NNI in this example.

    content_copy zoom_out_map
    [edit services rpm rfc2544-benchmarking tests test-name test1]
    user@host# set direction nni
    

Results

In configuration mode, confirm your configuration on Router A and Router B by entering the show command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

Configuring Benchmarking Test Parameters on Router A:

content_copy zoom_out_map
[edit interfaces]
  ge-0/0/0 {
      vlan-tagging;
      unit 0 {
          encapsulation vlan-ccc;
          vlan-id 101;
      }
  }

  [edit services rpm]
  rfc2544-benchmarking {
      profiles {
          test-profile throughput {
              test-type throughput
              packet-size 64;
              test-duration 20m;
              bandwidth-kbps 500;
          }
      }

      tests {
          test-name test1 {
              interface ge-0/0/0.1;
              test-profile throughput;
              mode initiate-and-terminate;
              family ccc;
              direction nni;
          }
      }
  }


Configuring Benchmarking Test Parameters on Router B:

content_copy zoom_out_map
[edit interfaces]
  ge-0/0/4 {
      vlan-tagging;
      unit 0 {
          encapsulation vlan-ccc;
          vlan-id 101;
      }
  }

  [edit services rpm]
  rfc2544-benchmarking {
      # Note, When in reflector mode, test profile is not needed
      tests {
          test-name test1 {
              interface ge-0/0/4.1;
              mode reflect;
              family ccc;
              direction nni;
          }
      }
  }

After you have configured the device, enter the commit command in configuration mode.

Verifying the Results of the Benchmarking Test for NNI Direction of an Ethernet Pseudowire Service

Examine the results of the benchmarking test that is performed on the configured service between Router A and Router B.

Verifying the Benchmarking Test Results

Purpose

Verify that the necessary and desired statistical values are displayed for the benchmarking test that is run on the configured service between Router A and Router B.

Action

In operational mode, enter the run show services rpm rfc2544-benchmarking (aborted-tests | active-tests | completed-tests | summary) command to display information about the results of each category or state of the RFC 2544-based benchmarking test, such as terminated tests, active tests, and completed tests, for each real-time performance monitoring (RPM) instance.

Meaning

The output displays the details of the benchmarking test that was performed. For more information about the run show services rpm rfc2544-benchmarking operational command, see show services rpm rfc2544-benchmarking in the CLI Explorer.

footer-navigation