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

HELP : with simulating LANS



Hi,

	I have been trying for quite a while to figure out how to simulate a simple LAN. The NS notes and documentation page advises using "make-lan" with the appropriate options.

However I get the following error when I do "ns lan2.tcl" :
===========================================================================
$ns lan2.tcl
_o11: unable to dispatch method init-all-vars
    while executing
"$self init-all-vars $class"
    (procedure "_o11" line 2)
    (LanLink init line 2)
    invoked from within
"_o11 init _o3 -llType LL -ifqType Queue/DropTail -macType Mac/Csma/Cd -chanType Channel"
    (Class create line 1)
    invoked from within
"LanLink create _o11 _o3 -llType LL -ifqType Queue/DropTail -macType Mac/Csma/Cd -chanType Channel"
    invoked from within
"catch "$className create $o $args" msg"
    (procedure "new" line 3)
    invoked from within
"new LanLink $self -llType $llType -ifqType $ifqType  -macType $macType -chanType $chanType"
    (procedure "_o3" line 2)
    (Simulator make-lan line 2)
    invoked from within
"$ns make-lan "$n1 $n2" 1Mb 10ms LL Queue/DropTail Mac/Csma/Cd"
    (file "lan2.tcl" line 6)

===============================================================================
The file lan2.tcl is :

set ns [new Simulator]

set n1 [new Node]
set n2 [new Node]

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

Any kind of help will be greatly appreciated. Thanks in advance for your help. 

Vivek