From 090d37b19e6627605dc4afbeee75f74463bf8871 Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Thu, 14 Sep 2017 18:12:23 +0200 Subject: [PATCH] traffic-control: Trace sojourn times within queue discs --- CHANGES.html | 5 +++++ examples/traffic-control/traffic-control.cc | 11 ++++++++--- src/network/utils/queue-item.cc | 14 ++++++++++++++ src/network/utils/queue-item.h | 14 ++++++++++++++ src/traffic-control/doc/queue-discs.rst | 7 +++++++ src/traffic-control/model/queue-disc.cc | 13 +++++++++++++ src/traffic-control/model/queue-disc.h | 8 ++++++++ 7 files changed, 69 insertions(+), 3 deletions(-) diff --git a/CHANGES.html b/CHANGES.html index 9ede25951..e2f7365fa 100644 --- a/CHANGES.html +++ b/CHANGES.html @@ -103,6 +103,11 @@ us a note on ns-developers mailing list.

  • Two new methods, QueueDisc::DropBeforeEnqueue() and QueueDisc::DropAfterDequeue() have been introduced to replace QueueDisc::Drop(). Correspondingly, two new trace sources have been added to the QueueDisc class: DropBeforeEnqueue and DropAfterDequeue.
  • +
  • A new trace source, SojournTime, is exported by the QueueDisc base class to provide the + sojourn time of every packet dequeued from a queue disc. This has been made possible by adding a + timestamp to QueueDiscItem objects, which can be set/get through the new GetTimeStamp() and + SetTimeStamp() methods of the QueueDiscItem class. +
  • Changes to existing API: