[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Agent/TCP/TcpFull
Dear Friends..
I was trying to implement the TCP-full in the tcl script, and I got the
following Warning message.
warning: using backword compatibility mode
I am using ns-2.7a on top of Linux. I wrote the following script for
using the tcp-full..
===================================================
source asym/util.tcl
set ns [new Simulator]
$ns color 0 blue
$ns color 1 red
$ns color 2 white
set n0 [$ns node]
set n1 [$ns node]
set n2 [$ns node]
puts n0=[$n0 id]
puts n1=[$n1 id]
puts n2=[$n2 id]
set f [open out.tr w]
$ns trace-all $f
set nf [open out.nam w]
$ns namtrace-all $nf
Queue set limit_ 5
$ns duplex-link $n0 $n1 10Mb 10ms DropTail
$ns duplex-link $n1 $n2 10Mb 10ms DropTail
$ns duplex-link-op $n0 $n1 orient right
$ns duplex-link-op $n1 $n2 orient right
$ns duplex-link-op $n1 $n2 queuePos 0.5
set tcp [new Agent/TCP/FullTcp]
set sink [new Agent/TCP/FullTcp]
Agent/TCP/FullTcp set segsperack_ 1
Agent/TCP/FullTcp set segsize_ 536
Agent/TCP/FullTcp set tcprexmtthresh_ 3
Agent/TCP/FullTcp set iss_ 0
Agent/TCP/FullTcp set nodelay_ false
Agent/TCP/FullTcp set data_on_syn_ false
Agent/TCP/FullTcp set dupseg_fix_ true
Agent/TCP/FullTcp set dupack_reset_ false
Agent/TCP/FullTcp set interval_ 0.1
$ns attach-agent $n0 $tcp
$ns attach-agent $n2 $sink
$tcp set fid_ 0
$sink set fid_ 0
$ns connect $tcp $sink
$sink listen
$tcp set window_ 100
# Agent/TCP/FullTcp set segsperack_ 1
# Agent/TCP/FullTcp set segsize_ 536
# Agent/TCP/FullTcp set tcprexmtthresh_ 3
# Agent/TCP/FullTcp set iss_ 0
# Agent/TCP/FullTcp set nodelay_ false
# Agent/TCP/FullTcp set data_on_syn_ false
# Agent/TCP/FullTcp set dupseg_fix_ true
# Agent/TCP/FullTcp set dupack_reset_ false
# Agent/TCP/FullTcp set interval_ 0.1
set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ns at 0.1 "$ftp start"
$ns at 0.5 "finish"
proc finish {} {
puts "running nam..."
exec nam out.nam &
puts "done"
exit 0
}
ns run
============================================
I would appriciate, if someone can help me out from this problem..
Thanks,
Vakul
=====
Vakul Goel
911 Imhoff, # 637
Norman, OK 73072, USA
Phone: (O)405-325-0582,(H)405-325-9295
*********************************************************
Have A Nice Day....
*********************************************************
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/