NE5000E V800R022C00SPC500 Feature Description
Understanding TWAMP
Understanding TWAMP
Implementation
The Two-Way Active Measurement Protocol (TWAMP) defines a method for measuring round-trip IP network performance between two TWAMP-capable devices. Figure 19-89 Figure 19-89 shows how TWAMP is implemented.
- The performance management system instructs the control-client to establish a test session with a specific TWAMP server.
- The control-client establishes and completes the test session.
- The performance management system collects and saves statistics during the test. The statistics of on-demand measurement are reported through SNMP (MIBs), and the statistics of proactive measurement are reported through the PM module.
TWAMP supports only proactive measurement.
Intercommunication Model
- Control-client: establishes, starts, and stops a test session and collects statistics.
- Session-sender: proactively sends probes for performance statistics after being notified by the control-client.
- Server: responds to the control-client's request for establishing, starting, or stopping a test session.
- Session-reflector: replies to the probes sent by the session-sender with response probes after being notified by the server.
To facilitate implementation, TWAMP unifies the four logical entities, as shown in Figure 19-91. Control signals are exchanged between the control-client and server through a TCP connection; probes are exchanged between the session-sender and session-reflector through a UDP connection. The control-client and server establish and start a test session. Once a test session starts, the control-client and server notify the session-sender and session-reflector respectively of the session information and allow the session-sender to send probes and the session-reflector to respond to the probes.
On a live network, if a network element (NE) functions as a server and session-reflector alone, the NE participates in TWAMP session establishment and probe exchanges but does not compile statistics. If a device or tester functions as the control-client and session-sender, the device or tester proactively establishes a TWAMP session for statistics collection. Users manage the control-client alone to rapidly obtain statistics about the performance of the entire IP network.
Measurement Indicators
- Latency: is calculated based on the timestamps carried in probes. The session-sender sends a probe carrying the transmit timestamp t1, and the session-reflector replies with a response probe carrying the receive timestamp t1' and the respond timestamp t2'. Upon receipt of the response probe, the session-sender records the receive timestamp t2. The latency during a single round trip is then calculated as follows:
Delay1 = t2 - t1 - ( t2' - t1' )
- Jitter: is the absolute deviation between two latencies in two consecutive round trips. According to the preceding formula, the latency in the next round trip is Latency2 = t4 – t3 – (t4' – t3'). The jitter is then calculated as follows:
Jitter = | Delay2 - Delay1 |
- Packet loss rate: calculated based on the number of packets sent and received by the Sender. For example, if the number of packets sent by the Sender is P1 and the number of packets received by the Sender is P2, the packet loss rate is calculated as follows:
Loss Ratio= ( P1 - P2 ) / P1
TWAMP Implementation Process
A Two-Way Active Measurement Protocol (TWAMP) test covers the establishment of a control session, establishment and start of a test session, and stop of the entire TWAMP session.
Establishment of a Control Session
A control session provides a basis for the establishment of a test session. Figure 19-92 shows how a control session is established.
- The server specifies a TCP port number (the default port number is 862), and the control-client initiates a TCP connection.
- The server replies with a Server-Greeting message to notify the control-client of the server configurations.
- After receiving the Server-Greeting message, the control-client sends a Set-Up-Response message to the server to establish a control session.
- The server verifies the Set-Up-Response message and replies with a Server-Start message.
A control session is established between the control-client and the server.
Establishment of a Test Session
After a control session is established, users can specify an IP address and a UDP port number on the control-client to establish a test session. Figure 19-93 shows how a test session is established.
- The control-client sends a Request-TW-Session message carrying an IP address and a UDP port number to the server through the TCP connection.
- After receiving the Request-TW-Session message, the server establishes a test session based on the IP address and UDP port number in the Request-TW-Session message and replies to the control-client with an Accept-Session message.
A test session is established between the control-client and the server.
Start of a Test Session
A test session is started based on a control session. After a test session is established, the control-client can send a Start-Session message to the server. After receiving the Start-Session message, the server instructs the control session to start all test sessions that are established based on the control session. Figure 19-94 shows how a test session is started.
- The control-client sends a Start-Session message to the server.
- After receiving the Start-Session message, the server notifies the session-reflector of the test session information to enable the session-reflector to respond to probes.
- The session-reflector replies to the control-client with a Start-ACK message to start the test sessions.
- After receiving the Start-ACK message, the control-client notifies the session-sender of the test session information to enable the session-sender to send probes.
Test sessions are started, and the session-reflector starts to respond to probes.
Stop of a TWAMP Session
After statistics are collected, users can stop a TWAMP session. Figure 19-95 shows how a TWAMP session is stopped.
- The control-client sends a Stop-Session message to instruct the server to stop collecting statistics.
- After receiving the Stop-Session message, the server disables the session-reflector from responding to probes in a TWAMP session.
The TWAMP session is stopped.