Re: [ns] simulation time in ns-2

2006-01-09 Thread Arun_Sathanur

Happened with my simulations too. I ran the simulations for 100 seconds.
I left out the 5 seconds at both ends of the simulation and results are
consistent. 

Regards
Arun

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Mahrenholz
Sent: Monday, January 09, 2006 10:27 PM
To: ns-users@ISI.EDU
Subject: Re: [ns] simulation time in ns-2


Hi, 

On Monday 09 January 2006 14:42, Michael Sidiropoulos wrote:
>   Hello everyone!!I have a question regarding simulation time in
ns-2  
>  I am using ns-2.27 version and i have noticed that the calculated
> throughput in my wireless scenario changes as the simulation time
> increases.What  simulation time should i set to my tcl script in order
to
> getaccurate throughput results?Any point or hint is
extremely
> welcomedThanks for your attention!!!   

If you like to know the values in a steady state you sould run the
simulation 
for at least several minutes. Especially in the first few seconds you
can 
experience several strange effects. Something I often see is a storm of
ARP 
packets at the beginning of a simulation because all stations start to 
communicate at about the same time. So, it is sometimes better to
discard the 
results from the first seconds.

Daniel.
-- 
Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany
Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho




DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



[ns] wrong node routing agent... problem continues

2006-01-09 Thread Cenker Demir

Hello All,

Related to my question about creating a clone routing
protocol, and 
according to Mr.Estrella's suggestion I included the
ns-lib.tcl to the 
beginning of my simulation script as below. I got the
errors that I 
attached.

I also run ns in tcl/lib, and wrote "source
ns-lib.tcl" and I got 

can't set "defaultRNG": invalid command name "abort"

error line. I have no clue what is wrong... Any
suggestions?

Best regards
Cenker


# 
==
# Define options
# 
==

source ns-lib.tcl

set val(chan)   Channel/WirelessChannel
set val(prop)   Propagation/TwoRayGround
set val(netif)  Phy/WirelessPhy
set val(mac)Mac/802_11
set val(ifq)Queue/DropTail/PriQueue
set val(ll) LL
set val(ant)Antenna/OmniAntenna
set val(x)  670   ;# X dimension of the
topography
set val(y)  670   ;# Y dimension of the
topography
set val(ifqlen) 50;# max packet in
if  
set val(seed)   12120.0
set val(adhocRouting)   AUCTION 
set val(nn) 50 ;# how many
nodes are simulated
set val(cp) "mytcp50" 
set val(sc) "myscen50" 
set val(stop)   150.0   ;# simulation
time

#
=
# Main Program
# 
==

puts "$val(adhocRouting)"

#
# Initialize Global Variables
#

# create simulator instance

set ns_ [new Simulator]

# setup topography object

set topo[new Topography]

# create trace object for ns and nam

set tracefd [open out50.tr w]
set namtrace[open out50.nam w]

$ns_ trace-all $tracefd
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y)

# define topology
$topo load_flatgrid $val(x) $val(y)

#
# Create God
#
set god_ [create-god $val(nn)]

#create channel #1
set chan_1_ [new $val(chan)]

#
# define how node should be created
#

#global node setting

$ns_ node-config -adhocRouting $val(adhocRouting) \
 -llType $val(ll) \
 -macType $val(mac) \
 -ifqType $val(ifq) \
 -ifqLen $val(ifqlen) \
 -antType $val(ant) \
 -propType $val(prop) \
 -phyType $val(netif) \
 -channel $chan_1_ \
 -topoInstance $topo \
 -agentTrace ON \
 -routerTrace ON \
 -macTrace ON 

#
#  Create the specified number of nodes [$val(nn)] and
"attach" them
#  to the channel. 

for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]   
$node_($i) random-motion 0  ;# disable random motion
$node_($i) radius 10 
}



Re: [ns] problems with wireless

2006-01-09 Thread Kamal Gakhar

look into .tr file and perhaps there is no call to nam or no nam file at all

On 1/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> tried to simulate wireless-mitf.tcl and I got sth like that:
>
> localhost#
> ns /usr/ns-allinone-2.29/ns-2.29/tcl/ex/wireless-mitf.tcl
> num_nodes is set 2
> INITIALIZE THE LIST xListHead
> Starting Simulation...
> channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
> highestAntennaZ_ = 1.5, distCST_ = 550.0
> SORTING LISTS ...DONE!
> NS EXITING...
> localhost#
>
> Can You tell me why I can't see anything?
> And how Can I see anything??
>
>
>
>
>
>


--
Kamal


Re: [ns] Instalation problem

2006-01-09 Thread Kamal Gakhar

check all the paths need to be specified.

