Added support for reporting packet (mis)order. 27/70527/3
authorXavier Simonart <xavier.simonart@intel.com>
Thu, 2 Jul 2020 08:02:40 +0000 (10:02 +0200)
committerXavier Simonart <xavier.simonart@intel.com>
Mon, 21 Sep 2020 07:56:18 +0000 (09:56 +0200)
commitace499fbbdd44cbb9c0d68d6aad40e0b280d54de
tree2c44572bc385b4975dc4aac8795f7cc874fdd548
parent163323cd8f9eec2390099ca4834827a28c46c6db
Added support for reporting packet (mis)order.

The "Latency" screen has been updated with 3 columns:
- mis-ordered
  Count the number of mis-ordered packets.
- extent:
  Gives an indication of how mis-ordered the packets are.
  Receiving packet "x - 5" after receiving packet "x" will
  cause an extent of 5.
- duplicate:
  Count number of duplicate packets.

Following commands have been added for the impair mode:
- proba no drop: replaces the former "probability" command.
  Percentage of forwarded packets. So 99.5 means 0.5% of packet drop.
- proba delay
  Percentage of delayed packets for the impair mode.
- proba duplicate
  Percentage of duplicate packets.

Similar parameters are supported within the config files:
- proba no drop
- proba delay
- proba duplicate

Note: it is recommanded to use the signature when measuring packet
misorder, as otherwise unexpected packet would cause miscounts.

Change-Id: I037f606f264d6e2bd7f123df5ed57ab7df8386d7
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
18 files changed:
VNFs/DPPD-PROX/cmd_parser.c
VNFs/DPPD-PROX/commands.c
VNFs/DPPD-PROX/defaults.c
VNFs/DPPD-PROX/display_latency.c
VNFs/DPPD-PROX/eld.h
VNFs/DPPD-PROX/handle_gen.c
VNFs/DPPD-PROX/handle_impair.c
VNFs/DPPD-PROX/handle_impair.h
VNFs/DPPD-PROX/handle_lat.c
VNFs/DPPD-PROX/handle_lat.h
VNFs/DPPD-PROX/handle_master.c
VNFs/DPPD-PROX/main.c
VNFs/DPPD-PROX/packet_utils.c
VNFs/DPPD-PROX/prox_args.c
VNFs/DPPD-PROX/stats_latency.c
VNFs/DPPD-PROX/stats_latency.h
VNFs/DPPD-PROX/task_init.c
VNFs/DPPD-PROX/task_init.h