Re: [ns] Installation problem with ns2.29 All-in-one On Redhat-13Fedora Core 4 !!!

2005-12-20 Thread Damian Duda

Hi,

The best thing to do is:
1) switch to Linux
2) copy ns-allinone-2.29.1.tar.gz from Windows folders to e.g.
/home/yourhome/
3) decompress: I used ark under KDE (Slackware 10.2) but tar -xvf
ns-allinone-2.29.1.tar.gz should bo OK
4) the next you know

DD

- Original Message - 
From: ICE MAN [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Tuesday, December 20, 2005 8:11 AM
Subject: [ns] Installation problem with ns2.29 All-in-one On Redhat-13Fedora
Core 4 !!!



 Hello,

   compile result:
make:***no rule to make target 'VERSION'. needed by 'gen/version.c'.
stop.
Ns make failed!
see http://www.isi.edu/.../ns-problems.html

   I did this works before Install:
 I decompressed ns-allinone-2.29.1.tar.gz with Power Archiver 8.00.53
Under
 windows Xp,
 and then rebooted into Linux 13 FedoraCore4 ; copied all the folder in
ns path in
 my home directory,
 under Terminal of Linux, in that folder typed /install  installation
has began.
   some programs as tcl8 are maked successfully ( containing some
warrnings ),
 but at the end of the process Upper result was shown and there is no ns
 executable file in bin folder.

   I strongly need your help.
 [EMAIL PROTECTED]

   thank's.
 Regards,

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com



[ns] multicasting bug... help me . i am desperate

2005-12-20 Thread vInoTh

i got a bug while executing the below procedure.
(Myagent is a udp agent created that just functions as
a UDP agent that ships with ns)

proc ctrlAckDcs {} {

global ns ctrler dc

set group [Node allocaddr]

set p0 [new Agent/Myagent]

$ns attach-agent $ctrler $p0
$p0 set dst_addr_ $group
$p0 set dst_port_ 0



set rcvr1 [new Agent/Myagent]
set rcvr2 [new Agent/Myagent]
set rcvr3 [new Agent/Myagent]

$ns attach-agent $dc(1) $rcvr1
$ns attach-agent $dc(2) $rcvr2
$ns attach-agent $dc(3) $rcvr3

$ns at 0.6 $dc(1) join-group $rcvr1  $group
$ns at 1.5 $dc(1) leave-group $rcvr1 $group
$ns at 0.6 $dc(2) join-group $rcvr2 $group
$ns at 1.5 $dc(2) leave-group $rcvr2 $group
$ns at 0.6 $dc(3) join-group $rcvr3 $group
$ns at 1.5 $dc(3) leave-group $rcvr3 $group

##usage :: $agent operation type data
senderDesignation
#$ns at 0.7 $p0 send MRDA Ready.. CTLR DCs   
}


the error said 
-
: _o29 new-group 2 -2147483648 -1 cache-miss: can't
read protocols_(-1): no such variable
while executing
$protocols_($iface) upcall $code $source $group
$iface
(procedure _o30 line 9)
(mrtObject upcall line 9)
invoked from within
$mrtObject_ upcall $code $src $group $iface
(procedure _o24 line 3)
(Node new-group line 3)
invoked from within
$node_ new-group $src $group $iface $code
(procedure _o29 line 3)
(Classifier/Multicast new-group line 3)
invoked from within
_o29 new-group 2 -2147483648 -1 cache-miss
--

the same code worked in a another procedure of the
same type in another tcl script

Can you help me??? i am having headache for a week now

  

FONT color=blue
VINU
Fight Till there is some life left in you
coz Victory comes only at the end of the Fight!!IMG 
src=http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys/f.gif;/FONT

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



[ns] Energy used in transmitting 1KB of data to another peer node

2005-12-20 Thread Anup Mayank

Hi All,
I want to know how much energy is used by a wireless mobile node in
transmitting 1KB of data from one node to another node in its neighbor. Is
there any formula to find out this information. Please help me with it.

Thanks
Anup

--
I don't know the key to success, but the key to failure is trying to please
everybody.
  - Bill Cosby
My mother drew a distinction between achievement and success. She said that
'achievement is the knowledge that you have studied and worked hard and done
the best that is in you. Success is being praised by others, and that's
nice, too, but not as important or satisfying. Always aim for achievement
and forget about success.'
Helen Hayes (1900 - 1993)


Re: [ns] How to access location/position of a wireless mobile node ?

2005-12-20 Thread Anup Mayank

Hi Anupama,

Answer to your first question is as follows:

MobileNode * curNode = (MobileNode *) (Node::get_node_by_address(id_)); //
id_ is the id of node
double x,y,z;
curNode-getLoc(x,y,z);

This will assign the X,Y,Z coordinate value to your local variable.

I hope this helps.

Anup
On 12/20/05, A Anupama [EMAIL PROTECTED] wrote:


 Hi all,

 I am implementing some security extensions to AODV protocol.  I am having
 some doubts
 1)   How can I know the location information ((x,y,z) co-ordinate
 form)  of
 a mobile wireless node at protocol design time as i required to use the
 location information while sending a packet ?
 2)   How the co-ordinate system in ns/nam ((x,y,z) co-ordinate system) is
 mapped with actual location ? As the transmission range is described in
 meters , how can we know depending on the location (x,y,z) information
 whether two nodes are in transmission range or not ?

 Thanks in advance...

 Regards
 Anupama




--
I don't know the key to success, but the key to failure is trying to please
everybody.
  - Bill Cosby
My mother drew a distinction between achievement and success. She said that
'achievement is the knowledge that you have studied and worked hard and done
the best that is in you. Success is being praised by others, and that's
nice, too, but not as important or satisfying. Always aim for achievement
and forget about success.'
Helen Hayes (1900 - 1993)


[ns] How to access to neighbors of a wireless mobile node ?

2005-12-20 Thread Fabian Wolff

Hi,

I have a similar problem (I am able to get the MobileNodes), but I need to
get access to a list of the neighbors of this node. In my case, I want to
use OLSR, I need to know which nodes are available in the current network,
but it would be already enough if I would get information about the
neighbors of my current mobilenode.
I wanted to use neighbor_list_ (derived attribute from class node), but this
attribute is allways 0, thus I can't get any neighbor information for my
current node

I hope anybody can help me.

Best regards,
Fabian


 Hi Anupama,
 
 Answer to your first question is as follows:
 
 MobileNode * curNode = (MobileNode *) (Node::get_node_by_address(id_)); //
 id_ is the id of node
 double x,y,z;
 curNode-getLoc(x,y,z);
 
 This will assign the X,Y,Z coordinate value to your local variable.
 
 I hope this helps.
 

-- 
Lieber ein faules Genie als ein fleißiger Idiot

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



Re: [ns] How to access to neighbors of a wireless mobile node ?

2005-12-20 Thread Anup Mayank

Hi,

One of solving this problem can be as follows

int findNeighbors(int *neighborList)
//returns the total number of neighbors and populates neighborList
{
MobileNode * curNode = (MobileNode *)(Node::get_node_by_address(id_));
if(curNode==NULL)
{
printf(findNeighbors Error: Mobile node object points to NULL\n);
exit(1);
}
double curX,curY,curZ;
curNode-getLoc(curX,curY,curZ);
if(curX0||curY0)
{
printf(findNeighbors Error: Coordinate of mobile node out of
range\n);
exit(1);
}
MobileNode * otherNode;
double ox,oy,oz;//Location of other mobile nodes

int neighborCount=0;
//neighborList = new int[numNode];
for(int i=0;inumNode;i++) //numNode is total number of mobileNodes
{
otherNode = (MobileNode *)(Node::get_node_by_address(i));
if(otherNode==NULL)
{
printf(findNeighbors Error: Mobile node object points to
NULL\n);
exit(1);
}
otherNode-getLoc(ox,oy,oz);
if(ox0||oy0)
{
printf(findNeighbors Error: Coordinate of mobile node out of
range\n);
exit(1);
}
double dist=sqrt((curX-ox)*(curX-ox)+(curY-oy)*(curY-oy));
if(dist=250.0)
//Node lies in the transmission line
{
neighborList[neighborCount]=i;
neighborCount++;
}
}
return neighborCount;
}

This code assumes that mobile nodes have default transmission range of 250
m. It will not be tough to tweak it for heterogeneous mobile nodes.

Cheers
Anup

On 12/20/05, Fabian Wolff [EMAIL PROTECTED] wrote:

 Hi,

 I have a similar problem (I am able to get the MobileNodes), but I need to
 get access to a list of the neighbors of this node. In my case, I want to
 use OLSR, I need to know which nodes are available in the current network,
 but it would be already enough if I would get information about the
 neighbors of my current mobilenode.
 I wanted to use neighbor_list_ (derived attribute from class node), but
 this
 attribute is allways 0, thus I can't get any neighbor information for my
 current node

 I hope anybody can help me.

 Best regards,
 Fabian


  Hi Anupama,
 
  Answer to your first question is as follows:
 
  MobileNode * curNode = (MobileNode *) (Node::get_node_by_address(id_));
 //
  id_ is the id of node
  double x,y,z;
  curNode-getLoc(x,y,z);
 
  This will assign the X,Y,Z coordinate value to your local variable.
 
  I hope this helps.
 

 --
 Lieber ein faules Genie als ein fleißiger Idiot

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




--
I don't know the key to success, but the key to failure is trying to please
everybody.
  - Bill Cosby
My mother drew a distinction between achievement and success. She said that
'achievement is the knowledge that you have studied and worked hard and done
the best that is in you. Success is being praised by others, and that's
nice, too, but not as important or satisfying. Always aim for achievement
and forget about success.'
Helen Hayes (1900 - 1993)


[ns] installation problem of ns-2.1b3

2005-12-21 Thread jaya y

 hai,
 i'm using Fedora core 3 .When installing ns-allinone-2.1b3 it reports 
following problem.
 
 cc -c -O  -I./../generic -I. -DHAVE_GETCWD=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 