On 1/9/06, Fabio Guerra <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi !
>
> I'm having problem with validate, can you help me !
>
>
> linux version slackware with kernel 2.4.26
>
> ns version 2.29.2
>
> following the log
>
> Tue Jan 10 17:35:26 BRST 2006
> test 2
> *** ./test-all-tcp
> ./validate: ./test-all-tcp: /bin/sh: bad interpreter: Permission denied
> Tue Jan 10 17:35:26 BRST 2006
> test 1
> Tue Jan 10 17:35:28 BRST 2006
> test 2
> *** ./test-all-testReno
> ./validate: ./test-all-testReno: /bin/sh: bad interpreter: Permission
> denied
> Tue Jan 10 17:35:28 BRST 2006
> test 1
> Tue Jan 10 17:35:30 BRST 2006
> test 2
> *** ./test-all-newreno
> ./validate: ./test-all-newreno: /bin/sh: bad interpreter: Permission
> denied
> Tue Jan 10 17:35:30 BRST 2006
> test 1
> Tue Jan 10 17:35:32 BRST 2006
> test 2
> *** ./test-all-sack
> ./validate: ./test-all-sack: /bin/sh: bad interpreter: Permission denied
> Tue Jan 10 17:35:32 BRST 2006
>
>
> When run a example 
>
>
> [EMAIL PROTECTED]:~/ns-allinone-2.29.2/ns-allinone-2.29/ns-2.29
> /ns-tutorial/examples$
> ns simple-wireless.tcl
>   When configured, ns found the right version of tclsh in
> /home/fguerra/ns-allinone-2.29.2/ns-allinone-2.29/bin/tclsh8.4
> but it doesn't seem to be there anymore, so ns will fall back on running
> the
> first tclsh in your path. The wrong version of tclsh may break the test
> suites.
> Reconfigure and rebuild ns if this is a problem.
> num_nodes is set 2
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
> INITIALIZE THE LIST xListHead
> Starting Simulation...
> channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
> highestAntennaZ_ = 1.5,  distCST_ = 550.0
> SORTING LISTS ...DONE!
> NS EXITING...
> [EMAIL PROTECTED]:~/ns-allinone-2.29.2/ns-allinone-2.29/ns-2.29
> /ns-tutorial/examples$
>
> Thanks in Advance
>
> Fabio Guerra
>
>
> ___
> Click21
> A Internet grátis com a qualidade Embratel
> Baixe agora o discador
> www.click21.com.br
>
>


--
Kamal


[ns] hi, i am a student of sciences of the computation and i have a problem

2006-01-09 Thread Breno Caetano

 Dear,

im a new user of ns-2 and i have difficult in find a good documented that i
can begin my research in security, i want research security in the ns-2,but
i dont know where begin...i find any about Mobiwan and Binding Updates, but
i dont find any paper about them, if someone has some paper or something
about  them,  I would thank...


thanks and regards

 Breno  Caetano
email: [EMAIL PROTECTED] and [EMAIL PROTECTED]


[ns] Instalation problem

2006-01-09 Thread Fabio Guerra


Hi !

 I'm having problem with validate, can you help me !


 linux version slackware with kernel 2.4.26

 ns version 2.29.2

 following the log

 Tue Jan 10 17:35:26 BRST 2006
 test 2
 *** ./test-all-tcp
 ./validate: ./test-all-tcp: /bin/sh: bad interpreter: Permission denied
 Tue Jan 10 17:35:26 BRST 2006
 test 1
 Tue Jan 10 17:35:28 BRST 2006
 test 2
 *** ./test-all-testReno
 ./validate: ./test-all-testReno: /bin/sh: bad interpreter: Permission denied
 Tue Jan 10 17:35:28 BRST 2006
 test 1
 Tue Jan 10 17:35:30 BRST 2006
 test 2
 *** ./test-all-newreno
 ./validate: ./test-all-newreno: /bin/sh: bad interpreter: Permission denied
 Tue Jan 10 17:35:30 BRST 2006
 test 1
 Tue Jan 10 17:35:32 BRST 2006
 test 2
 *** ./test-all-sack
 ./validate: ./test-all-sack: /bin/sh: bad interpreter: Permission denied
 Tue Jan 10 17:35:32 BRST 2006


 When run a example 


 [EMAIL 
PROTECTED]:~/ns-allinone-2.29.2/ns-allinone-2.29/ns-2.29/ns-tutorial/examples$
 ns simple-wireless.tcl
  When configured, ns found the right version of tclsh in
 /home/fguerra/ns-allinone-2.29.2/ns-allinone-2.29/bin/tclsh8.4
 but it doesn't seem to be there anymore, so ns will fall back on running the
 first tclsh in your path. The wrong version of tclsh may break the test suites.
 Reconfigure and rebuild ns if this is a problem.
 num_nodes is set 2
 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
 INITIALIZE THE LIST xListHead
 Starting Simulation...
 channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
 highestAntennaZ_ = 1.5,  distCST_ = 550.0
 SORTING LISTS ...DONE!
 NS EXITING...
 [EMAIL 
PROTECTED]:~/ns-allinone-2.29.2/ns-allinone-2.29/ns-2.29/ns-tutorial/examples$

 Thanks in Advance

 Fabio Guerra

