Two-Way Active Measurement Protocol (TWAMP) defines an open protocol for measuring two-way or round-trip metrics with greater accuracy than other methods by using timestamps (processing delays can be factored as well). This article explains why certain TWAMP OIDs might not be displayed.
Over each collection of probes, TWAMP calculates statistics for several sets of measurements. These sets include the following:
In the described scenario, it was noticed that ingress and egress measures are not collected:
root@> request services rpm twamp start client root@> show snmp mib walk 1.3.6.1.4.1.2636.3.77.1.1.1.1.2.2.99.49.2.116.49 jnxTwampResSampleValue.2.99.49.2.116.49.1 = 262 jnxTwampResSampleValue.2.99.49.2.116.49.2 = 16 jnxTwampResSampleValue.2.99.49.2.116.49.3 = 20 jnxTwampResSampleValue.2.99.49.2.116.49.5 = 13 jnxTwampResSampleValue.2.99.49.2.116.49.6 = 18 jnxTwampResSampleValue.2.99.49.2.116.49.8 = 2 jnxTwampResSampleValue.2.99.49.2.116.49.9 = 1
root@> request services rpm twamp start client
root@> show snmp mib walk 1.3.6.1.4.1.2636.3.77.1.1.1.1.2.2.99.49.2.116.49 jnxTwampResSampleValue.2.99.49.2.116.49.1 = 262 jnxTwampResSampleValue.2.99.49.2.116.49.2 = 16 jnxTwampResSampleValue.2.99.49.2.116.49.3 = 20 jnxTwampResSampleValue.2.99.49.2.116.49.5 = 13 jnxTwampResSampleValue.2.99.49.2.116.49.6 = 18 jnxTwampResSampleValue.2.99.49.2.116.49.8 = 2 jnxTwampResSampleValue.2.99.49.2.116.49.9 = 1
There are 4 timestamps used in TWAMP:
In scenarios where the RTT is smaller than the offset difference between TWAMP client and server, it is expected to lose the one way OIDs as they will probably be negative and not match the prerequisite to exist. This behavior is expected. Even when external NTP server is used; as there might be a certain offset between the TWAMP client and the TWAMP server. Workaround:
Manually synchronize the clock with the NTP server right before running the TWAMP test using the command: ' set ntp update ' This will make the values of "egress" and "ingress" OIDs accurate, bring the sync time between TWAMP client and server really close, so it meets the requirements and makes it possible for the values of OIDs 4 and 7 to be displayed.
set ntp update