Re: [ns] Wired-Wireless Trace... message at MAC layer?

2009-03-17 Thread David Ross

David Ross wrote:
 Syed Faraz Hasan wrote:
 Hi everyone!

 I simulated a wired-wireless scenario in NS-2. There is one wired 
 node, connected to base station node. BS is further connected to 
 wireless node. Wireless node is sending TCP traffic to wired node via 
 BS. I get the trace file without error but I could not understand a 
 few messages in trace file.

 For example
 What does this message mean?
 s 0.035412973 _1_ MAC --- 1 message 90 [0  0 800] --- 
 [4194304:255 -1:255 32 0]
 Only MAC trace and Wired Trace is ON
 Can some one please help me on this.
 It is a routing advertisment (possibly DSDV?) being broadcast from 
 node 1's routing via node 1's MAC layer

 - David Ross
  QUT, Brisbane, Australia.
To add a little more:
Sent, time, _node_, MAC trace, no-error, packet#, type, bytes, [(in hex) 
duration field (0 µs), receiver address, transmitter address and 
ether-type], ---, [(in decimal) IP source address:source port (255), 
IP destination address (-1):destination port (255), IP time-to-live (32) 
and next hop (0)]

- David Ross
   QUT, Brisbane, Australia.



Re: [ns] makefile compilation

2009-03-17 Thread David Ross

muralikrishna g wrote:
 hi to all..

 i am using NS-2.33, now i made changes to classifier.cc and queue.cc, to get
 these changes in to effect i have to compile.. but i don't have idea on how
 to compile after modifications.. please help me regarding this..
   
Your question appears to be answered by the FAQ:

 * _What should I do to compile ns to reflect my changes if I've
   modified some .cc or .h files?_
   
   go to ns directory and run make or make depend; make


Assuming unix-like systems, go to the directory with the root of all the 
source (in my case it is cd /usr/src/ns-2.33) and execute the following 
three commands:
make clean
make
make install

- David Ross
  Brisbane, Australia.



Re: [ns] Installing NS2 on Red hat / Fedora / Linux / Unix-like

2009-03-17 Thread David Ross


Liz Mwaniki wrote:

Hi,
Can anyone assist me in installing NS2 on red hat.
  
I've been off-list for a while, but if you are still having problems, I 
have attached my complete installation gotchas of 2.33 on Fedora.  
Should work for RHEL.  My issues were a too new Tk/Tcl for the OTcl I 
had.  The ns-2.33 itself went in without a hitch once I got the rest set up.


There's been a few how do I install on linux posts lately, so I'll 
copy to the list - but it may drop the attachment.


Note this is on Fedora 9 (it started on 7 but switched to 9 with the 
same commands), but originates from the numerous on-line war stories, 
including the ISI doco, and should be very similar on other unix-like 
systems.  I use yum and rpm, but should be similar to using apt-get, etc.


I do occasionally read the list, but I'm writing-up so email currently 
has a many-days-to-weeks turnaround for me.


Hope this helps.
(and yes, while you are reading this, Fedora 11 is already in alpha)

- David Ross
 QUT, Brisbane, Australia.



[ns] How to deal with Unable to alloc %d bytes

2009-03-17 Thread 张亚霏

hi, all!
  
 Enviroment: Windows Server 2003 + Cygwin, 4GB memory
  
 I am simulating a P2P application for scalability. when the number of nodes 
increases to over 3000, the application always shows Unable to alloc %d bytes 
after running a few minutes. As far as I observed, the application took up 
about 1GB memory.
  
 Is there some one in the same situation and how to deal with it? Is it a ns2 
bug?
  
 Thanks and Best Wishes.
 Kimi Zhang

Re: [ns] Installing NS2 on Red hat / Fedora / Linux / Unix-like

2009-03-17 Thread David Ross

Yes sorry the list removed the attachment.  Anyone who is interested can 
grab it from http://antacs.com/ns-2/DavidRossAppendixA.pdf
Make sure you read A.1.3 (what went wrong) before you start blindly 
following what I did.

David Ross wrote:
 There's been a few how do I install on linux posts lately, so I'll 
 copy to the list - but it may drop the attachment.

 Note this is on Fedora 9 (it started on 7 but switched to 9 with the 
 same commands), but originates from the numerous on-line war stories, 
 including the ISI doco, and should be very similar on other unix-like 
 systems.  I use yum and rpm, but should be similar to using apt-get, etc.

 I do occasionally read the list, but I'm writing-up so email currently 
 has a many-days-to-weeks turnaround for me.

 Hope this helps.
 (and yes, while you are reading this, Fedora 11 is already in alpha)

 - David Ross
  QUT, Brisbane, Australia.




[ns] The following error.....please help ....could't read file ../lib/ns-bsnode.tcl: no such file or directory while executing......

2009-03-17 Thread veronica diaza

H guys.
I have installed NS-2.33 on VM RHat Linux 4 and tried to run exp script
 wireless.tcl and got following error:

 could't read file ../lib/ns-bsnode.tcl: no such file or directory while
 executing - I have checked for the above file... there is such file
 source.orig ../lib/ns-bsnode.tcl
 (uplevel body line 1)
 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 ../lib/ns-bsnode.tcl
 (file wireless.tcl line 191)
 
 Guys please help if you have any solution for this problem.thanks.



[ns] make depend error on ns 2.33 - no rule to make target

2009-03-17 Thread Thor Catarius



_
Windows Live™ Groups: Create an online spot for your favorite groups to meet.
http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009



Re: [ns] sample code for wsn

2009-03-17 Thread Habeshawit2God


Dear naveen prabu,

 As per your advise i tried it however it doesn't work and here is the error
message it came up with i went to the line it is referring to and realize
that there is actually something wrong with it.  Here is the error message:

siu06...@sie59a:~/Documents$ ns wsn1.tcl 
bad option file: must be add, info, remove, variable, vdelete, or vinfo
while executing
trace file for wpan (special handling needed)
(file wsn1.tcl line 47)


Dear nabeen, hoping to hear from you soon, i would like to thank you very
much in advance.

Best regards,

Habeshawit2God 

P.S please do not hesitate to drop me an e-mail using my personal e-mail and
I would also appreciate it if you can give me reply between today and
tomorrow as i have to hand in my project on Thursday 19thMarch 2009!!


