Network Response Time Measurement (NRTM)

The Network Response Time Measurement (NRTM) tool measures an Ethernet frame's round-trip time (RTT) through a reflector. If the time spent in the reflector is negligible, the measured RTT provides a good approximation of the latency accumulated across these layers on a given machine:

NRTM can be used in three modes:

Command Line Arguments

The first argument passed to the NRTM application is the name of the network interface to use, followed by command arguments chosen from the options below:

/physical

Uses the Physical Queue API (default).

/logical

Uses the Logical Queue API instead of the default Physical Queue API.

/raw

Uses the Raw Ethernet mode (default).

/udp

Uses the UDP mode instead of the default Raw Ethernet mode.

/ecat

Uses the EtherCAT mode instead of the default Raw Ethernet mode.

/duration <number>

Specifies the duration of the test, in seconds. The default value is 1.

/txq <number>

Specifies the index of the Transmit Queue to use. The default value is 0.

/rxq <number>

Specifies the index of the Receive Queue to use. The default value is 0.

/pktlen <number>

Specifies the length of the transmitted packets, in bytes, including the 14-byte Ethernet header but excluding the 4-byte FCS. The default value is 60.

/mac <macaddress>

Specifies the Destination MAC Address to use. This is only relevant in Raw Ethernet mode. The default value is broadcast.

/destip <ipaddress>

Specifies the Destination IP Address to use. This is only relevant in UDP mode.

/srcip <ipaddress>

Specifies the Source IP Address to use. This is only relevant in UDP mode.

/destport <number>

Specifies the Destination UDP Port to use. This is only relevant in UDP mode.

/srcport <number>

Specifies the Source UDP Port to use. This is only relevant in UDP mode.

Example

At the end of the measurement period, NRTM prints a report as a histogram. The following is an example of the output generated by this command: rtssrun Nrtm I226 /ecat /physical

Nrtm.rtss: Using EtherCAT packet: 48 bytes (2 commands)
Waiting for the Physical Tx Queue to be ready...
Physical Tx Queue is ready.
Nrtm.rtss: Starting Network Response Time Measurements with Physical Queue API. Packet length = 60. Test duration = 1s
Statistics based on 54015 RTT measurements:
min=17.411us, avg=17.853us, max=29.872us