patching GPSR for VANET. HELP !

126 views
Skip to first unread message

ikram ikramou

unread,
Nov 20, 2018, 8:02:32 PM11/20/18
to Network Simulator 2 (NS2)
Dear Knudfl,

I encounter huge difficulties to patch GPSR {GPSR-hls_ns235.patch }  for ns-allinone-2.35 on ubuntu 12.04 -desktop- amd64 knowing that I have followed several tutorial including yours . and this for over a month, I am completely blocked.

and at the same time tell me how many files must be generated in the directory gpsr (after the patch) because on my side I managed to have only gpsr.cc and gpsr.h? and when I run an example gpsr.tcl several errors appear ...

if I turned to you it is because you are my last chance to solve this problem. your help will help me to catch up on all this delay that I am undergoing and to advance in my implementation, I still have plenty of work to do. help me please, I really need it!

Hoping to have a positive echo from you, with all my anticipated thanks.
yours faithfully

CHERIFI Ikram
email: cherif...@outlook.com
 tel : +213552 35 44 55

more precisely-----------------------------------------------------------------------------
## at the end of executing the command ./install of the patch I get this kind of error

tcl8.5.10 make succeeded.
Installing libtcl8.5.a to /home/ikram/Documents/ns-allinone-2.35/lib/
cp: cannot create regular file `/home/ikram/Documents/ns-allinone-2.35/lib/#inst.6156#': Permission denied
rm: cannot remove `/home/ikram/Documents/ns-allinone-2.35/lib/libtcl8.5.a': Permission denied
mv: cannot stat `/home/ikram/Documents/ns-allinone-2.35/lib/#inst.6156#': No such file or directory
ranlib: could not create temporary file whilst writing archive: No more archived files
make: *** [install-binaries] Error 1
tcl8.5.10 installation failed.
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
ikram@ubuntu:~/Documents/ns-allinone-2.35$ cd ns-2.35/


## and when i continue to patch maled the previous error and i test some gpsr example like the file ssoumayaa.tcl that's what it gives as error

ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35$ cp ns ns-gpsr-hls
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35$ sudo cp ns-gpsr-hls /usr/local/bin/
[sudo] password for ikram:
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35$ cd ESSAI/
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI$ cd hls-utils/
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI/hls-utils$ ns-gpsr-hls ssoumayaa.tcl
invalid command name "Agent/GPSR"
while executing
"Agent/GPSR set bdesync_ 0.5 "
(file "ssoumayaa.tcl" line 5)
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI/hls-utils$ cd ..
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI$ ls
1_out.tr CwMaodv_50
aodv-10.tcl CwMAODV_50
AODV_10.tr gpsr.tcl
aodv-50.tcl hls-utils
aodv-50.tcl~ namwrls.nam
aodv_50.tr Nod120_source10_cbr
AODV_50.tr ns
Aomdv_120node_10sources_vites_2.nam ns-gpsr-hls
Aomdv_120node_10sources_vites_2.tcl ssoumayaa.tcl
Aomdv_120node_10sources_vites_2.tcl~ ssoumayaa.tcl~
Aomdv_120node_10sources_vites_2.tpt VANET.tcl
Aomdv_120node_10sources_vites_2.tr wayp_120nod_vites_2_Ver2
cbr100.tcl
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI$ ns-gpsr-hls gpsr.tcl
invalid command name "Agent/GPSR"
while executing
"Agent/GPSR set sport_ 0"
(file "gpsr.tcl" line 1)
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI$



knudfl

unread,
Nov 20, 2018, 11:03:45 PM11/20/18
to Network Simulator 2 (NS2)
Hi.

»» Permission denied «« :  Usually caused by unpacking "ns-allinone-" in a wrong way.
E.g. by using sudo ,  or  using a Windows© tool ... ...

Ubuntu 12.04 - amd64 :  No chance with ns-2.35 + GPSR-hls  with a 64bits OS.
`ns-2.34´ can be used. Works perfect with both 32 and 64bits.
... On some 'Linux OS'  you just get poor / unusable simulations. Ubuntu 12.04 - amd64 fails the build.

Your new head-line says Vanet. There's a thread here about GPSR and Vanet

Latest examples = gpsr-hls-ex_02.18.tar.gz  ( There are about 50 simulation ex )
https://drive.google.com/file/d/1H52fmqXcwyE-PxPWtEQBydbPzdatTZ_b/view?usp=sharing

... And GPSR-KeLiu :  GPSR-KeLiu-examples_07Jun17.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNakpZcF85eFJrRnM/view?usp=sharing

Build example, GPSR-hls
tar xvf ns-allinone-2.34.tar.gz
patch
-p0 < GPSR-hls_ns234-2.patch
https
://drive.google.com/file/d/0B7S255p3kFXNTXl5anRTeFRON2s/view?usp=sharing
patch
-p0 < ns234_gcc49.patch
https
://drive.google.com/file/d/0B7S255p3kFXNZDNyV1BPZHhEY0U/view?usp=sharing
./install
cd ns
-2.34/
cp ns ns234
-gpsr-hls
sudo cp ns234
-gpsr-hls /usr/local/bin/
---------------

Applications : Install an executable ... no other ns2 required :  No ns-allinone-2, no ns-2.xx .
→  gpsr-hls-ns_2.33-2-ubuntu10_i386.deb   3.1MB . Provides /usr/local/bin/ns233-hls

Download ... and install :    
$ sudo gdebi Downloads/gpsr-hls-ns_2.33-2-ubuntu10_i386.deb

ikram ikramou

unread,
Nov 21, 2018, 7:30:05 PM11/21/18
to Network Simulator 2 (NS2)
Good evening,

I thank you for agreeing to help me.
for a start you save me, I will immediately apply the instructions you just prodigeued me for building the GPSR -hls. however, please send me the correct download link from ns 2-34 & the exact instructions to uninstall the ns2-35 (remove it completely from my operating system) in order to replace it with the ns2- 34

knudfl

unread,
Nov 21, 2018, 7:54:45 PM11/21/18
to Network Simulator 2 (NS2)
Hi.

You can have as many ns-allinone-2.xx as you want, installed at the same time
.... But of course you can delete a wrecked ns-allinone-2.35/,
... and restore your .bashrc , if you did some entries.

My setup example → usr.local.bin-08.18.txt → Attached.
As you can see, I have both GPSR-hls and GPSR-KeLiu. (And all other well known "patches".)




-
usr.local.bin-08.18.txt

ikram ikramou

unread,
Nov 23, 2018, 7:45:18 PM11/23/18
to Network Simulator 2 (NS2)
Dear knudfl,

I need your help again
by following this guide-to-installing-ns-2-34 in ubuntu12-04 
https://researchingwirelessly.wordpress.com/2013/05/17/guide-to-installing-ns-2-34-network-simulator-in-ubuntu-12-04-lts-specifically/

 arriving at the step:  ./configure,  the following error appears.


--------------------------------------------------------------------------------------------------------------------------------------
ikram@ubuntu:~/Documents/ns-allinone-2.34/ns-2.34$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
No .configure file found in current directory
Continuing with default options...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking should use STL... yes
checking for tcl.h... -I../tcl8.4.18/generic
checking for tclInt.h... -I../tcl8.4.18/generic
checking for libtcl8.4... no
checking for init.tcl... ../tcl8.4.18/library
checking for http.tcl... ../tcl8.4.18/library/http
checking Tcl http.tcl library... yes
checking for tclsh8.4.18... no
checking for tclsh8.4... no
checking for tclsh... no
checking for tclsh8.3.5... no
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.
ikram@ubuntu:~/Documents/ns-allinone-2.34/ns-2.34$
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

tell me please what should I do ?
ignore it ?
corrected imediatement, it will bother me problems in my future installation (patch, sumo, move ....)?

thank you in advance, and I apologize for this inconvenience

 

ikram ikramou

unread,
Nov 23, 2018, 8:08:33 PM11/23/18
to Network Simulator 2 (NS2)
correct it  imediatement, it will bother me problems in my future installation (patch, sumo, move ....)?

knudfl

unread,
Nov 23, 2018, 11:54:40 PM11/23/18
to Network Simulator 2 (NS2)
Hi.

....  The information is old / is totally wrong.
»»Step 1) Remove any previous ns2 versions installed on your OS«« :  Wrong ....
See 'ls ns2-INFO.txt', i.e. you can have "a hundred" ns2 installs at the same time
»»Step 2) : This will do : sudo apt-get install g++ autoconf libtool libxmu-dev (xgraph)
I.e. xgraph is optional / for later use, not required for building ns2.

Assume ns-2.34 + GPSR-hls.

Build example :
tar xvf ns-allinone-2.34.tar.gz
patch
-p0 < GPSR-hls_ns234-2.patch
https
://drive.google.com/file/d/0B7S255p3kFXNTXl5anRTeFRON2s/view?usp=sharing
patch
-p0 < ns234_gcc49.patch
https
://drive.google.com/file/d/0B7S255p3kFXNZDNyV1BPZHhEY0U/view?usp=sharing
./install
cd ns
-2.34/
cp ns ns234
-gpsr-hls
sudo cp ns234
-gpsr-hls /usr/local/bin/

----------- Simulation ------------
ns234-gpsr-hls ssoumayaa.tcl

"nam-1.14" will fail to build. Use a package, nam_1.14_amd64.deb
Download ... and install :
sudo gdebi Downloads/nam_1.14_amd64.deb

-------------
Future installs, sumo and move :    
Sumo → please ask if any issues. All versions can create "movement files" for ns2.
MOVE → There is no install, keep a copy of MOVE.jar in a random folder, and do :
java -jar MOVE.jar

ikram ikramou

unread,
Nov 25, 2018, 7:18:31 AM11/25/18
to Network Simulator 2 (NS2)

Hi ser,

after patching the gprs-hls (no errors occurred) 3 files were generated (gpsr.h, gpsr.cc, gspr.o) in the gpsr folder

after testing ssoumayaa.tc



----------------------------------------------------------------------------------------------------------------------------------------------------------
ikram@ubuntu:~/Documents/ns-allinone-2.34/ns-2.34/gpsr-hls-ex_02.18$ ns234-gpsr-hls ssoumayaa.tcl
num_nodes is set 2
INITIALIZE THE LIST xListHead
Starting Simulation...
radiorange 250, x 2000 y 500
length : 3.000000 , cellperline 12 , heigth 1.000000
maxlevel 3
radiorange 250, x 2000 y 500
length : 3.000000 , cellperline 12 , heigth 1.000000
maxlevel 3
SORTING LISTS ...DONE!
ikram@ubuntu:~/Documents/ns-allinone-2.34/ns-2.34/gpsr-hls-ex_02.18$
---------------------------------------------------------------------------------------------------------------------------------------------------------
does that mean simulation success, patch successful



but after executing
sudo gdebi Downloads / nam_1 . 14 _amd64 . deb
i have this errors
--------------------------------------------------------------------------------------------------------------------------------------------------------------
ikram@ubuntu:~/Downloads$ sudo gdebi Downloads / nam_1.14 _amd64.deb
gdebi error, file not found: Downloads
ikram@ubuntu:~/Downloads$ sudo gdebi nam_1.14 _amd64.deb
gdebi error, file not found: nam_1.14
ikram@ubuntu:~/Downloads$ sudo gdebi Downloads ^Cnam_1.14 _amd64.deb
ikram@ubuntu:~/Downloads$ cd Documents
bash: cd: Documents: No such file or directory
ikram@ubuntu:~/Downloads$ cd
ikram@ubuntu:~$ cd Documents
ikram@ubuntu:~/Documents$ sudo gdebi nam_1.14 _amd64.deb
gdebi error, file not found: nam_1.14
ikram@ubuntu:~/Documents$ sudo gdebi Downloads / nam_1.14 _amd64.deb
gdebi error, file not found: Downloads
ikram@ubuntu:~/Documents$ cd
ikram@ubuntu:~$ sudo gdebi Downloads / nam_1.14 _amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Building data structures... Done
Unknown package type 'Downloads', exiting
ikram@ubuntu:~$ cd Documents
ikram@ubuntu:~/Documents$ ls
gpsr-hls-ex_02.18                   nam_1.14_amd64
gpsr-hls-ex_02.18 (1).tar.gz        ns234_gcc49.patch
GPSR-hls_ns234-2.patch              ns-allinone-2.34
GPSR-hls_ns234-2.patch.orig         ns-allinone-2.34.tar.gz
GPSR-hls_ns234-2.patch.rej          somayaa done
GPSR-KeLiu-examples_07Jun17.tar.gz  Untitled Document~
ikram@ubuntu:~/Documents$ cd
ikram@ubuntu:~$ cd Downloads
ikram@ubuntu:~/Downloads$ ls
GPSR-hls_ns234-2.patch  nam_1.14_amd64(1).deb  ns234_gcc49.patch
MOVE.jar                nam_1.14_amd64.deb     usr.local.bin-08.18.txt
nam_1.14_amd64          nam-1.14.tar.gz
ikram@ubuntu:~/Downloads$
---------------------------------------------------------------------------------------------------------------------------------
this installation rebut from nam_1.14 is maybe caused by my ns234 installation wrong ?!

here are the steps I made to install the ns2 34 are:


sudo apt-get update
sudo apt-get upgrade
sudo apt-get update

sudo apt-get install build-essential autoconf automake
sudo apt-get install tcl8.5-dev tk8.5-dev
sudo apt-get install perl xgraph libxt-dev libx11-dev libxmu-dev
sudo apt-get install gcc-4.4

tar -xvzf ns-allinone-2.34.tar.gz
sudo ./install
sudo gedit .bashrc
./validate

and I got a% after typing ns

if my instalation is wrong, please tell me the correct installation link ns 2.34

thanks

knudfl

unread,
Nov 25, 2018, 12:49:59 PM11/25/18
to Network Simulator 2 (NS2)
Hi.

About the install of "nam_1.14 _amd64.deb" :  First download the package.
Then please check if it's present in Downloads/.
When sure of that, you can do   $ sudo gdebi nam_1.14 _amd64.deb

----------

Ref.
tar -xvzf ns-allinone-2.34.tar.gz
sudo ./install
sudo gedit .bashrc
./validate

Please follow my text instead.  Read the previous post → The "build example".
Some of your actions are surplus.
sudo gedit .bashrc  :  Absolutely wrong.  Read ns2-INFO https://drive.google.com/file/d/1FCjn-9fkR7tKeqClUpHsleaEdnoKRZzq/view?usp=sharing
...  Do not add any *PATH text to .bashrc !

"./validate" is surplus.  No reason to do that.  Nothing you can do anyway, if some tests fail.

---------------

Your simulation is probably OK.  Meaning your executable { ns, ns234-gpsr-hls } are OK.
The simulation result is missing from your text :
fangzhen1.nam ~110kB,  fangzhen1.tr ~175kB are expected.
------------------

»» after patching the gprs-hls (no errors occurred) 3 files were generated (gpsr.h, gpsr.cc ««
? What do you mean ?  gprs/{2 files}, hls/{ 10 files}, locservices/{ 15 files}, etc. etc.

ikram ikramou

unread,
Dec 1, 2018, 9:28:08 PM12/1/18
to Network Simulator 2 (NS2)


hi sir ,
now that I have managed to execute the file ssoumayaa.tcl, tes-gpsr.tcl and Vanet-T-tes-gpsr.tcl from the gpsr sample files that you gave me under ns2.34 via the gpsr- hls patch and nam 1.14.
I need more example of senario more concistants and please kindly tell me how to load a map under sumo 12.3
yours faithfully




Message has been deleted
Message has been deleted

ikram ikramou

unread,
Dec 3, 2018, 8:18:33 AM12/3/18
to Network Simulator 2 (NS2)
hi sir ,
now that I have managed to execute the file ssoumayaa.tcl, tes-gpsr.tcl and Vanet-T-tes-gpsr.tcl from the gpsr sample files that you gave me under ns2.34 via the gpsr- hls patch and nam 1.14.
I need other examples of senario GPSR for VANET and please kindly tell me how to change a map under sumo 12.3
yours faithfully

knudfl

unread,
Dec 3, 2018, 8:46:31 AM12/3/18
to Network Simulator 2 (NS2)
Did you receive my message to you ?   I.e. I did send a "private message", because ordinary answer wasn't forwarded.  Hence the deleted / not sent answers.
( SUMO doc, etc.)
Message has been deleted

ikram ikramou

unread,
Dec 3, 2018, 5:55:26 PM12/3/18
to Network Simulator 2 (NS2)
hi sir ,
indeed, I have not received anything, please send them to me by e-mail and excuse me for this inconvenience
my
e-mail adress : cherif...@outlook.com


莫生禾

unread,
Dec 29, 2018, 9:47:06 AM12/29/18
to Network Simulator 2 (NS2)
hi, sir

  I want to implement a vanet with 802.11b. But I have no idea about the patch for the default implementation of 802.11b in NS2.35

1 I know the URL of that patch, but I can not download that patch
2 Do I need to find whether the 802.11p have any patch for NS2.35?

在 2018年12月3日星期一 UTC+8下午9:46:31,knudfl写道:

莫生禾

unread,
Dec 29, 2018, 9:49:22 AM12/29/18
to Network Simulator 2 (NS2)
hi, sir

  I want to implement a vanet with 802.11b. But I have no idea about the patch for the default implementation of 802.11b in NS2.35

1 I know the URL of that patch, but I can not download that patch
2 Do I need to find whether the 802.11p have any patch for NS?

在 2018年12月3日星期一 UTC+8下午9:46:31,knudfl写道:
Did you receive my message to you ?   I.e. I did send a "private message", because ordinary answer wasn't forwarded.  Hence the deleted / not sent answers.

莫生禾

unread,
Dec 29, 2018, 9:51:00 AM12/29/18
to Network Simulator 2 (NS2)
Hi, sir
 
   How do I config the arguments in NS2.35 for simulating 802.11b ?


在 2018年12月3日星期一 UTC+8下午9:46:31,knudfl写道:
Did you receive my message to you ?   I.e. I did send a "private message", because ordinary answer wasn't forwarded.  Hence the deleted / not sent answers.

knudfl

unread,
Dec 30, 2018, 3:53:26 PM12/30/18
to Network Simulator 2 (NS2)
Hi.

802.11a, 802.11p settings :  ns-2.35/tcl/ex/802.11/*

.... and plenty of other hits for 802.11b.

ikram ikramou

unread,
Jan 16, 2019, 4:07:08 AM1/16/19
to Network Simulator 2 (NS2)

Dear Knud,
I come back to you for a ultimate need of you sir. Whene i run my .tcl file for VANET (using GPSR Protocol IN NS2.34) i crose this modie error that persists.
I beg you please answer me as much as possible.

attached My tcl file (gvanet.tcl)

Result is :
ikram@ubuntu:~/Documents/ns-allinone-2.34/ns-2.34/ESSAI/GPSRvanet$ ns234-gpsr-hls gvanet.tcl
num_nodes is set 50

INITIALIZE THE LIST xListHead
Starting Simulation...
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
SORTING LISTS ...DONE!
format_aodv: invalid AODV packet type
gvanet.tcl

knudfl

unread,
Jan 16, 2019, 7:34:22 AM1/16/19
to Network Simulator 2 (NS2)
@ikram ikramou ,   Hi.

Please do not show a lot of lines with the same text. And please use "code syntax". Button = { }

`gvanet.tcl´ : Seems to be a similar to "rendi-GPSR-hls-02.tcl / 2-IEEE802-11p.tcl", with different movements.

My test with the modified 2-gvanet.tcl :
$ ns234-gpsr-hls-64 2-gvanet.tcl
num_nodes
is set 50

INITIALIZE THE LIST xListHead
Starting Simulation...
radiorange
250, x 652 y 252
length
: 1.415037 , cellperline 4 , heigth 0.415037
maxlevel
2
.

radiorange
250, x 652 y 252
length
: 1.415037 , cellperline 4 , heigth 0.415037
maxlevel
2
SORTING LISTS
...DONE!

NS EXITING
...

My editing : Line 54 .. 58 were edited to be  not commented out.
54  Agent/GPSR set locservice_type_ 3 ;################################ edited: Not commented out

56  add-all-packet-headers ;################################ edited: Not commented out
57  remove-all-packet-headers ;################################ edited: Not commented out
58  add-packet-header Common Flags IP LL Mac Message GPSR  LOCS SR RTP Ping HLS ;### edited ...
... I guess when these lines are missing, then you are using a conflicting (invalid) package type AODV..

CHERIFI IKRAM

unread,
Jan 17, 2019, 9:45:10 AM1/17/19
to ns-u...@googlegroups.com
and NS EXITING is not considered like problem (error or warning) ?

De : ns-u...@googlegroups.com <ns-u...@googlegroups.com> de la part de knudfl <knu...@ofir.dk>
Envoyé : mercredi 16 janvier 2019 04:34
À : Network Simulator 2 (NS2)
Objet : Re: patching GPSR for VANET. HELP !
 
--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.

ikram ikramou

unread,
Jan 17, 2019, 9:46:21 AM1/17/19
to Network Simulator 2 (NS2)
and NS EXITING is not considered like problem (error or warning) ????

knudfl

unread,
Jan 17, 2019, 6:18:06 PM1/17/19
to Network Simulator 2 (NS2)
"NS EXITING..." or "NS Exiting..." is a quite usual way of ending a simulation.
Please try to run some default examples to know.

dardouri soumya

unread,
Jan 18, 2019, 7:35:40 AM1/18/19
to Network Simulator 2 (NS2)
Good evening sir
please help me it is possible to send example simulation the difference between protocol aodv and dsdv (PDR, PLR, DEbit) in vanet

--

dardouri soumya

unread,
Jan 18, 2019, 7:36:40 AM1/18/19
to Network Simulator 2 (NS2)


Good evening sir
please help me it is possible to send example simulation the difference between protocol aodv and dsdv (PDR, PLR, throughput) in vanet

knudfl

unread,
Jan 18, 2019, 4:54:22 PM1/18/19
to Network Simulator 2 (NS2)
@dardouri soumya ,   Hi.

Finding examples with DSDV or AODV :
$ cd ex-vanet-09.18/
$ grep
-Rn "set val(rp" *
$ grep
-Rn "set opt(rp" *
Overview :  Please read "z5-scripts-overview.txt".
z5-scripts-overview.txt
Reply all
Reply to author
Forward
0 new messages