Zrp integration
Hiii.. i am going to integrate the zrp in ns2.35 and facing the error.... plz help me to remove this error....
trace/cmu-trace.o: In function `hdr_zrp::access(Packet const*)': cmu-trace.cc:(.text._ZN7hdr_zrp6accessEPK6Packet[hdr_zrp::access(Packet const*)]+0x7): undefined reference to `hdr_zrp::offset_' collect2: ld returned 1 exit status make: *** [ns] Error 1 Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems |
Welcome to LQ.
How to avoid errors : Use the right commands. * But : We don't know which commands you have used. HOWTO zrp, ns-2.35 : $ tar xvf ns-allinone-2.35_gcc482.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing $ patch -p0 < zrp-ns235.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing $ ./install $ cd ns-2.35/ $ cp ns ns235-zrp # cp ns235-zrp /usr/local/bin/ ..... Then you can do $ ns235-zrp example-zrp.tcl .. and $ ns235-zrp zrp-Demo2-1.tcl .. from the examples, zrp-examples-2012.tar.bz2 https://drive.google.com/file/d/0B7S...ew?usp=sharing - |
hai knudfl i've been following your step to patch zrp in ns2.35 ubuntu 14.04 32 bit
every step that i've followed sucessfully but when i run the tcl from the links that you gave all of them were failed agustus@agustus-Presario-CQ42-Notebook-PC:~/agustus/ns-allinone-2.35/ns-2.35$ ns235-zrp test_zrp.txt invalid command name "Agent/ZRP" while executing "Agent/ZRP set radius_ 2" (file "test_zrp.txt" line 15) can you help me to solve the error? because i've been looking for the solution but when i run it again the error keeps showing. thank you for your attention |
Post #3, @Mellia : Welcome to LQ.
I guess you mean test_zrp.tcl, and not test_zrp.txt. ? How about $ ns235-zrp zrp-Demo2-1.tcl About your error ( invalid command name "Agent/ZRP" ) : Looks like you have a failed build. There is a line missing in post #2 : $ cd ns-allinone-2.35/ >>> >> Ubuntu >>> $ tar xvf ns-allinone-2.35_gcc482.tar.gz $ cd ns-allinone-2.35/ $ patch -p0 < zrp-ns235.patch $ ./install $ cd ns-2.35/ $ cp ns ns235-zrp2 $ sudo cp ns235-zrp2 /usr/local/bin/ $ ns235-zrp example-zrp.tcl $ ns235-zrp zrp-Demo2-1.tcl - |
thanks knudfl it works :)
|
zrp
$ns235-zrp example-zrp.tcl
ns235-zrp: command not found Please tell me how to resolve this error and run ZRP. |
Re #6, @shivee
Quote:
ZRP info : . http://www.linuxquestions.org/questions/tags/zrp/ . https://groups.google.com/forum/?fro.../zrp|sort:date * ns235 build example : tar xvf ns-allinone-2.35_gcc482.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing cd ns-allinone-2.35/ patch -p0 < zrp-ns235.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing ./install cd ns-2.35/ cp ns ns235-zrp sudo cp ns235-zrp /usr/local/bin/ .... Simulation example : ns235-zrp zrp-Demo1-1.tcl - |
thank you :) how to execute a nam file to visualise the simulation in ns2.35?
|
Re #8.
NAM : $ cd ns-allinone-2.35/nam-1.15/ $ sudo make install ('make install' will copy the executable 'nam' to /usr/local/bin/). Using : 'ns235-zrp zrp-Demo1-1.tcl' will create the file `scatternet10.nam'. ( And scatternet10.tr ). NAM : $ nam scatternet10.nam & ... the nam window will open. Hit the "play button" to watch the animation. And $ ns235-zrp example-zrp.tcl : Will create `pktdemo.nam'. - |
awk scripts
Thank You :) I need awk scripts for finding routing traffic received,throughput,reachability ratio,route discovery delay,broadcast retransmission,energy consumption for ZRP. Also while trying your steps, the installation of nam has failed stating 'no such file found error'.What to do now?
|
awk and trave
do awk scripts to calculate throughput and other such parameters vary for different trace files?
|
Re #10.
""I need awk scripts"" : Well, then have a look into awk#perl#python__scripts-09.2015.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing If no luck finding a usable script, you can edit a script to your requirements. Or you can write your own awk or perl code. ---- NAM : If the './install' failed with nam-1.15 : Use ns-allinone-2.35_gcc482.tar.gz . Or use a tested package : http://www.linuxquestions.org/questi...-4175524760/#2 .. Download the package, click the downloaded package, and it will be installed. Or do : $ sudo dpkg -i nam***.deb Note : The Ubuntu nam packages cannot be used. Ref. the one year old bug report. - |
Re #11.
Depends what you are doing. And why not test that yourself ? |
the initialised values in awk scripts are getting printed as such.how to get the actual data from the trace files?
|
Code:
Code:
Average Throughput[kbps] = -0.00 StartTime=400.00 StopTime=0.00 Please tell me how to modify the script to get appropriate results! |
All times are GMT -5. The time now is 09:53 PM. |