[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] reset_rtx_timer(int mild, int backoff)



Hi,
I have a question about the usage of reset_rtx_timer function in
tcp-vegas.cc
In file tcp.cc we have the following function defined :
******************************************************************************
line 694 to line 708 in file ~ns/tcp.cc
/*
 * We got a timeout or too many duplicate acks.  Clear the retransmit
timer.  
 * Resume the sequence one past the last packet acked.  
 * "mild" is 0 for timeouts and Tahoe dup acks, 1 for Reno dup acks.
 * "backoff" is 1 if the timer should be backed off, 0 otherwise.
 */
void TcpAgent::reset_rtx_timer(int mild, int backoff)
{
	if (backoff)
		rtt_backoff();
	set_rtx_timer();
	if (!mild)
		t_seqno_ = highest_ack_ + 1;
	rtt_active_ = 0;
}
*******************************************************************************
But in ~ns/tcp-vegas.cc we have the following usage of ( I think defined
above ) reset_rtx_timer 
Which I cannot understand that why it is having only one argument
instead of two as defined above ....

line No:351  in  ~ns/tcp-vegas.cc
 // update coarser grained rto
    reset_rtx_timer(1);


and line No:395 in  ~ns/tcp-vegas.cc
last_cwnd_action_ = CWND_ACTION_TIMEOUT;
reset_rtx_timer(0);


I beleive that in both of above cases there should be two arguments as
defined in tcp.cc ....
*****************************************************
Can any one explain this mystery to me ?
Thanks,
Aun.
*****************************************************