[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Snoop not working with ns-2.1b4a
reply to: [email protected]
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1680
Hello,
I am using the current release of ns (allinone-2.1b4a). Snoop does not seem
to be working in this release.
I am using a simple topology, but getting a core dump.(script attached to
this email) I also tested a simple script provided in tcl/ex/snoop/., which
also dumps core! Am unable to debug this problem.
Does someone know of this? or Can someone help me?
thanks,
Vinay.
------- Cut here -----------------------------------------------------------
# main()
set ns [new Simulator]
#Topology()
# node1 ========== node2 --------- node3
set node1 [$ns node]
set node2 [$ns node]
set node3 [$ns node]
$ns duplex-link $node1 $node2 10Mb 1ms DropTail
lappend nodelist $node3
set lan [$ns make-lan $nodelist 10Mb 1ms LL Queue/DropTail Mac/Csma/Ca Channel]
$lan addNode [list $node2] 10Mb 1ms LL/LLSnoop Queue/DropTail Mac/Csma/Ca
# This works !
#$lan addNode [list $node2] 10Mb 1ms LL Queue/DropTail Mac/Csma/Ca
#Sources
set tp1 [$ns create-connection TCP/Reno $node1 TCPSink $node3 0]
set source1 [$tp1 attach-source FTP]
$ns at 1.0 "$source1 start"
$tp1 set tcpTick_ 0.5
Snoop set snoopTick_ 0.1
$ns at 10.0 "exit 1"
$ns run
------- Cut here -----------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOME : 3902 College Main, Country Place Apt #501, BRYAN, TX 77801
WORK : #514A, H R Bright Building, Texas A&M, Collegestation, TX 77843
PHONE : HOME : (409)-846-2517 WORK : (409)-845-5007
EMAIL : [email protected] WEB URL : http://www.cs.tamu.edu/people/v0s5080
_____________________________________________________________________________