Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring TWAMP

You can configure the Two-Way Active Measurement Protocol (TWAMP) on all M Series and T Series routers that support Multiservices PICs (running in either Layer 2 or Layer 3 mode), and on MX Series routers. Only the responder (server) side of TWAMP is supported.

Note: TWAMP is not supported on EX Series switches and PTX Series Packet Transport Routers.

For more information on TWAMP, see RFC 5357, A Two-Way Active Measurement Protocol (TWAMP).

To configure TWAMP properties, include the twamp statement at the [edit services rpm] hierarchy level:

[edit services rpm]
twamp {server {client-list list-name {[ address address ];}authentication-mode mode;max-connection-duration hours;maximum-connections count;maximum-connections-per-client count;maximum-sessions count;maximum-sessions-per-connection count;port number;server-inactivity-timeout minutes;}}

The TWAMP configuration process includes the following tasks:

Configuring TWAMP Interfaces

To specify the service PIC logical interface that provides the TWAMP service, include the twamp-server statement at the [edit interfaces sp-fpc/pic/port unit logical-unit-number hierarchy level:

twamp-server;

Note: On MX Series routers that do not include a Multiservices DPC, you can configure the twamp-server statement on any interface (for example, ge-1/0/1.10). It is not necessary to configure this statement on a service interface (sp- or ms-) but you do need to include it in the configuration to activate the TWAMP reflector functionality.

Configuring TWAMP Servers

You can specify a number of TWAMP server properties, some of which are optional, by including the server statement at the [edit services rpm twamp] hierarchy level:

[edit services rpm twamp]
server {client-list list-name {[ address address ];}authentication-mode mode;max-connection-duration hours;maximum-connections count;maximum-connections-per-client count;maximum-sessions count;maximum-sessions-per-connection count;port number;server-inactivity-timeout minutes;}
  • To specify the list of allowed control client hosts that can connect to this server, include the client-list statement at the [edit services rpm twamp server] hierarchy level. Each value you include must be a Classless Interdomain Routing (CIDR) address (IP address plus mask) that represents a network of allowed hosts. You can include multiple client lists, each of which can contain a maximum of 64 entries. You must configure at least one client address to enable TWAMP.
  • You must specify the authentication mode by including the authentication-mode statement at the [edit services rpm twamp server] hierarchy level. There is no default value. You can configure authenticated or encrypted mode, based on RFC 4656; if there is no authentication or encryptions mode specified, you should set the value to none. This statement is required in the TWAMP configuration.
  • To specify the inactivity timeout period in seconds, include the inactivity-timeout statement at the [edit services rpm twamp server] hierarchy level. By default, the value is 1800; the range is 0 through 3600 seconds.
  • To specify the maximum number of concurrent connections the server can have to client hosts, include the maximum-connections statement at the [edit services rpm twamp server] hierarchy level. The allowed range of values is 1 through 2048 and the default value is 64. You can also limit the number of connections the server can make to a particular client host by including the maximum-connections-per-client statement.
  • To specify the maximum number of sessions the server can have running at one time, include the maximum-sessions statement at the [edit services rpm twamp server] hierarchy level. The allowed range of values is 1 through 2048 and the default value is 64. You can also limit the number of sessions the server can have on a single connection by including the maximum-sessions-per-connection statement.
  • To specify the TWAMP server listening port, include the port statement at the [edit services rpm twamp server] hierarchy level. The range is 1 through 65,535. This statement is mandatory.
  • To specify the server inactivity timeout period in minutes, include the server-inactivity-timeout statement at the [edit services rpm twamp server] hierarchy level. The range is 0 through 30 minutes.

Published: 2015-01-05

Published: 2015-01-05