[ns] Antnet in ns2.34

2011-09-23 Thread Subha Uthayaraj

Hi all,
 I tried to install Antnet(AntColony Optimization) in NS2.34.

While compiling I got error as:

cmu-trace.cc:(.text._ZN11hdr_ant_pkt6accessEPK6Packet[hdr_ant_pkt::access(Packet
const*)]+0x7): undefined reference to `hdr_ant_pkt::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1

But there is no hdr_ant_pkt::access.

I followed the instruction given in antnet link.

Anyone tried this?

I googled this error, but i couldnt get relevant information.

Help me to solve.


Thank you.

-- 
Regards,
Subha


[ns] MAC for wsn

2011-05-06 Thread Subha Uthayaraj

Hi all,

Can we use 802.11 MAC in wireless sensor networks for node to node
communication? Somebody says we should use 802.15.4 MAC in WSN... Is it
necessary? why cant we usee 802.11 MAC?


Please clear my doubt.


Thank you


-- 
Regards,
Subha


[ns] problem in trace file

2011-03-31 Thread Subha Uthayaraj

Hi all,

I got in trace file like:

s 9.85625 _20_ AGT  --- 31099 cbr 210 [0 0 0 0] --- [20:1 25:0 32 0]
[1295] 0 0
r 9.85625 _20_ RTR  --- 31099 cbr 210 [0 0 0 0] --- [20:1 25:0 32 0]
[1295] 0 0

It is showing 4th column as router(RTR) packet but corresponding 7th column
as cbr packet.

is it right?

what may be the problem?

anyone know that?


-- 
Regards,
Subha


[ns] SPAN protoccol

2011-03-09 Thread Subha Uthayaraj

Hi all,

Anyone aware of SPAN protocol in ns2?

I am using this with ns2.28... After run my tcl script, cbr packets are not
received.

Can anyone please help me?

-- 
Regards,
Subha


Re: [ns] Ns2 on Mac OS, problem invoking Nam

2011-03-04 Thread Subha Uthayaraj

Hi,

While installing NS2, may your nam had errors that is your nam has failed
while compilation. Try to compile nam separately and clear those errors.
Then nam will work.

All the best!!!

-- 
Regards,
Subha


Re: [ns] problem with NIST Mob package in NS-2.29 (zmezm 14)

2011-03-04 Thread Subha Uthayaraj

Hi,

To clear extra qualification error, you just need to remove that class.

In your case, go to 620 line of mac802.11.h. then remove *Mac802.11:: keep
calFreq as it is.*

-- 
Regards,
Subha


[ns] Invalid conversion error

2011-03-03 Thread Subha Uthayaraj

Hi,

You need to put like this:

const_castchar *

for example:

Instead of putting like
p=strcpy( answer, m );

p=*const_castchar *(*strcpy( answer, m )*)*;

It will work.

On Fri, Mar 4, 2011 at 6:30 AM, ns-users-requ...@isi.edu wrote:

 Send Ns-users mailing list submissions to
ns-users@isi.edu

 To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.isi.edu/mailman/listinfo/ns-users
 or, via email, send a message with subject or body 'help' to
ns-users-requ...@isi.edu

 You can reach the person managing the list at
ns-users-ow...@isi.edu

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Ns-users digest...


 Today's Topics:

   1. Ns2 on Mac OS, problem invoking Nam (Alessandro Coppola)
   2. problem with NIST Mob package in NS-2.29 (zmezm 14)
   3. how to find energy consumed to transfer from src to dst for
  each packet (amareswararao k)
   4. Re: Ns2 on Mac OS, problem invoking Nam (Alessandro Coppola)
   5. need DYMO Sample program. (sree ram)
   6. New cwnd algorithm (Ghassan Akrem)
   7. Need Dymo protocol simulation (sree ram)
   8. Basic Rate and Data Rate (amir)
   9. Re: Basic Rate and Data Rate (Mubashir Rehmani)
  10. ns-2.30 installation (maissa boujelben)


 --

 Message: 1
 Date: Thu, 3 Mar 2011 04:25:25 +0100
 From: Alessandro Coppola alessandro...@gmail.com
 Subject: [ns] Ns2 on Mac OS, problem invoking Nam
 To: ns-users ns-users@isi.edu
 Message-ID:
aanlktim429gevmkwas7eopytefp2jq1udx50h5mvg...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1

 Hello everybody,
 I tried to install ns-allinone-2.29.3 to my iMac Intel with Mac OS X
 10.4.11. After the install procedure, I put ns-allinone-2.29/otcl-1.11 and
 ns-allinone-2.29/lib folders into my DYLD_LIBRARY_PATH environment
 variable,
 and ns-allinone-2.29/tcl8.4.11/library folder into my TCL_LIBRARY
 environmental variable, using these commands:

  export
 
 DYLD_LIBRARY_PATH=/Users/Alex/Desktop/ns-allinone-2.29/otcl-1.11:/Users/Alex/Desktop/ns-allinone-2.29/lib
 
  export TCL_LIBRARY=/Users/Alex/Desktop/ns-allinone-2.29/tcl8.4.11/library

  Executing a simple tcl example file, I have this error message:

  ns: finish: couldn't execute nam: no such file or directory
  while executing
  exec nam out.nam 
  (procedure finish line 9)
  invoked from within
  finish

  I searched solutions on web for a long time, and I've seen that I've to
 put
 nam directory in the PATH. I tried to do this with

  export PATH=$PATH:/Users/Alex/Desktop/ns-allinone-2.29/nam-1.11/
 
  and the directory is effectively added to the path, as I can see with echo
 $PATH. But it doesn't work the same.
 Any suggestion?
 Thanks in advance

 Alessandro


 --

 Message: 2
 Date: Wed, 2 Mar 2011 21:00:43 -0800 (PST)
 From: zmezm 14 zmez...@yahoo.com
 Subject: [ns] problem with NIST Mob package in NS-2.29
 To: ns-users@isi.edu
 Message-ID: 377225.20615...@web120717.mail.ne1.yahoo.com
 Content-Type: text/plain; charset=utf-8

 good day all i hope you are having a good time , with no stress .

 i have a problem with installing the NIST Mob package in NS-2.29 on Ubuntu
 8 .04

 i patched the? pmip6-for-ns-2.29-nist.patch? patch successfully , but when
 i run
 ./install in the ns-allinone-2.29? i get this error in this exact folder
 mac/mac-802_11.h?
 can anyone pleas help me with that ..

 this is the error..
 In file included from mac/mac-802_11.cc:63:
 mac/mac-802_11.h: At global scope:
 mac/mac-802_11.h:620: error: extra qualification ?Mac802_11::? on member
 ?calFreq?
 mac/mac-802_11.cc: In member function ?void
 Mac802_11::update_watch(StatWatch*, double)?:
 mac/mac-802_11.cc:3442: warning: deprecated conversion from string constant
 to ?char*?
 mac/mac-802_11.cc:3444: warning: deprecated conversion from string constant
 to ?char*?
 mac/mac-802_11.cc:3446: warning: deprecated conversion from string constant
 to ?char*?
 mac/mac-802_11.cc:3448: warning: deprecated conversion from string constant
 to ?char*?
 mac/mac-802_11.cc: In member function ?void
 Mac802_11::update_throughput(ThroughputWatch*, double)?:
 mac/mac-802_11.cc:3485: warning: deprecated conversion from string constant
 to ?char*?
 mac/mac-802_11.cc:3487: warning: deprecated conversion from string constant
 to ?char*?
 mac/mac-802_11.cc:3489: warning: deprecated conversion from string constant
 to ?char*?
 mac/mac-802_11.cc:3491: warning: deprecated conversion from string constant
 to ?char*?
 make: *** [mac/mac-802_11.o] Error 1
 Ns make failed!
 See http://www.isi.edu/nsnam/ns/ns-problems.html for problems


 best regards to all





 --

 Message: 3
 Date: Thu, 3 Mar 2011 11:59:26 +0530 (IST)
 From: amareswararao k amar_21cent...@yahoo.co.in
 Subject: [ns] how to find energy consumed to transfer from src to dst
for each packet
 To: 

[ns] Error in NS2.28

2011-02-24 Thread Subha Uthayaraj

Hi all,

I installed NS2.28 on feroda 8 successfully. I added sensoragent with that.

While compiling I got error like:

Make:*** No rule to make target common/win32.o phenom/debug.o

I added phenom only. Why the error coming for common/win32.o? While
compiling first time it didnt exist but after added phenom agent it s
coming? why?

I checked the directory also. Iam confused.

Please anyone make me clear. What may be the error?

Thanks in advance.

-- 
Regards,
Subha


[ns] sensornets in ns2

2011-02-11 Thread Subha Uthayaraj

Hi all,

I am using sensornets-nrl in ns2.34. I created phenom. Sensor nodes doesnt
receive any phenom packets but phenom nodes continuously sending
phenomenon.

Anyone know about that?

Please i need urgent help.

Thank you

-- 
Regards,
Subha


[ns] phenom in ns2

2011-02-05 Thread Subha Uthayaraj

Hi all,

While adding phenom(sensornet) in ns2.34, i am getting error as follows:

phenom/phenom.o: In function `PHENOM::command(int, char const* const*)':
phenom.cc:(.text+0x2fc): undefined reference to `DMSG(unsigned int, char
const*, ...)'
phenom/phenom.o: In function `PHENOM::PHENOM(int)':
phenom.cc:(.text+0x390): undefined reference to `SetDebugLevel(unsigned
int)'
phenom/phenom.o: In function `PHENOM::PHENOM(int)':
phenom.cc:(.text+0x466): undefined reference to `SetDebugLevel(unsigned
int)'
phenom/phenom.o: In function `PHENOM::emanate()':
phenom.cc:(.text+0x7a5): undefined reference to `DMSG(unsigned int, char
const*, ...)'
phenom/phenom.o: In function `PHENOM::recv(Packet*, Handler*)':
phenom.cc:(.text+0x825): undefined reference to `DMSG(unsigned int, char
const*, ...)'
collect2: ld returned 1 exit status
make: *** [ns] Error 1


what it refers?

how to rectify that? any one know about that?



-- 
Regards,
Subha


[ns] sensor net in ns2

2011-02-04 Thread Subha Uthayaraj

Hi,

Anybody know about phenom,sensoragent, sensor app for ns2? Is this available
for ns2.34? where can i get that? How to integrate that?

Please anyone help me.

Thank you

-- 
Regards,
Subha


[ns] Fwd: Error in NAM creation

2011-01-26 Thread Subha Uthayaraj

-- Forwarded message --
From: Subha Uthayaraj usubha...@gmail.com
Date: Thu, Jan 27, 2011 at 9:04 AM
Subject: Error in NAM
To: ns-users@isi.edu


Hi all,

I am getting error like 

You are using the tracefile format older than 1.0a5
which will not allow you to run namgraph

while running my tcl script.

What may be the error?

Anyone have idea on that?
-- 
Regards,
Subha




-- 
Regards,
Subha


[ns] set of values

2011-01-25 Thread Subha Uthayaraj

Hi all,

can we set range of values to a variable(for example x ranges from 5 to 10)
in NS2?

what is the tcl command for that?

thank you.

-- 
Regards,
Subha


Re: [ns] Sink selection

2011-01-23 Thread Subha Uthayaraj

-- Forwarded message --
From: Subha Uthayaraj usubha...@gmail.com
Date: Mon, Jan 24, 2011 at 9:52 AM
Subject: Sink selection
To: ns-users@isi.edu


Hi all,

I am using multiple sinks with high density network in my Tcl code. That is
I am using 500 devices(sensor nodes) and 4 sink nodes which are deployed
randomly. I want to create traffic between sink and devices. My concept is
the devices should select sink node *based on transmission energy or
area*and send packets to corresponding sink node.

How to achieve that? I googled but i couldnt find answer.
**
for {set val(x) 0} {$val(x)  25} {incr val(x)} {
for {set val(y) 0} {$val(y)  25} {incr val(y)} {
for {set i 1} {$i  $val(nn)} {incr i} {
   ftptraffic $i 0 $appTime(1)
}
}
}
I used like this in my code.
I am getting error as follows:

num_nodes is set 504
INITIALIZE THE LIST xListHead

Traffic: ftp
Acknowledgement for data: on
*terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc*

what it means?

Please anyone reply me.

Thank you.





-- 
Regards,
Subha


[ns] energy model

2011-01-20 Thread Subha Uthayaraj

Hi all,

I am using energy model in my Tcl code. And my trace file contents are like
this.

N -t 0.001920 -n 333 -e 999.83

How to analyze trace file in such case?

How to identify sent received dropped packets?

Thank you.

-- 
Regards,
Subha


[ns] sleep node in IEEE 802.15.4 NS2

2011-01-16 Thread Subha Uthayaraj

Hi all,

I want to create Hexagonal Based Deployment for energy efficiency. For
that, I need to find minimum number of sensor nodes which is to be active
and remaining nodes should be in sleep state. I am using WPAN in NS2. I
couldnt make particular set of nodes into sleep node.

How to configure sleep nodes for this?

Please anyone help me.

Thank you

-- 
Regards,
Subha


[ns] monitor queue in wireless

2011-01-08 Thread Subha Uthayaraj

Hi all,

How to monitor the queue in wireless n/ws?

Given queue-monitor working for wired n/w only.

Thank you

-- 
Regards,
Subha


[ns] about trace format

2011-01-03 Thread Subha Uthayaraj

I know dropped means d in trace file.

But am getting D in trace file.

What may be the difference between these two(d and D)?

Thank u.

-- 
Regards,
Subha


[ns] about trace file

2011-01-03 Thread Subha Uthayaraj

I could not separate tcp dropped with other dropped packets like AODV
dropped.

Please anyone can help me.

Thank u.

-- 
Regards,
Subha


[ns] AWK file

2011-01-01 Thread Subha Uthayaraj

Hi all,

where i can get awk scripts for throughput, congestion etc., for WIRELESS
networks?

please help me

thank you
-- 
Regards,
Subha


[ns] throughput calculation

2010-12-27 Thread Subha Uthayaraj

-- Forwarded message --
From: Subha Uthayaraj usubha...@gmail.com
Date: Mon, Dec 27, 2010 at 2:43 PM
Subject: throughput
To: ns-users@isi.edu


Hi all,
How to calculate throughput from trace file?


Thank you.

-- 
Regards,
Subha




-- 
Regards,
Subha


[ns] congestion window

2010-12-27 Thread Subha Uthayaraj

can any one please tell me about how to plot congestion window in NS2?

where should i refer?

Thanks in advance.

-- 
Regards,
Subha


Re: [ns] sleep node in WPAN

2010-12-12 Thread Subha Uthayaraj

Hi all,

I want to make set of nodes to be active and others in sleep state. I added
following codes to node configuration:

  -initialEnergy 1 \

-rxPower 0.3 \

-txPower 0.3 \

-set_node_sleep 1 \

but this code makes all nodes enter into sleep mode after initial energy has
gone.

What should i add to make particular nodes to sleep?

Thanks in advance.

-- 
Regards,
Subha


[ns] sleep node in WPAN

2010-12-11 Thread Subha Uthayaraj

Hi all,

I want to make set of nodes to be active and others in sleep state. I added
following codes to node configuration:

  -initialEnergy 1 \

-rxPower 0.3 \

-txPower 0.3 \

-set_node_sleep 1 \

but this code makes all nodes enter into sleep mode after initial energy has
gone.

What should i add to make particular nodes to sleep?

Thanks in advance.

-- 
Regards,
Subha


[ns] Making node sleep

2010-10-15 Thread Subha Uthayaraj

Hi,
I used *set_node_sleep 1* tcl command to make a node sleep. This is
based on initial energy. If energy degrades,the node automatically goes to
sleep node. This is working perfectly.

But i want to make a node sleep at particular time and based on
received beacon strength.

What should i do? Which command ll help? or where should i make
changes?

 Please anyone help me.


Regards,
Subha


[ns] Errors while adding new routing

2010-10-13 Thread Subha Uthayaraj

I modified in all  following files to add new adding.
$NS_ROOT/Makefile
$NS_ROOT/queue/priqueue.cc
$NS_ROOT/common/packet.h
$NS_ROOT/trace/cmu-trace.h
$NS_ROOT/trace/cmu-trace.cc
$NS_ROOT/tcl/lib/ns-packet.tcl
$NS_ROOT/tcl/lib/ns-lib.tcl
$NS_ROOT/tcl/lib/ns-agent.tcl
$NS_ROOT/tcl/lib/ns-mobilenode.tcl

I am getting same type of error. This is for new routing protocol. But why
those error occured for available routings(TORA,DSR) in ns2.

Please someone make me understand.

Regards,
Subha


[ns] Issues while addind new protocol

2010-10-08 Thread Subha Uthayaraj

-- Forwarded message --
From: Subha Uthayaraj usubha...@gmail.com
Date: Oct 8, 2010 3:47 PM
Subject: Help
To: ns-users@isi.edu

Hi All,

I am getting error like this.

 (_o14 cmd line 1)
invoked from within
_o14 cmd addr
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 _o14 line 2)
(SplitObject unknown line 2)
invoked from within
_o14 addr
(eval body line 1)
invoked from within
eval $node addr $args
(default arm line 2)
invoked from within
switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 $node start-dsr
}
AODV {
set ragent [$self cre...
(procedure _o3 line 11)
(Simulator create-wireless-node line 11)
invoked from within
_o3 create-wireless-node
(eval body line 1)
invoked from within
eval $self create-wireless-node $args
(procedure _o3 line 23)
(Simulator node line 23)
invoked from within
$ns_ node
(for body line 2)
invoked from within
for {set i 0} {$i  $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0  ;# disable random motion
}

Please anyone help me.

Regards,
Subha