NS2: Using GPSR , VANET simulation
Hello everybody,
I was finally able to patch GPSR over ns-2.33 with the help of an other topic of this forum. But the problem am facing right now is that i don't know how to use GPSR to simulate a vehicular ad hoc network. I tried to wright a tcl code , it seems that it works well , i could generate the trace and nam files but now i don't understand the trace file and when using nam i have nodes which are moving with no paquet transmission bitween them .... !!!! this is my tcl script: Code:
# ====================================================================== and this is a part of my trace file: Code:
M 0.00000 0 (70.00, 520.00, 0.00), (70.60, 520.00), 0.60 Pleaaaaseee help me pleeeaaaaaaaase !!!! especially to understand the trace format generated .... Thanks in advance |
i neeed help please is there anybody ??!!
|
Quote:
Markus |
Please can anybody help me to use GPSR routing protocol to simulate a vehicular ad hoc network ???
Thanks in advance |
Hello, Thanks for your reply but i know all these links and i already patched GPSR on ns-2.33 but the probleme is how to use it for simulation ???
|
# 6
There is a "gpsr.tcl" in GPSR_KeLiu_SUNY_Binghamton/ $ ns gpsr.tcl |
yes i know but i have written a simulation scenario code to simulate a vanet network using GPSR but it does not work i dont know why !!! you can see the tcl and tr files in my first post ... please if you know what is wrong with my tcl file tel me so that i can correct it it is really urgent pleaaase help me if you can .... thank you in advance
|
# 8
Which GPSR patch did you use ? GPSR_KeLiu_SUNY_Binghamton.tgz ? |
i used the patch of this page http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch
|
do you think that the problem is in the patch ??? it is not in my tcl file ?? because when i run wireless-gpsr.tcl or hls.tcl everything works good !!!
|
i only used "ns-2.33-hls.patch" ... i thought that it was suffisiant ... please tell me if i have to use "GPSR_KeLiu_SUNY_Binghamton.tgz" and how ?!
Thanks alot |
this is my tcl file :
Code:
Code:
|
#9 #10 #11 #12 : The reason to ask for the patch specification :
Nobody can answer a question about unknown files. http://www.linuxquestions.org/linux/...Ask_a_Question http://linuxsilo.net/docs/smart-questions_en.html # 13 : Please edit post #13 to use code tags. I.e. write [/code] at code text end, and [code] at text start. ( Or use the # button in the 'Advanced Editor'.) http://www.linuxquestions.org/questi....php?do=bbcode And by the way : Duplicate posts are not allowed. #59 http://www.linuxquestions.org/questi...526/page4.html . |
am really sorry for the mistakes that i have made .... but i still nedd help and i can't understund if what is the problem because you asked me about the patch that i used ... i answered but you didn't explain to me if the problem is in the patch i already used the "ns-2.33-hls.patch" of this page http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch but i had problems while installing ns-2.33 with this patch so i used the instructions of your post in : http://www.linuxquestions.org/questi...526/page2.html (#23) and there is no more errors and wireless-gpsr.tcl and hls.tcl are working very well .... but i still have a problem to use GPSR as a routing protocol in my tcl scrip to simulate a vehicular ad hoc network .... so i really need your help to know where is the problem ...
About post #9 #10 #11 #12 i don't know what to do to correct my mistaks ..!! should i delete these three posts ?? am really sorry |
# 15
Everything is OK, don't worry. You will not have to delete anything : All the questions and your information is OK. When I find the time, I will have a look at ns-2.33-hls ... and your tcl file. I have made ns-2.33-hls once ( this year ) : # 11, # 23 : http://www.linuxquestions.org/questi...4-a-878526/#11 . |
thanks for your kindness but please try to help me as soon as possible because i have to make my tcl script work in 2 days maximum ...
about your posts # 11, # 23 in http://www.linuxquestions.org/questi...4-a-878526/#11, I already have seen them and it was really helpful to make hls.tcl work . .. but as i have explained to the problem now is how to use GPSR as a routing protocol to simulate a vehicular ad hoc network .... i need an exemple of tcl script to understund how does it work !!because i couldn't make my tcl script work till the moment .... Thank you in advance |
# 13, the tcl files : ( "ssoumayaa.tcl" depends on changjing1.tcl )
Code:
$ ./ns ssoumayaa.tcl $ nam fangzhen1.nam : Nam opens. They play button will start some "animation". . |
thanks for your help, i have also the same result but there is now real transmission of packets between nodes if you read the tr file or execute the nam file ... if the tcl script works and there is generation of tr and nam files does this mean that the tcl script is correct ?
|
# 19 .
Something is working. But not much activity in the "nam visualized simulation." Understanding what's happening. One could say the usual : A week or two to learn how to build ns2 with a patch. And 3 months? to learn how to use ns2. .. And sorry, I only understand very little about the many ns2 functions. I am mostly building the "package" only. And can make a few edits in a tcl file. ( I am not a coder.) . |
ok thank you for your help
|
Posts: 23 Rep: Reputation: Disabled hi all , hope you all fine , i run gpsr protocol on my file tcl with " ns-hls ", but the trace file , have another format , so i cant apply my scripts awk , and this an extract of my trace file Code:
HLS_UPD_s , HLS_UD_fr and is there a difference between them and s , r ( i talk about the beginning of each line of my trace file) or i should find another awk script special to gpsr routing protocol ,? i'm confused , plz help , and thanks in advance . |
hi, all, I have install the gpsr protocol (KeLiu version) on my NS-2.35, Ubuntu10.04LTS
no error or other messeges after make command when running the wireless-gpsr.tcl in the package ($ns wireless-gpsr.tcl) i got following output, Code:
num_nodes is set 100 it is the right output? and what is the meaning of these output? thanks! |
Post # 23, @tunerhuei : Welcome to LQ.
The output is OK. |
hello, ssoumayaa #1
can you share patch GPSR routing protocol to implementation in NS2? I have final project same with you about Vanet using GPSR. please help me, |
# 25, @anisabutsi.
All patches are linked in post # 5. GPSR-hls examples, including the ssoumayaa code, ssoumayaa-0.tcl, ssoumayaa.tcl, changjing1.tcl : gpsr-hls-examples-0113.tar.gz https://docs.google.com/file/d/0B7S2...it?usp=sharing - |
thank you :)
|
I got the GPSR patch and also it working well...please can anybody help me to use GPCR routing protocol to simulate a vehicular ad hoc network ???
from where i got the patch for it..???? |
Quote:
http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch but when i test with hls.tcl i get invalid command name "Agent/GPSR" while executing "Agent/GPSR create _o3 " invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new Agent/GPSR" invoked from within "set gpsr [new Agent/GPSR]" (file "hls.tcl" line 4) can you help me to find problem |
VANET scenario of city and highway environment
Dear friends,
Im looking for scenario in NS2 of VANET in both city and highway environments. your assistant will be most appreciated Bara |
Post #30, @Bara : Welcome to LQ.
Sorry, but you cannot ask about Vanet in a GPSR thread. Please reread http://www.linuxquestions.org/linux/rules.html "When posting in an existing thread, ensure that what you're posting is on-topic and relevant to the thread. If the content of your post will interfere with the current discussion, you should start a new thread." So it's either "Start a new thread", or ask in a MOVE-Vanet / Sumo thread. http://www.linuxquestions.org/questi...ux-software-2/ → `New Thread'. Move http://www.linuxquestions.org/questi...saving-812034/ Sumo http://www.linuxquestions.org/questions/tags/sumo/ ... I think you will find a traffic / city and highway etc. discussion in one of the SUMO threads. - |
NS2-obstacle
Is it NS2 supports Obstacle in the scenario, any model present in NS2. Please let me now
|
# 32, @yashu
Obstacle-model : Is off topic, please start a new thread → → http://www.linuxquestions.org/linux/rules.html I.e. you cannot hijack a thread started by another member, to ask an off topic question. New thread http://www.linuxquestions.org/questi...ux-software-2/ → New Thread Obstacle-model http://www.linuxquestions.org/questi...020/page2.html → Ref. @yashu posts. - |
i used ns2.34 with Keliu version in ubuntu 10.04..i was able to run wireless.tcl. but when i add with some city environment build by sumo and using move,its error..
can't read "tracefd": no such variable while executing "$T attach $tracefd" (procedure "gpsr-create-mobile-node" line 22) invoked from within "gpsr-create-mobile-node $i" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { gpsr-create-mobile-node $i }" (file "GPSRnode90.tcl" line 113) please help ..muhammadmaulana40@gmail.com..this is my email..i'm waiting your guidance.thks |
Hi
please I need the awk script for GPSR protocol how can help by sending it thanks for all |
All times are GMT -5. The time now is 11:42 AM. |