Hi there
I am using ns2.34 the following steps are workable to include Keliu GPSR implementation which could be downloaded from http://www.cs.binghamton.edu/~kliu/r...ode/index.html: 1- follow the three steps you find in the readme, but at step "2" you need to follow "or sentence" i.e you need to modify the files rather than replace them, here you will find some structural difference between Keliu files and ns2.34 files but all you need to do is to do the simple modifications which are mentioned within step "2" of the readme.txt file 2- after you performe step 3 i.e recompilation of ns2.34 "it should be error free" then you can test wireless-gpsr.tcl 3- if you want to get workable nam file i.e. with moving nodes rather than constant ones replace the following for loop: for {set i 0} {$i < $opt(nn) } {incr i} { gpsr-create-mobile-node $i } with this one: for {set i 0} {$i < $opt(nn) } {incr i} { gpsr-create-mobile-node $i $node_($i) namattach $namfile #This command is used to attach the namtrace file descriptor <namtracefd> to the mobilenode. All nam traces for the node are then written into this namtrace file. } I also replaced the following command: $ns_ namtrace-all $namfile with this one: $ns_ namtrace-all-wireless $namfile $opt(x) $opt(y) I hope this helps all who need to integrate GPSR with ns2.34 |
Hi there
I am using ns2.34 the following steps are workable to include Keliu GPSR implementation which could be downloaded from http://www.cs.binghamton.edu/~kliu/r...ode/index.html: 1- follow the three steps you find in the readme, but at step "2" you need to follow "or sentence" i.e you need to modify the files rather than replace them, here you will find some structural difference between Keliu files and ns2.34 files but all you need to do is to do the simple modifications which are mentioned within step "2" of the readme.txt file 2- after you performe step 3 i.e recompilation of ns2.34 "it should be error free" then you can test wireless-gpsr.tcl 3- if you want to get workable nam file i.e. with moving nodes rather than constant ones replace the following for loop: for {set i 0} {$i < $opt(nn) } {incr i} { gpsr-create-mobile-node $i } with this one: for {set i 0} {$i < $opt(nn) } {incr i} { gpsr-create-mobile-node $i $node_($i) namattach $namfile #This command is used to attach the namtrace file descriptor <namtracefd> to the mobilenode. All nam traces for the node are then written into this namtrace file. } I also replaced the following command: $ns_ namtrace-all $namfile with this one: $ns_ namtrace-all-wireless $namfile $opt(x) $opt(y) I hope this helps all who need to integrate GPSR with ns2.34 |
Dear muaz.sh can you help me
i add the patch for GPSR in Ns 2.33 and no errors but when i run the command ns hls.tcl i get the following error invalid command name "Agent/GPSR" while executing "Agent/GPSR set bdesync_ 0.5 " (file "hls.tcl" line 6) |
# 18 : cd ns-allinone-2.33/ns-2.33/hls/utils/ && ./ns hls.tcl
Code:
num_nodes is set 40 |
Dear knudfl i did the command
cd ns-allinone-2.33/ns-2.33/hls/utils/ && ./ns hls.tcl but after it run i get the error invalid command name "Agent/GPSR" while executing "Agent/GPSR set bdesync_ 0.5 " (file "hls.tcl" line 6) is there is any solution for this error? |
# 20
The ns-2.33 build with the patch is very easy ,,, see post # 11. Either you are using an unpatched 'ns'. Or your build failed. Which OS are you using ? ? Version ? Read the links, also post # 11. Is it 32bits ? 64bits ? The 'uname -m' command will tell. . |
Dear knudfl im using ubunto 10.04 from Vbox
i run uname -m command and it give me i686 is this mean 64-bit? and if it 64-bit how can i install 32-bit on my machine. thnaks, |
# 22 : i686 is 32bits = The best choice.
I had the usual issues with the Ubuntu patch command (ns2 patches.) An exit with no errors, but not all files were in the right location. → The missing files can be unpacked from "hls-files-ns233.tar.gz": https://docs.google.com/open?id=0B7S...alV2SGhJdk1hQQ This worked on Ubuntu 10.04 : sudo apt-get install g++-4.1 cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch && tar xvf hls-files-ns233.tar.gz && cd ../ && export CC=gcc-4.1 CXX=g++-4.1 && ./install hls.tcl : cd ns-allinone-2.33/ns-2.33/hls/utils/ && ../../ns hls.tcl → An OK result. Almost identical to post # 19. . |
hi
hi
Am working on vanet routing , i want to change MAC layer to 802.11p, can u help to include this into my tcl file |
Dear mdkhasawneh,
I did not try to use ns2.33 and the patch you use.However; I guess you did not install the patch correctly, because this error is the same as you did not include the header file of gpsr, so the compiler will not find the command. I suggest you reinstall the patch following steps mentioned in the Readme file strictly. |
Quote:
can you help me to run GPSR using NAM i want to have animation for the protcol. |
Dear muaz.sh i applied the steps in post # 17
to Keliu GPSR implementation but after run ns wireless-gpsr.tcl i get this: num_nodes is set 100 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl GPSR configuration file INITIALIZE THE LIST xListHead Loading connection pattern... Loading scenario file... Load complete... Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 129.2 SORTING LISTS ...DONE! NS EXITING... and also nothing showed on the screen no animation. is there is anything missing in my code i already modify wireless-gpsr.tcl accourding to post #17. |
#27
Some tcl files will include a command to open a nam window. All other tcl scripts, that create an <out.nam> file : Nam is to be run afterwards : nam out.nam |
Dear knudfl how can i modify wireless-gpsr.tcl to run nam animation
i will post the content of the tcl file: Code:
# Copyright (c) 1997 Regents of the University of California. |
Post #29 : Please hit the 'Edit' button in post #29 and edit to CODE Tags.
Write [/code] at code text end, and [code] at code start. Or use the # button in the 'Advanced Editor'. Post # 17 indicates that a nam file should be generated. Why not use that file ? ? nam <file.nam> . |
All times are GMT -5. The time now is 07:32 PM. |