[ns] help wireless simulation

2006-02-17 Thread badache abdou

  Dear all,
  I'am new in ns, i want simulate a wireless network, but a lot of errors when 
i execute script examples that, i find in the net.
Does any body know with what i begin  or if anyone have examples of scripts for 
beginners like me. 
  Cordially, Abdou.


-
 Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.Téléchargez la version 
beta.


[ns] diff between Makefile.in, Makefile, makefile

2006-02-17 Thread Kavi priya K

Hi all,
   I would like to know the difference between Makefile.in, Makefile 
and makefile.  
   
  Thanks.


-
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.


Re: [ns] diff between Makefile.in, Makefile, makefile

2006-02-17 Thread Adrian

Makefile.in is the real file to modify if you have to
Makefile or makefile is created by configure, but only one should
exists. The other makefile is makefile.vc, which is for Visual C++
in MS environment.

Kavi priya K wrote:

Hi all,
   I would like to know the difference between Makefile.in, Makefile 
 and makefile.  
   
  Thanks.

   
-
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
  




[ns] validation error

2006-02-17 Thread Pubali Banerjee

I am getting a validation error after I installed ns allinone 2.27.
The test-all-full fails. The error message is the follows:

(partial error message)
Running test twoway:  
./../ns test-suite-full.tcl twoway QUIET  
ns: _o91 recv 536:  
(_o91 cmd line 1)  
invoked from within  
_o91 cmd recv 536  
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 _o91 line 2)  
(SplitObject unknown line 2)  
invoked from within  
_o91 recv 536  


Does anybody know what this could be? Please help if you can.
  
Thanks much,  
  
-Pubali.  
  
  
  
  
  
  
  





Re: [ns] help..how to start ns?

2006-02-17 Thread Adrian

That's a basic Unix/Linux question: you have to give the path to run.
For example, type ./ns if you are at the directory you run make to
build ns.

Mohammed Fawaz Kamarudin wrote:

hi..
after installing and validate the ns 2allinone 2.18, by using ns lounch, it
had error that ns command not found..what should i do?i run in
mandrake 10.1platform...sorry for ur time..


--
Mohammed Fawaz Kamarudin
  




Re: [ns] Visualization tool for Wireless Networks

2006-02-17 Thread Björn Scheuermann

Hi Leo,

 can anyone give more information on Inspect and  ad hockey .. which are
 visualizationtools for wireless simulations in ns2.
 i want to get hold of visualization tools for wireless network simulation
 in ns2.

maybe you should state more clearly what information you're looking for. I 
mean, there are papers available on both of them, telling you quite a lot 
about the tools...