___
Click21
A Internet grátis com a qualidade Embratel
Baixe agora o discador
www.click21.com.br



Re: [ns] How acess the protocol agent of a mobil node

2006-01-09 Thread Pedro Vale Estrela


This kind of problems are made much easier using my otcl object inspector.
http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging3.html

Pedro Vale Estrela



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Martin Wenig
> Sent: quarta-feira, 4 de Janeiro de 2006 12:13
> To: Olivier Berho
> Cc: ns-users@ISI.EDU
> Subject: Re: [ns] How acess the protocol agent of a mobil node
> 
> 
> Hi!
> 
> in the tcl script you can add the following line after the creation of
> the node
> 
> set node_($i) [$ns_ node];#create the node
> set ragent_($i)[$node_($i) set ragent_];#get the routing agent
> 
> Hope that helps
> Martin
> 
> Olivier Berho wrote:
> > Hi all.
> >
> > I would like to know if someone can explain me how sould I do to get an
> > access of the protocol agent of a mobile node.
> > The mobile node I use is declared in this way :
> >
> > set val(adhocRouting)   AODV
> > .
> > .
> > .
> > $ns_ node-config -adhocRouting $val(adhocRouting) \
> > .
> > .
> > .
> >
> > How could I do to get the "name" of that  variable in order to use some
> > methods I have develop in the body of the protocol AODV ?
> >
> > Thanks a lot.
> >
> > Olivier.
> >
> >
> >
> >
> 




Re: [ns] Help: address of an agent's associated node

2006-01-09 Thread Pedro Vale Estrela


At the time of creation, add to it an instance variable called mynode, eg

$tap set mynode [$node id]

then, at run time just check the variable:

otcl: $tap set mynode 
C++  tcl.evaluate("%s set mynode", name());


Pedro Vale Estrela


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Madhu Hosaagrahara
> Sent: segunda-feira, 2 de Janeiro de 2006 20:29
> To: ns-users@ISI.EDU
> Subject: [ns] Help: address of an agent's associated node
> 
> 
> Hello,
>   I've written a class that derives from Tap (defined in ~ns/mac/
> mac.h) and I've managed to have it associated with the mac object and
> listen to objects promiscuously.
>   My question is how do I get the address of the node with which this
> Tap is associated?
> Thanks,
> ~Madhu.




Re: [ns] Pleas help:How to access mobile node data out of the agent

2006-01-09 Thread Daniel Mahrenholz

Hi Christoph, 

On Monday 09 January 2006 18:36, christoph schroth wrote:
> I have a rather critical question, and I would be very happy if someone
> could write me a brief answer:
>
> How can I access mobile node data such as location (X_, Y_, etc.) out of
> the agent (e.g., MessagePassing Agent).
>
>
> With other words: How do I get a reference to the mobile node wo whom I
> have attached the agent before?

Look into "tcl/lib/ns-node.tcl : instproc attach ..." how an agent is attached 
to a node. I didn't tried but you should get the Node reference from the 
node_ field in the agent.  

Daniel.
-- 
Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany
Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho



[ns] please help me to simulate attacks on the Ad-hoc networks

2006-01-09 Thread Ashutosh Srivastava


   Dear all ,  
 For a project I  need immediate help . 
Actually I have to simulate some attacks(on ns-2
)possible in the Ad-hoc networks:  
1) sink-hole 
2) worm-hole 
3) Sybil attack 
4) Rushing attack 
5) Denial-of-Service and Flooding 
6) Black Hole
  What these terms mean , for this purpose
I am attaching a document containing basic  terms and 
definitions .Please , it would be very kind of you if
you can send me the simulation scripts for any of
these (on ns-2) and also the method to run them .Also
, let me know if there is any software to run ns-2 on
Windows XP
   I am unable to simulate these attacks
because I don't know how to use ns-2(rightnow I am
running out of time).
 I shall be very obliged if you will help me out
.Also , I am attaching a document
regarding the way I want the output statistics , this
paper contains information about the Denial of Service
attacks but nowhere the scripts have been provided for
simulation.
Desperately awaiting your kind
reply.
 With best
regards.
  
Ashutosh Srivstava


Send instant messages to your online friends http://in.messenger.yahoo.com 

Re: [ns] NS for performance evaluation

2006-01-09 Thread Daniel Mahrenholz

Hi, 

On Monday 09 January 2006 18:10, lekkie omotayo wrote:
> I need to use ns2 to evaluate the performance of web, email, and VoIP
> traffics over IPv6 in a wireless network.

If you have some actual applications that create the traffic you should go for 
network emulation. 

Otherwise you need a simulation model of the applications inside ns-2. There 
is already one for HTTP traffic. For EMail traffic I cannot tell you. For 
VoIP traffic generation you should search the mailing list as this was an 
often ask question in the last year. 

The IPv6 stack could be a major problem if you rely on specific features. 
Maybe the Network Simulation Cradle project can help you with this -> 
http://research.wand.net.nz/software/nsc.php . 

