Installation of GPSR:
For
the GPSR installation, use the ns-2.29 patch: [ns2-hls-patch.tar.gz] which is given in gpsrinstall
folder.
Unpack the tar archive. The new archive includes
three files. The patch file, a short README file and a file about the changes
done by applying the patch. Apply the patch from your ns-2 directory and
execute the patch:
patch -p1 < <path to ns-2.XX-hls.patch>
patch -p1 < <path to ns-2.XX-hls.patch>
Changes when
establishing the patch:
The patch adds three new directories and some new
files:
- The gpsr directory that includes the functionality of "greedy perimeter stateless routing".
- The hls directory. Includes all stuff important for hls to work.
- The locservice directory. Includes everything necessary for location services like HLS to work. Also included are the locservices GLS and RLS.
- The two C++ codefiles geo_util.h, geo_util.cc are added to the mobile directory
- gpsr.tcl is added to the tcl/mobility/ directory. This is important for establishing a gpsr agent.
Changed files:
- mobile/god.h / god.cc
- common/mobilenode.h
- common/packet.h
- common/agent.h
- common/ip.h
- trace/cmu-trace.h / cmu-trace.cc
- mac/mac-802_11.h / mac-802_11.cc
- mac/mac.h
- queue/priqueue.h / priqueue.cc
- tcl/lib/ns-mobilenode.tcl
- tcl/lib/ns-lib.tcl
- tcl/lib/ns-default.tcl
- tcl/lib/ns-packet.tcl
When you
have applied the patch, there is a directory called utils in the new
directory hls. There is a tcl script file included that should help you
to get used to work with gpsr and location services. There are also some sample
files included.
Before you continue, do a make clean, followed by make.
Before you continue, do a make clean, followed by make.
You may get some errors in the files folder Queue due to lines like
if ((p = strstr(v->name(), "ave")) ==
NULL) &&
((p =strstr(v->name(),
"prob")) == NULL) &&
((p =strstr(v->name(),
"curq")) == NULL) &&
((p =strstr(v->name(),
"cur_max_p"))==NULL) ) {
Replace the lines as
if (((p = const_cast<char*>(strstr(v->name(),
"ave"))) == NULL) &&
((p = const_cast<char*>(strstr(v->name(),
"prob"))) == NULL) &&
((p = const_cast<char*>(strstr(v->name(),
"curq"))) == NULL) &&
((p = const_cast<char*>(strstr(v->name(),
"cur_max_p")))==NULL) ) {
This error may occur in some of the files, replace all
files and again try to run makeclean and
make
You can
start with the sample script hls.tcl. Execution: ../../ns hls.tcl
hello
ReplyDeletei need some help from you for GPSR
can we contact on skype.
my id : mdkhasawneh
ya sure,how can i help you???????????
ReplyDeletehow can i draw graph for the result from runing GPSR
Deleteand also i want to enhance GPSR to become GPCR.
can you help?
It is very easy ,u have 2 write some shell scripts for getting some performance metrics i,e values.
DeleteBy using the XGRAPH it is separate package which we install it works in Ubuntu effectively.
To enhance GPSR,I am also still working for it,if possible i will hwlp u..
hii in the trace which i got through gpsr-kileu patched, all recieved packets are at RTR level and no packet is recieved at AGT level why this is happening ?? please help
ReplyDeletehai.. i am doing project in Wireless sensor networks.GPSR protocol.. i am facing lot of errors.. can any of u guide me. coding part?
Deletethanks in advance
my mail id jasper.ramu@gmail.com
Hello,
ReplyDeletePlease i need help about patching hls-gpsr on ns2.29!
i followed the instructions but i have this error when i execute the comand "ns hls.tcl" :\
num_nodes is set 40
Configuring Nodes (40)
INITIALIZE THE LIST xListHead
Starting Simulation...
Segmentation fault
please have u any idea about that!
thanx in advance
hello,
ReplyDeletePlease i need help about patching in gpcr..
can i contact you via email?
my email : muhammadmaulana40@gmail.com
thanks in advance
Hello sir! Do you have file: ns2-hls-patch.tar.gz?? If you have it, can you send it to me? my E-mail: diennd20@gmail.com.
ReplyDeleteThanks!