[ns] Pointers of Mobile Nodes

2006-11-13 Thread babak

Dear All,
Could you please tell me how can I get access to the pointer of two mobile 
nodes, sender and receiver of a particular packet P.

Thanks
Babak



[ns] need help on mobiwan

2006-11-13 Thread 陶然

* Hello everybody!
 Is there anyone who has used the mobiwan patch in NS2?I met some
problems in the simulation,and can't solve it. If someone are familiar with
the mipv6 implementation in NS2.29 ,could you send a email to me? This will
be very helpful to me:)
Thank you very much!


taoran
*


[ns] how can i compute the performance of multicast aodv protocol

2006-11-13 Thread Anjali Arora

hi all
  can any one suggest me how can i compute the performance of maodv algo like 
packet delay,throughput,packet loss and other parameters by studying trace or 
nam files.
  thanks in advance
  anjali
   


-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it 
NOW


Re: [ns] file not recognized: File format not recognized error

2006-11-13 Thread Renata Vidal

gcc with tcl? Are you sure?

On 11/10/06, Swalaxmi Pandit [EMAIL PROTECTED] wrote:

 Hi,

 After writing the code and saving the file by the name example1a.tcl in the
 tcl directory,when I try to run the program by giving the command,
 gcc -o example1a example1a.tcl
 I am getting the following error:-
 example1a.tcl: file not recognized: File format not recognized
 collect2: ld returned 1 exit status

 What should I do to eliminate this error?

 Thanks  Regards,
 Swalaxmi



-- 
Renata Vidal
Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos
ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN
TSU – pg 102)



[ns] Scenario File

2006-11-13 Thread Mohammad Haseeb Zafar

Hello
How I can set scenario file with random velocities for the following parameters:
traffic type: cbr
total nodes: 50
source nodes: 20
seed 1.0
rate 10 packets/sec
dimensions: 1000m x 1000m
pause time: 30 sec
random velocity: 0-20m/s
simulation time: 800s
 
Cheers
 
Haseeb
 


[ns] Scenario File

2006-11-13 Thread Mohammad Haseeb Zafar

Hello
 
How I can set scenario file with random velocities for the following parameters:
traffic type: cbr
total nodes: 50
source nodes: 20
seed 1.0
rate 10 packets/sec
dimensions: 1000m x 1000m
pause time: 30 sec
random velocity: 0-20m/s
simulation time: 800s
 
Cheers
 
Haseeb
 


[ns] need help for Make fail

2006-11-13 Thread pooja Vyavahare

Hi all,

I am using NS-2.28 on fedora-2 ... I am using NS from
long time and everything was working fine... Now
recently I added some files in it...But these files
are also building properly but when I run make
command the following error is coming...
epa indep-utils/webtrace-conv/nlanr
indep-utils/webtrace-conv/ucb; do ( cd $i; make all; )
done
make[1]: Entering directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/dec'
make[1]: Entering directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/epa'
make[1]: Entering directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/ucb'

I cant understand as I didnt change any of the above
folders... Pleasse help me...Its URGENT...
thanks in advance,

regards,
POOJA VYAVAHARE



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/



[ns] SENSOR NETWORKS SIMULATIONS HELP

2006-11-13 Thread antonis antoniou





hi all,

i am new on sensor networks and i would like to ask for your help.

does ns-2 support sensor networks?
or i have extend it?

THANKS
 
 




[ns] Problems found with input data

2006-11-13 Thread juan manuel gomez garcia

Hi ns-users:

Some time ago I install the ns2 simulator. All works ok. I run my
simulations and obtain the trace files. The last week I install Tracegraph
OK to analized the trace file. And now, when I run a simulations I obtain
the next message:
...
Error in file `demo1.tr' at line 1112:
  Unknown line type
Error in file `demo1.tr' at line 1113:
  Unknown line type
Error in file `demo1.tr' at line 1114:
  Unknown line type
Error in file `demo1.tr' at line 1115:
  Unknown line type
Problems found with input data.

But the simulations run ok and the trace file is created ok. I dont know
what this message want to say.

Thank you for your help.

_
Descarga gratis la Barra de Herramientas de MSN 
http://www.msn.es/usuario/busqueda/barra?XAPID=2031DI=1055SU=http%3A//www.hotmail.comHL=LINKTAG1OPENINGTEXT_MSNBH



Re: [ns] need help for Make fail

2006-11-13 Thread juan manuel gomez garcia

This message wants to say that everything is still equal, that there are not 
any change. In other words, 'make' dont make anything. Dont worry, all work 
fine.