Daniel.
-- 
Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany
Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho



[ns] get mobile node by address

2006-01-09 Thread christoph schroth

Hi all,

I have a question to you all, which is related to my previously posted one:

How can I access a mobile node (and its data) out of its queue, its agent
etc.?

Can I access it similar to the way a "normal" node can be accessed?

(e.g., with the help of the function "get_node_by_address")?


Thank you so much,


Christoph

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++



[ns] Pleas help:How to access mobile node data out of the agent

2006-01-09 Thread christoph schroth

Dear all,

I have a rather critical question, and I would be very happy if someone
could write me a brief answer:

How can I access mobile node data such as location (X_, Y_, etc.) out of the
agent (e.g., MessagePassing Agent). 


With other words: How do I get a reference to the mobile node wo whom I 
have attached the agent before?

Thank you so much in advance,

Christoph

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner



[ns] NS for performance evaluation

2006-01-09 Thread lekkie omotayo

 Hi guys,
I need to use ns2 to evaluate the performance of web, email, and VoIP
traffics over IPv6 in a wireless network.
I am a newbie 2 d  tool. I just need pointers and steps to what to evaluate
(e.g bandwidth, latency, QoS). Also, I will appreciate if any one can give
me a head start into doing this. I really don't now  what part of ns2 to
extend or manipulate though av seen some tutorials but they r just for
simulation and monitoring packets. I need to implement ns2 for the said
projects. Any help will be appreciated.


[ns] TBF Code, explanation

2006-01-09 Thread Enrique Alejandro Gutierrez Blancarte

Hi
   
  Anyone can help me with a TBF code???. Because I wrote down the 
following code, but when I change the parameters of the TBF ( shaper and the 
policer) the graph of the mean queue length is always the same, what Im doing 
wrong?
   
  set lamda 1.0
set mu 2
set q 1
  set ns [new Simulator]
set nf [open out.nam w]
set tr [open out.tr w]
set pk [open pk.dat w]
set queuelength [open queuelength.tr w]
set prop_pk [open prop.tr w]
TBF set debug_ false
#TBF set tokens_ 0
  # open a queue trace file
set tFile [open queue.tr w]
set qm [open qm.tr w]
  set maximum_queue $q
  for {set index 0} {$index <= $maximum_queue} {incr index} {
   set queue_record($index) 0.0
}
  set rng [new RNG]
$rng seed 0
$ns namtrace-all $nf
set expo1 [new RandomVariable/Exponential]
$expo1 set avg_ [expr 1/$lamda]
set expo2 [new RandomVariable/Exponential]
$expo2 set avg_ [expr 1000/$mu]
set node1 [$ns node]
set node2 [$ns node]
set node3 [$ns node]
set link [$ns simplex-link $node1 $node2 1kb 100ms DropTail]
set link2 [$ns simplex-link $node2 $node3 1kb 100ms DropTail]
set qu  [$link queue]
$qu set limit_ $q
  #exec rm -f test.out
  $ns simplex-link-op $node1 $node2 queuePos 0.5
$ns simplex-link-op $node2 $node3 queuePos 0.5
  set src [new Agent/UDP]
#$src set packetSize_ [expr 1000/$mu]
$ns attach-agent $node1 $src
set qmon [$ns monitor-queue $node2 $node3 0.1]
set number 0
set sum 0
  #set sink [new Agent/Null]
#$ns attach-agent $node2 $sink
#$ns connect $src $sink
  set src2 [new Agent/UDP]
$ns attach-agent $node2 $src2
  set tbf [new TBF]
#bucket capacity bits
$tbf set bucket_ 600K; # I CHANGE THIS PARAMETERS AND I STILL HAVE THE SAME 
GRAPH
#token bucket rate bits/sec
$tbf set rate_ 6000K
#capacity of the bucket in paquets
$tbf set qlen_  100
set lnk [[$ns link $node2 $node3] set link_]
$tbf target [$lnk target]
$lnk target $tbf
  set shaper [new TBF]
$shaper set bucket_ 600K ;#bits I CHANGE THIS PARAMETERS AND I STILL HAVE THE 
SAME GRAPH!!!
$shaper set rate_ 6000K ;#bits/s
$shaper set qlen_  100
  $ns attach-tbf-agent $node2 $src2 $shaper
  
set sink2 [new Agent/Null]
$ns attach-agent $node3 $sink2
$ns connect $src $sink2
  proc finish {} {
 global ns number nf \
 tr tFile pk qm \
 queue_record maximum_queue prop_pk queuelength
 $ns flush-trace
 #for {set index 0} {$index <= $maximum_queue} {incr index} {
# puts $prop_pk "$index [expr $queue_record($index) / $number]"
 #}
 close $queuelength
 close $nf
 close $tr
 close $tFile
 close $pk
 close $qm
 close $prop_pk
 exec nam out.nam 
 exec xgraph queuelength.tr -geometry 800x400 &
 exit 0
}
  proc sendpacket {} {
 global ns ak number src expo1 expo2 pk qmon qm link queue_record 
queuelength sum 
 set then [$ns now]
   set nextbytes [expr round ([$expo2 value])]
   $ns at [expr $then + [$expo1 value]] "sendpacket"
 set bytes $nextbytes
 puts $pk "$then $bytes"
 puts $qm "$then [$qmon set pkts_]"
 set qlength [$qmon set pkts_]
 set sum [expr $sum + $qlength]
 set number [expr $number + 1]
 puts $queuelength "$then [expr 1.0*$sum/$number]"
 $src send $bytes
 
}
  $ns at 0.1 "sendpacket"
