Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring TWAMP Client and Server for SRX Series Firewalls

This example shows how to configure the Two-Way Active Measurement Protocol (TWAMP) client and TWAMP server.

Note:

Our content testing team has validated and updated this example.

Requirements

This example uses the following hardware and software components:

  • SRX Series Firewall.

  • Junos OS Release 18.1R1 and later releases.

    • Updated and revalidated using vMX on Junos OS Release 22.2R1.

Before you begin configuring TWAMP client and TWAMP server, ensure that you have read Understand Two-Way Active Measurement Protocol to understand how this task fits into the overall configuration process.

Overview

The TWAMP is an open protocol for measuring network performance between any two devices in a network that supports the TWAMP protocol. The TWAMP consists of TWAMP-Control protocol and TWAMP-Test protocol. The TWAMP-Control protocol is used to initiate, start and stop the test sessions between the control client. The TWAMP-Test protocol used to exchange the test packets between the session sender and the session reflector.

Figure 1 shows the TWAMP architecture composed of the following entities that are responsible for starting a monitoring session and exchanging packets:

  • The control client initiates all requested test sessions with a start sessions message, and the TWAMP server acknowledges. When necessary, the control client sends a message to stop all test sessions.

  • The session sender and the session reflector exchange test packets according to the TWAMP-Test protocol for each active session. On receiving a TWAMP-Test packet, the session reflector reflects a measurement packet and does not collect any packet statistics in TWAMP.

Figure 1: Configuring TWAMP Client and TWAMP Server Configuring TWAMP Client and TWAMP Server

The TWAMP server is an end system that manages one or more TWAMP sessions and capable of configuring per-session ports. The TWAMP server listens to the TCP port. The session reflector and TWAMP server make up the TWAMP responder in an IP service-level agreement operation.

For Junos OS Release 18.1R1, both the control client and session sender resides on the same device. The client design does not mandate the TWAMP server and the session reflector to be on the same system. Hence, the Juniper TWAMP client is also capable of working with a third-party server implementation.

Configuring the TWAMP Client for SRX Series Firewalls

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.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy.

To configure the TWAMP Client:

  1. Configure the client device host name as R1.

  2. Configure Device R1 interfaces.

  3. Enable traffic flow and system services to run on Device R1, which is otherwise dropped by default.

  4. Configure the control session from Device R1 to Device R2.

  5. Configure the test session from Device R1 to Device R2 for collecting probe results.

Results

From the configuration mode on Device R1, confirm your configuration by entering the show | no-more command. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

Configuring the TWAMP Server for SRX Series Firewalls

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.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy.

To configure the TWAMP Server:

  1. Configure the server device host name as R2.

  2. Configure Device R2 interfaces.

  3. Enable traffic flow and system services to run on Device R2, which is otherwise dropped by default.

  4. Configure the client attributes for Device R2 to connect with Device R1.

Results

From the configuration mode on R2, confirm your configuration by entering the show | no-more command. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

Verification

Confirm that the configuration is working properly.

Verifying TWAMP Client Sessions

Purpose

Verify that the TWAMP client sessions are established on Device R1.

Action

From operational mode, enter the show services rpm twamp client session command.

Meaning

The configured control and test sessions (c1 and t1, respectively) are established on Device R1.

Verifying TWAMP Server Sessions

Purpose

Verify that the TWAMP server sessions are established on Device R2.

Action

From operational mode, enter the show services rpm twamp server session command.

Meaning

The server session on Device R2 is active with Device R1 as the sender and Device R2 as the reflector.

Verifying Test Session Results

Purpose

Verify that the TWAMP test sessions on Device R1.

Action

From operational mode, enter the show services rpm twamp client probe-results command.

Meaning

The probe-results of the TWAMP test session is generated. This shows that the client-server connection is established successfully.