IP Active Performance Measurement: Twamp
IP Active Performance Measurement: Twamp
IP Active Performance Measurement: Twamp
Measurement
TWAMP
Avril 2017
| 9 May 2018 | 2
Benefits
However, TWAMP uses User Datagram Protocol (UDP) packet injection, which generates traffic
and occupies bandwidth. For example, if 80-byte packets are continuously sent at a rate of 10
packets per second in a test stream, a bandwidth of 6.4 kbit/s is consumed.
| 9 May 2018 | 3
Technical Description
Position of TWAMP in the TCP/IP protocol stack
In accordance with TWAMP, this feature measures the transmission quality at the network layer. The
controller sends test packets before performing IP packet fragmentation. The responder performs IP
packet assembly before responding to the received test packets.
| 9 May 2018 | 4
Basic Concepts
TWAMP defines four logical entities: Session-Sender, Session-Reflector, Control-Client, and Server.
TWAMP also defines two packet types: control packet and test packet.
In full mode, one host (Controller) plays the roles of the Session-Sender and Control-Client, and the other host
(Responder) plays the roles of the Session-Reflector and Server, as shown in Figure 3-3. The Controller sends TCP-type
TWAMP control packets to the Responder for establishing test sessions. After the sessions are established, the
Controller sends UDP-type TWAMP test packets to the Responder. The Session-Reflector of the Responder responds to
the test packets.
| 9 May 2018 | 5
TWAMP Measurement Parameters
Packet Loss Rate
The packet loss rate indicates the transmission quality of a tested IP link.
The calculation formulas are as follows:
- Forward packet loss rate = (Number of packets transmitted by the Session-Sender – Number of
packets transmitted by the Session-Reflector)/Number of packets transmitted by the Session-Sender.
- Backward packet loss rate = (Number of packets transmitted by the Session-Reflector – Number of
packets received by the Session-Sender)/Number of packets transmitted by the Session-Reflector.
Round-Trip Delay
The round-trip delay is the length of time it takes for a packet to be sent plus the length of time it takes
for an acknowledgment of that packet to be received. The round-trip delay indicates the delay in a
transmission network.
Delay Variation
The delay variation indicates the difference between delays of selected packets on an IP link.
| 9 May 2018 | 6
TWAMP Application
TWAMP uses the combination of source IP address, destination IP address, source UDP port number,
destination UDP port number, and DSCP to identify a transmission link.
| 9 May 2018 | 7
Differences Between TWAMP and Huawei-
Private IP PM
Technical Differences
Application Differences
| 9 May 2018 | 8
Both TWAMP and Huawei-private IP PM measure the transmission quality in real time. Huawei-private
IP PM is recommended if both ends use Huawei devices, for example, between a Huawei base station
and a Huawei base station controller, between a Huawei eNodeB and a Huawei S-GW, and between
two Huawei base stations. TWAMP is recommended if devices provided by different vendors are used
at the two ends, for example, between a Huawei base station or base station controller and a
transmission device provided by another vendor.
| 9 May 2018 | 9
Engineering Guidelines
| 9 May 2018 | 10
Deployment
Requirements in these scenarios are as follows:
| 9 May 2018 | 11
Data preparation for the TWAMP
Controller function
| 9 May 2018 | 12
Data preparation for the base station
serving as the TWAMP Responder
Negotiation Wait Time SERVWAIT The default value defined Internal plan
by the protocol 900s is
recommended.
Measurement Wait Time REFWAIT The default value defined Internal plan
by the protocol 900s is
recommended.
| 9 May 2018 | 13
Activation
To activate the TWAMP Controller function on the local end, perform the following steps:
1. Run the MML command ADD TWAMPCLIENT to set the TWAMP Control-Client, which sends
negotiation packets to establish TCP connections with the Responder, and negotiates control
information (such as DSCP and UDP ports) for test sessions.
2. Run the MML command ADD TWAMPSENDER to set the TWAMP Session-Sender, which sends test
packets and collects measurement information.
To activate the TWAMP Responder function on the local end, perform the following steps:
1. Run the MML command ADD TWAMPRESPONDER to configure the TWAMP Responder, which
responds to the negotiation packets and test packets received from the TWAMP Controller.
| 9 May 2018 | 14
MML Command Examples
| 9 May 2018 | 15
performance counters on the base
station side
| 9 May 2018 | 16
| 9 May 2018 | 17