And, BTW, there's also a third tool, Huginn 
(http://pi4.informatik.uni-mannheim.de/pi4/lib/projects/huginn/). For Huginn 
there's also a paper available (at the MSWiM 2005).


Bye,

Björn


-- 
Björn Scheuermann
Computer Networks and Communication Systems Group
Heinrich Heine University
Universitätsstr. 1, D-40225 Düsseldorf, Germany

Building 25.12, Room 02.50
Phone: +49 211 81 11692
Fax:   +49 211 81 11638 
[EMAIL PROTECTED]
http://www.cn.uni-duesseldorf.de



[ns] ns run time problem using pgm

2006-02-17 Thread N T Read


Hi, had the following message output when trying to run a tcl script.


cslin-gps% ns pgm1.tcl
ns: _o16 new-group 0 -2147483648 -1 cache-miss: can't read protocols_(-1): no 
such variable
 while executing
$protocols_($iface) upcall $code $source $group $iface
 (procedure _o17 line 9)
 (mrtObject upcall line 9)
 invoked from within
$mrtObject_ upcall $code $src $group $iface
 (procedure _o11 line 3)
 (Node new-group line 3)
 invoked from within
$node_ new-group $src $group $iface $code
 (procedure _o16 line 3)
 (Classifier/Multicast new-group line 3)
 invoked from within
_o16 new-group 0 -2147483648 -1 cache-miss


Im new to ns so this doesnt really make much sense to me at all.

Any ideas?

Thanks

Nick

p.s Below is the tcl script i am trying to run

--

set ns [new Simulator -multicast on]

#set routing protocol
$ns rtproto DV

set nf [open out.nam w]
$ns namtrace-all $nf
$ns node-config -PGM ON

proc finish [] {
 global ns nf
 $ns flush-trace
 close $nf
 exec nam out.nam 
 exit 0

}

#create 4 nodes
set ns [new Simulator -multicast on]

#set routing protocol
$ns rtproto DV

set nf [open out.nam w]
$ns namtrace-all $nf
$ns node-config -PGM ON

proc finish [] {
 global ns nf
 $ns flush-trace
 close $nf
 exec nam out.nam 
 exit 0

}

#creat 4 nodes
set n0 [$ns node]
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
set n4 [$ns node]

#connect the nodes

$ns duplex-link $n0 $n1 1mb 10ms DropTail
$ns duplex-link $n1 $n2 1mb 10ms DropTail
$ns duplex-link $n1 $n3 1mb 10ms DropTail
$ns duplex-link $n1 $n4 1mb 10ms DropTail


#create multicast group for PGM session

set group [Node allocaddr]

#create sending PGM agent

set PGMsrc [new Agent/PGM/Sender]
$ns attach-agent $n0 $PGMsrc
$PGMsrc set dst_addr_ $group
$PGMsrc set dst_port_ 0

#attach Constant Bit rate traffic source to PGM sender

set cbr [new Application/Traffic/CBR]
$cbr attach-agent $PGMsrc
$cbr set rate_ 448Kb
$cbr set packetSize_ 210
$cbr set random_ 0

#PGM receiver agents

set rcv2 [new Agent/PGM/Receiver]
set rcv3 [new Agent/PGM/Receiver]
set rcv4 [new Agent/PGM/Receiver]

$ns attach-agent $n2 $rcv2
$ns attach-agent $n3 $rcv3
$ns attach-agent $n4 $rcv4

#state join/leave times
$ns at 0.01 $n1 join-group $rcv2 $group
$ns at 0.02 $n2 join-group $rcv3 $group
$ns at 0.03 $n3 join-group $rcv4 $group

$ns at 0.4 $PGMsrc start-SPM

$ns at 0.5 $cbr start

$ns at 1.5 $cbr stop

$ns at 2.0 $PGMsrc stop-SPM

$ns at 2.0 finish

$ns run



[ns] ns can not be constructed

2006-02-17 Thread maryam beigi

Dear all,
   
  I have written two agents, the sender and receiver side for a mac protocol, 
when I compile and make ns with each of these agents seperately, the excutable 
file ns is successfully created. But when I make ns with both of them (by 
putting ../agent.o and .../anotheragent.o in the makefile), file ns can 
not be made giving this error:
  make:***[ns] Error1
  I wonder if anybody can help me.
  thank you
  M.Beigi


-
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!


Re: [ns] how to fix a value for timeout???

2006-02-17 Thread maashari

well, wouldn't be better if you subtract total delivered from total
transmitted?

Ahmed

- Original Message -
From: hamdi benmessaoud [EMAIL PROTECTED]
To: ns_users ns-users@ISI.EDU
Sent: Thursday, February 16, 2006 5:22 AM
Subject: [ns] how to fix a value for timeout???


 Hi everybody ,
   I want to calculate How many packets are lost during the simulation .So,
I defined a timeout mechanism but I don't know how to fix the value of the
timeout ?
   Is there any algorithm who fix this value ?
   Thank you in advance




 -
  Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les
tarifs exceptionnels pour appeler la France et l'international.Téléchargez
la version beta.





[ns] how to make a new AQM work?

2006-02-17 Thread Jaewoo Park

Dear ns-users
  I'm trying to experimnet a new AQM scheme.
  How can I put this into ns2 to work?
  I use a recent version of Red Hat linux and ns-allinone-2.28.
  I also wrote programs such as *.cc, *.h
  for the new AQM scheme.
   
  I appreciate your help in advance.
  Sincerely
  Jae W. Park
   


-
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews,  more on new 
and used cars.