How to configure the TWAMP server
To use the TWAMP server on a Vyatta router, you must first configure the TWAMP service.
Note: To start the steps in this task, first enter configuration mode.
- Start the TWAMP server. By default, the server accepts any connection request from any client.
vyatta@R1# set service twamp server
- Add a client to the list of clients that can connect to the TWAMP server in the unauthenticated mode.
vyatta@R1# set service twamp server client-list 11.0.0.0/8
This adds the client that has IP address11.0.0.0/8
. - Specify the base-10 value of the DSCP byte in the IP header of control packets sent from the server.
vyatta@R1# set service twamp server dscp-value 34
This specifies a value of34
. - Specify the maximum number of control sessions for each TWAMP server.
vyatta@R1# set service twamp server maximum-connections 10
This specifies a maximum of10
control sessions. - Limit the number of maximum number of test sessions for each control session.
vyatta@R1# set service twamp server maximum-sessions-per-connection 16
This sets the limit to16
. - Disable the mixed client authentication mode.
vyatta@R1# set service twamp server mode no-mixed
- Specify the TCP port to use for control sessions.
vyatta@R1# set service twamp server port 862
This sets the TCP port to862
. - Set the timeout value for control session inactivity.
vyatta@R1# set service twamp server server-inactivity-timeout 5
This sets the timeout to 5 seconds. - Set the timeout value for test session inactivity.
vyatta@R1# set service twamp server test-inactivity-timeout 10
This sets the timeout to 10 seconds. - Create a test user account and assign a password to it.
vyatta@R1# set service twamp server user test password pass1
This sets a user account namedtest
with the passwordpass1
. - Commit the configuration.
vyatta@R1# commit
- Exit the configuration mode.
vyatta@R1# exit
- Optional: Show the status of the server.
vyatta@R1:~$ show service twamp server status
TWAMP Server is configured and is running.
- Optional: Show TWAMP server session activity.
vyatta@R1:~$ show service twamp server sessions all
Total number of sessions: 16 Total number of active sessions: 16 --> Control Session initiated by [Rtr2-tap0]:39549 in Authenticated mode SID SENDER REFLECTOR STATUS DSCP 0a00020fd863fa0eeecc1444b5000a61 [Rtr2-tap0]:8833 [Rtr1]:56967 ACTIVE 0x0 0a00020fd863fa0eee08638005774d72 [Rtr2-tap0]:8879 [Rtr1]:38676 ACTIVE 0x0 0a00020fd863fa0eecd9f0a68f69a638 [Rtr2-tap0]:8935 [Rtr1]:46080 ACTIVE 0x0 0a00020fd863fa0eeb2dba5175914887 [Rtr2-tap0]:8859 [Rtr1]:60355 ACTIVE 0x0 0a00020fd863fa0ee5a9b06cff9bacf1 [Rtr2-tap0]:8769 [Rtr1]:56089 ACTIVE 0x0 0a00020fd863fa0ee4b11c71bcba56af [Rtr2-tap0]:8778 [Rtr1]:48298 ACTIVE 0x0 0a00020fd863fa0ee3f7c679e973a4f4 [Rtr2-tap0]:8917 [Rtr1]:36039 ACTIVE 0x0 0a00020fd863fa0ee31e6473f8fc1a74 [Rtr2-tap0]:8845 [Rtr1]:45534 ACTIVE 0x0 <-- --> Control Session initiated by [Rtr2-tap0]:39550 in Authenticated mode SID SENDER REFLECTOR STATUS DSCP 0a00020fd863fa1a1f73b8df73463109 [Rtr2-tap0]:8958 [Rtr1]:54254 ACTIVE 0x0 0a00020fd863fa1a1d4dbe795b7d70d7 [Rtr2-tap0]:8949 [Rtr1]:58983 ACTIVE 0x0 0a00020fd863fa1a1bd7fe03660ed58a [Rtr2-tap0]:8817 [Rtr1]:49623 ACTIVE 0x0 0a00020fd863fa1a1a223635b8669238 [Rtr2-tap0]:8871 [Rtr1]:55287 ACTIVE 0x0 0a00020fd863fa1a18d1f250ed2c2c23 [Rtr2-tap0]:8863 [Rtr1]:57902 ACTIVE 0x0 0a00020fd863fa1a17756d14abae00a0 [Rtr2-tap0]:8831 [Rtr1]:37197 ACTIVE 0x0 0a00020fd863fa1a1696dda7c4c0d57b [Rtr2-tap0]:8800 [Rtr1]:54229 ACTIVE 0x0 0a00020fd863fa1a1594751787e08a1f [Rtr2-tap0]:8779 [Rtr1]:53110 ACTIVE 0x0 <--