-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1 
-DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1 
-DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1-DTCL_SHLIB_EXT=\.so\ 
./../generic/tclPosixStr.c
 ./../generic/tclPosixStr.c: In function `Tcl_ErrnoId':
 ./../generic/tclPosixStr.c:340: error: duplicate case value
 ./../generic/tclPosixStr.c:328: error: previously used here
 ./../generic/tclPosixStr.c: In function `Tcl_ErrnoMsg':
 ./../generic/tclPosixStr.c:787: error: duplicate case value
 ./../generic/tclPosixStr.c:775: error: previously used here
 make: *** [tclPosixStr.o] Error 1
 tcl8.0 make failed! Exiting ...
 
 If you know solution to this problem, please mail me.
 
 bye,
 Y.Jaya Lakshmi
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[ns] Problems installing NS2.29.2 all in one on Kubunto linux

2005-12-21 Thread Qasim Raza Iqbal

Dear All

I am having a problem installing Ns2 all-in-one-2.29.2 on kubunto linux
with KDE destop.
I get the following error message

home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:674: error: syntax
error before Display
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:674: warning: no
semicolon at end of struct or union
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:675: warning: data
definition has no type or storage class
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:679: error: syntax
error before '*' token
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:679: warning: data
definition has no type or storage class
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tkInt.h:692: error:
conflicting types for `parentPtr'
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tk.h:779: error: previous
declaration of `parentPtr'
;
;
;
;
...and so on until it finally stops displaying


eclared `static' but never defined
/home/iqbalqr/ns-allinone-2.29/tk8.4.11/generic/tk3d.c:38: warning:
`ShiftLine' declared `static' but never defined
{standard input}: Assembler messages:
{standard input}:699: Error: symbol `dy' is already defined
{standard input}:705: Error: symbol `dx' is already defined
{standard input}:752: Error: symbol `q' is already defined
{standard input}:758: Error: symbol `p' is already defined
{standard input}:764: Error: symbol `q' is already defined
{standard input}:770: Error: symbol `q' is already defined
make: *** [tk3d.o] Error 1
tk8.4.11 make failed! Exiting ...

Please help, your help is very much appreciated

thanks

Iqbal
Aston UK



[ns] how to use PriQueue

2005-12-21 Thread Kamal Gakhar

Can anyone provide a link OR an example on how to use PriQueue (Priority
Queueing)? What should be done more in addition to specify DropTail/PriQueue
while setting up a link? As I suppose I need to set-up some parameters for
settiing priorities for different traffic types, Do I..?? How can I do it??

--
Kamal


Re: [ns] [NS] Problem to access the neighbors list of mobile nodes

2005-12-21 Thread Pedro Vale Estrela


When having problems, one should always do 

