From a9491c47aeddcf216ca327eec7b6982ff61b162b Mon Sep 17 00:00:00 2001 From: N Date: Mon, 9 Mar 2020 10:39:45 +0000 Subject: [PATCH] app: E2E stats header Right now, there is no way of extracting e2e statistics without using flow monitor. This patch enables, with an attribute, the possibility of adding a particular header to the outgoing packets, that will be read from PacketSink. The header contains Sequence, Size, and Timestamp, and therefore at the reception, it is possible to measure throughput and per-packet delay. --- CHANGES.html | 1 + .../model/bulk-send-application.cc | 77 +++++++++++++--- .../model/bulk-send-application.h | 18 +++- src/applications/model/e2e-stats-header.cc | 86 ++++++++++++++++++ src/applications/model/e2e-stats-header.h | 89 +++++++++++++++++++ src/applications/model/onoff-application.cc | 66 +++++++++++--- src/applications/model/onoff-application.h | 15 ++++ src/applications/model/packet-sink.cc | 54 +++++++++++ src/applications/model/packet-sink.h | 62 ++++++++++++- src/applications/model/seq-ts-header.h | 3 +- src/applications/wscript | 2 + 11 files changed, 443 insertions(+), 30 deletions(-) create mode 100644 src/applications/model/e2e-stats-header.cc create mode 100644 src/applications/model/e2e-stats-header.h diff --git a/CHANGES.html b/CHANGES.html index 609d3082e..71d2eabbc 100644 --- a/CHANGES.html +++ b/CHANGES.html @@ -73,6 +73,7 @@ allows to choose between Block Ack policy and Implicit Block Ack Request policy allows to request an acknowledgment after a configurable number of MPDUs have been transmitted.
  • The MaxSize attribute is removed from the QueueBase base class and moved to subclasses. A new MaxSize attribute is therefore added to the DropTailQueue class, while the MaxQueueSize attribute of the WifiMacQueue class is renamed as MaxSize for API consistency.
  • +
  • The applications have now a "EnableE2EStats" attribute.
  • Changes to existing API: