[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
packet transfer across multiple LAN's in ns-2.1b5
Hi folks,
I hope you got my previous message. I am herewith attaching the tcl script
(to be compiled in ns-2.1b5) which simulates the scenario of 2 individual
lans connected by an
intermediate node. It initiates a TCP session between two nodes 1
and 4 each belonging to a different LAN. As you can see in the nam output,
as soon as the TCP session starts, the packet transfer takes place only
between nodes 3 and 4 which belong to the second LAN, and not between 1
and 4 as defined in the script.
Could you please take a look at the nam output and see if this bug can be
fixed,
Thanx a lot,
Guru.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Great minds discuss ideas, average minds discuss events,
small minds discuss people"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
************************************************************
Guruprasad Bhaskar
Graduate student,
Dept. of Electrical Engineering,
University of Texas at Dallas
Voice : (H) 972 671 0357 ; (W) 972 883 2305
Residence : 2400 Waterview Pkwy #326
Richardson, TX-75080, USA
************************************************************
set ns_ [new Simulator]
$ns_ trace-all [open guru.rands w]
$ns_ namtrace-all [open guru.nam w]
set n1 [$ns_ node]
set n2 [$ns_ node]
set n3 [$ns_ node]
set n4 [$ns_ node]
set n5 [$ns_ node]
set r [$ns_ node]
$ns_ make-lan "$n1 $n2 $n3" 4Mb 2ms LL Queue/DropTail Mac/802_3
$ns_ make-lan "$n4 $n5" 4Mb 2ms LL Queue/DropTail Mac/802_3
$ns_ duplex-link $n1 $r 4Mb 2ms DropTail
$ns_ duplex-link $r $n4 4Mb 2ms DropTail
set tcp_ [$ns_ create-connection TCP/Reno $n2 TCPSink $n5 0]
set source_ [$tcp_ attach-source FTP]
$ns_ at 0.04 "$source_ start"
$ns_ at 12.0 "$ns_ halt"
$ns_ run