Re: [ns] Ns2 version for Ad hoc networks

2006-02-05 Thread Carlos Alberto Quiroz-Perez

Hi

I suggest ns-2.29...

regards,
  Carlos Quiroz

>
> Hi
>
>   I am interested in working in Ad hoc Networks. Can you please suggest
> me the version of Ns2 which I can use for simulating Ad hoc Networks?
>
>   Regards
>   S.Rajapriya
>
>
>
> -
> Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
>


^
If I am not for myself, who will be for me?
If I am for me only, who I am?
And if not now, when?
Misnah Abat.
^
Ing. Carlos Alberto Quiroz-Perez
[EMAIL PROTECTED]
Electrical & Computer Engineering
University of Victoria, Victoria, BC, Canada
Office: ELW A110
Lab: ELW B335
Cell phone: (250) 217-99-71




[ns] problem with new Ping over AODV protocol...

2006-02-05 Thread Henrik Nilsson

Hi all, sorry bout the repost but my last mail looked strange :\

I would be really happy if anyone could help me with my ns2 problem.

Im trying to write my own ping protocol running on AODV, and I am 
getting some strange behaviour.

It seems like the packets arent recognised in the trace files (I might 
be wrong here), and after a short while I get a seg. fault.

I based my Ping protocol on the one found in Marc's tutorial and used 
the new recommended way of setting the offset.

My ns2 is 2.29 built from the packages (not all-in-one).

When I run my tcl-script I get this as output:

$ ns wtf_AODV_ping.tcl > debug.txt
INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!
Segmentation fault
$

my topology is 1000x1000 with 16 nodes evenly spread out.
The nodes are set up like this:

set opt(chan) Channel/WirelessChannel
set chan_1_ [new $opt(chan)]

$ns_ node-config -adhocRouting AODV \
  -llType LL \
  -macType Mac/802_11 \
  -ifqType Queue/DropTail/PriQueue \
  -ifqLen 50 \
  -antType Antenna/OmniAntenna \
   -propType Propagation/FreeSpace \
  -phyType Phy/WirelessPhy \
   #-channelType Channel/WirelessChannel \
  -topoInstance $topo \
  -agentTrace ON \
  -routerTrace OFF \
  -macTrace OFF \
  -movementTrace OFF \
  -channel $chan_1_

And the nodes all have one agent each (Agent/PingAodv). The agents are 
getting connected to it self to prevent some error messages from ns:

$ns_ connect $PA($i) $PA($i)

Everything runs fine till after the first ping packet is sent:
$ns_ at 50 "$PA(0) send 5".

My ::command looks like this.

int PingAodvAgent::command(int argc, const char*const* argv) {
   if (argc == 3) {
 if (strcmp(argv[1], "send") == 0){

   //create new packet
   Packet* send_pkt = allocpkt();

   //get the ip header of the new packet
   hdr_ip* send_iph = hdr_ip::access(send_pkt);

   //set the dst_.addr to the requested node's ip
   send_iph->dst_.addr_ = (atoi(argv[2]));

   //get the ping header from the packet
   hdr_pingaodv* pingaodvh = hdr_pingaodv::access(send_pkt);

   //set the direction and the time the ping packet was sent
   pingaodvh->direction = 0; // 0 = request
   pingaodvh->sent_time = Scheduler::instance().clock();

   // Send the packet
   send(send_pkt, 0);

   cout << "send -> TCL_OK" << endl << flush;

   //tell TCL everything is allright
   return(TCL_OK);
 }
   }
   return (Agent::command(argc, argv));
}

::command returns so it seems to work fine (the debuglines are printed 
after the send-command).

in my common/packets.h I changed it to look like this:
...
 // insert new packet types here

 //inserted by me
 PT_PINGAODV,
 //--
 PT_NTYPE // This MUST be the LAST one
};
...

and

...
 // XCP
 name_[PT_XCP]="xcp";

 //added by me
 name_[PT_PINGAODV]="PingAodv";

 name_[PT_NTYPE]= "undefined";

 }
