Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configure an RFC 2544-Based Benchmarking Test on an MX104 Router for Layer 3 IPv4 Services

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 routers and on MX240, MX480, and MX960 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 routers, see Enabling Support for RFC 2544-Based Benchmarking Tests on MX Series Routers.

Note:

This example is not applicable for ACX7100, ACX5448, ACX5048, and ACX5096 routers because they can only be configured as reflectors, not initiators.

This example uses the following hardware and software components:

  • An MX104 router (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 is connected over a Layer 3 network to another router, Router B (MX104), which functions as a reflector to reflect back the test frames it receives from Router A. IPv4 is used for transmission of test frames over the Layer 3 network. This benchmarking test is used to compute the IPv4 service parameters between Router A and Router B. Logical interfaces on both the routers are configured with IPv4 addresses to measure the performance attributes, such as throughput, latency, frame loss, and bursty frames, of network devices for the IPv4 service.

Figure 1 shows the sample topology to perform an RFC 2544 test for a Layer 3 IPv4 Service.

Figure 1: RFC 2544-Based Benchmarking Test for a Layer 3 IPv4 ServiceRFC 2544-Based Benchmarking Test for a Layer 3 IPv4 Service

Configuration

In this example, you configure the benchmarking test for a Layer 3 IPv4 service that is between interface ge-0/0/0 on Router A and interface ge-0/0/4 on Router B to detect and analyze the performance of the interconnecting routers. You do not configure a test profile on Router B, because it operates as a reflector. You must configure the reflector (Router B) before you configure the initiator (Router A), because the reflector needs to be already configured and the tests running before you start tests on the initiator. If you start the tests on the initiator first, then all the packets sent are lost until you start the tests on the reflector.

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:

Configure Benchmarking Test Parameters on Router B

Configure Benchmarking Test Parameters on Router A

Configure Benchmarking Test Parameters on Router B

Step-by-Step Procedure

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

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

  3. Configure a logical unit and specify the protocol family as inet.

  4. Specify the address for the logical interface.

  5. Go to the top level of the configuration mode.

  6. In configuration mode, go to the [edit services rpm rfc2544-benchmarking] hierarchy level.

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

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

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

  10. Configure the address type family, inet, for the benchmarking test.

  11. Configure the destination IPv4 address for the test packets as 192.0.2.2. The destination IPv4 address configured on the reflector must match the destination IPv4 address configured on the initiator. If you configure 192.0.2.1 instead, you get this error message: error: test test1 - Could not determine local interface for address 192.0.2.1.

  12. Specify the UDP port of the destination to be used in the UDP header for the generated frames as 4001.

  13. Configure the source IPv4 address for the test packets.

  14. Go to the top level of the configuration mode.

  15. Commit the configuration.

  16. Confirm the configuration. If the output does not contain the configuration below, repeat the configuration instructions in this example to correct it.

  17. Exit to operational mode.

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

Configure Benchmarking Test Parameters on Router A

Step-by-Step Procedure

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

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

  3. Configure a logical unit and specify the protocol family.

  4. Specify the address for the logical interface.

  5. Go to the top level of the configuration mode.

  6. In configuration mode, go to the [edit services rpm rfc2544-benchmarking] hierarchy level.

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

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

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

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

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

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

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

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

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

  16. Specify the test mode for the packets that are sent during the benchmarking test as initiate and terminate.

  17. Configure the address type family, inet, for the benchmarking test.

  18. Configure the destination IPv4 address for the test packets.

  19. Specify the UDP port of the destination to be used in the UDP header for the generated frames as 4001.

  20. Configure the source IPv4 address for the test packets.

  21. Go to the top level of the configuration mode.

  22. Commit the configuration.

  23. Confirm the configuration. If the output does not contain the configuration below, repeat the configuration instructions in this example to correct it.

  24. Exit to operational mode.

  25. Start the benchmarking test on the initiator.

    After the test successfully completes, it automatically stops at the initiator. Once 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 on Router B in operational mode.

Results

If you have not done so already, confirm your configuration on Router A and Router B by entering the show command in configuration mode at the [edit interfaces] and [edit services rpm] hierarchy levels. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

Configuration for Benchmarking Test Parameters on Router A:

Configuration for Benchmarking Test Parameters on Router B:

Verify the Results of the Benchmarking Test for Layer 3 IPv4 Services

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

Verify 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, on either the initiator or the reflector, 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.