make clean; make depend; make


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of Jon de Andrés
 Sent: segunda-feira, 19 de Dezembro de 2005 1:15
 To: ns-users@ISI.EDU
 Subject: Re: [ns] [NS] Problem to access the neighbors list of mobile
 nodes
 
 
 I've never used 'make depend' in order to compile ns2. The error you paste
 don't have any relation with aodv or the nb_delay atribute.
 
 I used the nb_delay attitrbute (double) in the neighbour class, in the
 aodv_rtable.h file. Because you don't use it, you must delete this line:
 
   tcl.evalf(puts \\t%d\t%f\,nb-nb_addr, nb-nb_delay);
 
 or delete 'nb-nb_delay' and '%f' in it.
 
 Bye
 
 El Domingo 18 Diciembre 2005 16:24, olivier berho escribió:
  Hi,
 
  I tried the following code in order to access the neighbords list of a
 node
  using AODV.
 
 
 
 /*
 *
 / Code I used :
 
  Olivier,
 
  really i don't see anywhere the link between the neighbour list in C++
 and
  the
  variable neighbour_ you say. I'm making a job with AODV and QoS routing,
  and i've made a Tcl command for AODV agent to show its neighbour list
 and
  their delays between the agent.
 
  I post it for you:
 
  if(strcmp(argv[1], show-table)) {
   AODV_Neighbor *nb = nbhead.lh_first;
 
   tcl.evalf(puts \\nDelay Table of Node: %d \, index);
   tcl.evalf(puts \\tNode\tDelay\);
   for(;nb;nb=nb-nb_link.le_next ){
   tcl.evalf(puts \\t%d\t%f\,nb-nb_addr, nb-nb_delay);
   }
  return TCL_OK;
 }
  You must paste it or something similar in the command function in the
 AODV
  agent. However, the nb_delay attribute you can see should be deleted or
  implemented in the aodv_rtable.
 
  I hope this could help you.
 
  Bye Olivier.
 
 
 /*
 *
 /
 
 
  Then when I tried to recompile ns, I made make depend and then make
 in
  the ns directory and I got the following error :
 
 
 /*
 *
 / error I got :
 
  In file included from ../../../config.h:54,
   from logparse.h:7,
   from tr-stat.cc:24:
  ../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclared
 
 
 /*
 *
 /
 
 
  Is it because of this : However, the nb_delay attribute you can see
 should
  be deleted or
  implemented in the aodv_rtable that I did not understand ?
 
  I really wish someone could explain me why I got that error and what I
  should do to correct it.
 
  Thanks a lot,
 
  Olivier.
 
  On 12/10/05, Olivier Berho [EMAIL PROTECTED] wrote:
   Hello,
  
   I am working on a project about communication between  mobile nodes
 and
   I am nooby in tcl and NS2.
   My first part is about sending packets to each nearly neighbors of a
   node.
  
   I know that there is a variable neighbors_ which contains the
   neighbors of each node but I cannot access these informations. First
   because I have some problems to access the list using tcl and second
   because The list seems to be empty when the topology of my network is
   created.
  
   I  am using the AODV routing protocol which should update itself the
   variable of the neighbors but I don't know how access it.
  
   Thanks a lot for help,
  
   Olivier.
  
  
   P.S : I am a French student,and I apologize for the mistakes in my
   English.
 
 --
 Jon de Andrés Frías
 GPG: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x4E856203




[ns] some problem about the packet arrivals in NS-2

2005-12-21 Thread Hailun Tan


Hi, All:
   I am implementing some routing protocol in network layer. I check the
source code and find out that when the packet arrives the desired
destination, it was received immediately by the application layer of the
destination.
 it did not invoke the recv method in the routing agent, which can be also
verified through the trace file (see the below section from AODV
simulation):

s 7.738382465 _7_ RTR  --- 6 cbr 532 [0 0 0 0] --- [7:2 9:0 30 14] [0]
0 0
r 7.744176352 _14_ RTR  --- 6 cbr 532 [13a e 7 800] --- [7:2 9:0 30
14] [0] 1 0
f 7.744176352 _14_ RTR  --- 6 cbr 532 [13a e 7 800] --- [7:2 9:0 29 1]
[0] 1 0
r 7.750370321 _1_ RTR  --- 6 cbr 532 [13a 1 e 800] --- [7:2 9:0 29 1]
[0] 2 0
f 7.750370321 _1_ RTR  --- 6 cbr 532 [13a 1 e 800] --- [7:2 9:0 28 9]
[0] 2 0

(is it supposed to have something like:
r 7.  _9_ RTR   
here???
)

r 7.756424481 _9_ AGT  --- 6 cbr 532 [13a 9 1 800] --- [7:2 9:0 28 9]
[0] 3 0
?

My question is how can it happen? If it is specified by NS-2 by default.
Doe it mean that I cannot do anything in netlayer when the packet received
its destination Please advise!








--
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.



[ns] Loading a large movement trace file

2005-12-22 Thread Marco Fiore

Hi all,

I am experienceing the following problem:
I have a large 
movement trace file (around
200 nodes whose speed is updated every 0.5s
for 2000s of simulation), which is 40Mb in size
(evry line of the file 
is a setdest command).

When I run the simulation, it takes a very
long 
time (I do not know how much, I stopped
it after 30 mins)  after the 
INITIALIZE THE
LISTHEAD xListHead message is displayed
and before the 
actual start of simulation
(i.e. simulatied time 0 is not reached).

I 
think this is due to the large movement trace
file, but I am not sure, 
and I do not know what
to do to avoid that.

Does anyone have any idea 
about how to get
rid of such a problem, or any experience with
similar 
issues?

Thanks,

Marco Fiore



[ns] Can 802.11g in NS-2.1b6? Or 802.11b?

2005-12-22 Thread boon

Hi all,

Has anyone tried 802.11b or 802.11g in NS-2.1b6? Did it work? Can you teach
me where and how to make the changes?

Thanks in advance




[ns] how to output a node's energy in ns2

2005-12-22 Thread 黄民肃

Dear someone

I was using  ns2, how to output some node's energy in a moment?

thanks


Re: [ns] loss of energy without any reason in mobile node

2005-12-22 Thread Arun_Sathanur

Hi,

To see the RTS/CTS packets, turn the MAC trace ON in your tcl script.

Regards
Arun

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of jagadish kranti
Sent: Friday, December 23, 2005 11:10 AM
To: ns-users@ISI.EDU
Subject: [ns] loss of energy without any reason in mobile node


 Hi everybody,
 
I have simulated a wireless mobile adhoc network. In the
trace files it was found that node_(2) is not sending any kind of
packets to other nodes between 41 th second and 51 th second. But I
found loss of energy from 98.8 to 98.2. I am confused why this loss of
energy is happenning. Is there any hidden thing which we are not getting
in the trace files or is it because of RTS, CTS packets.
If it is because of RTS and CTS packets, please tell me how
to see them in trace files. 
 
 Thanks in advance,
 Jagadish
 


-
 Yahoo! DSL Something to write home about. Just $16.99/mo. or less



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.



Re: [ns] why node 3 is not define?

2005-12-23 Thread Qasim Raza Iqbal

Hi,

I also have that problem, infact in my case when running nam for a similar
scenario, it shows me node 0,1,2 and 3 a not defined until they actually
start the movement.

Another think which I need to ask you is that why have you attached the
same tcp to node 0 2 and 4 and sink to node 1 and 3. Can you use the same
agent on different nodes? Is that a requirement for the channel to work
properly or your just testing to see it works

Please let me know

regards

Qasim Iqbal


 hi ,
  i don't know exactly, why it worked by making single change. But i made
 the change  by guessing it as hidden terminal problem.

  Exact reason is most welcome.

  The modified line is highlighted  with yellow and i have changed 20.0 to
 10.0 in that line which is highlighted with blue.

  # ==
  # Define options
  # ==
  set val(chan)   Channel/WirelessChannel;# channel type
  set val(prop)   Propagation/TwoRayGround   ;# radio-propagation
 model
  set val(netif)  Phy/WirelessPhy;# network interface
 type
  set val(mac)Mac/802_11 ;# MAC type
  set val(ifq)CMUPriQueue;# 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) 5  ;# number of mobile
 nodes
  set val(rp) DSR   ;# routing protocol

  # ==
  # Main Program
  # ==

  #---
  # Initialize Global Variables
  #---
  set ns_ [new Simulator]
  $ns_ use-newtrace
  set tracefd [open simTest.tr w]
  set namtrace[open simple-wireless.nam w]
  $ns_ trace-all $tracefd

  # set up topography object
  set topo   [new Topography]

  $topo load_flatgrid 500 500
  $ns_ namtrace-all-wireless $namtrace 500 500

  #--
  # Create God
  #--
  create-god $val(nn)

  #--
  #  Create the specified number of mobilenodes [$val(nn)] and attach
 them
  #  to the channel.
  #  Here two nodes are created : node(0), node(1), node(2), node(3),
 node(4)

  # 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) \
   -channelType $val(chan) \
   -topoInstance $topo \
   -agentTrace ON \
   -routerTrace ON \
   -macTrace OFF \
   -movementTrace OFF

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

  #---
  # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
  #---
  $node_(0) set X_ 5.0
  $node_(0) set Y_ 2.0
  $node_(0) set Z_ 0.0

  $node_(1) set X_ 390.0
  $node_(1) set Y_ 385.0
  $node_(1) set Z_ 0.0

  $node_(2) set X_ 132.0
  $node_(2) set Y_ 423.0
  $node_(2) set Z_ 0.0

  $node_(3) set X_ 245.0
  $node_(3) set Y_ 150.0
  $node_(3) set Z_ 0.0

  $node_(4) set X_ 350.0
  $node_(4) set Y_ 85.0
  $node_(4) set Z_ 0.0

  #-
  # Now produce some simple node movements
  #-
  $ns_ at 50.0 $node_(1) setdest 25.0 20.0 15.0
  $ns_ at 10.0 $node_(0) setdest 20.0 18.0 1.0

  $ns_ at 60.0 $node_(2) setdest 10.0 18.0 1.0

  $ns_ at 10.0 $node_(3) setdest 30.0 28.0 10.0

  $ns_ at 10.0 $node_(4) setdest 25.0 38.0 1.0

  # Node_(1) then starts to move away from node_(0)
  $ns_ at 100.0 $node_(1) setdest 490.0 480.0 15.0

  # Setup traffic flow between nodes
  # TCP connections between node_(0) and node_(1)

  set tcp [new Agent/TCP]
  $tcp set class_ 2

  set sink [new Agent/TCPSink]
  $ns_ attach-agent $node_(0) $tcp
  $ns_ attach-agent $node_(1) $sink
  $ns_ attach-agent $node_(2) $tcp
  $ns_ attach-agent $node_(3) $sink
  $ns_ attach-agent $node_(4) $tcp
  $ns_ connect $tcp $sink

  set ftp [new Application/FTP]
  $ftp attach-agent $tcp
  $ns_ at 10.0 $ftp start

  #--
  # Tell nodes when the simulation ends
  #--
  for {set i 0} {$i  $val(nn) } {incr i} {
  $ns_ at 150.0 $node_($i) reset;
  }

  $ns_ at 150.0001 stop
  $ns_ at 150.0002 puts \NS EXITING...\ ; $ns_ halt
  proc stop {} {
  global ns_ tracefd
  $ns_ 

Re: [ns] what is problem with my tcl

2005-12-24 Thread Filippos Kolovos

You have no specific problem with your Tcl.
Since you have installed it, you only have to
provide the path to it during configure with the
following parameter:

./configure --with-tcl={your tcl8.4.5 path} --with-tcl-ver=8.4.5--with-tk={your
tk8.4.5 path} --with-tk-ver=8.4.5

What is meant with path is i.e. /usr/bin/tcl8.4.5, or whereever is your
Tcl, Tk, etc

I also attach a page that might be useful to you when you will install the
other packages
for NS-2.
Try the instructions found here:
http://nslab.ee.ntu.edu.tw/courses/ns-tutorial/labs/lab1.html

I have used this method and I installed, with user priviledges, Tcl8.4.5,
Tk8.4.5, otcl, tclcl,
ns-2.29, nam-1.11, etc in my home directory under Debian Linux 3.1 where I'm
working.
I also got the same error as you when I did not specify the path to the Tcl,
Tk, etc.

Try the page above and I think that you will have no problems

-Fk

On 12/23/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 -- Forwarded message --
 From: Qingyu Miao [EMAIL PROTECTED]
 To: ns-users@ISI.EDU
 Date: Fri, 23 Dec 2005 16:21:50 +0800
 Subject: [ns] what is problem with my tcl
 Hi
 I am a green hand on NS. when I configure NS in my LINUX(redhat), there is
 a
 problem.
 I have installed tcl8.4.5 and tk8.4.5 in my Linux.
 Does anyone know what could be the problem and what should I do? Thanks.
 Below is the error message when configure.
 BR-Miao Qingyu

 -
 sky:/home/emiaoqy/mesh/software/ns-2.1b9a ./configure
 No .configure file found in current directory
 Continuing with default options...
 checking build system type... i686-pc-linux-gnu
 checking host system type... i686-pc-linux-gnu
 checking target system type... i686-pc-linux-gnu
 checking for gcc... gcc
 checking for C compiler default output... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for executable suffix...
 checking for object suffix... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for g++... g++
 checking whether we are using the GNU C++ compiler... yes
 checking whether g++ accepts -g... yes
 checking how to run the C preprocessor... gcc -E
 checking for ANSI C header files... yes
 checking for string.h... yes
 checking for main in -lXbsd... no
 checking for socket in -lsocket... no
 checking for gethostbyname in -lnsl... yes
 checking for dcgettext in -lintl... no
 checking for getnodebyname in -ldnet_stub... no
 checking that g++ can handle -O2... no
 checking standard STL is available... no
 checking for tcl.h... -I/usr/local/include
 checking for libtcl8.3... -L/usr/lib -ltcl
 checking for init.tcl... no
 checking for tclsh8.3.2... no
 checking for tclsh8.3... no
 checking for tclsh... /usr/bin/tclsh
 configure: error: Installation of tcl seems incomplete or can't be found
 automatically.
 Please correct the problem by telling configure where tcl is
 using the argument --with-tcl=/path/to/package
 (perhaps after installing it),
 or the package is not required, disable it with --with-tcl=no.







--
Filippos N Kolovos

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

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


[ns] instl of gt-itm and sgb2ns

2005-12-25 Thread cp kothari

  
i am unable to see any executive file in bin dir of gt-itm as stated in the 
read me doc.
i am sending the proc adopted by me for ready ref. i am using FC3 OS.
thanx for reply and hope u w'd help me.

[EMAIL PROTECTED] ~]# cd gt-itm

[EMAIL PROTECTED] gt-itm]# ./configure
bash: ./configure: No such file or directory

[EMAIL PROTECTED] gt-itm]# configure
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking compression for manpages... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for unistd.h... (cached) yes
checking for limits.h... (cached) yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking for required early compiler flags... (cached) (cached)  
_LARGEFILE64_SOURCE
checking for 64-bit integer type... (cached) long long
checking for struct dirent64... (cached) no
checking for struct stat64... (cached) yes
checking for off64_t... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking for getcwd... (cached) yes
checking for opendir... (cached) yes
checking for strstr... (cached) yes
checking for strtol... (cached) yes
checking for strtoll... (cached) yes
checking for strtoull... (cached) yes
checking for tmpnam... (cached) yes
checking for waitpid... (cached) yes
checking for strerror... (cached) yes
checking for getwd... (cached) yes
checking for wait3... (cached) yes
checking for uname... (cached) yes
checking for realpath... (cached) yes
checking dirent.h... yes
checking for errno.h... (cached) yes
checking for float.h... (cached) yes
checking for values.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/modem.h... (cached) no
checking termios vs. termio vs. sgtty... (cached) termios
checking for fd_set in sys/types... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for sys/time.h... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for tm_zone in struct tm... (cached) yes
checking for gmtime_r... (cached) yes
checking for localtime_r... (cached) yes
checking tm_tzadj in struct tm... (cached) no
checking tm_gmtoff in struct tm... (cached) yes
checking long timezone variable... yes
checking for st_blksize in struct stat... (cached) yes
checking for fstatfs... (cached) yes
checking for 8-bit clean memcmp... (cached) yes
checking for memmove... (cached) yes
checking proper strstr implementation... yes
checking for strtoul... (cached) yes
checking for strtod... (cached) yes
checking for strtod... (cached) yes
checking for Solaris2.4/Tru64 strtod bugs... (cached) ok
checking for ANSI C header files... (cached) yes
checking for mode_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for socklen_t... (cached) yes
checking for opendir... (cached) yes
checking union wait... (cached) yes
checking for strncasecmp... (cached) yes
checking for BSDgettimeofday... (cached) no
checking for gettimeofday... (cached) yes
checking for gettimeofday declaration... (cached) present
checking whether char is unsigned... (cached) no
checking signed char declarations... (cached) yes
checking for a putenv() that copies the buffer... (cached) no
checking for langinfo.h... (cached) yes
checking whether to use nl_langinfo... yes
checking for sin... (cached) no
checking for main in -lieee... (cached) yes
checking for main in -linet... (cached) no
checking for net/errno.h... (cached) no
checking for connect... (cached) yes
checking for gethostbyname... (cached) yes
checking how to build libraries... shared
checking for ranlib... (cached) ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... Linux-2.6.9-1.667
checking for dlopen in -ldl... (cached) yes
checking for ar... (cached) ar
checking for build with symbols... no
checking for sys/ioctl.h... (cached) yes
checking for sys/filio.h... (cached) no
checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... O_NONBLOCK
checking how to package libraries... standard shared library
creating ./config.status
creating Makefile
creating dltest/Makefile
creating tclConfig.sh


[EMAIL PROTECTED] gt-itm]# make all
gcc -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DTCL_DBGX= -Wall 
-Wconversion -Wno-implicit-int -fPIC 

[ns] about using RIP or OSPF

2005-12-26 Thread 植山 能成

Hi!

I want to use RIP or OSPF as routing protocol in ns2.
What I understand now is:
 Using RIP, I have to add following script.
  $ns rtproto DV
 Using OSPF, I have to add following script.
  $ns rtproto LS

Is that right?

Thanks.

Yoshinari Ueyama.



Re: [ns] lost and dropped packets

2005-12-27 Thread Kamal Gakhar

any consideration to distance between nodes..??

On 27 Dec 2005 04:16:07 -, cp kothari [EMAIL PROTECTED] wrote:



 while simulating wireless network using AODV and DSR protocol for 3 nodes
 i am getting lost packets of the order ~1000 packets out of total ~5000
 packets transmitted. what could be the reason?
secondly packets are being dropped at the source node itself despite
 increasing IFQ to ~1000. any answers?

 ...kothari...




--
Kamal


[ns] urgent please: mac datarate

2005-12-27 Thread Debora Meyhofer Ferreira

Hello!

I'm simulating a wired cum wireless scenario with UDP/CBR in Ns2-28
and I need to simulate with diferent bandwidth (1Mb, 2Mb, 5.5Mb and
11MB).

I know that
Mac/802_11 set dataRate_ 11Mb
change the bandwidth.

But I tried to change the bandwidth using:

set mac(0) [$n(0) set mac_(0)]
$mac(0) set dataRate_ 11Mb

and

set mac(0) [$n(0) getMac 0]
$mac(0) set dataRate_ 11Mb

and it doesn't worked!!! Any idea what is wrong?

Debora



Re: [ns] Problem on DV protocol

2005-12-27 Thread Marcio Novais

You must use this sintax

$ns rtproto DV $r1 $r2

instead of

$ns rtproto DV $r1 $r2

this must solve your problem.

I had this same problem once. Smoetimes you need to use   when you want to
set some parameters in NS.

Marcio.

2005/12/26, Jie Feng [EMAIL PROTECTED]:


 Hi all:

 I have a problem on running DV protocol:

 I want to enable only a few nodes run DV protocol in ns-2.26, and I used
 command below:

 $ns rtproto DV $r1 $r2

 There is some thing wrong:
 
 wrong # args: should be set varName ?newValue?
 while compiling
 set nodeslist _o10 _o12
 (eval body line 1)
 invoked from within
 

 I try to adjusted ~ns/tcl/rtglib/route-proto.tcl.

 eval set nodeslist $args

 becomes

 eval set nodeslist \$args


 but it still does not work!!

 Please help me ! thanks so much!

 Jie



[ns] question about Http class in ns-2

2005-12-27 Thread Xiaoliang (David) Wei

Hi,
 I am trying to use Http traffic as a background traffic for my
simulations. I wonder if there is a class for this purpose (generating http
traffic as background traffic, without modeling the detailed web accesses
such as link references and etc).
 I scanned through the source code tree of NS-2.28. It seems that there
are two definition of class Http. One is in the webcache/http.cc and the
other is in the tcl/http/http.tcl.  My understanding is that the Http class
in webcache is simulating more detailed web access behaviour while the http
tcl class is simulating the background traffic effect.
 However, the tcl http class is overridden by the webcache http class,
and there is no documentation for the tcl http class. So I have two
questions:
1. Is the tcl http class still usable? (I can run it by explicitly linking
to that class with source command).
2. Do I have a better choice to simulate web traffic as background traffic?
3. Does it make sense to write a short document for the tcl http class? (I
may do that if it makes sense.)
 Thank you.

-David

--
Xiaoliang (David) Wei  Graduate Student, [EMAIL PROTECTED]
http://www.cs.caltech.edu/~weixl
***


[ns] trafiic generation

2005-12-27 Thread cp kothari

  
for auto traffic generation trough cbrgen.tcl file i am getting starting from 
node 1 to ...   whereas i want to get it from node 0 to  . i have gone 
through the script but not able to crack it.
   CAN ANY ONE TRIED THAT?

...kothari...


[ns] Random cross-traffic generation

2005-12-27 Thread Amit Mondal

Hi All,
Any idea about how to generate random cross traffic in ns-2. For my 
simulation, to evaluate my heuristics I need to have Internet like random 
cross-traffic. Any suggestion or direction will be appreciated!

Rgds
Amit




Re: [ns] Makefile:233: *** commands commence before first target. Stop.

2005-12-28 Thread Kamal Gakhar

though not familiar with this paper's detail or code it seems to me a
configuration problem. check out path etc. and also source code (whether
written for earlier or later versions). did you need to install their piece
of code, if yes, then using it directly on an ns already on ur system might
not be feasible.
good luck.

On 28 Dec 2005 08:54:09 -, Amita Singh [EMAIL PROTECTED] wrote:


 Hi all!
 when I execute make in ns-2.26 in order to implement the paper
 Implementing a new manet unicast routing protocol using ns2 I get the
 following error:
 Makefile:233: *** commands commence before first target.  Stop.
 What should I do to remove this error?
 Please help.
 Amita




--
Kamal


[ns] Help Needed With NOAH

2005-12-30 Thread Sabbir Ahmed

Hi

I am using ns-allinone-2.1b9a on RedHat 6.2. I have
installed NOAH (old version) routing protocol
successfully. I need help regarding manual routing
with NOAH. How do I add routes manually ? Can some one
help me with examples ? The example at page
http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/ is
for the updated version of NOAH.

One more question .. some of my scripts is working
properly with NOAH but with some I am getting
segmentation fault (these are working fine with DSDV).
Is this because I haven't set the routes ? 

Finally where is the Dumb Agent in ns-allinone-2.1b9a
... Are those included in ns-allinone-2.1b9a or later
version (I am not using gcc3.2 version of
ns-allinone-2.1b9a) ?

Regards

Sabbir





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



[ns] Queries on NS2

2005-12-31 Thread ramya r

  

Dear Sir,
Query 1.
Does NS2 support position based routing protocol in ad hoc neworks.

The basic Node structure does not include a position paramter.
Is it feasible to extend the basic node structure to perform position based 
routing?

Query 2.

Is EY- NPMA supported in NS2?



Kindly reply


[ns] Queries on NS2

2005-12-31 Thread ramya r

  
Dear Sir(s),
Query 1.
Does NS2 support position based routing protocol in ad hoc neworks.

The basic Node structure does not include a position paramter.
Is it feasible to extend the basic node structure to perform position based 
routing?

Query 2.

Is EY- NPMA supported in NS2?



Kindly reply


[ns] random-motion parameter of a wireless node

2006-01-01 Thread Sita S. Krishnakumar

Hello,
What does setting random-motion to 1 do to a wireless node?
I see no movement in nam when I run a simulation.
Thanks,
Sita





[ns] Using Linkstate Routing protocol in ns2

2006-01-01 Thread aric laston

I wish to know how to install the static version of ns2.
Actually i want to run the linkstate routing protocol of ns2. Ns2 supports 
dv,static,session and multicast protocols.
(if i write $ns rtproto LS (where ns is object of Simulator) in TCL it gives me 
an error message, but if i write $ns rtproto DV ,it does not give me any error 
message)
The code for linkstate protocol is present but it is not directly supported by 
ns2 i.e. only if we install the static library for ns2,then we can use the 
linkstate protocol. so i want to install static ns2,what changes are required 
for static ns2 while compiling its make files?Will i be able to use the 
linkstate routing protocol after this?
  Student of Computer Engineering,
Bombay University
India

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


[ns] who to run AODV

2006-01-02 Thread mohd hammad

HI ALL
Iam trying to runing the AODV protocol in NS2 2.29 but
it is givening the below  lines during run the
AODV.TCL 
invalid command name Agent/rtProto/AODV
  while executing 
Agent/rtProto/AODV instproc init args{ 
$self next $args
}
  (fileaodv.tclline 19)

Please if any body know the solution for this problem
can help me
 Kindly Reply
mohammad hammad



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



[ns] Movement traces

2006-01-03 Thread karim zerioh

Hi,

Is there any traces publicaly available of movement
traces of users of a location aware application such
as a city guide for example?

Thanks




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com



[ns] How to use two version of NS2?

2006-01-03 Thread Guy Israeli

Hi all,

I would like to use two version of NS2, and old version and a new version.
I know how to install 1 version of ns.
what i would like to do is, for instance to call each ns version like this
in terminal/bash

 ns-old example.tcl

and for the new

ns-new example.tcl

thus running example.tcl on two differrent version of ns

how do I change the ns calling name so i can use whatever calling name
that i want?

thanks a lot,

Guy



Re: [ns] new wiki for nsnam project

2006-01-05 Thread Tom Henderson

 Message: 22
 Date: Thu, 5 Jan 2006 19:40:51 +
 From: Soo-Hyun Choi [EMAIL PROTECTED]
 Subject: Re: [ns] new wiki for nsnam project
 To: Tom Henderson [EMAIL PROTECTED]
 Cc: ns-developers [EMAIL PROTECTED], ns-users@ISI.EDU
 Message-ID:
 [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1
 
 I have long been thought of including ns-2 mailing list search site in
 the ns-2 FAQ section. Many subscribers in this list doesn't seem to
 know that such site is existing.
 
 - mailing list archive search site 
 (http://www.isi.edu/nsnam/htdig/search.html)

 I could have modified the ns-2 Wiki, but it would be better to leave
 it so that Tom could insert it in an appropriate section at the Wiki.
 You may want to create a bullet saying How to search ns-2 mailing
 list archives? and include the above link.
 
 Soo-Hyun 

Thank you for the suggestion; I will make the addition.  I also plan to more 
prominently integrate Google searching on the wiki, to encourage more search 
before posting.

Tom




[ns] aodv/aodv.cc:361: failed assertion problem

2006-01-05 Thread cherie

Dear ns2 users,
   
  I have the problem: aodv/aodv.cc:361: failed assertion `rt-rt_flags == 
RTF_UP' when I am using AODV to transfer some data. Then no matter what I did 
to solve it (remove rt-rt_flags == RTF_UP in aodv.cc or put this into the 
second if condition), still have the same problem. I did use make clean' and 
make. Why it seems not changing anything in aodv.
   
  My questions are: 
   
  1. How to solve this problem
   
  2. How to make changes in 'aodv.cc effective
   
  Thanks a lot in advance,
   
  Cherie
   


-
 Yahoo! DSL Something to write home about. Just $16.99/mo. or less


[ns] Difference between red.cc and queue.cc

2006-01-06 Thread #LIM XIAOWEI#

Hi!

 

There is a question that we would like to seek your expertise on and that is 
the queue control. We understand and have found the queue control files 
available in NS-2 such as RED.CC, FAIR QUEUING.CC...and QUEUE.CC . 

However, there are certain areas that we don't quite understand.

1) What is the difference between queue.cc and red.cc since they are both 
queing methods?( We understand that RED is part of QUEUE hierarchy)

 

2) How do we integrate red.cc into the network we are simulating? Do we save it 
as a queue.cc file before compiling?

 

   Looking forward to your reply=)

 

   Regards,

   Zoe 



[ns] URGENT!!! weird segmentation Fault

2006-01-06 Thread manjusha


Hello ns-users,

I've written a unix shell script to run 160 simulations, one after the other,
by placing the command ns tcl-script trafic file in a loop.
When I run the shell script, I'm getting segmentation faults for some 
simulation runs.
However, if I run those simulation runs from the command line / using gdb,, the 
program exits 
normally without any segmentation fault. So, I'm unable to figure out where the 
problem is.
The shell script is perfectly fine. Has anyone got a solution to this problem?

Regards,
Manjusha





[ns] QoS routing protocols in ns-2

2006-01-07 Thread Vinod


hi all,

im trying to simulate my own qos routing protocol for mobile adhoc
network (MANET). i would like to compare its performance with other
similar protocols simulated in ns2.

but how do i get the source code (ns-2) of other routing protocols. there
are very few of them in ns-2 and i guess none are qos aware. can anyone
give me pointers/links where i can get the source codes.

thanx in advance,
vinod
--
Vinod Kone,
Btech,Computer Science,
VIII sem,
Room 177,Kapili,
IIT Guwahati.




[ns] problems with wireless

2006-01-07 Thread lewapryb

 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?? 
 
 





Re: [ns] How to calculate bandwidth from transmission power?

2006-01-08 Thread Daniel Mahrenholz

Hi, 

On Sunday 08 January 2006 14:19, you wrote:
 As you said, I have just found that, in NS2, the bandwidth can be set by
 Phy/WirelessPhy set bandwidth_ 2e6 and it will be constant, even though
 the transmission power is changed. I am not sure why bandwidth is not
 related to transmission power. According to my understand, when the
 transmission power is decreased, the communication range will be decreased.
 It is logical true. However, decreasing of transmission power should
 increase SNR. Once SNR increases, the bandwidth or data rate should be
 decreased somehow. Do you think  so? Could you give me an explaination if i
 am wrong?

You have to keep in mind that the received signal strength is not only defined 
by the sender. You can increase the transmission range just by attaching an 
external antenna with positive gain to the receiver. So the signal strength 
is defined by the transmission power, the antenna gains, and the distance. 
Above this you have the modulation (with a maximum possible bandwidth) that 
requires a certain SNR. This does not mean that the bandwidth will 
automatically increase with an increasing SNR because the sender does not 
know about the SNR at the receiver side. The current 802.11 implementation 
does not has multi-rate support. There is a new implementation (s. wiki for 
more information) that has, but I cannot tell you exactly how it works. If 
you use the current implementation you have to decide for a bandwidth, set it 
in the PHY layer and set the RXThresh accordingly. 

Just as an example what you can do with antennas (and an unamplified 802.11b 
card) lock here: 
http://www.unwiredadventures.com/unwire/2005/12/defcon_wifi_sho.html
They reached more than 125 miles!

Daniel.
-- 
+-[Dipl.-Inf. Daniel Mahrenholz / Otto-von-Guericke Universität Magdeburg]-+
| http://ivs.cs.uni-magdeburg.de/~mahrenho  Geb. 29 Raum 407   |
| mailto:[EMAIL PROTECTED]  Tel. +49-391-67-12788  |
+--+



[ns] wrong node routing agent error... I couldn't find anything helpful in the archive...

2006-01-08 Thread cenker demir


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
touching 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 



Re: [ns] can we use linkstate routing prorocol in ns2?

2006-01-08 Thread Vincent Nauwelaers

checkout ~/ns2/linkstate and chapters 27 - 30 in NS manual and also chapter
5 !

you use LS by writing the following in your TCL script :

$ns rtProto LS

- Original Message -
From: aric laston [EMAIL PROTECTED]
To: network simulator ns-users@ISI.EDU
Sent: Friday, January 06, 2006 10:39 AM
Subject: [ns] can we use linkstate routing prorocol in ns2?



 can we use linkstate routing prorocol in ns2?if yes,how.please let me know


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





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 amp; 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]



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.htmlhttp://www.visi.com/%7Ebarr/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
 paths
   If you are using sh, you can set it like:  export
 LD_LIBRARY_PATH=paths

 (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!!!




[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 



[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] 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



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




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
  touching 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] 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



[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] 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] 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] 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] 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 
}



[ns] Fwd: error message while using linkstate routing protocol in ns2

2006-01-10 Thread aric laston



Note: forwarded message attached.

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

[ns] new 80211

2006-01-10 Thread Debora Meyhofer Ferreira

Hello!

I want to know if in this version I can simulate in a mixed scenario
(wired cum wireless) different datarate in the same AP (infrastructure
mode) for downlink UDP traffic. If yes, how can I do that? I'm trying
to simulate mac anomaly ...

Thanks for any help...

Debora



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

2006-01-10 Thread Pedro Vale Estrela


Hi,
Both mobiwan and binding updates are related to IP mobility support, which
has its own security problems like all the other areas.




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of Breno Caetano
 Sent: segunda-feira, 9 de Janeiro de 2006 21:27
 To: ns-users@isi.edu
 Subject: [ns] hi,i am a student of sciences of the computation and i have
 a problem
 
 
  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] Clarification required regarding propagation models.

2006-01-10 Thread Madhu Hosaagrahara

Hello,
I'm trying to limit the receiving and carrier sensing range of nodes  
in an IEEE 802.11 network. I've set the RXThresh_ and CSThresh_  
values using the ~ns/indep-utils/propagation/threshold.cc program  
while referring to http://mailman.isi.edu/pipermail/ns-users/2004- 
April/041380.htmlfor the values. However, I noticed a significant  
differenece between the range I tried to set and distCST_ reported by  
WirelessChannel::getDist() function.
Upon investigation, I found that the propagation model used to  
determine whether a packet is received varies: if the distance  
between the nodes is less than the crossover distance, then the Friis  
model is used; otherwise, the Two Ray Ground model is used. (see the  
function TwoRayGround::Pr(...) in ~ns/mobile/tworayground.cc) :
However, the propagation model used to calculate the carrier sensing  
distance simply uses the TwoRayGround model (see TwoRayGround::getDist 
(...)). It never uses the Friis model at all.
This difference is giving me some grief - since setting both  
RXThresh_ and CSThresh_ to the same value gives different results.

Could someone clarify if this is intentional - and if so, why? I'm  
currently planning to modify the CSThresh_ to also use Friis if the  
distance between nodes is less than the crossover distance. Is that a  
bad idea?
Further, I examined the crossover distance calculated by ~ns/indep- 
utils/propagation/threshold.cc using the values specified in the  
email referenced above. The crossover distance returned was 226.194m.  
Would someone care to comment on this value?

Thanks,
~Madhu.



[ns] Node id_

2006-01-10 Thread Christoph Schroth

Hi all,
 
 
I actually have a very similar problem and also woul like to get to
To know the current node I am in from the Interface Queue, for example.
 
How can I find out the node id and other related data such as mobile
node 
Position etc.?
 
 
Thank you so much,
 
 
Christoph


[ns] Zero based routing avail in ns2?

2006-01-10 Thread ramya r

  
Hi,

I needto construct a topology that has aset of mobile nodes giving position 
updates periodically to a central server inits home region.

I need to define this home region and make the mobile node aware when it 
movesfrom onehome region to another. The mobile node needs tobe aware of thenew 
server's address.

This might be possible in zero based routing. but is this protocol availabe in 
ns2?

If not can u suggest a technique through which i can make the above possible?

Thanks
Ramya.


[ns] seeking for OSPF

2006-01-11 Thread Jean-Louis . PASSETEMPS

Hi everybody,
I'm looking for an OSPF routing simulation. Does anyone know about such an 
implementation/contribution ? Thanks.

Jean-Louis Passetemps
Land  Joint Systems
Thales Communications



[ns] Eurane and input trace files

2006-01-11 Thread Alessandro Cortese

Hi, i'm preparing a thesis about internetworking between WLANs 802.11 and 
UMTS. I should design a mobile gateway whic move together with the wireless 
user terminals. I must use EURANE and NS-2 to  simulate this scenario but, 
as far as i know, EURANE don't supports multiple celles environments, 
handover features, nodes mobility and radio power control. Nevetheless the 
EURANE site offers input trace files (e.g. Rayleigh 3kmh 300m 200s, etc.) 
whic permit to change the following parameters:
-velocity (km/h)
-distance (m) from BS
-BS Transmission power (dBm)
-Base station antenna gain (in dBi)
-Linit (distance loss at 1 km)
-Iintra (intra cell interference):
-Iinter (inter cell interference):

I would know if UE node mobility and radio interface power control can be 
managed through this input trace files. Thanks in advance for your help

Alessandro Cortese

_
Blocca le pop-up pubblicitarie con MSN Toolbar! http://toolbar.msn.it/



[ns] UM-OLSR v0.8.8 released

2006-01-11 Thread Francisco J. Ros

Hello everyone,

Please apologize if this email is not of your interest.

UM-OLSR 0.8.8, our OLSR implementation for the ns2 network simulator, has been 
released. It comes with a better default configuration and some improvements 
in the memory management.

More info on UM-OLSR website:
http://masimum.dif.um.es/?Software:UM-OLSR

Download it from Sourceforge.net:
http://sourceforge.net/projects/um-olsr/

Of course, feedback is welcomed.

Best regards,
Francisco J. Ros



Re: [ns] Defining queing mechanisms

2006-01-11 Thread Kamal Gakhar

Chech this page on Sally's RED. Let me know if it helped:

http://www.icir.org/floyd/red.html#parameters

On 1/11/06, #LIM XIAOWEI# [EMAIL PROTECTED] wrote:


 Hi!

 In order to implement queue mechanisms, i understand we can define it in
 when we define the links such as

 $ns simplex-link node0 node1 bandwidth delay queue_type

 If i want to implement RED queue mechanisms, what should i write in queue_
 type?
 $ns simplex-link node0 node1 bandwidth delay RED??

 Regards,
 zoe




--
Kamal


[ns] EDF in ns2..??

2006-01-11 Thread Kamal Gakhar

Does anyone has any idea if EDF module for ns2 had been contibuted..??

--
Kamal


[ns] install failure on debian testing

2006-01-11 Thread Leonardo Maccari


I'm trying to install ns2 2.29 (tried 2.28 too) on debian testing.  If I
understood correctly the allinone package should contain all I need, apart
x library that I have installed separately, but installation script fails
with this:


* Build tcl8.4.5

creating cache ./config.cache
checking whether to use symlinks for manpages... no
checking compression for manpages... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for unistd.h... yes
checking for limits.h... yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking for required early compiler flags...  _LARGEFILE64_SOURCE
checking for 64-bit integer type... long long
checking for struct dirent64... no
checking for struct stat64... yes
checking for off64_t... yes
checking whether byte ordering is bigendian... no
checking for getcwd... yes
checking for opendir... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoll... yes
checking for strtoull... yes
checking for tmpnam... yes
checking for waitpid... yes
checking for strerror... yes
checking for getwd... yes
checking for wait3... yes
checking for uname... yes
checking for realpath... yes
checking dirent.h... yes
checking for errno.h... yes
checking for float.h... yes
checking for values.h... yes
checking for limits.h... (cached) yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/wait.h... yes
checking for dlfcn.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for sys/modem.h... no
checking termios vs. termio vs. sgtty... termios
checking for fd_set in sys/types... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for tm_zone in struct tm... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking tm_tzadj in struct tm... no
checking tm_gmtoff in struct tm... yes
checking long timezone variable... yes
checking for st_blksize in struct stat... yes
checking for fstatfs... yes
checking for 8-bit clean memcmp... yes
checking for memmove... yes
checking proper strstr implementation... yes
checking for strtoul... yes
checking for strtod... yes
checking for strtod... (cached) yes
checking for Solaris2.4/Tru64 strtod bugs... ok
checking for ANSI C header files... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking for opendir... (cached) yes
checking union wait... yes
checking for strncasecmp... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gettimeofday declaration... present
checking whether char is unsigned... no
checking signed char declarations... yes
checking for a putenv() that copies the buffer... no
checking for langinfo.h... yes
checking whether to use nl_langinfo... yes
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... static
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: line 7068:
syntax error near unexpected token `)'
./configure: line 7068: `   OSF*)'
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project.  Please see www.Scriptics.com
to see if they have a fix for your platform.


the configure file giving error is the tcl8.4.5 configure:


  case $system in
# There used to be code here to use FIONBIO under AIX.  However,
# it
# was reported that FIONBIO doesn't work under AIX 3.2.5.  Since
# using O_NONBLOCK seems fine under AIX 4.*, I removed the FIONBIO
# code (JO, 5/31/97).


###
### following is line 7068
###

OSF*)
cat  confdefs.h \EOF
#define USE_FIONBIO 1
EOF

echo $ac_tFIONBIO 16
;;
SunOS-4*)
cat  confdefs.h \EOF
#define USE_FIONBIO 1
EOF

echo $ac_tFIONBIO 16
;;
ULTRIX-4.*)
cat  confdefs.h \EOF
#define USE_FIONBIO 1
EOF

echo $ac_tFIONBIO 16
;;
*)
echo $ac_tO_NONBLOCK 16
;;
esac


I couldn't find any help in archives or website.

suggestions?

ciao,
leonardo.

-- 
   Key fingerprint = 3129 C583 F03B 2E73 0115  C040 3489 0185 B592 19FE
 Obviously 

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

2006-01-11 Thread Ashutosh Srivastava



Note: forwarded message attached.



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

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

2006-01-11 Thread Ashutosh Srivastava

  

Note: forwarded message attached.


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

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

2006-01-11 Thread Ashutosh Srivastava



Note: forwarded message attached.



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

[ns] Help MPLS

2006-01-11 Thread Andrea Collin

Hi All,  
Does anybody know if MPLS work with wireless-cum-wired 
network? Have an example??

Tanks in advance,
Andrea


 


-
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!


Re: [ns] install failure on debian testing

2006-01-11 Thread Michael Eyrich


Hi,

Hello,

there are superfluous ' characters in unix/configure:
grep in unix/configure for /etc/.relid and change it from 
system=MP-RAS-`awk '{print }' /etc/.relid'`
 
to
system=MP-RAS-`awk '{print }' /etc/.relid`
 
There are more occurrences of that line in tcl, tk and 
octcl with the same problem.

MichaelE


On Wednesday 11 January 2006 13:42, Leonardo Maccari wrote:
 I'm trying to install ns2 2.29 (tried 2.28 too) on debian
 testing.  If I understood correctly the allinone package
 should contain all I need, apart x library that I have
 installed separately, but installation script fails with
 this:

 =
=== * Build tcl8.4.5
 =
=== creating cache ./config.cache
 checking whether to use symlinks for manpages... no
 checking compression for manpages... no
 checking for gcc... gcc
 checking whether the C compiler (gcc  ) works... yes
 checking whether the C compiler (gcc  ) is a
 cross-compiler... no checking whether we are using GNU
 C... yes
 checking whether gcc accepts -g... yes
 checking how to run the C preprocessor... gcc -E
 checking for unistd.h... yes
 checking for limits.h... yes
 checking for building with threads... no (default)
 checking if the compiler understands -pipe... yes
 checking for required early compiler flags... 
 _LARGEFILE64_SOURCE checking for 64-bit integer type...
 long long
 checking for struct dirent64... no
 checking for struct stat64... yes
 checking for off64_t... yes
 checking whether byte ordering is bigendian... no
 checking for getcwd... yes
 checking for opendir... yes
 checking for strstr... yes
 checking for strtol... yes
 checking for strtoll... yes
 checking for strtoull... yes
 checking for tmpnam... yes
 checking for waitpid... yes
 checking for strerror... yes
 checking for getwd... yes
 checking for wait3... yes
 checking for uname... yes
 checking for realpath... yes
 checking dirent.h... yes
 checking for errno.h... yes
 checking for float.h... yes
 checking for values.h... yes
 checking for limits.h... (cached) yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for sys/wait.h... yes
 checking for dlfcn.h... yes
 checking for unistd.h... (cached) yes
 checking for sys/param.h... yes
 checking for sys/modem.h... no
 checking termios vs. termio vs. sgtty... termios
 checking for fd_set in sys/types... yes
 checking whether struct tm is in sys/time.h or time.h...
 time.h checking for sys/time.h... yes
 checking whether time.h and sys/time.h may both be
 included... yes checking for tm_zone in struct tm... yes
 checking for gmtime_r... yes
 checking for localtime_r... yes
 checking tm_tzadj in struct tm... no
 checking tm_gmtoff in struct tm... yes
 checking long timezone variable... yes
 checking for st_blksize in struct stat... yes
 checking for fstatfs... yes
 checking for 8-bit clean memcmp... yes
 checking for memmove... yes
 checking proper strstr implementation... yes
 checking for strtoul... yes
 checking for strtod... yes
 checking for strtod... (cached) yes
 checking for Solaris2.4/Tru64 strtod bugs... ok
 checking for ANSI C header files... yes
 checking for mode_t... yes
 checking for pid_t... yes
 checking for size_t... yes
 checking for uid_t in sys/types.h... yes
 checking for socklen_t... yes
 checking for opendir... (cached) yes
 checking union wait... yes
 checking for strncasecmp... yes
 checking for BSDgettimeofday... no
 checking for gettimeofday... yes
 checking for gettimeofday declaration... present
 checking whether char is unsigned... no
 checking signed char declarations... yes
 checking for a putenv() that copies the buffer... no
 checking for langinfo.h... yes
 checking whether to use nl_langinfo... yes
 checking for sin... no
 checking for main in -lieee... yes
 checking for main in -linet... no
 checking for net/errno.h... no
 checking for connect... yes
 checking for gethostbyname... yes
 checking how to build libraries... static
 checking for ranlib... ranlib
 checking if 64bit support is requested... no
 checking if 64bit Sparc VIS support is requested... no
 checking system version (for dynamic loading)...
 ./configure: line 7068: syntax error near unexpected
 token `)'
 ./configure: line 7068: `   OSF*)'
 tcl8.3.2 configuration failed! Exiting ...
 Tcl is not part of the ns project.  Please see
 www.Scriptics.com to see if they have a fix for your
 platform.


 the configure file giving error is the tcl8.4.5
 configure:


   case $system in
   # There used to be code here to use FIONBIO under AIX. 
 However, # it
   # was reported that FIONBIO doesn't work under AIX
 3.2.5.  Since # using O_NONBLOCK seems fine under AIX
 4.*, I removed the FIONBIO # code (JO, 5/31/97).


 ###
 ### following is line 7068
 ###

   OSF*)
   cat  

Re: [ns] install failure on debian testing

2006-01-11 Thread Soo-Hyun Choi

I think you don't seem to have Tcl/Tk development packages for Debian.
You could probably do sudo apt-get install tcl8.3-dev tk8.3-dev, and
then try again ns-2 installation.

-SH


On 1/11/06, Leonardo Maccari
[EMAIL PROTECTED] wrote:


 I'm trying to install ns2 2.29 (tried 2.28 too) on debian testing.  If I
 understood correctly the allinone package should contain all I need, apart
 x library that I have installed separately, but installation script fails
 with this:

 
 * Build tcl8.4.5
 
 creating cache ./config.cache
 checking whether to use symlinks for manpages... no
 checking compression for manpages... no
 checking for gcc... gcc
 checking whether the C compiler (gcc  ) works... yes
 checking whether the C compiler (gcc  ) is a cross-compiler... no
 checking whether we are using GNU C... yes
 checking whether gcc accepts -g... yes
 checking how to run the C preprocessor... gcc -E
 checking for unistd.h... yes
 checking for limits.h... yes
 checking for building with threads... no (default)
 checking if the compiler understands -pipe... yes
 checking for required early compiler flags...  _LARGEFILE64_SOURCE
 checking for 64-bit integer type... long long
 checking for struct dirent64... no
 checking for struct stat64... yes
 checking for off64_t... yes
 checking whether byte ordering is bigendian... no
 checking for getcwd... yes
 checking for opendir... yes
 checking for strstr... yes
 checking for strtol... yes
 checking for strtoll... yes
 checking for strtoull... yes
 checking for tmpnam... yes
 checking for waitpid... yes
 checking for strerror... yes
 checking for getwd... yes
 checking for wait3... yes
 checking for uname... yes
 checking for realpath... yes
 checking dirent.h... yes
 checking for errno.h... yes
 checking for float.h... yes
 checking for values.h... yes
 checking for limits.h... (cached) yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for sys/wait.h... yes
 checking for dlfcn.h... yes
 checking for unistd.h... (cached) yes
 checking for sys/param.h... yes
 checking for sys/modem.h... no
 checking termios vs. termio vs. sgtty... termios
 checking for fd_set in sys/types... yes
 checking whether struct tm is in sys/time.h or time.h... time.h
 checking for sys/time.h... yes
 checking whether time.h and sys/time.h may both be included... yes
 checking for tm_zone in struct tm... yes
 checking for gmtime_r... yes
 checking for localtime_r... yes
 checking tm_tzadj in struct tm... no
 checking tm_gmtoff in struct tm... yes
 checking long timezone variable... yes
 checking for st_blksize in struct stat... yes
 checking for fstatfs... yes
 checking for 8-bit clean memcmp... yes
 checking for memmove... yes
 checking proper strstr implementation... yes
 checking for strtoul... yes
 checking for strtod... yes
 checking for strtod... (cached) yes
 checking for Solaris2.4/Tru64 strtod bugs... ok
 checking for ANSI C header files... yes
 checking for mode_t... yes
 checking for pid_t... yes
 checking for size_t... yes
 checking for uid_t in sys/types.h... yes
 checking for socklen_t... yes
 checking for opendir... (cached) yes
 checking union wait... yes
 checking for strncasecmp... yes
 checking for BSDgettimeofday... no
 checking for gettimeofday... yes
 checking for gettimeofday declaration... present
 checking whether char is unsigned... no
 checking signed char declarations... yes
 checking for a putenv() that copies the buffer... no
 checking for langinfo.h... yes
 checking whether to use nl_langinfo... yes
 checking for sin... no
 checking for main in -lieee... yes
 checking for main in -linet... no
 checking for net/errno.h... no
 checking for connect... yes
 checking for gethostbyname... yes
 checking how to build libraries... static
 checking for ranlib... ranlib
 checking if 64bit support is requested... no
 checking if 64bit Sparc VIS support is requested... no
 checking system version (for dynamic loading)... ./configure: line 7068:
 syntax error near unexpected token `)'
 ./configure: line 7068: `   OSF*)'
 tcl8.3.2 configuration failed! Exiting ...
 Tcl is not part of the ns project.  Please see www.Scriptics.com
 to see if they have a fix for your platform.


 the configure file giving error is the tcl8.4.5 configure:


  case $system in
# There used to be code here to use FIONBIO under AIX.  However,
# it
# was reported that FIONBIO doesn't work under AIX 3.2.5.  Since
# using O_NONBLOCK seems fine under AIX 4.*, I removed the FIONBIO
# code (JO, 5/31/97).


 ###
 ### following is line 7068
 ###

OSF*)
cat  confdefs.h \EOF
 #define USE_FIONBIO 1
 EOF

echo $ac_tFIONBIO 16
;;
SunOS-4*)
cat  confdefs.h \EOF
 #define USE_FIONBIO 1
 EOF

echo $ac_tFIONBIO 16
;;
ULTRIX-4.*)
cat  

Re: [ns] [ns-2] Hierarchical Routing and MPLS

2006-01-12 Thread Florian Liers

Hello,

 Is it possible work with MPLS and hierarchical routing?

Yes, it is possible. Please have a look at the following homepage. There
you can find a patch for MPLS with RSVP-TE with hierarchical routing.

http://www.ideo-labs.com/index.php?structureID=45

Further information can be found on page:

http://wcms1.rz.tu-ilmenau.de/fakia/RSVP-TE.1573.0.html?L=0


Florian Liers



By the way:
You can find the answer via google mpls ns-2 hierarchical routing.

-- 
Dipl.-Inf. Florian Liers
TU Ilmenau
Integrated HW/SW-Systems

Office: Blechhaus R 314
Phone : +49 (0)3677 69 - 1379
Web   : http://www.tu-ilmenau.de/ihs



[ns] The command routing

2006-01-12 Thread Dario Borriello

Hi all,

I' m using the protocol Noah and i have to built up a multihop comunication 
between 2 nodes on a line of nodes.

I have read at the following site

http://icapeople.epfl.ch/widmer/uwb/ns-2/noah/

that is possible to make static routing with Naoh through the command 
routing, and so i insert the code

for {set i 0} {$i  $val(nn) } {incr i} {
set cmd [$node_($i) set ragent_] routing $val(nn)
for {set to 0} {$to  $val(nn) } {incr to} {
if {$to  $i} {
set hop [expr $i - 1]
} elseif {$to  $i} {
set hop [expr $i + 1]
} else {
set hop $i
}
set cmd $cmd $to $hop
}
eval $cmd
}

But when i issues the simulation the following error appears:

(_o17 cmd line 1)
invoked from within
_o17 cmd routing 3 0 0 1 1 2 1
invoked from within
catch $self cmd $args ret
(procedure _o17 line 2)
(SplitObject unknown line 2)
invoked from within
_o17 routing 3 0 0 1 1 2 1
(eval body line 1)
invoked from within
eval $cmd
(for body line 25)
invoked from within
for {set i 0} {$i  $num_nodi } {incr i} {

set cmd [$node_($i) set ragent_] routing $num_nodi

for {set to 0} {$to  $num_nodi } {incr to} ...


Can someone explain me why??
Please help me because i don't understand the reason...
Thanks

_
Videochiamata? Prova MSN Messenger: divertente, facile, veloce, gratuito! 
http://www.msn.it/messenger/v7



[ns] changing seed

2006-01-12 Thread Utente ns2

Hi everybody.

I need to repeat N times the same scenario but changing the seed.
I tried to put in my .tcl script

set rng [new RNG]
$rng seed integer number

changing integer numer for every simulation, but the average delay I 
measured is always the same. On the contrary I am sure that should change, 
since the backoff times of my mobile nodes should change.

The other solution could be modifying the 6 values 12345 in double 
RNG::next_seed_[6] in the file rng.cc?

Please give me some suggestions.

Thank you in advance.

_
Las mejores tiendas, los precios mas bajos, entregas en todo el mundo, 
YupiMSN Compras: http://latam.msn.com/compras/



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

2006-01-13 Thread Ashutosh Srivastava



Note: forwarded message attached.

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

[ns] :two mac on the same node

2006-01-13 Thread Antonietta Stango

Hi all,
I have to simulate a network where the nodes have two mac protocol at the same 
time.
it is possible?
thanks in advances
Antonietta



Re: [ns] Node id_

2006-01-13 Thread Hajer FERJANI

Hi,
To have the current positions of a node you need to do :

MobileNode* mnode_;

double x = 0.0,y = 0.0,z = 0.0;
mnode_-getLoc(x, y, z);

You should have mnode_ referencing to a node. For example, in my case I pass
the node address to my agent in the tcl script and for this reason i defined
a new node command in the Command( ) method of the agent like this :

if(strcmp(argv[1], node) == 0) {
mnode_ = (MobileNode*) TclObject::lookup(argv[2]);
if(mnode_ == 0)
return TCL_ERROR;
return TCL_OK;
}

Hope this helps.

Bye.


On 1/10/06, Christoph Schroth [EMAIL PROTECTED] wrote:


 Hi all,


 I actually have a very similar problem and also woul like to get to
 To know the current node I am in from the Interface Queue, for example.

 How can I find out the node id and other related data such as mobile
 node
 Position etc.?


 Thank you so much,


 Christoph



[ns] Traffic CBR and FTP - DSDV

2006-01-13 Thread anna_veronica


Hello, 

I´m having problems with DSDV protocol, when I´m simulating the traffic 
CBR/UDP in the same time that FTP/TCP, the simulation don´t stop. 

Can you help me, please? Anybody knows some bug/trouble about the simulation 
of DSDV? 

Features: 
800 X 400 
20 nodes 
ns-2.28 

Other question: 
Anybody knows how can i add a static route (in priority in relation of other 
dynamic route) in the DSDV, AODV, DSR and TORA protocols? 

Thanks for advance. 

Best regards, 
Anna. 




[ns] new packet type

2006-01-13 Thread Christos Antonopoulos

Hi all

I need to create a new pakcet type which is going to be handled by a cbr agent.
Can someone give me some guidelines or direct appropriatly ?

Thank you

Chris 


[ns] How can i simulate RWA under inaccurate routing or network imformation?

2006-01-13 Thread niejun

I'm using OWns to simulate routing and wavelength assignment in a WDM
network,
but how can i simulate RWA under inaccurate routing or network
information,i totally
don't know how to start with it.





Re: [ns] using ns on Windows XP

2006-01-13 Thread Huang Longbo

You can install it under Cygwin.But you should be ready to bear with the 
long 
running time.



Longbo Huang



From: Ashutosh Srivastava [EMAIL PROTECTED]
To: Cenker Demir [EMAIL PROTECTED]
CC: ns-users@ISI.EDU
Subject: [ns] using ns on Windows XP
Date: Fri, 13 Jan 2006 17:22:10 + (GMT)



Hi ,
   I am new to using this network simulator and find
it rather inconvienient to use ns-2 on Linux .Is there
any way to run it on Windows XP.
  With regards
Ashutosh



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






Re: [ns] concerning CBQ example

2006-01-13 Thread Huang Longbo

The file \ns-allinone-2.27\ns-2.27\tcl\test\test-suit-cbq.tcl should be a 
good place to look at.Usually you can first make the cbq creation process 
to be a function, and then apply it to a particular link.


Hope this helps.


Longbo Huang



From: Kamal Gakhar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: ns-users@ISI.EDU
Subject: [ns] concerning CBQ example
Date: Fri, 13 Jan 2006 17:06:44 +0100


Hi,
I have tried to find (desperately !!) an example that explains how to use
CBQ in ns2 but couldn't find it. Do you know some link or any existing
example work that I could use to understand it.

regards,
--
Kamal





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

2006-01-13 Thread Bob McConnell

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Ashutosh Srivastava
 Sent: Friday, January 13, 2006 3:52 AM
 To: ns-users@ISI.EDU
 Subject: [ns] Fwd: please help me to simulate attacks on the 
 Ad-hoc networks
 

 Attached to Original Message:

 Note: forwarded message attached.

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


I have gotten several messages like this with no other attachments. Is
there something wrong with the original format, or is the server
changing it so that Outlook cannot read the full message?

I am using Microsoft Outlook 2003 SP2 on Win2K Pro. (Not my choice.)

Thank you,

Bob McConnell



[ns] High Speed TCP Agent

2006-01-13 Thread Fabio Guerra

HI!

How I create a High Speed TCP Agent? Anybody can help me?


Thanks In Advance

Fabio Guerra

___
Tarifa Única DDI - A melhor opção para suas ligações internacionais. 
Do fixo ou do celular você paga a mesma tarifa e ainda tem um desconto
especial para ligar para os Estados Unidos.
Saiba mais. Acesse www.embratel.com.br



Re: [ns] problem with sctp module[original ns-allinone-2.28]

2006-01-13 Thread Tom Henderson


 
 Message: 5
 Date: Thu, 12 Jan 2006 19:01:09 +0800
 From: robbin [EMAIL PROTECTED]
 Subject: [ns] problem with sctp module[original ns-allinone-2.28]
 To: ns-users@ISI.EDU
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=big5
 
 hi,all
 
 i downlord the software as following:
 
 1.cygwin.exe
 2.ns-allinone-2.28
 3.ns-2 SCTP module [original ns-allinone-2.28] 
   from http://www.armandocaro.net/software/ns2sctp/
 
 I install cygwin on windows XP first.
 

You should use ns-2.29 without the separate patch, since SCTP is now 
part of ns-2, and the SCTP version of ns-2.29 is updated.

You should be able to build ns-allinone-2.29.2.tar.gz on Cygwin:
http://sourceforge.net/project/showfiles.php?group_id=149743package_id=169689release_id=371538

I've updated the ns contributed code page to reflect this change. 
Armando needs to separately update his page.

Tom



[ns] I have a suggestion or question in using tutorial

2006-01-13 Thread niejun

when i use the VII part, named A new protocol for ns,since i'm new user
of ns,
i don't know where is the packet.h mentioned in VII.3 Necessary changes,
so i can't do some necessary changes, and i don't know where to put the
ping.h and ping.cc,
because i want my own-defined code ping.h and ping.cc be maked
(complied) with other ns source code
like packet.h etc. in the same time. By the way, i looked up for all
these carefully,
but they are not mentioned in the part of tutorial.




Re: [ns] using ns on Windows XP

2006-01-14 Thread Tiago Camilo

Yes, 
Check page:
http://nsnam.isi.edu/nsnam/index.php/User_Information#Windows-specific_instr
uctions
And please investigate a bit before you ask for these type of questions.
Thanks,
Cheers,
Tiago Camilo

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ashutosh Srivastava
Sent: sexta-feira, 13 de Janeiro de 2006 17:22
To: Cenker Demir
Cc: ns-users@ISI.EDU
Subject: [ns] using ns on Windows XP



Hi , 
   I am new to using this network simulator and find
it rather inconvienient to use ns-2 on Linux .Is there
any way to run it on Windows XP.
  With regards
Ashutosh



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



[ns] ns2 newbie on MIPv4

2006-01-14 Thread Nauman Afzal

Hi,
I am totally new to ns2, I have to simulate handoffs in standard mobile
IPv4, suggest a better solution  and then off course simulate  the proposed
solution. Is it possible to do all this in ns2? I am totally new so any help
in this reagrd would be welcome, many thanks,
best,
Nauman


[ns] A little doubt

2006-01-14 Thread David Carballat Vazquez

What TCP implementations have implemented Window Scale Option? (I'm sure 
Tahoe doesn't and Vegas and SACK does, but i'm not sure about Reno and New 
Reno). And about Window Scale Option, how it works in ns? Is it neccesary to 
configure manually? or works when you choose the correct implementation?
Thanks a lot for any help you can give me, and sorry if the questions are 
obvious for somebody.

_
Acepta el reto MSN Premium: Protección para tus hijos en internet. 
Descárgalo y pruébalo 2 meses gratis. 
http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_proteccioninfantil



[ns] end to end form trace file

2006-01-14 Thread shahram mohrehkesh

Dear all,

I have to extract some end to end information form trace file.

I have used Tracegrapher, but it could not draw some information like end to
end delivery ratio or call acceptance rate.
Does anyone have a program that could extract these information from a trace
file ?

Thank you in advance for your help.

Regards,Shahram Mohrehkesh


[ns] Floating point exception problem of Blueware 1.0 with ns2.29 on AMD-64bit PC (Suse 10.0)

2006-01-14 Thread Huabei Yin

Hi,

Blueware 1.0 were successfully built in a subdirectory of ns-2.29
(ns-allinone-2.29/ns-2.29/blueware). But when I run the Blueware example
file in the package, it complains floating point exception.

(63.28):  + _2_ FIRST MAS LINK ESTABLISHED 2 - 16 DELAY 0.039548
(64.28):  + _16_ FIRST SLV LINK ESTABLISHED 16 - 2 DELAY 0.040173
(67.28):  + _9_ FIRST MAS LINK ESTABLISHED 9 - 3 DELAY 0.042048
(68.28):  + _3_ FIRST SLV LINK ESTABLISHED 3 - 9 DELAY 0.042673
Floating point exception


Can anybody help me with this problem?

Thanks in advance.

Huabei


[ns] TCP questions

2006-01-14 Thread Pedroi Mus Musti

Hello! First of all I want to thank all the people who help me in my first 
post. But now I have another problem with TCP connection. I have two 
questions:
1) How can I measure the throughput in a tcp connection?
2) How can I see the evolution of the congestion window when I have 2 TCP 
sources connected to the same Sink?
For the second question I made the next simple script:

set ns [new Simulator]
set nf [open out.nam w]
$ns namtrace-all $nf
set f0 [open CWND.tr w]
set f1 [open ssthresh.tr w]
$ns trace-all $f0
$ns trace-all $f1

proc finish {} {
global ns nf f0 f1
$ns flush-trace
close $nf
close $f0
close $f1
exec nam out.nam 
exec xgraph CWND.tr 
exit 0
}

proc record {} {
global ns tcp tcp2 f0 f1
set ns [Simulator instance]
set time 0.05
set cwnd0 [$tcp set cwnd_]
set cwnd1 [$tcp2 set cwnd_]
set now [$ns now]
puts $f0 $now $cwnd0
puts $f1 $now $cwnd1
$ns at [expr $now+$time] record
}


set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
set n4 [$ns node]

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

$ns duplex-link-op $n3 $n4 queuePos 0.5

set tcp1 [new Agent/TCP]
$ns attach-agent $n1 $tcp1
set sink1 [new Agent/TCPSink]
$ns attach-agent $n4 $sink1
$ns connect $tcp1 $sink1
set ftp1 [new Application/FTP]
$ftp1 attach-agent $tcp1

set tcp2 [$ns create-connection TCP $n2 TCPSink $n4 2]
set ftp2 [new Application/FTP]
$ftp2 attach-agent $tcp2

$ns at 0.5 $ftp1 start
$ns at 0.8 $ftp2 start
$ns at 10 $ftp1 stop
$ns at 11 $ftp2 stop
$ns at 15.0 finish
$ns run


But when I simulate it, appears a message about a problem with the input 
data, and I don’t know what is wrong…

_
¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en 
MSN Motor. http://motor.msn.es/researchcentre/



Re: [ns] seeking for OSPF

2006-01-15 Thread Vincent Nauwelaers

I need OSPF for my thesis, so I hope to contribute it in the spring, because
now I'm still at univercity and I have 4 examens coming up, so it will take
a while !

sincerely,

--Vincent

- Original Message -
From: [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Wednesday, January 11, 2006 11:10 AM
Subject: [ns] seeking for OSPF



 Hi everybody,
 I'm looking for an OSPF routing simulation. Does anyone know about such an
implementation/contribution ? Thanks.

 Jean-Louis Passetemps
 Land  Joint Systems
 Thales Communications





[ns] Floating Point Exception in DiffServ application

2006-01-15 Thread arda balkanay

Hi all
I'm new to this mailing list and NS
i've a problem, i'm trying to write a script to simulate a diffserv, but
when i tried to run the sctipt i got floating point exception.
my script is attached, i couldn't found the reason
any help needed
thanks
best regards

The output is as follows:
[EMAIL PROTECTED] workspace]# ns ns-5.tcl
Policy Table(2):
Flow (1 to 5): TSW2CM policer, initial code point 10, CIR 100.0 bps.
Flow (0 to 5): TSW2CM policer, initial code point 0, CIR 100.0 bps.

Policer Table:
TSW2CM policer code point 0 is policed to code point 0.
TSW2CM policer code point 10 is policed to code point 11.
TSW2CM policer code point 11 is policed to code point 0.

Floating point exception
[EMAIL PROTECTED] workspace]#


The code is attached


[ns] help gmpls ns-code

2006-01-15 Thread vishnupriya padmanabhan

  
hi,
can anybody help me to find ns-code for gmpls
thanks


[ns] Packet ID at MAC Layer

2006-01-15 Thread Kshitij Gunjikar

Hi All,
  I'm looking for something like a Packet/Frame ID at MAC layer for 
identification of packet/frames at the MAC layer uniquely.Is there something 
like this in ns-2? Or we have to implement it ourselves. 

Regards
Kshitij




[ns] Running SMAC

2006-01-15 Thread Sita S. Krishnakumar

Hello,
I was trying to understand the working of SMAC by running their sample
code from the following location:

www.isi.edu/ilense/software/smac/MyTest.tcl

I get the following message: Cancelling CS- node 1
and ns exits. Any idea why?

Regards,
Sita



  1   2   3   4   5   6   7   8   9   10   >