...

In my ns-default.tcl I changed it to look like this

...
#
# Agents
#

# pingaodv inserted by me
Agent/PingAodv set packetSize_ 64
...


The first lines in my trace file:

--start--
s 50.0 _0_ AGT  --- 0 undefined 64 [0 0 0 0] --- [0:0 5:0 32 0]
r 50.018762000 _5_ AGT  --- 0 undefined 84 [13a 5 0 800] --- [0:0 
5:0 30 5]
s 50.018762000 _5_ AGT  --- 1 undefined 64 [0 0 0 0] --- [5:0 5:0 32 0]
r 50.018762000 _5_ AGT  --- 1 undefined 64 [0 0 0 0] --- [5:0 5:0 32 0]

I thought that it should say PingAodv instead of undefined here.
The tracefile just look like this for another 39000 lines and then the 
seg fault kicks in at time 50.018762000.


Does anyone have any clue on what I am doing wrong here?

Henrik



[ns] (yet another) doubt on CSThresh_ and RxThresh_

2006-02-05 Thread Sita S. Krishnakumar

Hello,
I am trying to simulate a network where the interrow spacing is 19m and
intercolumn spacing is 24m. I have the node's sensing range as 15m.

Looking at some old mail in this mailing list:

It depends on what carrier-sensing range do you want. If you use the
default values, your carrier-sense range will be about twice the receiving
range. If you would like to see the effects of hidden nodes in your
simulation, you should set carrier-sensing range same as the receiving
range. So, if you want to set receiving range 'd_1' and carrier sensing
range 'd_2' (you must have d_2>d_1), then threshold.cc with 'd_1' provides
you the RXThresh_ and the same program with input parameter 'd_2' will
give you CSThresh_.

I generated RxThresh_ using the threshold program and varied it as
mentioned above. The source generates packets but it is not picked up by
any other node. why?
Also, changing Pt_ alone to control transmission range - is that acceptable?
Any suggestions welcome.
Regards,
Sita



[ns] problem with my Ping over AODV protocol...

2006-02-05 Thread Henrik Nilsson

 

[ns] user-defined data over UDP

2006-02-05 Thread Suhaib Obeidat

Dear all,

I am trying to send user-defined packets over UDP. Can any body provide me 
with the changes that need  to be made in order to override the 
send/receive functions so that UDP will transport my packets.

I really need this quickly, so please help if you know

Thanks alot
Suhaib

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



[ns] how to use function handle of a mac object??

2006-02-05 Thread Roldan

Hello,
How can I use function handle of a mac object?? Where can I get that info?
Thank you



[ns] Messages from the App layer to the Routing Layer

2006-02-05 Thread Jon de Andrés

Hello,

I'm looking for a way to send some extra info form the Application layer to 
the Routing Agent. I'm using AODV as routing protocol, do you know in wich 
ns-2 source files should I look to make this?

Thank you very much.
-- 
Jon de Andrés Frías
GPG: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4E856203



Re: [ns] Can we get rid of TCP in wireless?

2006-02-05 Thread Filippos Kolovos

I would not agree with that, since for example AODV, one of the
most common routing protocols in MANETs uses UDP
to transmit its routing packets (RREQ, RERR, etc).

However, in order to avoid TCP/UDP you would have to
tamper with the specific application that accesses these
layers in the source files.

-Fk


On 2/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> -- Forwarded message --
> From: [EMAIL PROTECTED]
> To: ns-users@ISI.EDU
> Date: Sat, 4 Feb 2006 22:25:52 -0500
> Subject: [ns] Can we get rid of TCP in wireless?
> Hi all,
>
> It seems that all the wireless network simulation examples in ns tutorials
> adopt such a format: "app->TCP/UDP->routing->MAC->PHY". However, there
> is no transport protocol in real wireless implementations. Is it possible
> to get rid of TCP/UDP and connect application directly to the routing?
>
> Thank you in advance for your attention.
>
>
>
>
>
>
>


--
Filippos N Kolovos

Software Systems Analyst & Engineer
M.Sc. (Eng.) in Data Communications
IT Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

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


Re: [ns] Ns2 version for Ad hoc networks

2006-02-05 Thread Filippos Kolovos

The version I could use would be NS-2.28 at the earliest.

-Fk



>
> -- Forwarded message --
> From: raja priya <[EMAIL PROTECTED]>
> To: NS 
> Date: Sat, 4 Feb 2006 22:49:42 -0800 (PST)
> Subject: [ns] Ns2 version for Ad hoc networks
> Hi
>
> I am interested in working in Ad hoc Networks. Can you please suggest  me
> the version of Ns2 which I can use for simulating Ad hoc Networks?
>
> Regards
> S.Rajapriya
>
>
>
>


--
Filippos N Kolovos

Software Systems Analyst & Engineer
M.Sc. (Eng.) in Data Communications
IT Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

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


Re: [ns] Queue length for wireless enviorenment

2006-02-05 Thread Kamal Gakhar

queue is just before the source ;-) so check it out. well seriously it
depends upon performance you want to evaluate. so plz take a look at your
parameters.

On 2/5/06, dharmendra <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I have some doubts regarding wireless medium as:
> Where is queue in wireless medium between a tcp source and sink?
> For wired medium i think queue is in the wired link.
>
> Thanks in advance
> Dharmendra
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>


--
Kamal


[ns] Fwd: help needed flow monitoring

2006-02-05 Thread Kamal Gakhar

> 1. how do i interpret the per flow trace file?


It depends what performance parameters you ld like to look at. So first
check that. Once done, approach packet by packet, read notes  Eitan Altman's
notes on ns2 on how to use trace files. (how to extract useful
interepretation).

2. how do i make a study of the service time recieved by each flow? im using
> a FIFO discipline


well better  check packets.. and thus flow's arrival time at a node and then
at what time its departed.. be careful abt the kind of distribution u use.
good lucK

thanks
>
> --
> keep mailing
> urs
> @ditya
>



--
Kamal

--
Kamal


[ns] Queue length for wireless enviorenment

2006-02-05 Thread dharmendra

Hi,

I have some doubts regarding wireless medium as:
Where is queue in wireless medium between a tcp source and sink?
For wired medium i think queue is in the wired link.

Thanks in advance
Dharmendra

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[ns] NS2 Topology

2006-02-05 Thread lekkie omotayo

II'm a newbie to NS2, I wil like u guys to help me out. I will like to know
how to generate a topology of mobile nodes with access point (one or more).
The tutorialz I read were using the Ad Hoc routing method but I will like to
use the Infrasture routing method.

Thnx. (Is there any tool for generating such topology?)

Lekkie.


[ns] XGRAPH PROBLEM

2006-02-05 Thread Mohammed Abu-Khadra

Hi all,

well i tried to run an example which executes the xgraph but didn`t work ..
am using "cygwin" and "NS-v 2.29" .. though i have the directory "
xgraph-12.1" ..

plzz help me .. and here is the result


$ ns example4.tcl
ns: finish: couldn't execute "xgraph": no such file or directory
while executing
"exec xgraph out0.tr out1.tr out2.tr -geometry 800x400 &"
(procedure "finish" line 8)
invoked from within
"finish"


pl help !
thanx


Re: [ns] implementation of multicast protocols of MANET in ns-2.28

2006-02-05 Thread Dhammika Pathirana

Hi Pooja,

ODMRP is implemented in NS 2.1b8, but you'll have to grab Monarch
extensions from http://www.monarch.cs.cmu.edu/software.html

Dhammika


On 2/5/06, Pooja Vyavahare <[EMAIL PROTECTED]> wrote:
>
> hello all,
>
> I am new to NS and wanted to use multicasting protocols in MObile  ad-hoc
> networks loke ODMRP, AMRIS & AMRoute. Inn many of thye papers in litarature
> it is written that they are available in NS. But in NS-2.28 i could not
> found them. can anyone is having these implementations? Can u please help
> me?
> I will be very thankful of u.
>
> waiting for any type of help,
>
> thanks in advance
>
> Pooja.
>



[ns] R: MAC protocol

2006-02-05 Thread Marco Fiore


>I'd like also to check, and maybe to change the size of the  
>contention window in 802_11,
>but I can't find it.

Check tcl/lib/ns-
default.tcl, where all the default values for tcl-configurable
parameters are listed. You can find there the default settings for 
CWmin
and CWmax, and you can override them in your tcl script using the 
same
commands.

Regards,

Marco Fiore



[ns] implementation of multicast protocols of MANET in ns-2.28

2006-02-05 Thread Pooja Vyavahare

hello all,

I am new to NS and wanted to use multicasting protocols in MObile  ad-hoc
networks loke ODMRP, AMRIS & AMRoute. Inn many of thye papers in litarature
it is written that they are available in NS. But in NS-2.28 i could not
found them. can anyone is having these implementations? Can u please help
me?
I will be very thankful of u.

waiting for any type of help,

thanks in advance

Pooja.


[ns] R: Can we get rid of TCP in wireless?

2006-02-05 Thread Marco Fiore


> It seems that all the wireless network simulation examples in ns 
tutorials
>adopt such a format: "app->TCP/UDP->routing->MAC->PHY". 
However, there
>is no transport protocol in real wireless 
implementations. Is it possible 
>to get rid of TCP/UDP and connect 
application directly to the routing?

Actually, a transport protocol 
*is* present in real wireless implementations.
Moreover that protocol 
is often TCP, without which you could not perform
any task requiring 
reliable data transfer (e.g. internet browsing, file sharing).
Maybe 
you mean that in your simulation you do not need reliability at
transport layer: in that case it is sufficient to use the UDP 
protocol... you
can do that simply changing the level 4 protocol from 
TCP to UDP...

Regards,

Marco Fiore



Re: [ns] problem running examples

2006-02-05 Thread Filippos Kolovos

The problem is that even though you have Cygwin
you do not have an X environment to execute X applications as NAM.
The solution to this problem, would be to install (in addition to cygwin),
the KDE ebvironment
for Windows, that co-operates with cygwin.

In this way you will have an X desktop, which will provide
you with the appriopriate $DISPLAY variable for your X environment.

NAM is an X windows application, so it must have an X Desktop (environment)
to run.

I use KDE with cygwin in my Windows NS-2 machines successfully. You can find
it here: http://kde-cygwin.sourceforge.net/.

However, please note that you need to have Windows 2000 or XP in order to be
able
to install the KDE Desktop. After the installation of KDE you will be able
to execute
ns and run your scripts, via the KDE desktop by opening a Terminal program.
Also note
that KDE requires to already have installed cygwin, on top of which will be
installed.
Then you execute KDE to load the desktop and from there you execute a
terminal program
(through the Graphical Menus) to have access to the bash shell.


On 2/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


-- Forwarded message --
From: "Hailun Tan" <[EMAIL PROTECTED]>
To: "Mohammed Abu-Khadra" <[EMAIL PROTECTED]>
Date: Fri, 3 Feb 2006 11:00:08 +1100 (EST)
Subject: Re: [ns] problem running examples !!!

easy!!! type startxwin.bat in cygwin terminal, which will lead you to
another terminal... There you can use nam!!!
>  [ns] problem running examples !!!
>
> Hi i have a problem in running some basic examples in ns-2 ... am
> using ns-2 (v. 2.29) on cygwin for windows !! here is the result from
> running the example:
> $ ns example1b.tcl
> [EMAIL PROTECTED] /usr/local
> $ nam: no display name and no $DISPLAY environment variable









--
Filippos N Kolovos

Software Systems Analyst & Engineer
M.Sc. (Eng.) in Data Communications
IT Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
Phone: +30 2310 891 830,
Fax: +30 2310 857 794
--