Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

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

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

Requirements

Note:

MX Series routers support only the reflector function in RFC2544-based benchmarking tests. This example uses the MX104 3D Universal Edge Router as the reflector. You can also configure benchmarking tests on MX80 Series routers and MX240, MX480, and MX960 Series routers with MPC1, MPC2, and 16-port 10-gigabit Ethernet MPC from Junos OS Release 16.1 or later. To configure RFC2544-based benchmarking tests on MX240, MX480, MX960 Series routers, see Enabling Support for RFC 2544-Based Benchmarking Tests on MX Series Routers.

This example uses the following hardware and software components:

  • An MX104 (reflector)

  • An ACX Series router (initiator)

  • Junos OS Release 13.3 or later

Overview

Consider a sample topology in which a router, Router A (ACX), functions as an initiator and terminator of the test frames for an RFC 2544-based benchmarking test. Router A operates as a provider edge devicePE1, which is connected to a customer edge device CE1 on one side and over an Ethernet pseudowire to another router Router B (MX104), 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).

Note:

When pseudowire reflection is enabled on an interface, the router does not block the ingress or egress traffic through the test interface. To block other data traffic, you must explicitly configure firewall filters.

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 toward 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 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

Configuring Benchmarking Test Parameters on Router B

Configuring Benchmarking Test Parameters on Router

Step-by-Step Procedure

The following require 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:

  2. Configure the interface on which the test must be run.

  3. Configure VLAN tagging for transmission and reception of 802.1Q VLAN-tagged frames.

  4. Configure a logical unit for the interface.

  5. Specify the encapsulation for Ethernet VLAN circuits.

  6. Configure the VLAN ID on the logical interface.

  7. Go to the top level of the configuration command mode.

  8. In configuration mode, go to the [edit services] hierarchy level.

  9. Configure a real-time performance monitoring service (RPM) instance.

  10. Configure an RFC 2544-based benchmarking test for the RPM instance.

  11. Define a name for a test profile—for example, throughput.

  12. Configure the type of test to be performed as throughput.

  13. Specify the size of the test packet as 64 bytes.

  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).

  15. Define the theoretical maximum bandwidth for the test in kilobits per second, with a value from 1 Kbps through 1,000,000 Kbps.

  16. Enter the up command to go the previous level in the configuration hierarchy.

  17. Enter the up command to go the previous level in the configuration hierarchy.

  18. Define a name for the test—for example, test1. The test name identifier can be up to 32 characters in length.

  19. Specify the name of the test profile—for example, throughput—to be associated with a particular test name.

  20. Specify the logical interface, ge-0/0/0.1, on which the RFC 2544-based benchmarking test is run.

  21. Specify the test mode for the packets that are sent during the benchmarking test as initiation and termination.

  22. Configure the address type family, ccc, for the benchmarking test.

  23. Specify the direction of the interface on which the test must be run, which is egress in this example.

Configuring Benchmarking Test Parameters on Router B

Step-by-Step Procedure

The following require 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:

  2. Configure the interface on which the test must be run.

  3. Configure VLAN tagging for transmission and reception of 802.1Q VLAN-tagged frames.

  4. Configure a logical unit for the interface.

  5. Specify the encapsulation for Ethernet VLAN circuits.

  6. Configure the VLAN ID on the logical interface.

  7. Go to the top level of the configuration command mode.

  8. In configuration mode, go to the [edit services] hierarchy level.

  9. Configure a real-time performance monitoring service (RPM) instance.

  10. Configure an RFC 2544-based benchmarking test for the RPM instance.

  11. Define a name for the test—for example, test1. The test name identifier can be up to 32 characters in length.

  12. Specify the logical interface, ge-0/0/4.1, on which the RFC 2544-based benchmarking test is run.

    Note:

    When pseudowire reflection is enabled on an interface, the router does not block the ingress or egress traffic through the test interface. To block other data traffic, you must explicitly configure firewall filters.

  13. Specify reflect as the test mode for the packets that are sent during the benchmarking test.

  14. Configure the address type family, ccc, for the benchmarking test.

  15. Specify the direction of the interface on which the test must be run, which is ingress in this example.

  16. Start the benchmarking test on the reflector.

    After the test is successfully completed at the initiator, you can stop the test at the reflector by entering the test services rpm rfc2544-benchmarking test test1 stop command.

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.

Benchmarking Test Parameters on Router A:

Benchmarking Test Parameters on Router B:

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 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 show services rpm rfc2544-benchmarking operational command, see show services rpm rfc2544-benchmarking in the CLI Explorer.