#$ns at 0.1 "$src2 send 15"
$ns monitor-queue $node2 $node3 $tFile
# sampleInterval is optional and defaults to 0.1 seconds
  # start tracing using either
[$ns link $node2 $node3] start-tracing
# or
# [$ns link $node2 $node3] queue-sample-timeout
# which averages over the last sampleInterval
  $ns at 1.0 "finish"
# puts "Start M/M/1 Simulation..."
$ns run

   
   


-
  Do You Yahoo!? La mejor conexión a Internet y 2GB extra a tu correo por $100 
al mes. http://net.yahoo.com.mx 


Re: [ns] simulation time in ns-2

2006-01-09 Thread Daniel Mahrenholz

Hi, 

On Monday 09 January 2006 14:42, Michael Sidiropoulos wrote:
>   Hello everyone!!I have a question regarding simulation time in ns-2  
>  I am using ns-2.27 version and i have noticed that the calculated
> throughput in my wireless scenario changes as the simulation time
> increases.What  simulation time should i set to my tcl script in order to
> getaccurate throughput results?Any point or hint is extremely
> welcomedThanks for your attention!!!   

If you like to know the values in a steady state you sould run the simulation 
for at least several minutes. Especially in the first few seconds you can 
experience several strange effects. Something I often see is a storm of ARP 
packets at the beginning of a simulation because all stations start to 
communicate at about the same time. So, it is sometimes better to discard the 
results from the first seconds.

Daniel.
-- 
Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany
Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho



Re: [ns] "wrong node routing agent" error... I couldn't findanything helpful in the archive...

2006-01-09 Thread Pedro Vale Estrela



For otcl changes to the default library, also check if calling "source
ns-lib.tcl" at the beginning of the simulation solves your problem.

