[ns] Create agent which used TCP

2007-12-19 Thread sura

I want to create my own agent which use TCP. How can I
create such an agent. (Like FTP)

Suranjith
UCSC



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping



Re: [ns] command to create mac_802-11.o in Makefile

2007-12-19 Thread Rennie deGraaf

On Dec 18, 2007 8:55 PM, Arvind Swaminathan <[EMAIL PROTECTED]> wrote:
> In the Makefile only the objects are listed.  I don't see the rules
> for creating the objects.  For instance, I would like to know the
> place where the compile command to create mac-802-11.o is located
> (since I want to add a -Ddegub flag to the cc command).

There isn't an explicit rule to make mac-802_11.o.  The makefile falls
back on the
implicit rule to build a .o file from a .cc file, which is
.cc.o:
@rm -f $@
$(CPP) -c $(CFLAGS) $(INCLUDES) -o $@ $*.cc
If you want to set that macro for all files in ns,  you should do is
to add "-Ddegub"
to "DEFINE" in Makefile.in, re-run configure, and then make, or better
yet, just run
CFLAGS="-Ddegub" make
That will set the "CFLAGS" variable in your system environment before running
make, which will incorporate its value into the CFLAGS string that it uses.

If you only want to set that macro on the one file, add a rule to
Makefile.in similar
to the following:
mac/mac-802_11.o: mac/mac-802_11.cc
@rm -f $@
$(CC) -c $(CFLAGS) -Ddegub $(INCLUDES) -o $@ $*.cc
Then, re-run configure and make.

Rennie deGraaf



Re: [ns] nam: command not found

2007-12-19 Thread Md. Atiur Rahman Siddique

You can try "uname -a" or "uname -p". I can not check now.


--- Arvind Swaminathan <[EMAIL PROTECTED]> wrote:

> 
> Hi Jonathan,
> 
> I am using a Linux machine.  How do I check the bit length?
> 
> Arvind
> 
> On Dec 18, 2007 1:29 AM, Jonathan Guerin <[EMAIL PROTECTED]> wrote:
> > Do you have a 64-bit OS installed?
> >
> > What version of the ns-allinone are you trying to install?
> >
> >
> > On Dec 18, 2007 5:25 PM, Arvind Swaminathan <[EMAIL PROTECTED]> wrote:
> > > Hi everybody,
> > >
> > > Thanks for the e-mails.
> > >
> > > ./make is not working.  make is giving me the following error.  I
> > > would appreciate any advice on fixing this.
> > >
> > > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
> > > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
> > > /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when
> > > searching for -lXext
> > > /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.a when
> > > searching for -lXext
> > > /usr/bin/ld: cannot find -lXext
> > > collect2: ld returned 1 exit status
> > > make: *** [nam] Error 1
> > >
> > > Arvind
> > >
> > >
> > >
> > > On Dec 18, 2007 1:19 AM, Jonathan Guerin <[EMAIL PROTECTED]> wrote:
> > > > You will need to go into the nam directory and then type:
> > > > ./configure
> > > > then
> > > > make depend
> > > > then
> > > > make clean
> > > >
> > > > If you see any error messages, that will be why nam isn't working.
> > > >
> > > >
> > > > On Dec 18, 2007 5:02 PM, Arvind Swaminathan <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > Thanks for your replies.  I  was able to find the nam directory but
> > > > > not the nam executable.  These are the only files with the word nam in
> > > > > it in that directory.  None of them are executable.
> > > > >
> > > > > -rw-r--r--  1 a0866510 drp 23537 Feb 23  1998 nam.1
> > > > > -rw-r--r--  1 a0866510 drp  1022 Nov  7  1998 nam.h
> > > > > -rw-r--r--  1 a0866510 drp 21814 Jun 16  1997 nam.tcl.tk
> > > > > -rw-r--r--  1 a0866510 drp 14646 Jul 12  2002 nam_stream.cc
> > > > > -rw-r--r--  1 a0866510 drp  4181 May 14  2001 nam_stream.h
> > > > > -rw-rw-r--  1 a0866510 drp 36416 Dec  5 12:10 nam_stream.o
> > > > >
> > > > > Could some of you check to see if you have an executable called nam in
> > > > > your directories?  If yes, where is it?
> > > > >
> > > > > Thanks,
> > > > > Arvind
> > > > >
> > > > >
> > > > > On Dec 17, 2007 9:48 PM, Md. Atiur Rahman Siddique <[EMAIL 
> > > > > PROTECTED]> wrote:
> > > > > >
> > > > > > the all in one pack contains nam.
> > > > > > it is located at ns/bin/nam
> > > > > >
> > > > > > -Atiur
> > > > > >
> > > > > > --- Arvind Swaminathan <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > Do I have to install nam separately?  Or does the ns-allinone 
> > > > > > > install
> > > > > > > install nam also?
> > > > > > >
> > > > > > > When I type in nam from any directory, I always get a nam: 
> > > > > > > command not
> > > > > > > found error.
> > > > > > >
> > > > > > > I would appreciate any help in this matter.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Arvind
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >  
> 
> > > > > > Be a better friend, newshound, and
> > > > > > know-it-all with Yahoo! Mobile.  Try it now. 
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Jonathan Guerin
> > > > [EMAIL PROTECTED]
> > > >
> > >
> >
> >
> >
> > --
> >
> > Jonathan Guerin
> > [EMAIL PROTECTED]
> >
> 
> 


