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 for Layer 3 IPv4 Services

This example shows how to configure the benchmarking test for a Layer 3 IPv4 service.

Note:

This example is not applicable for ACX5448, ACX5048, and ACX5096 routers.

Requirements

This example uses the following hardware and software components:

  • An ACX Series router

  • Junos OS Release 12.3X53 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 is connected over a Layer 3 network to another router, Router B, 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 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:

  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. Enter the up command to go the previous level in the configuration hierarchy.

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

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

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

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

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

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

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

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

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

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

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

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

  18. Commit the configuration.

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

  20. Exit to operational mode.

  21. Start the benchmarking test on the reflector.

    Once you configure the initiator (Router A), you can start the test on the initiator, and the initiator starts sending packets to the reflector. 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 in operational mode.

Configure Benchmarking Test Parameters on Router A

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:

  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. Enter the up command to go the previous level in the configuration hierarchy.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  25. Commit the configuration.

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

  27. Exit to operational mode.

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

Meaning

The output displays the details of the benchmarking test that was performed.