Hi all
I have problem when I add another case in linear increase cogestion avoidance algorithm in tcp.cc why can't it work out when I run it?
In the tcl code I have set windowOption_ to '9' (where I put my additional change).It seems that any change I've made doesn't take effect at all.What am I suppose to do to make it work? Please help me. I make change like this :
void TcpAgent:
pencwnd()
{
double increment;
if (cwnd_ < ssthresh_) {
/* slow-start (exponential) */
cwnd_ += 1;
} else {
/* linear */
double f;
switch (wnd_option_) {
case 0:
if (++count_ >= cwnd_) {
count_ = 0;
++cwnd_;
}
break;
case 1:
/* This is the standard algorithm. */
increment = increase_num_ / cwnd_;
if ((last_cwnd_action_ == 0 ||
last_cwnd_action_ == CWND_ACTION_TIMEOUT)
&& max_ssthresh_ > 0) {
increment = limited_slow_start(cwnd_,
max_ssthresh_, increment);
}
cwnd_ += increment;
break;
.
.
.
.
case 9:
(I put the additonal change here)
break;
with my regards
Ghassan