PR_TPLDLATENCY

code: 246

# get
<module-index>/<port-index> PR_TPLDLATENCY [<test_payload_index>] ?

Description

Obtains statistics concerning the latency experienced by the packets with a particular test payload id received on a port. The values are adjusted by the port-level P_LATENCYOFFSET value. A special value of -1 is returned if latency numbers are not applicable. Latency is only meaningful when the clocks of the transmitter and receiver are synchronized. This requires the two ports to be on the same test module, and it requires knowledge of the global test environment to ensure that packets are in fact routed between these ports.

Actions

get

Parameters

  1. min_val: long integer, minimum latency (nanoseconds)

  2. avg_val: long integer, maximum latency (nanoseconds)

  3. max_val: long integer, average latency (nanoseconds)

  4. avg_last_sec: long integer, average latency over last 1-second period (nanoseconds)

  5. min_last_sec: long integer, minimum latency over last 1-second period (nanoseconds)

  6. max_last_sec: long integer, maximum latency over last 1-second period (nanoseconds)

Example

# get
input:  0/1 PR_TPLDLATENCY [0] ?
output: 0/1 PR_TPLDLATENCY [0] 8 9 10 9 8 10