[ns] simple-diffusion.tcl example does not work?

Charles Kim csk5543 at omega.uta.edu
Fri Feb 6 09:07:15 PST 2004


Hi, Kenneth.

 

I am working on Directed Diffusion as well for my thesis.

The simple-diffusion.tcl should have been modified since the version has
been changed from 2.26 to 2.27.

 

Modify as below.

 

[new Application/DiffApp/PingSender]  ->  [new
Application/DiffApp/PingSender/TPP]

[new Application/DiffApp/PingReceiver]  ->  [new
Application/DiffApp/PingReceiver/TPP]

 

Good Luck.

 

 

Charles.

 

pcblind at pcblind.net

http://pcblind.net

 

  _____  

From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf
Of kenneth at daimi
Sent: Friday, February 06, 2004 7:14 AM
To: NS2 News
Subject: [ns] simple-diffusion.tcl example does not work?

 

Well, I installed(again) ns2 all-in-one 2.27 in a Linux based system.
Environment variables are set correctly.

 

I run the example from ns/tcl/ex/simple-diffusion.tcl and it does not work.

This is the message i get from ns:

 

horse09:~...diffusion3% ns simple-diffusion.tcl
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...

 

    (_o86 cmd line 1)
    invoked from within
"_o86 cmd dr _o18"
    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o86" line 2)
    (SplitObject unknown line 2)
    invoked from within
"$diffapp dr [$node get-dr]"
    (procedure "_o3" line 2)
    (Simulator attach-diffapp line 2)
    invoked from within
"$ns_ attach-diffapp $node_(0) $src_(0)"
    (file "simple-diffusion.tcl" line 140)

 

Please help me, my thesis depends from getting this to work.

I have tried with other .tcl and work find, e.q. wireless.tcl

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gamma.isi.edu/pipermail/ns-users/attachments/20040206/08182049/attachment.html


More information about the Ns-users mailing list