Dear Vaishali,
NS2 has two versions of SACK: Agent/TCP/Sack1 and Agent/TCP/SackRH. Check out the details in files ~ns/tcp/tcp-sack1.* and tcp-sack-rh.* BR Teerawat On 6/4/2009, "vaishali mandhare" <v_mandh...@yahoo.com> wrote: > >hello all, >I want to increase performance of tcp in maodv but I cant do, instead of >traditional tcp want to use reno or sack tcp. I was make changes but getting >same result. Bellow is my tcl script for tcp . If anyone has idea about it >please inform me as early as possible. > > >set tcp_(0) [new Agent/TCP/Reno] >$tcp_(0) set dst_addr_ 0xE000000 >$tcp_(0) set window_ 32 >$tcp_(0) set interval_ 1.0 >$tcp_(0) set packetSize_ 256 >$ns_ attach-agent $node_(0) $tcp_(0) >set ftp_(0) [new Application/FTP] >$ftp_(0) attach-agent $tcp_(0) >$ftp_(0) set type_ FTP >$ftp_(0) set maxpkts_ 1740 >$ftp_(0) set dst_ 0xE000000 >$ns_ at 30.0 "$ftp_(0) start" > >for {set i 40} {$i < 50} {incr i} { > $ns_ at 0.0100000000 "$node_($i) aodv-join-group 0xE000000" > >wating for replay! >thanks! >vaishu! > > > Own a website.Get an unlimited package.Pay next to nothing.*Go to > http://in.business.yahoo.com/ >