[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with Mac/Csma/Cd



Hi!

I wrote a script to simulate a LAN containing 5 nodes. It begins with
these lines :

set ns [new Simulator]

set n0 [$ns node]
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
set n4 [$ns node]
set n5 [$ns node]

$ns make-lan "$n0 $n1 $n2 $n3" 10Mb 10ms LL Queue/DropTail Mac/Csma/Cd

...


whene I start ns, I get the following error :


invalid command name "Mac/Csma/Cd"
    while executing
"Mac/Csma/Cd create _o30 "
    invoked from within
"catch "$className create $o $args" msg"
    (procedure "new" line 3)
    invoked from within
"new $macType_"
    (procedure "_o27" line 14)
    (LanIface init line 14)
    invoked from within
"_o27 init _o10 _o22 -ifqType Queue/DropTail -llType LL -macType Mac/Csma/Cd -phyType Phy/WiredPhy"
    (Class create line 1)
    invoked from within
"LanIface create _o27 _o10 _o22 -ifqType Queue/DropTail -llType LL -macType Mac/Csma/Cd -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 "_o22" line 14)
    (LanNode addNode line 14)
    invoked from within
"$lan addNode $nodelist $bw $delay $llType $ifqType $macType  $phyType"
    (procedure "_o3" line 3)
    (Simulator make-lan line 3)
    invoked from within
"$ns make-lan "$n0 $n1 $n2 $n3" 10Mb 10ms LL Queue/DropTail Mac/Csma/Cd"
    (file "lan-1.tcl" line 10)


Could somebody tell me what is wrong in my script?

Thanks in advance.

-- 
-------------------------------------------------------------------------
							Ahmed Bouagja.