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

[ns] What's wrong with my running of the topology generation example?



Dear Sir,
 
I tried the topo-gen-script.tcl, but something wrong happened. The result is below:
    [root@sbchen ex]# ns topo-gen-script.tcl
    type random, seed 16807
    nodes 12, scale 12,  method pure-random
    conn prob 0.25, beta  0.5, gamma 0.5
    creating nodes...
    Creating links 0..._o5: unable to dispatch method duplex-link-of-interfaces
        while executing
    "$ns duplex-link-of-interfaces $n(0) $n(11) $linkBW 60ms DropTail"
                                                            Why I cann't find it in the procedure
                                                            "create-topology" as below?
        (procedure "create-topology" line 19)
        invoked from within
    "create-topology ns node 1.5Mb"
        (procedure "view-topology" line 13)
        invoked from within
    "view-topology $topofile-$i.$topoext $outfile-$i.$outext $hier_flag"
        ("for" body line 2)
        invoked from within
    "for { set i 0 } { $i < $topology_number } { incr i } {
        view-topology $topofile-$i.$topoext $outfile-$i.$outext $hier_flag
 
        puts "Do you want ..."
    (file "topo-gen-script.tcl" line 30) 
 
I had few experience with NS2. So any help from you are appreciated.
Thank you in advance!
 
Yours Sbchen