[ns] Updated Version of Toilers' implementation of LAR and DREAM
Claus Christmann
hcc at gatech.edu
Thu Feb 28 05:22:53 PST 2008
Avishek,
I am not using DREAM/LAR at the moment and do not even have a working
ns2 at this time, so I can't give you step by step instructions... (My
research interest shifted...)
The questions you have are general questions related to the LAR/DREAM
code written by TOILERS. You should ask the email list
(ns-users at isi.edu) for general answers and after you figured out the
solution to your problems, please go ahead and update the ns2 WIKI
(http://nsnam.isi.edu/nsnam/index.php/Main_Page) so that other people
could find the solutions you found, too.
As to your particular question:
If I remember correctly, the box.tcl does not specify a mobilty file (as
stated by the error message). There are two solutions to this (again, if
I remember correctly): either do what the error message told you to to,
i.e. call
$ ns box.tcl MOBILITY.FILE
or simply include a mobility file inside box.tcl (for examples on how to
do this look at any more recent tcl input file for a wireless scenario...)
Please check the ns2 manual on how to create mobility files.
Again, please add any insight you gained into the ns2 wiki
(http://nsnam.isi.edu/nsnam/index.php/Main_Page) so that others can
learn about and from your work.
Hope that helps.
Claus
Maxy Mania wrote:
> Hi Claus,
> I have patched the code successfully after the code which
> was updated by you. I am really grateful to you for your support. I am
> working in LAR protocol. So I found a folder named LAR inside the
> ns-2.32 folder. This folder consist of a .tcl file (box.tcl), a readme
> file and a .cc file (lar.cc). Whenever I am executing the box.tcl file,
> it is showing an error message "USAGE: <mobility file>". From the code
> in the box.tcl file, i found that we need to provide a file along with
> the command "ns box.tcl" as an additional argument. The readme file is
> also not very clear. So I request you to provide me a solution to y
> problem.
>
> Regards
> Avishek
>
> */Claus Christmann <hcc at gatech.edu>/* wrote:
>
> Hi Avishek,
>
> I am sorry, I had a typo in my email. What you need to do is to run the
> unix command "patch" (http://www.rt.com/man/patch.1.html) in order to
> include my patch-file.
>
> So in order to correct my command:
>
> $: patch -p1
>
> This should include the .patch file (which is only a text file, created
> with the "diff" utility).
>
> Hopefully you guys can get it running now...
>
> Claus
>
>
> Maxy Mania wrote:
> > Hi Claus,
> > I am trying to patch the code given by u in my linux, but
> > it is showing an error message "file p1 missing". please tell me
> how do
> > i overcome this major problem. we are using ns2 version 2.32.
> i'll be
> > eagerly waiting for your reply.
> >
> > Regards,
> >
> > Avishek
> >
> >
> > */Claus Christmann /* wrote:
> >
> > Hi Avishek,
> >
> > Find attached the patch I created.
> >
> > After you included the patch, you should have a new directory (called
> > DREAM if I recall correctly) that contains a README file.
> >
> > Please also inform Tracy Camp (tcamp at mines.edu) from TOILERS that you
> > are using their code (I simply updated their ns2 patch) and include a
> > reference to their paper on LAR and DREAM in any publication you
> might
> > have (http://toilers.mines.edu).
> >
> > Enjoy playing around with DREAM and LAR and please publish your
> > results,
> > struggles, patches and success stories either via the ns-users
> mailing
> > list or on the ns wiki
> (http://nsnam.isi.edu/nsnam/index.php/Main_Page)
> > so that others can pick up the good work you are doing.
> >
> > You should be able to apply this patch file by simply copying it into
> > your ns-allinone-2.32 folder (parallel to the ns-2.32 folder) and
> > performing the following command (in linux):
> >
> > $: patch p1
> >
> > This should patch your installation with the data in the
> > toilers-LAR-DREAM-2.32.patch file.
> >
> > Regards,
> >
> > Claus
> >
> > PS: I haven't tested the patch in cygwin. Please send me a short
> > feedback in case you are using a cygwin environment.
> >
> > maxy_meets at yahoo.co.in wrote:
> > > Hi,
> > > I am Avishek and am working on LAR protocol now. I'll be very
> > grateful, if you send me the LAR Protocol implementation code.
> > >
> > > Thanks,
> > > Avishek R.C.
> > > mail id: a.rc at aol.in
> > >
> > >
> > >
> > > Claus Christmann wrote:
> > >>
> > >> Hi List,
> > >>
> > >> the Toilers research group has written an implementation of
> LAR and
> > >> DREAM for ns2.1b7a related to the following paper:
> > >>
> > >> T. Camp, J. Boleng, B. Williams, L. Wilcox, and W. Navidi,
> > Performance
> > >> Comparision of Two Location Based Routing Protocols for Ad Hoc
> > >> Networks, Proceedings of the IEEE INFOCOM, pp. 1678-1687, 2002.
> > >>
> > >> I received a copy of the code related to the ns2.1b7a version
> > from the
> > >> list and made an updated patch for ns-allinone-2.32.
> > >>
> > >> If anybody is interested in that patch, send me an email. I am
> > more than
> > >> happy to send you a copy.
> > >>
> > >> Cheers,
> > >>
> > >> Claus
> > >>
> > >> --
> > >> Claus Christmann
> > >> Graduate Research Assistant
> > >>
> > >> Georgia Institute of Technology
> > >> 270 Ferst Drive
> > >> Atlanta, GA 30332-0150
> > >>
> > >> http://uav.ae.gatech.edu
> > >>
> > >>
> > >>
> > > Quoted from:
> > >
> >
> http://www.nabble.com/Updated-Version-of-Toilers%27-implementation-of-LAR-and-DREAM-tp13256452p13256452.html
> > >
> >
> > --
> > Claus Christmann
> > Graduate Research Assistant
> >
> > Georgia Institute of Technology
> > 270 Ferst Drive
> > Atlanta, GA 30332-0150
> ------------------------------------------------------------------------
> Now you can chat without downloading messenger. Click here
> <http://in.rd.yahoo.com/tagline_webmessenger_5/*http://in.messenger.yahoo.com/webmessengerpromo.php>
> to know how.
--
Claus Christmann
Graduate Research Assistant
Georgia Institute of Technology
270 Ferst Drive
Atlanta, GA 30332-0150
More information about the Ns-users
mailing list