TCPDirect is a feature available for the SFN8000, X2 series and X3 series adapters. SFN8000 and X2 series adapters must have Onload and TCPDirect activation keys installed.
TCPDirect test applications can be found in:
onload-<version>/build/gnu_x86_64/tests/zf_apps/static
Run the zfudppingpong
application on both systems:
[sys-1]# ZF_ATTR="interface=<interface>;ctpio_mode=<mode>" taskset -c 1 \
zfudppingpong -s <payload> pong <sys-1_ip>:20000 <sys-2_ip>:20000
[sys-2]# ZF_ATTR="interface=<interface>;ctpio_mode=<mode>" taskset -c 1 \
zfudppingpong -s <payload> ping <sys-2_ip>:20000 <sys-1_ip>:20000
or run the zftcppingpong
application on both systems:
[sys-1]# ZF_ATTR="interface=<interface>;ctpio_mode=<mode>" taskset -c 1 \
zftcppingpong -s <payload> pong <sys-1_ip>:20000
[sys-2]# ZF_ATTR="interface=<interface>;ctpio_mode=<mode>" taskset -c 1 \
zftcppingpong -s <payload> ping <sys-1_ip>:20000
where:
-
<interface>
is the interface to use -
<mode>
is the CTPIO mode to use, which isct
for 10 Gb, orsf
for 25 Gb -
<payload>
is the payload size, in bytes -
<sys-1_ip>
is the IP address ofsys-1
-
<sys-2_ip>
is the IP address ofsys-2
.
The output identifies mean RTT, which is halved to give the mean ½ RTT latency.