From: pooja Vyavahare [EMAIL PROTECTED]
To: ns ns ns-users@ISI.EDU
Subject: [ns] need help for Make fail
Date: Mon, 13 Nov 2006 15:24:06 + (GMT)


Hi all,

I am using NS-2.28 on fedora-2 ... I am using NS from
long time and everything was working fine... Now
recently I added some files in it...But these files
are also building properly but when I run make
command the following error is coming...
epa indep-utils/webtrace-conv/nlanr
indep-utils/webtrace-conv/ucb; do ( cd $i; make all; )
done
make[1]: Entering directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/dec'
make[1]: Entering directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/epa'
make[1]: Entering directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/Desktop/ns-allinone-2.28/ns-2.28/indep-utils/webtrace-conv/ucb'

I cant understand as I didnt change any of the above
folders... Pleasse help me...Its URGENT...
thanks in advance,

regards,
POOJA VYAVAHARE



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


_
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] RE : Scenario File

2006-11-13 Thread molo badji


Hi,
   
  You must generate two files. One traffic file and one mobility file and call 
them in a tcl script that you can find examples in the folder ns-2.x/tcl/ex 
(for example wireless.tcl). Do like this:
   
  1. go in the folder ../ns-2.x/indep-utils/cmu-scen-gen and type ns cbrgen.tcl 
-type cbr -nn 50 -seed 1.0 -nc 20 -rate 10.0  traffic-file-name.  (20 = source 
nodes)
   
  2. go in the folder ../ns-2.x/indep-utils/cmu-scen-gen/setdest and type 
./setdest -v 1 -n 50 -M 20 -t 800 -x 1000 -y 1000  mobility-file-name.  (20 = 
velocity It is supposed here that the minimum velocity is 0 and the max 20). 
The mobility model is Random Waypoint.
   
  After that use the two files in your script tcl like in the example 
Wireless.tcl.
  I hope I didn't make mistake on the parameters of cbrgen and setdest. You can 
verify them in the programs cbrgen.tcl and setdest.cc in their folder.
   
  Molo.
  

Mohammad Haseeb Zafar [EMAIL PROTECTED] a écrit : 
  
Hello

How I can set scenario file with random velocities for the following parameters:
traffic type: cbr
total nodes: 50
source nodes: 20
seed 1.0
rate 10 packets/sec
dimensions: 1000m x 1000m
pause time: 30 sec
random velocity: 0-20m/s
simulation time: 800s

Cheers

Haseeb




-
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.


[ns] how to get handles (pointers) to multiple agents from an application

2006-11-13 Thread k m

Hi 
  
I am working to develop this application that needs to talk to other 
applications. They all use tcp as their transport agent.
   
  When one node can talk to two other nodes, then it has two agents attached to 
it. Before settingup the ip addresses it has to select the agent (ie. agent_ 
-sendmsg()) to send its message. The message can go out either link of the 
node. How can I get the pointer to the agent I want to send the packet. All 
this is being done in C++.
   
  I would really appreciate ur help.
   
  Regards
  Khurram.
   
   
   


-
Share your photos with the people who matter at Yahoo! Canada Photos


[ns] Attaching problem

2006-11-13 Thread otcl

 Hello, I'm Patrick. Can someone help with TCP problem? I'm trying to run 
following tcl code:   or {set i 1} {$i=$NetNb1} { incr i } { for {set 
j 1} {$j=$NumFlows} { incr j } { set tcpsrc($i,$j) [new 
Agent/TCP/Newreno] set tcp_snk($i,$j) [new 
Agent/TCPSink/DelAck] $tcpsrc($i,$j) set packetsize_ 1000   
  $ns attach-agent $N1($i) tcpsrc($i,$j) $ns 
attach-agent $Server tcp_snk($i,$j) $ns connect $tcpsrc($i,$j) 
$tcp_snk($i,$j) set ftp($i,$j) [$tcpsrc($i,$j) attach-source 
FTP] } }a so on, nothing difficult. But instead proper function I get 
the error output like this:   invalid command name tcpsrc(1,1) while 
executing $agent set node_ $self (procedure _o58 line 4) (Node 
attach line 4) invoked from within $node attach $agent (procedure 
_o3 line 2) (Simulator attach-agent line 2) invoked from within $ns !
 attach-agent $N1($i) tcpsrc($i,$j)  (for body line 8) 
