TCP congestion window for wireless sensors
by haitam09 from LinuxQuestions.org on (#5P93J)
Hi ALL,
I need your help if possible.
I would like to study the impact of the TCP congestion window for the simulation of a wireless sensors network based on the AODV or DSDV protocol in NS2.34.
I have a problem: when the .tr file is generated correctly,the graph of the congestion window (cwnd_) has remained fixed at a value equal to 1 (see attached).
Thank you very much in advance for helping me solve this problem.
I will be very grateful.
The code used is :
# ##############procedure to plot the congestion window
proc plotWindow {tcpSource outfile} {
global ns
set now [$ns now]
set cwnd [$tcpSource set cwnd_]
###Print TIME CWND for gnuplot to plot progressing on CWND
puts $outfile "$now $cwnd"
$ns at [expr $now+0.1] "plotWindow $tcpSource $outfile"
}
# Open the Window trace file
set outfile [open "WinFile" w]
$ns at 0.0 "plotWindow $tcp1 $outfile"
Attached Thumbnails
I need your help if possible.
I would like to study the impact of the TCP congestion window for the simulation of a wireless sensors network based on the AODV or DSDV protocol in NS2.34.
I have a problem: when the .tr file is generated correctly,the graph of the congestion window (cwnd_) has remained fixed at a value equal to 1 (see attached).
Thank you very much in advance for helping me solve this problem.
I will be very grateful.
The code used is :
# ##############procedure to plot the congestion window
proc plotWindow {tcpSource outfile} {
global ns
set now [$ns now]
set cwnd [$tcpSource set cwnd_]
###Print TIME CWND for gnuplot to plot progressing on CWND
puts $outfile "$now $cwnd"
$ns at [expr $now+0.1] "plotWindow $tcpSource $outfile"
}
# Open the Window trace file
set outfile [open "WinFile" w]
$ns at 0.0 "plotWindow $tcp1 $outfile"
Attached Thumbnails