[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ns] Lan
I think you goofed up in saying "/Mac/802_3"
just remove that "/"... and I think it must work.
__Sridhar__
On Thu, 8 Feb 2001, Thomas Kuborn wrote:
* >=================
* >Here's the script
* >=================
* >
* >#Create a simulator object
* >set ns [new Simulator]
* >
* >#Open the nam trace file
* >set nf [open out.nam w]
* >$ns namtrace-all $nf
* >
* >#Define a 'finish' procedure
* >proc finish {} {
* > global ns nf
* > $ns flush-trace
* > #Close the trace file
* > close $nf
* > #Execute nam on the trace file
* > exec nam out.nam &
* > exit 0
* >}
* >
* >#Create two nodes
* >set n0 [$ns node]
* >set n1 [$ns node]
* >
* >#Create a 100Mbit/1ms Latency LAN
* >$ns make-lan "$n0 $n1" 100Mb 1ms LL Queue/DropTail /Mac/802_3 Channel
* >
* >#Call the finish procedure after 5 seconds of simulation time
* >$ns at 5.0 "finish"
* >
* >#Run the simulation
* >$ns run
* >
* >==========================
* >Here's there Error message
* >==========================
* >
* >[root@linux100-server NS]# ns lan.tcl
* >invalid command name "/Mac/802_3"
* > while executing
* >"/Mac/802_3 create _o24 "
* > invoked from within
* >"catch "$className create $o $args" msg"
* > (procedure "new" line 3)
* > invoked from within
* >"new $macType_"
* > (procedure "_o21" line 14)
* > (LanIface init line 14)
* > invoked from within
* >"_o21 init _o10 _o16 -ifqType Queue/DropTail -llType LL -macType
* >/Mac/802_3 -phy
* >Type Phy/WiredPhy"
* > (Class create line 1)
* > invoked from within
* >"LanIface create _o21 _o10 _o16 -ifqType Queue/DropTail -llType LL -macType
* >/Mac
* >/802_3 -phyType Phy/WiredPhy"
* > invoked from within
* >"catch "$className create $o $args" msg"
* > (procedure "new" line 3)
* > invoked from within
* >"new LanIface $src $self -ifqType $ifqType -llType $llType -macType
* >$macType
* > -phyType $phyType"
* > (procedure "_o16" line 14)
* > (LanNode addNode line 14)
* > invoked from within
* >"$lan addNode $nodelist $bw $delay $llType $ifqType $macType $phyType"
* > (procedure "_o3" line 8)
* > (Simulator make-lan line 8)
* > invoked from within
* >"$ns make-lan "$n0 $n1" 100Mb 1ms LL Queue/DropTail /Mac/802_3 Channel"
* > (file "lan.tcl" line 24)
* >
* >
* >Hope this helps find what my problem is ... Thx alot for trying anyways
* >
* >Thomas
* >
* >
* >-----Message d'origine-----
* >De : [email protected] [mailto:[email protected]]De la part de
* >Tarik Alj
* >Envoye : jeudi 8 fevrier 2001 15:26
* >A : Thomas Kuborn
* >Cc : [email protected]
* >Objet : Re: [ns] Lan
* >
* >
* >what do you mean by "it did not work"? Send your script (make it short,
* >pl) or describe the errors your encountered.
* >
* >thanks,
* >
* >-Tarik
* >
* >
* >
* >
* >
* >
* >
* >
* >On Thu, 8 Feb 2001, Thomas Kuborn wrote:
* >
* >> Hi all,
* >>
* >> I'm a student in louvain la neuve in Belgium and for my final thesis I
* >need
* >> to do some work on NS.
* >> I followed Marc Greiss tutorial but i didnt find any information as to how
* >> to make a lan. I'd like to start by creating a small 3 nodes lan..nothing
* >> more.
* >>
* >> I followed what the ns manual described and used the make-lan "function"
* >but
* >> it didnt work...
* >>
* >> What am i doing wrong ?
* >>
* >> Thomas
* >>
* >
* >