This demonstrates the rx_timestamping
example
application.
Server1
Server1 sets the EF_RX_TIMESTAMPING environment variable and starts
the rx_timestamping
application:
# EF_RX_TIMESTAMPING=2 onload ./rx_timestamping --proto tcp
oo:rx_timestamping[31250]: Using OpenOnload 201509 Copyright 2006-2015 Solarflare Communications, 2002-2005 Level 5 Networks [0]
Socket created, listening on port 9000
Socket accepted
Selecting hardware timestamping mode.
Packet 1 - 27 bytes timestamps 1460374944.990960465 1460374944.993421129 1460374944.993421129
Packet 2 - 27 bytes timestamps 1460374966.478980336 1460374966.481623531 1460374966.481623531
Packet 3 - 0 bytes no timestamp
recvmsg returned 0 - end of stream
Server2
Server2 uses the Linux netcat
utility to send packets to server1:
# nc <server1 ip> 9000
abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz