How to add GPSR protocol in NS2.35....?

1,310 views
Skip to first unread message

Siddharth Shelly

unread,
Dec 10, 2013, 4:04:48 AM12/10/13
to ns-u...@googlegroups.com
Hi 
installed NS2.35 in ubuntu 10.04.
Can anyone help me in adding the GPSR Protocol in NS2.35?
Thnaks in advance..

knudfl

unread,
Dec 12, 2013, 3:26:23 PM12/12/13
to ns-u...@googlegroups.com
Hi.

You can have as many versions of ns-allinone-2.xx as you want, installed at the same time.
But : Do not add any *PATH text to .bashrc .
(Only to be done when it's not your computer, and thus cannot do 'make install' to /usr/local/bin/).
And : All versions, ns-2.26....2.34 are easy to build on Ubuntu 10.04 :
$ export CC=gcc-4.1 CXX=g++-4.1 && ./install

GPSR-hls is for ns-2.33 . GPSR-KeLiu : There's a version for ns-2.34 .
GPSR-hls info : http://www.linuxquestions.org/questions/tags/gpsr-hls/
GPSR-KeLiu : http://www.linuxquestions.org/questions/tags/gpsr-keliu/

-

Xl Chen

unread,
Mar 31, 2015, 7:26:27 AM3/31/15
to ns-u...@googlegroups.com
why do you say do not add any path to bashrc?
i used cygwin to install ns2.35 and have added some path to bashrc .
would you plz tell me what's the bad side of doing so?

knudfl

unread,
Mar 31, 2015, 8:45:25 AM3/31/15
to ns-u...@googlegroups.com
@Xl Chen ,   Hi.

First :  This is an old year 2013 thread.   The latest GPSR info :
#6 http://www.linuxquestions.org/questions/linux-newbie-8/how-to-patch-gpsr-routing-protocol-to-ns-2-35-a-4175431318/#6
. http://network-simulator-ns-2.7690.n7.nabble.com/GPSR-Patching-td29371.html#a29372

About "not adding a *PATH text to .bashrc :
1) The old year ~1999 text »» Please put .... ,,   IMPORTANT NOTICES: You MUST put .. ««
... was meant only for a "University Computer" : You had no write permissions to /usr/local/.

This will usually do : $ cd ns-allinone-2.35/ns-2.35/ && make install
* I.e.  'make install' will copy 'ns' to /usr/local/bin/,  i.e. i.e.  a system PATH.

More than one version of ns2 :
 You will have all the executable´s "ns-name" in /usr/local/bin/<ns_any-name> :
/usr/local/bin/{ ns, ns-gpsr-hls, ns-hls, ns235-gpsr-KeLiu, ns235-hls }.

* All simulations will work OK with $ ns_any-name  file.tcl

* The above is for a 'Linux OS'.  May also be valid with Cygwin.

The question is : Why use the "Look-a-like Linux" = Cygwin, when you can get the real thing ?
* Install 'VirtualBox' in Windows© , and install any 32bits 'Linux OS' into VirtualBox.
( Actually much faster / easier than setting up Cygwin.)

-

Safae

unread,
Apr 6, 2017, 3:47:18 PM4/6/17
to Network Simulator 2 (NS2)
Hi
I had install succesful  patch of GPSR in ns235 ( ubunto 12.04): http://network-simulator-ns-2.7690.n...g-td29371.html.
But when I run the simulation of the tcl file. This causes me the following error:
INITIALIZE THE LIST xListHead
loading traffic file: trafic/cbr-20-20-8
loading scene file: scen/scen-20-11
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
radiorange 250, x 1001 y 1001
length : 2.000000 , cellperline 6 , heigth 2.000000
maxlevel 2
SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 2090.1
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
    _o26: no target for slot 0
    _o26 type: Classifier/Port
content dump:
classifier _o26
    0 offset
    0 shift
    2147483647 mask
    1 slots
        slot 255: _o28 (CMUTrace/Recv)
---------- Finished standard no-slot{} default handler ----------

Plzzzz help me. Thanks in advance

Reply all
Reply to author
Forward
0 new messages