ns-allinone-2.35/tcp/tcp.cc
int TcpAgent::lossQuickStart()
{
       if (qs_window_ && tcp_qs_recovery_) {
                //recover_ = maxseq_;
                //reset_rtx_timer(1,0);
                slowdown(CLOSE_CWND_INIT);
		// reset ssthresh to half of W-D/2?
                qs_window_ = 0;
                output(last_ack_ + 1, TCP_REASON_DUPACK);
                return 1;
       }
       return 0;
}
/*
 * Loss occurred in Quick-Start window.
 * If Quick-Start is enabled, packet loss in the QS phase, during slow-start,
 * should trigger slow start instead of the regular fast retransmit.
 * We use variable tcp_qs_recovery_ to toggle this behaviour on and off.
 * If tcp_qs_recovery_ is true, initiate slow start to probe for
 * a correct window size.
 *
 * Return value: non-zero if Quick-Start specific loss recovery took place
 */
Loss occurred in Quick-Start window.
If Quick-Start is enabled, packet loss in the QS phase, during slow-start,
should trigger slow start instead of the regular fast retransmit.
We use variable tcp_qs_recovery_ to toggle this behaviour on and off.
If tcp_qs_recovery_ is true, initiate slow start to probe for
a correct window size.

Return value: non-zero if Quick-Start specific loss recovery took place
Loss occurred in Quick - Start window . If Quick - Start is enabled packet loss in the QS phase during slow - start should trigger slow start instead of the regular fast retransmit . We use variable tcp_qs_recovery_ to toggle this behaviour on and off . If tcp_qs_recovery_ is true initiate slow start to probe for a correct window size . Return value : non - zero if Quick - Start specific loss recovery took place
int TcpAgent::lossQuickStart()
{
       if (qs_window_ && tcp_qs_recovery_) {
                slowdown(CLOSE_CWND_INIT);
                qs_window_ = 0;
                output(last_ack_ + 1, TCP_REASON_DUPACK);
                return 1;
       }
       return 0;
}
int TcpAgent :: lossQuickStart ( ) { if ( qs_window_ && tcp_qs_recovery_ ) { slowdown ( CLOSE_CWND_INIT ) ; qs_window_ = 0 ; output ( last_ack_ + 1 , TCP_REASON_DUPACK ) ; return 1 ; } return 0 ; }
Loss occurred in Quick-Start window.
Loss occurred in Quick - Start window .
//recover_ = maxseq_; //reset_rtx_timer(1,0); // reset ssthresh to half of W-D/2?