Also check the example I give in 
http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_tips.html#_Toc121320478


Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Francisco J. Ros
> Sent: domingo, 8 de Janeiro de 2006 23:58
> To: ns-users@ISI.EDU
> Cc: cenker demir
> Subject: Re: [ns] "wrong node routing agent" error... I couldn't
> findanything helpful in the archive...
> 
> 
> Hi,
> 
> It seems that you aren't recompiling the whole simulator. Please be sure
> that
> you aren't getting any error when executing "make clean && make", and also
> that you're invoking your modified version of ns2 (in the case that you
> have
> several ns2 installations).
> 
> If your problem persists, you can mail me again.
> 
> Regards,
> fran
> 
> On Sunday 08 January 2006 19:04, cenker demir wrote:
> > Hello all,
> >
> > I am using ns-allinone-2.28 on cygwin (win XP). I had
> > to create a "clone" of AODV and change its some
> > attributes with a new name according to my scenario. I
> > named my protocol "aodv_au" and copied the aodv folder
> > changing its name to aodv_au. Then I changed every
> > "aodv" word in aodv*.cc/h/tcl files(i know this sounds
> > stupid!!!) to aodv_au, including the file names in
> > that copied folder. My aim was to create a second aodv
> > with a name (aodv_au) first, then to change it step by
> > step. And by following Francisco Ros's tutorial -which
> > is quite helpful-
> > (http://masimum.dif.um.es/nsrt-howto/html/), I made
> > necessary changes and additions as well(packet.h,
> > priqueue.cc, cmu-trace.h/cc,
> > ns-lib/default/packet.tcl, makefile, etc.). After
> > "touch"ing packet.cc , I recompiled ns2, by running
> > "make". When I tried to run a script with my own
> > protocol name it gave this famous "wrong node routing
> > agent" error. After changing lowercase and uppercase
> > version of the routing agent name in my script
> > thinking that the name might be wrong somehow, I tried
> > to find an answer for my problem in ns-users archive.
> > I downloaded all the archive text files since 1998 and
> > tried to find an answer. As an answer, for
> > troubleshooting, Mr.Ros was suggesting to change
> > ns-lib.tcl file as below:
> >
> > switch -exact $routingAgent_ {
> >   #
> >
> >default {
> > puts "Wrong node routing agent!: $routingAgent_"
> > exit
> >}
> >   #.
> > }
> >
> > just to see which routing protocol name is coming up
> > as the routing agent, i think.
> >
> > However, even after this change and while expecting to
> > see something like "wrong node routing agent: ", I
> > saw the same error without any routing agent name:
> > "wrong node routing agent!".
> >
> > I did "make clean", and recompiled everything again.
> > However, I am still getting the same error. Why does
> > my change in "ns-lib.tcl" not affect the error
> > message?
> >
> > If anybody had this error before, I saw too many
> > messages about this issue, please let me know how you
> > solved this problem.
> >
> > Any ideas/answers will be appreciated...
> >
> > thank you
> > Cenker
> >
> >
> >
> >
> > __
> > Yahoo! DSL - Something to write home about.
> > Just $16.99/mo. or less.
> > dsl.yahoo.com
> 
> 
> 
> 
> __
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y moviles desde 1 centimo por minuto.
> http://es.voice.yahoo.com




Re: [ns] "wrong node routing agent" error... I couldn't find anythinghelpful in the archive...

2006-01-09 Thread Pedro Vale Estrela


> Hello all,
> 
> I am using ns-allinone-2.28 on cygwin (win XP). I had
> to create a "clone" of AODV and change its some
> attributes with a new name according to my scenario. I
> named my protocol "aodv_au" and copied the aodv folder
> changing its name to aodv_au. Then I changed every
> "aodv" word in aodv*.cc/h/tcl files(i know this sounds
> stupid!!!) to aodv_au, including the file names in
> that copied folder. My aim was to create a second aodv
> with a name (aodv_au) first, then to change it step by
> step.

Yes, that's exactly these staps that I propose here, but one must know what
he's doing
http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_beginners.html#_Toc122185718



> And by following Francisco Ros's tutorial -which
> is quite helpful-
> (http://masimum.dif.um.es/nsrt-howto/html/), I made
nice tutorial - added to my page a link


> necessary changes and additions as well(packet.h,
> priqueue.cc, cmu-trace.h/cc,
> ns-lib/default/packet.tcl, makefile, etc.). After
> "touch"ing packet.cc , I recompiled ns2, by running
> "make". When I tried to run a script with my own
> protocol name it gave this famous "wrong node routing
> agent" error. After changing lowercase and uppercase
> version of the routing agent name in my script
> thinking that the name might be wrong somehow, I tried
> to find an answer for my problem in ns-users archive.
> I downloaded all the archive text files since 1998 and
> tried to find an answer. As an answer, for
> troubleshooting, Mr.Ros was suggesting to change
> ns-lib.tcl file as below:
> 
> switch -exact $routingAgent_ {
>   #
> 
>default {
>   puts "Wrong node routing agent!: $routingAgent_"
> exit
>}
>   #.
> }
> 
> just to see which routing protocol name is coming up
> as the routing agent, i think.
> 
> However, even after this change and while expecting to
> see something like "wrong node routing agent: ", I
> saw the same error without any routing agent name:
> "wrong node routing agent!".

a) Debug this part of otcl code with my otcl debugger
http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_debugging2.html


and check why code is going into the default case.


> I did "make clean", and recompiled everything again.

Maybe its a bug on the switch

> However, I am still getting the same error. Why does
> my change in "ns-lib.tcl" not affect the error
> message?


> If anybody had this error before, I saw too many
> messages about this issue, please let me know how you
> solved this problem.
> 
> Any ideas/answers will be appreciated...
> 
> thank you
> Cenker



Re: [ns] 2 different -adhocRouting in the same simulation

2006-01-09 Thread Pedro Vale Estrela



Looks strange.

Reverse the creation order of the nodes to see what happens


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Dario Borriello
> Sent: sexta-feira, 6 de Janeiro de 2006 16:52
> To: ns-users@ISI.EDU
> Subject: [ns] 2 different -adhocRouting in the same simulation
> 
> 
> Hi,
> 
> i would like to make a simulation composed by 2 different -adhocRouting
> protocol , each one assigned to 1 group of different nodes...
> i have tried to insert
> 
> $ns_ node-config -adhocRouting AODV
> 
> to set the routing protocol of the first group of nodes, and after
> 
> $ns_ node-config -adhocRouting NOAH
> 
> to set the routing protocol of the second group of nodes..
> Unfortunately the result is that all nodes uses the routing protocol
> AODV!!!
> It is possible to avoid this problem?
> 
> Thanks for help,
> 
> Dario
> 
> _
> Scopri il nuovo MSN Htomail - 10MB di allegati
> http://www.msn.it/hotmail/minisite_10




[ns] icmp response in tcp applications

2006-01-09 Thread Marco Bonetti

Hello everybody!
I'm working with ns-allinone-2.29 on mac osx and writing application
to be run on top of ns nodes, following various tutorials here and
there on the net I came up with some resonable UDP apps (worm-like),
now I'm trying to do that on top of TCP.
I'm thinking that it would be nice to get ICMP response when a nodes
tries to send data to something not existent, but I don't know how I
can do this.

does anyone know where I can start looking for?

thanks in advance,
ciao

--
Marco Bonetti
Slackintosh Linux Project Developer
http://slackintosh.workaround.ch/

My GnuPG key id: 86A91047



[ns] simulation time in ns-2

2006-01-09 Thread Michael Sidiropoulos

  Hello everyone!!
I have a question regarding simulation time in ns-2
I am using ns-2.27 version and i have noticed that the calculated 
throughput in my wireless scenario changes as the simulation time 
increases.What  simulation time should i set to my tcl script in order to 
get
accurate throughput results?

Any point or hint is extremely welcomed
Thanks for your attention!!!
Regards, 
Michael


-
 Χρησιμοποιείτε Yahoo!
 Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την 
καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων 
 http://login.yahoo.com/config/mail?.intl=gr 

[ns] extention to linkstate routing code in ns-2.1b8

2006-01-09 Thread Fatemeh Karimirad

Dear all,
I want to extends linkstate routing code in ns-2.1b8
to support QoS
Routing. I download qosrns-0.2-pre2-ns2-1b8a and untar
in ns 2.1b8a directory
but I dont know how to add qospf header files into
makefile.in,
Can any one help me with editing makefile.in?
Regards,
Fatemeh Karimirad



__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



Re: [ns] Problem with installation of NS 2.28

2006-01-09 Thread Filippos Kolovos

I apologise, in my previous message I forgot to edit
the subject line.:-)



