Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(128)

Unified Diff: src/internet/model/tcp-congestion-ops.cc

Issue 328360043: Patch for PiSquareQueueDisc with CoupledAQM Support
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/internet/model/tcp-congestion-ops.h ('k') | src/internet/model/tcp-dctcp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/internet/model/tcp-congestion-ops.cc
===================================================================
--- a/src/internet/model/tcp-congestion-ops.cc
+++ b/src/internet/model/tcp-congestion-ops.cc
@@ -64,7 +64,7 @@
return tid;
}
-TcpNewReno::TcpNewReno (void) : TcpCongestionOps ()
+TcpNewReno::TcpNewReno () : TcpCongestionOps ()
{
NS_LOG_FUNCTION (this);
}
@@ -209,6 +209,14 @@
return std::max (2 * state->m_segmentSize, bytesInFlight / 2);
}
+void
+TcpNewReno::ReduceCwnd (Ptr<TcpSocketState> state)
+{
+ NS_LOG_FUNCTION (this << state );
+
+ state->m_cWnd = std::max ((uint32_t)state->m_cWnd/2, state->m_segmentSize);
+}
+
Ptr<TcpCongestionOps>
TcpNewReno::Fork ()
{
« no previous file with comments | « src/internet/model/tcp-congestion-ops.h ('k') | src/internet/model/tcp-dctcp.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b