[ns] nam won't display

2008-12-17 Thread Bing Mei

Greetings.

I am a new ns-2 user and haven't got luck even with my first simple simulation 
run.  After installing ns-allinone-2.33, I tried to run the example1b.tcl (from 
Marc Greis' tutorial) but got the following message.  Can anybody tell me what 
the problem is and how to fix it?

BTW, I am using Windows XP.  And the nam trace file "out.nam" seemed to be 
created correctly by the program.

Many thanks.

---
$ nam:
[code omitted because of length]
: no event type or button # or keysym
 while executing
"bind Listbox  {
%W yview scroll [expr {- <%D / 120> * 4}] units
}"
  invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
%W yview scroll [expr {- <%D>}] units
}
bind Li..."

---


The source code is as follows (example1b.tcl from Marc Greis' tutorial):
-
#Create a simulator object
set ns [new Simulator]

#Open the nam trace file
set nf [open out.nam w]
$ns namtrace-all $nf

#Define a 'finish' procedure
proc finish {} {
global ns nf
$ns flush-trace
 #Close the trace file
close $nf
 #Execute nam on the trace file
exec nam out.nam &
exit 0
}

#Create two nodes
set n0 [$ns node]
set n1 [$ns node]

#Create a duplex link between the nodes
$ns duplex-link $n0 $n1 1Mb 10ms DropTail

#Create a UDP agent and attach it to node n0
set udp0 [new Agent/UDP]
$ns attach-agent $n0 $udp0

# Create a CBR traffic source and attach it to udp0
set cbr0 [new Application/Traffic/CBR]
$cbr0 set packetSize_ 500
$cbr0 set interval_ 0.005
$cbr0 attach-agent $udp0

#Create a Null agent (a traffic sink) and attach it to node n1
set null0 [new Agent/Null]
$ns attach-agent $n1 $null0

#Connect the traffic source with the traffic sink
$ns connect $udp0 $null0  

#Schedule events for the CBR agent
$ns at 0.5 "$cbr0 start"
$ns at 4.5 "$cbr0 stop"
#Call the finish procedure after 5 seconds of simulation time
$ns at 5.0 "finish"

#Run the simulation
$ns run


Thanks very much.

Bing


[ns] HELP !! Boomerang CD for Tmote Sky Motes?

2008-12-17 Thread Mohur Babu

Hi all,
Is there someone who can send me the files on this disk through 
http://www.yousendit.com
Its a tool disc you obtain when you purchase Tmote Sky Motes from Moteiv.
Its badly needed.
I thank you SO much.

(the company stopped product support)
Thanks
again
-Mo


  


[ns] Does manual routing really work on NS2 ?

2008-12-17 Thread Giovane

Hi

I've been looking for an example of manual routing that really works.
I tried the first source, ns manual , and what's there simply does not work
(http://www.isi.edu/nsnam/ns/doc/node320.html).
The command to add route ($n1 add-route-to-adj-node -default $n2) leads to
errors.

$ns rtproto Manual
set n1 [$ns node]
set n2 [$ns node]
$ns duplex-link $n1 $n2 10Mb 100ms DropTail
$n1 add-route-to-adj-node -default $n2
$n2 add-route-to-adj-node -default $n1


After that, I looked at the mail list archives and I found a lot of ppl with
the same problem -- and there were no answers to them at the list.

Next,  I googled a lot for it and could not find anything that really works.

So my question is: does anybody know if this really works? I'm using latest
2.33 version.
Could anybody please help me with that?

Thanks a lot for your attention,

Giovane


[ns] problem when adding a new routing protocol to NS2:please help

2008-12-17 Thread Nadine Chen

Hi all.
I added a new routing protocol to NS2. I made the appropriate changes to 
tcl/lib/ns-default.tcl, ns-packet.tcl,ns-lib.tcl , common/paquet.h, 
queue/priqueue.cc and trace:cmu-trace.h and .cc .i recompiled ns2 and I had an 
error free compilation. 
I wanted to test my protocol: I changed in wireless.tcl "set opt(rp)
 dsr" by  "set opt(rp) newprotocolname"
but when I wrote  ns wireless.tcl I had this :

num_nodes is set 50
Loading connection pattern...
can't read "node_(1)": no such variable
while executing
"$ns_ attach-agent $node_(1) $udp_(0)"
(file "../mobility/scene/cbr-50-10-4-512" line 8)
invoked from within
"source.orig ../mobility/scene/cbr-50-10-4-512"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $opt(cp)"
invoked from within
"if { $opt(cp) == "" } {
puts "*** NOTE: no connection pattern specified."
set opt(cp) "none"
} else {
puts "Loading connection pattern..."
..."
(file "wireless.tcl" line 257)


So please if anyone has an idea about this error , help me.
I don't know if I should add a file in mobility or what should I do exactly.
help me please.


  


[ns] CFP: ICA IN WIRELESS 2009, Brisbane. Australia

2008-12-17 Thread icainwireless 2009

Apologies in advance if you receive multiple copies of this CFP

== ICA IN WIRELESS 2009 | Call for Papers ===

"Intelligence, Context-awareness and Autonomy IN WIRELESS Networks"
(ICA-IN-WIRELESS) 2009

  Dates: 7-10 July 2009
  Venue: Brisbane, Australia
  Homepage: 
www.itee.uq.edu.au/~uic09/icainwireless/

--

In conjunction with:
-> 6th Intl Conf on "Ubiquitous & Intelligent Computing"
www.itee.uq.edu.au/~uic09/ 

Co-located with:
-> 6th Intl Conf on "Autonomic & Trusted Computing"
www.itee.uq.edu.au/~atc09/ 

---

Important Dates:
  -> Papers due: 19 January 2009
  -> Notification of acceptance:   16 March 2009
  -> Camera-ready papers due:   13 April 2009



Topics of interest include (but not limited to) the following:

-> Adaptive transport protocols for Wireless Networks
-> Mobility management
-> Intelligent routing for Wireless Networks (Mesh, MANET etc.)
-> Support for Quality of Service (QoS) in Wireless Networks
-> Dynamic Gateway Selection in Wireless Networks
-> Supporting Multiple Radio-interfaces
-> Context-awareness in Wireless Networks
-> Self-organization and self-configuration in Wireless Networks
-> Gateway Load Balancing
-> Cross-layer optimization

--
Proceedings:
  -> Published on IEEE Xplore
  -> Selected papers in IJAACS journal: http://www.inderscience.com/ijaacs

--
Technical Program Committee (TPC):
  John Ellershaw, CUBIN, University of Melbourne, Australia
  Johan Hjelm, Ericsson Research, Japan
  Lachlan Andrew, Swinburne University of Technology, Australia
  Michael Peter Rumsewicz, University of Adelaide, Australia
  Jadwiga Indulska, The University of Queensland, Australia
  Toshinori Takabatake, Shonan Institute of Technology, Japan
  Chi Zhang, Juniper Networks, USA
  Marimuthu Palaniswami, University of Melbourne, Australia
  Neal Xiong, Georgia State University, USA
  Athanasios Vasilakos, University of Western Macedonia, Greece
  Arek Dadej, University of South Australia, Australia
  Zonghua Zhang, NICT, Japan
  Liren Zhang, Defence and System Institute (DASI), Australia
  Lavy Libman, National ICT Australia, Australia
  Kun Tan, Microsoft Research
  Hai Vu, Swinburne University of Technology, Australia
  Marius Portmann, The University of Queensland, Australia
  Vallipuram Muthukkumarasamy, Griffith University, Australia
  Qiang Fu, Institute For Telecommunications Research, Australia
  Wei Guiyi, Zhejiang Gongshang University, China
  Stephen Glass, Griffith University, Australia
  Deng Li, Central South University , China
  Ryan Wishart, National ICT Australia, Australia
  Peizhao Hu, National ICT Australia, Australia
  Konglit Hunchangsith, Mahidol University, Thailand
  Konstanty Bialkowski, The University of Queensland, Australia


[ns] Redundant links and manual routing/fowarding

2008-12-17 Thread Giovane

Hello all,

I need to simulate a redundant topology using ns2 but I could not figure out
how. The topology is like this:


NODE  --- NODE
A   ---  B

It's basically two nodes with two links in between  (one duplex and other
simplex - then for ns2 is 3 links) -- and then I must be able to specify
which link  should be used for data to be transmitted from A to B.  I
thought that I could use routes -- but If I do so, I cannot tell which link
should be used -- just the next hop (and there are two ways to reach B -- so
how to specify a single link?). The code below shows where I'm having
problem.


#Create two nodes
set nA [$ns node]
set nB [$ns node]

#Create two links between the nodes
$ns duplex-link $nA $nB 1Mb 400ms DropTail blue
$ns simplex-link $nA $nB 1Mb 40ms DropTail red

#create manual routing (ref: pg 257 of ns-manual)
$ns rtproto Manual

#specify route
#how to specify which link should be use? In this cause, which of the two
links would be used by ns2?
$nA add-route-to-adj-node -default $nB

#In fact, I think that I have to specify only which link should be used..
and not even to deal with routing

#end of script

Thank you for your attention,

Giovane


[ns] ECN enabling

2008-12-17 Thread Davide

hi,

i'm using tcp reno and i want to turn on the ecn_ feature. i'm using
all module that don't use this information (the queue are all drop
tail) and only one module can set this flag.

to enable ecn i used this function

Agent/TCP set ecn_ 1

and even if my module don't send any ecn notification the result of
the simulation are totally different from the case with disabled ecn

there is something else that i have to know?
i've also took a look inside the test suite but in that case the ecn
notification are generated from the RED queue management

any help appreciated

Davide