invoked from within for {set i 1} {$i=$NetNb1} { incr i } { for {set 
j 1} {$j=$NumFlows} { incr j } { set tcpsrc($i,$j) [new 
Agent/TCP/Newreno] # setting tcpsink w... (file 
mypareto.tcl line 54)   This part of code is from 'NS2 for beginners' 
(Chapter 4 - TCP/IP), but it doesn't  work. However, this code seems to be all 
right to me, I don't understand, why ns don't want to attach agent, and what's 
the problem concerned in $agent set node_ $self. When I was trying similar 
code as one dimensional array (only $i) on version ns2-29 the error was the 
same... so there is probably some error in that part of code, but as I 
mentioned, I don't see, and was trying to do little changes to code, but 
without positive effect. Any idea? Thank You for any help friends... 


[ns] [ns2]address classifier problem

2006-11-13 Thread 湘和

Hi:
The ns2 manual says that addressclassifier is the default classifier for 
unicast routing (page 45) in wired network. A node in wired network is default 
a unicast routing node. When I am using gdb to debug my program, I find that 
the truth is not the same as what the manual says. 
I find that dstHashclassifier is the default classifier. why ? thanks .
I want to control the fowarding of each packet a node received, So I modify 
the addressclassifer class, the manual same it is the entry of a unicast node, 
and will receive every packet flow over the node, including ones from uplayer 
or down layer.
   great thanks
   
  yang


-
 雅虎免费邮箱-3.5G容量,20M附件

[ns] Printing value of Scheduler::instance().clock()

2006-11-13 Thread Mark C Wood

I'm using NS-2 version 2.29 on a Fedora Linux PC. I'm using a MAC
protocol, and I want to find the average delay time. I heard that I need
to do that with changes to the C++ code, rather than a tcl script.

I want to write the enqueue packet time to file1, and dequeue packet time
to file2. Then, with a perl script, subtract the times in file1 from file2
to get the delay times. But I'm not sure where to make the changes to the
C++ code (I tried modifying queue.cc; See below), and I'm having a problem
using Scheduler::instance().clock() when writing the time to a file
because I get arbitrarily large numbers and negative numbers.

Any suggestions would be appreciated.
Thanks,
Mark
_
Mark C. Wood
Graduate Student, Computer Science Department
Washington University in St. Louis
_

/* -*-Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t
-*- */
/*
 * Copyright (c) 1996-1997 The Regents of the University of California.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *notice, this list of conditions and the following disclaimer in the
 *documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *must display the following acknowledgement:
 * This product includes software developed by the Network Research
 * Group at Lawrence Berkeley National Laboratory.
 * 4. Neither the name of the University nor of the Laboratory may be used
 *to endorse or promote products derived from this software without
 *specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

// added for average delay graph - MW
#include stdlib.h// for exit()
#include stdio.h // for fprintf
FILE *fd_enq_out;  // output file for enqueue time
FILE *fd_deq_out;  // output file for dequeue time
//

#ifndef lint
static const char rcsid[] =
@(#) $Header: /nfs/jade/vint/CVSROOT/ns-2/queue/queue.cc,v 1.29
2004/10/28 01:22:48 sfloyd Exp $ (LBL);
#endif

#include queue.h
#include math.h
#include stdio.h

void PacketQueue::remove(Packet* target)
{
for (Packet *pp= 0, *p= head_; p; pp= p, p= p-next_) {
if (p == target) {
if (!pp) deque();
else {
if (p == tail_)
tail_= pp;
pp-next_= p-next_;
--len_;
bytes_ -= hdr_cmn::access(p)-size();
}
return;
}
}
fprintf(stderr, PacketQueue:: remove() couldn't find target\n);
abort();
}

/*
 * Remove packet pkt located after packet prev on the queue.  Either p or
prev
 * could be NULL.  If prev is NULL then pkt must be the head of the queue.
 */
void PacketQueue::remove(Packet* pkt, Packet *prev) //XXX: screwy
{
if (pkt) {
if (head_ == pkt)
PacketQueue::deque(); /* decrements len_
internally */
else {
prev-next_ = pkt-next_;
if (tail_ == pkt)
tail_ = prev;
--len_;
bytes_ -= hdr_cmn::access(pkt)-size();
}
}
return;
}

void QueueHandler::handle(Event*)
{
queue_.resume();
}

Queue::~Queue() {
}

Queue::Queue() : Connector(), blocked_(0), unblock_on_resume_(1), qh_(*this),
 pq_(0),
 last_change_(0), /* temporarily NULL */
 old_util_(0), period_begin_(0), cur_util_(0), buf_slot_(0),
 util_buf_(NULL)
{
bind(limit_, qlim_);
bind(util_weight_, util_weight_);