>From the warning messages displayed, you have
installed ns-allinone 2.28, not ns-2.28 (the latter is when
you install it from the pieces). When you install it from the
pieces, it does not display such a warning.

The LD_LIBRARY_PATH is actually an extra
set of directories, where the run-time shared library loader
will look for any needed shared libraries when loading an executable.
You can define multiple directories as the value for that variable separated

with a colon (:)

Specifically, the value of this environment variable (i.e the list of
directories specified)
is added to the beginning of** the existing list of compiled-in loader paths
for a given executable, and any system default loader paths.

You add this environment variable in the startup file of your login shell (
i.e. .bashrc for bash
or .login for tcsh) specifying it as it is shown in the messages.
An example of a specification for the LD_LIBRARY_PATH in one of my
ns-allinone installations is shown below. I have put this variable (among
others) in the .bashrc
file in my home dir:

 export NS_HOME=/home/MIS_USER/ns-allinone-2.26

export LD_LIBRARY_PATH=$NS_HOME/tcl8.3.2/unix:$NS_HOME/tk8.3.2/unix:\
$NS_HOME/otcl-1.0a8:$NS_HOME/lib:$LD_LIBRARY_PATH


Notice that I have put the home dir of ns-allinone in another env var, which
I use
in the specification of the LD_LIBRARY_PATH var.

I Hope to have helped.

P.S.
For further information regarding this variable or its security implications
when using it,
you can check this link:
http://www.visi.com/~barr/ldpath.html

Regards,

-Fk

--
Filippos N Kolovos

Software Systems Analyst & Engineer
M.Sc. (Eng.) in Data Communications

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED],
   [EMAIL PROTECTED]
--




-- Forwarded message --
> From: David Planells <[EMAIL PROTECTED]>
> To: ns-users@ISI.EDU
> Date: Sun, 8 Jan 2006 13:28:47 +0100
> Subject: [ns] Fwd: Problem with installation of NS 2.28
> Dear all,
> I've just installed NS 2.28 in Mandrake 10 and when I've just finished
> installing this version, this is what I've received:
>
>
> IMPORTANT NOTICES:
> (1) You MUST put /home/daplaji/Desktop/PFC/ns-allinone-2.28/otcl-1.9
> ,/home/daplaji/Desktop/PFC/ns-allinone-2.28/lib,
> into your LD_LIBRARY_PATH environment variable.
>
>   If it complains about X libraries, add path to your X libraries into
> LD_LIBRARY_PATH.
>   If you are using csh, you can set it like: setenv LD_LIBRARY_PATH
> 
>   If you are using sh, you can set it like:  export
> LD_LIBRARY_PATH=
>
> (2) You MUST put /home/daplaji/Desktop/PFC/ns-allinone-2.28
> /tcl8.4.5/library
>
> into your TCL_LIBRARY environmental variable. Otherwise ns/nam will
> complain during startup.
>
> (3) [OPTIONAL] To save disk space, you can now delete directories
> tcl8.4.5and
> tk8.4.5.
> They are now installed under /home/daplaji/Desktop/PFC/ns-
> allinone-2.28
> /{bin,include,lib}
>
> After these steps, you can now run the ns validation suite with cd ns-2.28
> ;
> ./validate
>
> For trouble shooting, please first read ns problems page
> http://www.isi.edu/nsnam/ns/ns-problems.html.
> Also search the ns mailing list archive
> for related posts.
>
>
>
> And as I'm a beginner with Linux and with NS2, I don't know what path is
> LD_LIBRARY_PATH environment variable.
>
> I don't konw where to put those files because I'm a beginner.
>
> Could you help me?
>
> Thanks in advance!!!
>
>


Re: [ns] Ns-users Digest, Vol 25, Issue 8

