Article 5P93J TCP congestion window for wireless sensors

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 Thumbnailsattachment.php?attachmentid=37154&stc=1& latest?d=yIl2AUoC8zA latest?i=o6a4ycR7UYw:ISUknF7_5XI:F7zBnMy latest?i=o6a4ycR7UYw:ISUknF7_5XI:V_sGLiP latest?d=qj6IDK7rITs latest?i=o6a4ycR7UYw:ISUknF7_5XI:gIN9vFwo6a4ycR7UYw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments