Ed Czeck
June 2017

Required Bitstream Class: FX100GX1 FX10GX4 FXPPP

This directory contains a test to measure the round trip latency of
packets in Arkville.   A fixed set of packets are generated on the
host and these packets are sent (TX) to Arkville, where they are
looped back to the host (RX).  During egress, a timestamp is embedded
in each packet at a fixed location.  During ingress, that timestamp is
compared to the current time to gain measure of round trip latency.


The test setup consists of 3 layers.
-- The core C++ application (ark_txperf_raw.cpp)
-- The Makefile which sets up the environment and call the application
   with appropriate arguements.  The configuration for the packet
   generator (pg.conf) is created for each run of the application.
-- A runtest.sh script which invokes the application via the Makefile
   for a range of configurations.
These options are described in greater detail below.


Options for the applications are:
  --burst       -b <val>     Number of packets read in each burst
  --txQueueSize -t <val>     Size of buffer queue
  --minPkt      -m <val>     Min packet size
  --maxPkt      -M <val>     Max packet size
  --cores       -c <val>     Number of cores to distribute workload
  --runtime     -r <val>     Run time in seconds for the packet generator
  --help        -h           Obvious message


Environments variable which are read in the Makefile are passed to the
application or otherwise set in the packet generator configuration.
	 QUEUESIZE      Set Rx and Tx Queue Depth
	 BURST          Set Burst for Rx
	 CORES          Number of Cores to use
	 PKTSIZEMIN     Min Packet Size generated
         INFLIGHT       Max number of packets in flight during test
	 RUNTIME        Runtime of pkt generator (seconds)

Observations:


Limitations: Only supports testing on a single port.