naveen prabu wrote:
 
 
 I have pasted sample tcl file and scenario file here...
 save scn file as wsn1.scn and tcl file as (say)wsn1.tcl and run tcl
 file...
 
 try runnin thisif any bugs then let me know...
 
 wsn1.tcl
 
 
 # ==
 # Define options
 # ==
 set val(chan)   Channel/WirelessChannel;# Channel Type
 set val(prop)   Propagation/TwoRayGround   ;# radio-propagation
 model
 set val(netif)  Phy/WirelessPhy/802_15_4
 set val(mac)Mac/802_15_4
 set val(ifq)Queue/DropTail/PriQueue;# interface queue type
 set val(ll) LL ;# link layer type
 set val(ant)Antenna/OmniAntenna;# antenna model
 set val(ifqlen) 50 ;# max packet in ifq
 set val(nn) 25 ;# number of
 mobilenodes
 set val(rp) AODV   ;# routing protocol
 set val(x)50
 set val(y)50
 
 set val(nam)  wsn1.nam
 set val(traffic)  ftp;# cbr/poisson/ftp
 
 #read command line arguments
 proc getCmdArgu {argc argv} {
 global val
 for {set i 0} {$i  $argc} {incr i} {
 set arg [lindex $argv $i]
 if {[string range $arg 0 0] != -} continue
 set name [string range $arg 1 end]
 set val($name) [lindex $argv [expr $i+1]]
 }
 }
 getCmdArgu $argc $argv
 
 set appTime10.0   ;# in seconds
 set appTime20.3   ;# in seconds
 set appTime30.7   ;# in seconds
 set stopTime100   ;# in seconds
 
 # Initialize Global Variables
 set ns_   [new Simulator]
 set tracefd [open ./wsn1.tr w]
 $ns_ trace-all $tracefd
 if { $val(nam) == wsn1.nam } {
 set namtrace [open ./$val(nam) w]
 $ns_ namtrace-all-wireless $namtrace $val(x) $val(y)
 }
 
 $ns_ puts-nam-traceall {# nam4wpan #} ;# inform nam that this is a
 trace file for wpan (special handling needed)
 
 Mac/802_15_4 wpanNam namStatus on ;# default = off (should be 
 turned
 on before other 'wpanNam' commands can work)
 #Mac/802_15_4 wpanNam ColFlashClr gold;# default = gold
 #Mac/802_15_4 wpanNam NodeFailClr grey;# default = grey
 
 
 # For model 'TwoRayGround'
 set dist(5m)  7.69113e-06
 set dist(9m)  2.37381e-06
 set dist(10m) 1.92278e-06
 set dist(11m) 1.58908e-06
 set dist(12m) 1.33527e-06
 set dist(13m) 1.13774e-06
 set dist(14m) 9.81011e-07
 set dist(15m) 8.54570e-07
 set dist(16m) 7.51087e-07
 set dist(20m) 4.80696e-07
 set dist(25m) 3.07645e-07
 set dist(30m) 2.13643e-07
 set dist(35m) 1.56962e-07
 set dist(40m) 1.20174e-07
 Phy/WirelessPhy set CSThresh_ $dist(15m)
 Phy/WirelessPhy set RXThresh_ $dist(15m)
 
 # set up topography object
 set topo   [new Topography]
 $topo load_flatgrid $val(x) $val(y)
 
 # Create God
 set god_ [create-god $val(nn)]
 
 set chan_1_ [new $val(chan)]
 
 # configure node
 
 $ns_ node-config -adhocRouting $val(rp) \
   -llType $val(ll) \
   -macType $val(mac) \
   -ifqType $val(ifq) \
   -ifqLen $val(ifqlen) \
   -antType $val(ant) \
   -propType $val(prop) \
   -phyType $val(netif) \
   -topoInstance $topo \
   -agentTrace OFF \
   -routerTrace OFF \
   -macTrace ON \
   -movementTrace OFF \
 #-energyModel EnergyModel \
 #-initialEnergy 1 \
 #-rxPower 0.3 \
 #-txPower 0.3 \
   -channel $chan_1_
 
 for {set i 0} {$i  $val(nn) } {incr i} {
   set node_($i) [$ns_ node]   
   $node_($i) random-motion 0  ;# disable random motion
 }
 
 source ./wsn1.scn
 
 # Setup traffic flow between nodes
 
 proc cbrtraffic { src dst interval starttime } {
global ns_ node_
set udp($src) [new Agent/UDP]
eval $ns_ attach-agent \$node_($src) \$udp($src)

[ns] ns installation problem

2009-03-17 Thread ali bala

hi
i had problem with nam under cyqwin/x
and now i install linux ubuntu 8.10 then try to install ns 
when i run ns installation with ./install after 5 mins i see this error :
make:***[tk3d.o] error1
tk8.4.13 make failed! exiting...
whats my problem and solution?
 mr.ali.balador
homepage:www.balador.org 


  


[ns] disabling RTS/CTS does not work - RTSThreshold_ 3000

2009-03-17 Thread Patxi Azpiroz

Dear NS users:
I'm pretty new in ns sorry if the question is too trivial but I can't
come with it.
I put Mac/802_11 set RTSThreshold_ 3000 to disable RTS/CTS been the
packe size 270.
After the simulation the trace file shows RTS/CTS packets. Why is it so?

I have seen this problen in the mailing list more than once but there
is no solution that works in my case.

Thanks,

Patxi.



[ns] Help--Wired-cum-Wireless Problem

2009-03-17 Thread Franka Sitepu

Hi...i am a student from Indonesia ,i am new in ns user...have anyone do a 
research before about wired to wireless..i need an example to do the script..
-1 server connect to router 1 
-router 1 connect to 2 access point 
-1 access point connect to 2 wireless computer and 
-1 access point connect to 2 wireless computer
...if
any want know how to make that script please reply my email...don't
need to do a application like UDP or CBR..just the link and and create
wired and wireless rules because i confuse to make a wired and wireless
in one topology
#   [AP1]-  -  -  -  - 
 -  -[D1]    
#    -    -    
 #  -    -
#    -        -   -   -   -   -[D2]
#  
 -
#  -
#[S1]--[R1]---     
#    -
#  
 -
#  [AP2]-  -   -   -    -   -[D3]
#    -
# 
 -
#        -   -   -   -  -[D4]
#
#
in
that topologhy R1 connect to AP 1 and AP2(wired bodes)...and than AP1
connect to D1 and D2,AP2 connect to D3 and D4...(wireless)
just need an example to make node connect..no need to create application such 
UDP and CBR.

Best regards 


Anka 



  


[ns] how to show delay time.... (DSDV , TORA)

2009-03-17 Thread erniati amkha

Hi.. guys
I tried to make simulation to show delay time, sending packets, and
receiving packet (to see lost packet during transmission) if I send a
packet from one node to the other.  I used DSDV and TORA algorithm to
do this. But until now, I haven't met a way how to write delay time in
trace file.

is there anyone can help me, please? Thanks for your all help.

--

Regard

A Kha



[ns] Fwd: No rule to make target `...@v_stlobj@', needed by `depend', while re-makeing the ns-2.33

2009-03-17 Thread Laziz Yunusov

Unfortunately, this did not solve the problem. I guess that this may
be due to updated GCC, because with older version 3.4.3, nobody seem
to have such a problem. Then I even tried:
yum install compat-gcc-34.i386 compat-gcc-34-c++.i386
And afterwards, while trying to make, I'm having:
common/packet.cc:44: error: conflicting declaration ‘char** p_info::name_ [62]’
common/packet.h:295: error: ‘p_info::name_’ has a previous declaration
as ‘char* p_info::name_ [62]’
common/packet.cc:44: error: declaration of ‘char* p_info::name_ [62]’
outside of class is not definition
common/packet.cc:45: error: ‘unsigned int p_info::nPkt_’ is not a
static member of ‘class p_info’
common/packet.cc:46: error: expected constructor, destructor, or type
conversion before ‘*’ token
common/packet.cc:48: error: no ‘int p_info::addPacket(char*)’ member
function declared in class ‘p_info’
make: *** [common/packet.o] Error 1


Can anyone suggest another solution?

-- Forwarded message --
From: Dimitris Liarokapis
Date: Tue, Mar 17, 2009 at 6:51 PM
Subject: Re: [ns] No rule to make target `...@v_stlobj@', needed by
`depend', while re-makeing the ns-2.33
To: Laziz Yunusov


Hi,

Try the following sequence of commands:

./configure
make clean
make depend
make
make install

Dimitris

On 3/17/09, Laziz Yunusov yla...@gmail.com wrote:

 Hi there,
 I'm developing a new protocol for ns-2. When I hit make depend in
 ns-2.33 directory, I'm getting following error message:
 make: *** No rule to make target `...@v_stlobj@', needed by `depend'.  Stop.
 Maybe it's because of updated gcc/g++?! Because I didn't have such
 error before. Any help appreciated.
 P.S. gcc version is 4.3.0 20080428 (Red Hat 4.3.0-8)



Re: [ns] Fwd: No rule to make target `...@v_stlobj@', needed by `depend', while re-makeing the ns-2.33

2009-03-17 Thread Kumar, Vineet


Hi,
  
  Just do,  
  sudo yum install compat-gcc-34 compat-gcc-34-c++

  As you must have understood, the above command will install a gcc/g++ version 
3.4 compatibility in your system,
  but whenever you use gcc/g++ command, your system automatically takes the 
actuall gcc version of your OS (i.e version 4.3.0).
  So the trick is whenever you want to use the version 3.4, just replace 
gcc/g++ by gcc34/g++34 respectively. 

  Regarding ns2.33 (or any ns2.XX)
  take a fresh ns-allinone-2.33, go to the ns-2.33 folder,
  In the 'Makefile.in' replace,

c...@cc@
c...@cxx@
   
   by

CC=gcc34
CPP=g++34 

  then return to the 'ns-allinone-2.33' directory and start the normal 
installation process.

Regards,
Vineet Kumar


-Original Message-
From: ns-users-boun...@isi.edu on behalf of Laziz Yunusov
Sent: Wed 18/03/2009 01:22
To: ns-users@ISI.EDU
Subject: [ns] Fwd:  No rule to make target `...@v_stlobj@', needed by 
`depend',while re-makeing the ns-2.33
 

Unfortunately, this did not solve the problem. I guess that this may
be due to updated GCC, because with older version 3.4.3, nobody seem
to have such a problem. Then I even tried:
yum install compat-gcc-34.i386 compat-gcc-34-c++.i386
And afterwards, while trying to make, I'm having:
common/packet.cc:44: error: conflicting declaration 'char** p_info::name_ [62]'
common/packet.h:295: error: 'p_info::name_' has a previous declaration
as 'char* p_info::name_ [62]'
common/packet.cc:44: error: declaration of 'char* p_info::name_ [62]'
outside of class is not definition
common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a
static member of 'class p_info'
common/packet.cc:46: error: expected constructor, destructor, or type
conversion before '*' token
common/packet.cc:48: error: no 'int p_info::addPacket(char*)' member
function declared in class 'p_info'
make: *** [common/packet.o] Error 1


Can anyone suggest another solution?

-- Forwarded message --
From: Dimitris Liarokapis
Date: Tue, Mar 17, 2009 at 6:51 PM
Subject: Re: [ns] No rule to make target `...@v_stlobj@', needed by
`depend', while re-makeing the ns-2.33
To: Laziz Yunusov


Hi,

Try the following sequence of commands:

./configure
make clean
make depend
make
make install

Dimitris

On 3/17/09, Laziz Yunusov yla...@gmail.com wrote:

 Hi there,
 I'm developing a new protocol for ns-2. When I hit make depend in
 ns-2.33 directory, I'm getting following error message:
 make: *** No rule to make target `...@v_stlobj@', needed by `depend'.  Stop.
 Maybe it's because of updated gcc/g++?! Because I didn't have such
 error before. Any help appreciated.
 P.S. gcc version is 4.3.0 20080428 (Red Hat 4.3.0-8)



**
 
E-mail Confidentiality Notice and Disclaimer. 

This e-mail and any files transmitted with it are confidential and are intended 
solely for the use 
of the individual or entity to which they are addressed. Access to this e-mail 
by anyone else is 
unauthorised. If you are not the intended recipient, any disclosure, copying, 
distribution or any
action taken or omitted to be taken in reliance on it, is prohibited. E-mail 
messages are not 
necessarily secure. Hitachi does not accept responsibility for any changes made 
to this message 
after it was sent. 
Hitachi checks outgoing e-mail messages for the presence of computer viruses. 
**


[ns] How to communicate with both 802.1116 networks?

2009-03-17 Thread simayeji


Hello everyone!
I'm trying a simulation in which one node needs to communicate with a 802.11 
network
as well as a 802.16 BS.
I have tried multifacenode(in a NIST packet): iface1 as a 802.11AP and iface2 
as a 
802.16SS, but it does not work probably because the two interfaces does not 
communicate 
with each other.
Can you help me? Any suggestion is appreciated. Thanks very much.

[ns] ns2 node id regarding

2009-03-17 Thread muralikrishna g

hi to all..

i have asked here how to find the node id in classifier.. but i didnt get
any response as i need, but luckily i got solution.. that is name ( ) will
write the node id's in classifier...

here again my question that.. the node ids i get in tcl code via puts
$node(n) here it writes node n id..

but i am not getting this id value in classifier... name function writes
different ids those are not written by tcl code..

how do i get same node ids in both classifier.cc and node.cc


thank u in advance