2006-01-09 Thread Filippos Kolovos

From the warning messages displayed, you have
installed ns-allinone 2.28, not ns-2.28 (the latter is when
you install it from the pieces). When you install it from the
pieces, it does not display such a warning.

The LD_LIBRARY_PATH is actually an extra
set of directories, where the run-time shared library loader
will look for any needed shared libraries when loading an executable.
You can define multiple directories as the value for that variable separated

with a colon (:)

Specifically, the value of this environment variable (i.e the list of
directories specified)
is added to the beginning of** the existing list of compiled-in loader paths
for a given executable, and any system default loader paths.

You add this environment variable in the startup file of your login shell (
i.e. .bashrc for bash
or .login for tcsh) specifying it as it is shown in the messages.
An example of a specification for the LD_LIBRARY_PATH in one of my
ns-allinone installations is shown below. I have put this variable (among
others) in the .bashrc
file in my home dir:

ΒΗΜΑΤΑ ΕΓΚΑΤΑΣΤΑΣΗΣ ΤΟΥ NS-ALLINONE 2

ΒΗΜΑΤΑ ΕΓΚΑΤΑΣΤΑΣΗΣ ΤΟΥ NS-ALLINONE 2

export NS_HOME=/home/MIS_USER/ns-allinone-2.26

export LD_LIBRARY_PATH=$NS_HOME/tcl8.3.2/unix:$NS_HOME/tk8.3.2/unix:\
$NS_HOME/otcl-1.0a8:$NS_HOME/lib:$LD_LIBRARY_PATH


Notice that I have put the home dir of ns-allinone in another env var, which
I use
in the specification of the LD_LIBRARY_PATH var.

I Hope to have helped.

P.S.
For further information regarding this variable or its security implications
when using it,
you can check this link: http://www.visi.com/~barr/ldpath.html

Regards,

-Fk

--
Filippos N Kolovos

Software Systems Analyst & Engineer
M.Sc. (Eng.) in Data Communications

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED],
   [EMAIL PROTECTED]
--


-- Forwarded message --
> From: David Planells <[EMAIL PROTECTED]>
> To: ns-users@ISI.EDU
> Date: Sun, 8 Jan 2006 13:28:47 +0100
> Subject: [ns] Fwd: Problem with installation of NS 2.28
> Dear all,
> I've just installed NS 2.28 in Mandrake 10 and when I've just finished
> installing this version, this is what I've received:
>
>
> IMPORTANT NOTICES:
> (1) You MUST put /home/daplaji/Desktop/PFC/ns-allinone-2.28/otcl-1.9
> ,/home/daplaji/Desktop/PFC/ns-allinone-2.28/lib,
> into your LD_LIBRARY_PATH environment variable.
>
>   If it complains about X libraries, add path to your X libraries into
> LD_LIBRARY_PATH.
>   If you are using csh, you can set it like: setenv LD_LIBRARY_PATH
> 
>   If you are using sh, you can set it like:  export
> LD_LIBRARY_PATH=
>
> (2) You MUST put /home/daplaji/Desktop/PFC/ns-allinone-2.28
> /tcl8.4.5/library
>
> into your TCL_LIBRARY environmental variable. Otherwise ns/nam will
> complain during startup.
>
> (3) [OPTIONAL] To save disk space, you can now delete directories
> tcl8.4.5and
> tk8.4.5.
> They are now installed under /home/daplaji/Desktop/PFC/ns-
> allinone-2.28
> /{bin,include,lib}
>
> After these steps, you can now run the ns validation suite with cd ns-2.28
> ;
> ./validate
>
> For trouble shooting, please first read ns problems page
> http://www.isi.edu/nsnam/ns/ns-problems.html.
> Also search the ns mailing list archive
> for related posts.
>
>
>
> And as I'm a beginner with Linux and with NS2, I don't know what path is
> LD_LIBRARY_PATH environment variable.
>
> I don't konw where to put those files because I'm a beginner.
>
> Could you help me?
>
> Thanks in advance!!!
>
>

Re: [ns] where to save .cc files

2006-01-09 Thread Tiago Camilo

Hi,
perhaps you forgot to insert in the Makefile.in the path to your .cc files...
After this you will need to:
>./configure
>make

Good luck,
Tiago Camilo


Quoting anusherin <[EMAIL PROTECTED]>:

> 
>  sirI saved tcl file in a seperate folder & i saved .cc file in
> ns-allinone2.24/ns-2.24/rcpand i compiled tcl file.whether this path is right
> or else where should i store .cc file.the error while i compiled isNo such
> command Agent/TCP/RCPplz reply sirthanks for reply.with regardsanu
> 
> ___
> No banners. No pop-ups. No kidding.
> Make My Way  your home on the Web - http://www.myway.com
> 


-- 
Tiago Camilo
Ph.D. Student at University of Coimbra
Webpage:http://eden.dei.uc.pt/~tandre/
E-mail:[EMAIL PROTECTED]