ns-allinone-2.35/tcp/tcp.cc
void TcpAgent::endQuickStart()
{
	qs_approved_ = 0;
        qs_cwnd_ = 0;
        qs_window_ = maxseq_;
	int new_cwnd = maxseq_ - last_ack_;
	if (new_cwnd > 1 && new_cwnd < cwnd_) {
	 	cwnd_ = new_cwnd;
		if (cwnd_ < initial_window()) 
			cwnd_ = initial_window();
	}
}
/*
 * When exiting QuickStart, reduce the congestion window to the
 *   size that was actually used.
 */
When exiting QuickStart, reduce the congestion window to the
size that was actually used.
When exiting QuickStart reduce the congestion window to the size that was actually used .
void TcpAgent::endQuickStart()
{
	qs_approved_ = 0;
        qs_cwnd_ = 0;
        qs_window_ = maxseq_;
	int new_cwnd = maxseq_ - last_ack_;
	if (new_cwnd > 1 && new_cwnd < cwnd_) {
	 	cwnd_ = new_cwnd;
		if (cwnd_ < initial_window()) 
			cwnd_ = initial_window();
	}
}
void TcpAgent :: endQuickStart ( ) { qs_approved_ = 0 ; qs_cwnd_ = 0 ; qs_window_ = maxseq_ ; int new_cwnd = maxseq_ - last_ack_ ; if ( new_cwnd > 1 && new_cwnd < cwnd_ ) { cwnd_ = new_cwnd ; if ( cwnd_ < initial_window ( ) ) cwnd_ = initial_window ( ) ; } }
When exiting QuickStart, reduce the congestion window to the
   size that was actually used.
When exiting QuickStart reduce the congestion window to the size that was actually used .