How to simulate GPSR in ns2.35?
Hello everyone.
I'm using Ns2.35 in ubuntu 14.04. I want to simulate GPSR routing protocol on it, but it's not work. Maybe code is wrong (i download it on the internet) or GPSR doesn't work on ns2.35, i think. this is the code of GPSR. Code:
# author: Thomas Ogilvie Thanks for your time. |
So where did you get this sketchy old copy of "hls.tcl" ?
A link, please. The new version of `hls.tcl' : See ns-2.3x/hls/utils/ All GPSR-hls examples : gpsr-hls-examples-05.14.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing 130sec-1f-hls-1.tcl 150-2f-hls-2.tcl AGT-on__hls.tcl hls.tcl run.tcl smac_hls.tcl smac_ssoumayaa.tcl ssoumayaa-0.tcl ssoumayaa-802.15.4.tcl ssoumayaa.tcl tes-gpsr.tcl GPSR info, see posts #2 and #3 here ... http://www.linuxquestions.org/questi...-4175528835/#2 ... And yes, GPSR-hls works OK with ns-2.35 . ! Code must be shown in CODE Tags ... . http://www.linuxquestions.org/questi....php?do=bbcode . http://www.linuxquestions.org/questi...gs-4175464257/ I.e. the ` # ' button in the 'Advanced Editor'. Or type [/code] at code end, and [code] at code start. * Please edit post #1. * Editing post #1 : That's the 'Edit' button in post #1. .... And no bold typing. Bold is for a single word. - |
#2
thank knudfl, the link of that GPSR i have downloaded long time ago and i didn't remember. i will reading that link you give me. thank a lot! |
#2
Dear knudfl I have sucseccfully run GPSR in ns2 by folow this guid. Code:
> patch GPSR in ns-2.35 Code:
phuc@ubuntu:~/Desktop/simulation/gpsr-hls-examples-05.14/hls-utils$ ns-gpsr-hls ssoumayaa.tcl thank for your time! Regards! |
Nam : $ cd ns-allinone-2.35/nam-1.15/
$ sudo make install The nam output file from the ssoumayaa.tcl simulation is fangzhen1.nam : $ nam fangzhen1.nam ... But not much activity. Please try out the other simulation files. The "scene file" kordinat_20_20.scn for tes-gpsr.tcl is missing in the "05.14 examples". Please get this new package : gpsr-hls-examples-03.15.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing - |
#5
Thank you so much! I am working on it. |
Dear knudfl
I was install another Ns2.35 to instanll GPSR-Keliu on it. From #2,#3 of this link :http://www.linuxquestions.org/questi...-4175528835/#2 But when i do this: $ns-gpsr-keliu (name).tcl to simulate but it doesn't work. When i install GPSR-hls, i have download this file be for install : ns-allinone-2.35_gcc482.tar.gz But, when i install GPSR-KEliu, i didn't see any kind of that file in the link above. Can you help me for this problem? Thank you so much! |
Re #7.
Quote:
|
#8
i was download gpsr-keliu-patch from this: #3 http://www.linuxquestions.org/questi...-4175528835/#2 GPSR-KeLiu, ns235 https://drive.google.com/file/d/0B7S...ew?usp=sharing gpsr-KeLiu_ns235.patch and i already patch gpsr-keliu on ns2.35, but when i do this: ns-gpsr-keliu <name>.tcl have the error that: ns-gpsr-keliu command not found Thanks |
Re #9.
The command 'ns-gpsr-keliu' can be used only if you create the file 'ns-gpsr-keliu': $ cd ns-2.35/ $ cp ns ns-gpsr-keliu $ sudo cp ns-gpsr-keliu /usr/local/bin/ - |
Dear knudfl
I try to run GPSR in ns2 but when i use this code Code: patch -p0 < GPSR-hls_ns235.patch i have an error which is bash: GPSR-hls_ns235.patch: No such file or directory |
Re post #11, @ranoucha : Welcome to LQ.
The easy way : Copy the file GPSR-hls_ns235.patch to ns-allinone-2.35/. I.e. the patch must be present when using the command $ patch -p0 < GPSR-hls_ns235.patch (Also possible with $ patch -p0 < /home/ranoucha/Downloads/GPSR-hls_ns235.patch ,,, if you are keeping the file in Downloads/). * Build example http://network-simulator-ns-2.7690.n...g-td29371.html - |
I did it but when i want to run ssoumayaa.tcl using this code:
ns-gpsr-hls ssoumayaa.tcl i have INITIALIZE THE LIST xListHead Starting Simulation... Segmentation fault (core dumped) |
Re #13.
? Which "Linux OS" are you using ? a) Please show the output from this command : $ uname -m b) OS name and version, please. NS-2 is old. And the latest updates for several OS`s have made some protocols / simulations fail. - |
i am using ubuntu 14.04 with ns2.35
|
All times are GMT -5. The time now is 02:47 PM. |