face: Make congestion marking less aggressive
Implement something closer to the CoDel Algorithm (RFC 8289)
Refs: #5003
Change-Id: I909975e7ae1c50d08561a001b67cd9c2c2f150b1
diff --git a/daemon/face/generic-link-service.hpp b/daemon/face/generic-link-service.hpp
index fe8e962..3137555 100644
--- a/daemon/face/generic-link-service.hpp
+++ b/daemon/face/generic-link-service.hpp
@@ -134,12 +134,16 @@
/** \brief starting value for congestion marking interval
*
+ * Packets are marked if the queue size stays above THRESHOLD for at least one INTERVAL.
+ *
* The default value (100 ms) is taken from RFC 8289 (CoDel).
*/
time::nanoseconds baseCongestionMarkingInterval = 100_ms;
/** \brief default congestion threshold in bytes
*
+ * Packets are marked if the queue size stays above THRESHOLD for at least one INTERVAL.
+ *
* The default value (64 KiB) works well for a queue capacity of 200 KiB.
*/
size_t defaultCongestionThreshold = 65536;
@@ -294,8 +298,6 @@
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
/// Time to mark next packet due to send queue congestion
time::steady_clock::TimePoint m_nextMarkTime;
- /// Time last packet was marked
- time::steady_clock::TimePoint m_lastMarkTime;
/// number of marked packets in the current incident of congestion
size_t m_nMarkedSinceInMarkingState;