Hi all,

I have put in print statement to print the contention window of every
packet. I am getting absurd output in the console now.

I have added the following statement:
printf("adaptiveListen's cw is %f\n", rTime);
The output is like:
adaptiveListen's cw is 29414984
 adaptiveListen's cw is 218418282
 adaptiveListen's cw is 967854922
 adaptiveListen's cw is 1902233440
 adaptiveListen's cw is 1885731528
 adaptiveListen's cw is -990867736
 adaptiveListen's cw is -2029011640

While I have checked in ns-default.tcl that:
Mac/802_11 set CWMin_         31
 Mac/802_11 set CWMax_         1023

So, the values must be b/w these two ranges.

Can anyone explain me the reason for the absurd output and how it can be
rectified??
-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.

Reply via email to