Best Regards.
-Atiur


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



Re: [ns] transmit power - does it really control transmission range?

2007-12-19 Thread Md. Atiur Rahman Siddique

Hi Sita,

In my opinion you dont define threshold like that. You need to ensure:
1. The receiving node can sense the signal.
2. If multiple signal arrive at the same time the signal to noise ratio is 
greater its threshold.

You need to set three vars or use default vals with care:

RXThresh_: Received signal strength has to be greater than this for the packet 
to be successfully
received.

CSThresh_: Received signal strength has to be greater than this for the packet 
transmission to be
sensed. So,  CSThresh_ should be smaller or equal to RXThresh_ for a real case.

CPThresh_: With multiple signal being received the ratio of stregths of 
strongest signal to the
second strongest one has to be greater that this. If it is not both are 
truncated. I think (check
for yourself) in NS they check only the strongest two signals which is wrong in 
my opinion. It
should be the original signal and the sum of all other signals. I think they do 
it in glomosim.

-Atiur

--- "Sita S. Krishnakumar" <[EMAIL PROTECTED]> wrote:

> I am using two ray ground propogation. Let me try to understand this: If I
> have a source node with transmission range of 250m and a destination node
> 100m away with receiving threshold of 20m, will packets from source be
> received by destination node?
> 
> -Sita
> 
> 
> >
> > The transmission range depends on the transmitted power, propagation model
> > and recv thershold. So,
> > yes, I think all the nodes are not connnect with these values.
> >
> > -Atiur
> > --- "Sita S. Krishnakumar" <[EMAIL PROTECTED]> wrote:
> >
> >>
> >>
> >> > Hi,
> >> > I am working with a sparsely connected network in a 200m by 200m
> >> field.
> >> > The default transmit power of 0.281838 corresponds to a 250m
> >> transmission
> >> > range. I have a node in the center with this Pt_ and when it sends out
> >> > packets, all the nodes in the network do not seem to receive it. Why?
> >> >
> >> > On a separate note, setting CsThresh_ and RxThresh_ does limit the the
> >> > sensing range and receiving range of the nodes (which I have at 20m).
> >> Does
> >> > this in any way cause the impediment?
> >> >
> >> > Thanks,
> >> > Sita
> >> >
> >> >
> >>
> >>
> >>
> >
> >
> >
> >   
> > 
> > Be a better friend, newshound, and
> > know-it-all with Yahoo! Mobile.  Try it now.
> > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >
> >
> 
> 
> 


Best Regards.
-Atiur


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 



Re: [ns] nam: command not found

2007-12-19 Thread Md. Atiur Rahman Siddique

