chunks: react to congestion marks
Change-Id: I96efe1bc3ec7a54080c76676892114f2c79003ed
refs: #4289
diff --git a/tools/chunks/catchunks/pipeline-interests-aimd.hpp b/tools/chunks/catchunks/pipeline-interests-aimd.hpp
index 5aedbfb..bbc9940 100644
--- a/tools/chunks/catchunks/pipeline-interests-aimd.hpp
+++ b/tools/chunks/catchunks/pipeline-interests-aimd.hpp
@@ -56,6 +56,7 @@
time::milliseconds rtoCheckInterval{10}; ///< interval for checking retransmission timer
bool disableCwa = false; ///< disable Conservative Window Adaptation
bool resetCwndToInit = false; ///< reduce cwnd to initCwnd when loss event occurs
+ bool ignoreCongMarks = false; ///< disable window decrease after congestion marks
};
/**
@@ -187,6 +188,7 @@
printSummary() const final;
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
+ static constexpr double MIN_SSTHRESH = 2.0;
const Options m_options;
RttEstimator& m_rttEstimator;
Scheduler m_scheduler;
@@ -200,6 +202,7 @@
int64_t m_nInFlight; ///< # of segments in flight
int64_t m_nLossEvents; ///< # of loss events occurred
int64_t m_nRetransmitted; ///< # of segments retransmitted
+ int64_t m_nCongMarks; ///< # of data packets with congestion mark
double m_cwnd; ///< current congestion window size (in segments)
double m_ssthresh; ///< current slow start threshold