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

Re: Problems running ns examples



1. You should probably change it to duplex-link. duplex-link-of-interfaces
somehow became obsolete and removed... 

2. are you using perl-5? 

3. It's defined in tcl/lib/ns-trafficgen.tcl. 

- Haobo

On Fri, 4 Jun 1999, Nguyen Huu Thanh wrote:

> Hello everybody,
> 
> While trying the examples located at ~ns/tcl/ex with ns-allinone-2.1b5,
> I encounted some problems that I don't understand and could not find any
> solution in the fixed bug document. The following error messages are
> some examples:
> 
> 1. When running hier-rtg-100.tcl:
> 
> ....
> _o3: unable to dispatch method duplex-link-of-interfaces
>     while executing
> "$ns duplex-link-of-interfaces $n(0) $n(75) $linkBW 410ms DropTail"
>     (procedure "create-hier-topology" line 126)
>     invoked from within
> "create-hier-topology $linkBW"
>     (file "hier-rtg-100.tcl" line 15)
> 
> 
> 2. in many_tcp.tcl:
> 
> ....
> ns: close file3; _o3 finish: syntax error in file ../../bin/raw2xg at
> line 43, next 2 tokens "my("
> syntax error in file ../../bin/raw2xg at line 59, next 2 tokens
> "translate_point
> ("
> syntax error in file ../../bin/raw2xg at line 94, next 2 tokens
> "translate_point
> ("
> Execution of ../../bin/raw2xg aborted due to compilation errors.
>     while executing
> "exec ../../bin/raw2xg -a  -q -n 1 < out.tr >out.xg"
>     ("eval" body line 1)
>     invoked from within
> "eval "exec $cmd""
>     (procedure "_o3" line 33)
>     (Main finish line 33)
>     invoked from within
> "_o3 finish"
> 
> 
> 3. in manytcp_trmodel.tcl:
> 
> invalid command name "TrafficGen/ManyTCP"
>     while executing
> "TrafficGen/ManyTCP create _o10 -print-drop-rate 1 -debug 0
> -trace-filename out -bottle-queue-length 50 -bottle-queue-method RED
> -client-arrival-rate 1..."
> ....
> 
> 4. in srm-adapt-req-session.tcl:
> 
> invalid command name "0"
>     while executing
> "$from id"
>     (procedure "_o4" line 6)
>     (SessionSim insert-loss line 6)
>     invoked from within
> "$ns insert-loss $loss_module 0 $i"
>     (file "srm-adapt-req-session.tcl" line 73)
> 
> 
> Thanks for any kind help.
> 
> Regards, 
> 
> Thanh
> 
> P.S: I have rebuilt ns-allinone-2.1b5 in HPUX10.20 and been able to run
> some other examples.
>