Hi Arvind,

In my case nam is present as ~/ns-2.32-allinone/nam-1.13/nam ie, 
/nam-/nam.

But you dont have to worry about the actual path, a link is setup automatically 
as
~/ns-2.32-allinone/bin/nam. There is a link for ns in the same directory too. 
So, all you need to
do is to add this /bin to your PATH variable.

-Atiur

--- Arvind Swaminathan <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Thanks for your replies.  I  was able to find the nam directory but
> not the nam executable.  These are the only files with the word nam in
> it in that directory.  None of them are executable.
> 
> -rw-r--r--  1 a0866510 drp 23537 Feb 23  1998 nam.1
> -rw-r--r--  1 a0866510 drp  1022 Nov  7  1998 nam.h
> -rw-r--r--  1 a0866510 drp 21814 Jun 16  1997 nam.tcl.tk
> -rw-r--r--  1 a0866510 drp 14646 Jul 12  2002 nam_stream.cc
> -rw-r--r--  1 a0866510 drp  4181 May 14  2001 nam_stream.h
> -rw-rw-r--  1 a0866510 drp 36416 Dec  5 12:10 nam_stream.o
> 
> Could some of you check to see if you have an executable called nam in
> your directories?  If yes, where is it?
> 
> Thanks,
> Arvind
> 
> On Dec 17, 2007 9:48 PM, Md. Atiur Rahman Siddique <[EMAIL PROTECTED]> wrote:
> >
> > the all in one pack contains nam.
> > it is located at ns/bin/nam
> >
> > -Atiur
> >
> > --- Arvind Swaminathan <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > Hi,
> > >
> > > Do I have to install nam separately?  Or does the ns-allinone install
> > > install nam also?
> > >
> > > When I type in nam from any directory, I always get a nam: command not
> > > found error.
> > >
> > > I would appreciate any help in this matter.
> > >
> > > Thanks,
> > > Arvind
> > >
> > >
> >
> >
> >
> >   
> > 
> > Be a better friend, newshound, and
> > know-it-all with Yahoo! Mobile.  Try it now. 
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >
> >
> 


Best Regards.
-Atiur


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping



Re: [ns] INFO SHARE

2007-12-19 Thread Sidney Doria

Hi Veerayya,

looks obvious, but:

1.  You can consider "hidden terminal" problem
2.  Propagation? (a one-hop node that, in fact, is far way)

I choose the first problem. Try to reduce node numbers or spread them more.


Hope to be useful

Sidney Doria


2007/12/19, Mallapur Veerayya <[EMAIL PROTECTED]>:
>
> Hello Ns-users,
>
>  Here I am sharing one of my experience with Ad-hoc simulations in
> NS-2.29, I would like know the reason for it.
>
>  1. The broadcast packets not reach all one-hop neighbours
>  2. Unicast packets does not reach the next hop
>
>  The behaviour changes if the node position is changeg slightly.
>
>  I have used TwoRayGround model as fading model and AODV as routing
> protocol
>
>  If somebody has figured out why is this ? or is it a bug in NS-2 ?
> Please share the information to increase my knoledge..
>
>  Thanks in advance
>
>  Mallapur Veerayya
>  M.Tech(CE) 
>  Reg No. 06307416
>  IIT BOMBAY
>
>


-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

"Nessa jornada, o conhecimento será o seu escudo..."
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] INFO SHARE

2007-12-19 Thread Mallapur Veerayya

Hello Ns-users,

 Here I am sharing one of my experience with Ad-hoc simulations in
NS-2.29, I would like know the reason for it.

 1. The broadcast packets not reach all one-hop neighbours
 2. Unicast packets does not reach the next hop

 The behaviour changes if the node position is changeg slightly.

 I have used TwoRayGround model as fading model and AODV as routing
protocol

 If somebody has figured out why is this ? or is it a bug in NS-2 ?
Please share the information to increase my knoledge..

 Thanks in advance

 Mallapur Veerayya
 M.Tech(CE) 
 Reg No. 06307416
 IIT BOMBAY