ns-allinone-2.35/tcp/tcp.cc
double TcpAgent::limited_slow_start(double cwnd, int max_ssthresh, double increment)
{
        if (max_ssthresh <= 0) {
	  	return increment;
	} else {
                double increment1 = 0.0;
		int round = int(cwnd / (double(max_ssthresh)/2.0));
		if (round > 0) {
		  	increment1 = 1.0/double(round); 
		} 
		if (increment < increment1) {
		  	return increment1;
		} else {
		  	return increment;
		}
	}
}
/*
 * Limited Slow-Start for large congestion windows.
 * This should only be called when max_ssthresh_ is non-zero.
 */
Limited Slow-Start for large congestion windows.
This should only be called when max_ssthresh_ is non-zero.
Limited Slow - Start for large congestion windows . This should only be called when max_ssthresh_ is non - zero .
double TcpAgent::limited_slow_start(double cwnd, int max_ssthresh, double increment)
{
        if (max_ssthresh <= 0) {
	  	return increment;
	} else {
                double increment1 = 0.0;
		int round = int(cwnd / (double(max_ssthresh)/2.0));
		if (round > 0) {
		  	increment1 = 1.0/double(round); 
		} 
		if (increment < increment1) {
		  	return increment1;
		} else {
		  	return increment;
		}
	}
}
double TcpAgent :: limited_slow_start ( double cwnd , int max_ssthresh , double increment ) { if ( max_ssthresh <= 0 ) { return increment ; } else { double increment1 = 0.0 ; int round = int ( cwnd / ( double ( max_ssthresh ) / 2.0 ) ) ; if ( round > 0 ) { increment1 = 1.0 / double ( round ) ; } if ( increment < increment1 ) { return increment1 ; } else { return increment ; } } }
Limited Slow-Start for large congestion windows.
Limited Slow - Start for large congestion windows .