add new patch in ns2 error
Dear all;
i try to install fhmip patch in ns2 which is correctly installed and also works correctly with me ; the problem is ... when i install the patch then make clean ; make . it seems ok .but ns xxx.tcl gives error (wrong node routing agent) . i try different patches with different versions of ns but failed . i really need help . i do not know where is the error because all above steps did not give me error message at all!!! i download this patch from www.pudn.com |
FHMIP info http://www.linuxquestions.org/questions/tags/fhmip/
Other patches #3 http://www.linuxquestions.org/questi...-4175479853/#3 A few patches can be installed to the same ns2. But most will conflict. Or must be edited to be used together in one ns2. The good news : You can have as many versions of ns-allinone-2.xx as you want, installed at the same time. But : Do not add any *PATH text to .bashrc . If you want answers for your errors, you will have to specify OS + ns2 version(s) http://www.linuxquestions.org/linux/...Ask_a_Question http://linuxsilo.net/docs/smart-questions_en.html I.e. OS Name / version / architecture : $ uname -m <Enter> .. And the full name of the patches to be added, like "ns2.31_fhmip.patch.gz" etc. - |
fatma@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.10 DISTRIB_CODENAME=quantal DISTRIB_DESCRIPTION="Ubuntu 12.10" ===== fatma@ubuntu:~$ uname -a Linux ubuntu 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux ==== ns-2.31 installed &&&&& the other versions is : zahra@ubuntu:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=13.04 DISTRIB_CODENAME=raring DISTRIB_DESCRIPTION="Ubuntu 13.04" ===== zahra@ubuntu:~$ uname -a Linux ubuntu 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux ===== ns-2.31 installed &&&&&&& i have installed fhmip with two ways 1)manually using FHMIP1.3.1 file i have downloaded from www.pudn.com 2)ns2.31_fhmip.patch.gz |
i am new in linux kindly help me. how can i install vlc player with the help of rpm. (not yum)
|
how to mount nfts files in linux
|
Posts #4 and #5, @shazadahmed89.
Please do not use a thread started by another LQ member to ask your off topic questions. Read the rules http://www.linuxquestions.org/linux/rules.html "ensure that what you're posting is on-topic and relevant to the thread." Start a new thread http://www.linuxquestions.org/questions/linux-newbie-8/ > New Thread. - |
@morzana.
The file ns-2.31/tcl/ex/fhmip/fhmip_simula.tcl, from ns2.31_fhmip.patch.gz .. will work OK : $ ns fhmip_simula.tcl .. when the executable 'ns' is built with ns-2.31 / ns2.31_fhmip.patch. Files created from fhmip_simula.tcl: traffic.nam 47MB and traffic.tr 33MB. $ nam traffic.nam : OK. A random file xxx.tcl (ref. post #1) may not work at all. - |
# 3 .
Quote:
Or were both patches added to both OS ? ( They may conflict.) About "pudn FHMIP1.3.1" : Please make a folder with the files, and upload the folder.tar.gz to 'Google Drive', and post a link. About post # 3 : You can watch here how simple and elegant the text will be, when you use the two commands, a) cat /etc/issue b) uname -m #7 http://www.linuxquestions.org/questi...-4175494785/#7 ..... No reason to post a lot of output, that nobody cares to read. Name + version + architecture will do. - |
results reached fhmip
@knudfl
i follow all your advice . the result is fhmip_simula.tcl works but after hashing # the following commands and give me nam and trace #[$PAR set regagent_] priority 3 #[$NAR set regagent_] priority 4 #$ns_ attach-mapagent $MAP #$ns_ connection-monitor 1 $MN what to do??????? perl fhmip_plot_seq.pl traffic.tr after executing the above command it give 8 identical graphs recv1.log does it mean noah installed without hmip |
results reached
traffic.nam 70.5MB
traffic.tr 49.9MB after hashing commands as said before in the brevious post |
after the last result i mention before i got result then i try to re run again but it does not work ... what should i do?????
i really need this project the second question >> how to disable or enable code in mip-reg.cc thanks in advance |
[QUOTE=knudfl;5118146]# 3 .
please knudfl help me in tis project tell me what to do |
export CC=gcc34 CXX=g++34
how to install gcc34 on ubuntu from downloading to install i'm new to linux |
# 13 .
The most used for Ubuntu 12.10 - i686 is gcc41 / g++41 ( export CC=gcc41 CXX=g++41 ) The gcc34/g++34 is primarily used in Fedora, as it is in the repo. Ubuntu 12.10 , post #3 here http://www.linuxquestions.org/questi...-4175450625/#3 .. and post # 47 here http://www.linuxquestions.org/questi...532/page4.html $ sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb Why do you want gcc34/g++34 ? ? Remark, ref. post #8 : Please uload the "pudn FHMIP1.3.1" code. - |
here is the link ..
but i'm sorry i did not read the link you quire to upload till today , i did not know i cause latency to my self https://drive.google.com/#my-drive the reason i use gcc is (export CC=gcc34 CXX=g++34) this in the link you have sent to me http://www.linuxquestions.org/questi...s2-4175461377/ also when install an error message arise regarding gcc |
the following is the error when adding
cd ../ && export CC=gcc34 CXX=g++34 && ./install $ cd ns-2.31/tcl/ex/fhmip/ && ln -s ../../../ns ======================================== checking for gcc... gcc34 checking whether the C compiler (gcc34 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. tcl8.3.2 configuration failed! Exiting ... Tcl is not part of the ns project. Please see www.Scriptics.com to see if they have a fix for your platform. |
# 16 :
Quote:
Ubuntu 12.10 - i686 : $ cd ns-allinone-2.31/ns-2.31/ && patch -p1 < ns2.31_fhmip.patch $ cd ../ && export CC=gcc41 CXX=g++41 && ./install : No errors. $ cd ns-2.31/ && cp ns ns-fhmip && sudo cp ns-fhmip /usr/local/bin/ $ cd tcl/ex/fhmip/ $ ns-fhmip fhmip_simula.tcl : Files traffic.nam, traffic.tr are created. $ nam traffic.nam : The usual simulation is displayed in 'nam'. Note : The example in post #2 here is just a random example http://www.linuxquestions.org/questi...-4175461377/#2 I.e. some OS require gcc34. Not Ubuntu: gcc41/g++41 are the compilers to use. #15 : About https://drive.google.com/#my-drive : Please click the link, and watch your `Google Drive'. When I click it, I get "my-drive" = knudfl's files in my `Google Drive'. * HOWTO get the real link : Make a copy of the link in the "Share window", for the package that you uploaded. ( And please make it "shared".) - |
|
# 18 : "Season FHMIP 1.3.1".
Got the files, thank you. |
i want awk script to plot delay and throughput
all the awk i get only calculate it not plot the second question is how to edit in mip-reg.cc so as to simulate the different scenarios is it just # hashing the part i do not want or what ?? if that which part |
# 20 .
Quote:
And may be you can use the tools in ns-2.xx/indep-utils/cmu-scen-gen* ? About files.cc : Not used after the build of the executable 'ns'. I.e. all c++ functions from files.cc and files.h are compiled into 'ns'. Only the files ns-allinone-2.xx/bin/tcsh*, ns-allinone-2.xx/lib/** are used, and then only as run time "libraries" for 'ns'. "awk scripts" for plotting must usually be written for the particular files.tr. The perl language can be used too. About perl : Have you tried using the file "plot_seq.pl" ? - |
but i see this post by another user what to do now??????????
======= Here's what I did from scratch.I got the FHMIP patch for ns2.31 and successfully installed it.In the ns2.31/mobile directory,the mip-reg.cc files says if you want to use just MIP,FMIP,HMIP,etc you block out a few things.For MIP I blocked out the following in the same file(mip-reg.cc) by commenting it out: #define MAP_MODE,#define FAST_HANDOVER,#define FAST_MAP_HANDOVER.To perform FMIP,I blocked out the others except #define FAST_HANDOVER and so forth for the other schemes. I then go to the tcl/ex/fhmip directory and run the fhmip_simula.tcl file.(Note: I did not modify the fhmip_simula.tcl at all as I wanted to see what the results would look like when plotted before modifying it to fit my scenario).The simulation runs by displaying all sorts of gibberish on the screen.And then I needed to evaluate and view the results which was when I applied your awk script unmodified as well. I also run the "perl fhmip_plot_seq.pl traffic.tr which generates 8 recv and send log files. I have the following questions: 1) To simulate the different schemes,MIP,FMIP,FHMIP,HMIP the above modification to the mip-reg.cc I mentioned,is that all that needs to be done? 2)After running the simulation and then I have my send and recv log files ,how do I plot a graph comparing the Handover Latency for the different schemes with this log files.What command do I run for this? or do I need another script to do this? (Please help really explain this part because this is what I really need,I have read the above paper.But didn't really understand it much) 3)Regarding the avg_delay.awk script,I did not make any modifications to this regarding tcp or udp as you earlier asked,please what changes would I need to make and where? I know this are a lot of questions,but I really appreciate your help and efforts so far. Thank you |
# 22 .
Quote:
|
|
# 24 .
About post #post4425404 (#23) here .. http://www.linuxquestions.org/questi...ml#post4425404 Well, you can do that I guess. First thing to do : Make a backup of the executable 'ns' to e.g. ns-fhmip-save. And every time you change something in a file.cc, go to the top directory and run ./install , .. which will create a new 'ns' with the new functions. * The important thing is : Make a copy of 'ns' to a new name / new names, every time you compile a new function into 'ns'. Usually all simulations will run with $ ns-<any-name> file.tcl - |
https://drive.google.com/folderview?...jg&usp=sharing
i use the file in the above link to install wimax module but unfortunately all trials failed with the error message "wrong node routing agent" what to do ??? i think all steps i've made are correct !! a- Using the ns-allinone installation step1: install the patch by running "patch -p0 step2: re-run "./configure ; make clean ; make" in the ns-2.31 directory. b- From the ns-2.31 directory step1: install the patch by running "patch -p1 step2: re-run "./configure ; make clean ; make" in the ns-2.31 directory. |
# 26 : NIST prerelease041707.tgz .
Quote:
|
Step 1) Add the wimax directory in the ns installation
Step 2) Add the tcl/wimax directory Step 3) Add the tcl/lib/ns-wimax.tcl file Step 4) Add the mac/mac-stat.h file Step 5) Edit Makefile.in and *Add -I. /wimax to the list of directories to include (in the definition of INCLUDE) * Add the object files before the last line (@V_STLOBJ@) of the OBJ_CC list: wimax/ofdmphy.o \ wimax/mac802_16pkt.o \ wimax/serviceflowqos.o \ wimax/serviceflow.o \ wimax/serviceflowhandler.o \ wimax/connection.o \ wimax/connectionmanager.o \ wimax/peernode.o \ wimax/mac802_16.o \ wimax/mac802_16SS.o \ wimax/mac802_16BS.o \ wimax/sduclassifier.o \ wimax/destclassifier.o \ wimax/mac802_16timer.o \ wimax/wimaxneighborentry.o \ wimax/neighbordb.o \ wimax/scheduling/wimaxscheduler.o \ wimax/scheduling/bsscheduler.o \ wimax/scheduling/ssscheduler.o \ wimax/scheduling/ulsubframetimer.o \ wimax/scheduling/dlsubframetimer.o \ wimax/scheduling/burst.o \ wimax/scheduling/contentionslot.o \ wimax/scheduling/contentionrequest.o \ wimax/scheduling/contentiontimer.o \ wimax/scheduling/dlburst.o \ wimax/scheduling/ulburst.o \ wimax/scheduling/framemap.o \ wimax/scheduling/phypdu.o \ wimax/scheduling/profile.o \ wimax/scheduling/subframe.o \ wimax/scheduling/scanningstation.o \ wimax/scheduling/wimaxctrlagent.o \ Step 6) Add the ns-wimax.tcl entry before (@V_NS_TCL_LIB_STL@): tcl/lib/ns-wimax.tcl \ Step 7) Edit the file common/packet.h and add a new packet type PT_WIMAXBS into the packet_t enumeration and “name_ [PT_WIMAXBS]=”wimaxCtrl”;” to the class p_info Step 8) Edit the file tcl/lib/ns-lib.tcl and add the line “source ns-wimax.tcl” Step 9) Edit the file tcl/lib/ns-packet.tcl and add “802_16” to the list defined in the list of packets (look for “for each port”) Step 10) Re-run “./configure ; make clean ; make” in the ns-2.31 root directory. Step 11) Run “make install” in the ns2.31 root directory. |
# 28 .
* Where did you get the information about the above ? A link please. There is no such thing as plain $ ./configure .. when you use Ubuntu 12.10 - i686 / ns-2.31 . Plain $ ./configure is for an old OS with a default g++ = g++-4.1.2 or older. It's either $ export CC=gcc41 CXX=g++41 && ./configure .. Or go to the top directory ns-allinone-2.31/ , .. and do $ export CC=gcc41 CXX=g++41 && ./install - |
http://ns2wimax.wordpress.com/instal...-wimax-module/
am i wrong or what please guide me on how to install it correctly i'd be thankful give me correct steps if you have to follow |
# 30 .
When you read http://ns2wimax.wordpress.com/instal...-wimax-module/ .. you will know that the text is based on the "pudn.com" wimax.zip, which only contains the wimax/ folder. "prerelease041707.tgz" has it all, .. meaning that no manual edits are to be done. New "patch package" : prerelease041707.tgz => wimax-pre041707-ns231-patching.tar.bz2 → https://drive.google.com/file/d/0B7S...it?usp=sharing .. for the simplified build (Unpacks to ns-2.31/ instead of "prerelease041707/"): $ cd ns-allinone-2.31/ $ tar xvf wimax-pre041707-ns231-patching.tar.bz2 $ export CC=gcc41 CXX=g++41 && ./install : OK. No errors here. $ cd ns-2.31/ && sudo make install * Make a backup of 'ns' : $ cp ns ns-wimax-nist && sudo cp ns-wimax-nist /usr/local/bin/ $ cd tcl/wimax/ $ ns-wimax-nist l2handover.tcl : OK, the file out.res (10.6 MB) is created. $ ./test-be : Miscellaneous output / files are generated OK. Please remember to delete previously added *PATH text ( if any.) in .bashrc. And do not add anything to .bashrc ! Never required. No "source ~/.bashrc"! - |
@knudfl
i didn't know what to say i really appreciate your work ; thanks alot if you don't mind let me ask another 2 question 1) i asked you before to plot not to calculate the delay and throughput of generated trace file from simulation of both FHMIP and WIMAX ;but your say it depends on the generated values from the simulation i tried hard but all ready awk scripts only calculate not plot . the following link i've uploaded it . if you please help me to plot it . 2) l3 handover between wimax and any other technology like wifi or adhoc .... i have the tcl file but now after successfuly install wimax how to edit the code to reach this target many thanks in advance |
# 32 .
The 1) and 2) questions are beyond my knowledge. 1): Wimax :"./test-be" and "./datarate802.16" are supposed to be wimax plot examples. But : I haven't seen anything but empty results. 1): FHMIP has the perl script `plot_seq.pl' : $ perl plot_seq.pl traffic.tr -1 Suggest for 1) and 2) : Ask the questions separately / in different threads at `nabble.com ns2', alias "ns2 headquarters" http://network-simulator-ns-2.7690.n7.nabble.com/ And at https://groups.google.com/forum/?fro...forum/ns-users - |
|
i already post this in the above two links ;
Quote:
Quote:
|
i try to install mobiwan patch in ns2.33
using the following link https://sites.google.com/site/peeraz...llation-in-ns2 but got the following error !!!!! Quote:
what to do ??? all forms in linuxquestions that talk about this issue not give detailed steps on how to install ... please give me steps to follow |
i try with the following commands you have posted in another form
cd ns-allinone-2.33/ && mv ns-2.33/ ns-2.33-mobiwan && patch -p0 < ns-233-mobiwan-1.patch && mv ns-2.33-mobiwan/ ns-2.33 && export CC=gcc34 CXX=g++34 && ./install i use ns2.33 ubuntu please provide me with the source of this patch put it on google drive Quote:
|
1 Attachment(s)
# 37 .
The patch "ns-2.33-mobiwan-an-110617.tar.gz" 64 kB , a new download link : https://drive.google.com/file/d/0B7S...it?usp=sharing .. Unpacks to {ns-2.33-mobiwan-an-110617.patch 328kB, readme.txt}. The "source of the patch" is the 46 times files that the patch was generated from : $ diff -Naur ns-allinone-2.33/ns-2.33/<file> ns-allinone-2.33-mobiwan/ns-2.33/<file> .. I.e. the 46 original files / the 46 edited files. The patch is the 46 "diff texts". The patch is also a readable text file. I guess the patch will work, ref. my old "mobiwan-an" backup, `31´ Oct 2012', "ns-allinone-2.33/ns-2.33/ns-mipv6". * http://www.linuxquestions.org/questions/tags/mobiwan/ . |
Quote:
i got this after dispatching correctly |
i follow your following instruction
Quote:
|
# 39 .
Please do not start building ns2 in /usr/src/. The location for all ns2 builds is /home/<name>/<folder>/. It is not a good idea to have to use root for your ns2 commands. " invalid command name "Agent/MIPv6/MN" " : I guess you are using the wrong 'ns'. ( Or you have a failed build : The patch must be applied outside ns-allinone-2.33/). * You can only have one executable 'ns' in your PATH. * If you have more than one, make a copy to a new name. ... Or use 'ns' entirely as $ ./ns See post #38 : The name "ns-mipv6" was used for the "mobiwan-an ns". Or use "ns-mipv6-mob.an" : # cp ns-mipv6-mob.an /usr/local/bin/ . $ cd ns-2.33/ && ns-mipv6-mob.an simple-mipv6.tcl .. The nam window opens OK here : The files out.nam (3.6MB) and out.tr (2.1MB) are created. P.S. : Sorry, was writing post #41, while you posted #40 . - |
1)now after successfully install mipv6 in ns2.33 (mobiwan)
after successfully install fhmip patch also install fhmip in ns2.31 does this patch represent ipv4 or ipv6 addressing ???? also install mipv4 in ns2.31 i want to simulate fhmipv6 what to do next to make comparison between Quote:
2) i want to understand difference ip addressing in ipv4 & ipv6 in ns2 please give an example as declaration !!! |
@ knudfl
i know that i ask more questions but i need answer to this if you don't mind simulation of fhmip on ns2.31 &simulation of mipv6 on ns2.33 i want to simulate fhmipv6 i create tcl file that combine the both , and got simulation error when combining the two ns-fhmip: command not found or Agent/MIPv6/MN set bs_forwarding_ 0 |
https://drive.google.com/file/d/0ByC...it?usp=sharing
how to install this and how to combine it with mip |
# 44 .
? Which MIP ? Please suggest. Is it "mobiwan-an" : ns-233-mobiwan-1.patch ? - |
#42 & #43 please refer to these
3) http://sourceforge.net/projects/mihnistns229/ i download this but i don't know how to install ??? also another one Quote:
|
i successfully simulate FHMIP patch and i need to replace NOAH with AODV protocl ??
all what i done in fhmip_simula.tcl is replacing NOAH with AODV !! is that true even when i run it again it gives .tr file in a normal way if it is ok!!! why the awk scripts i use with NOAH protocol doesn't work with the other protocol and i have to edit totally to match the change ??? by the way the fhmip_simula.tcl has also 1 MN when using AODV i read about using AHRA with FHMIP but i didn't find this patch any where .. if anybody have it please upload it ....... thanks in advace |
# 46 .
Quote:
Lots of hits. Nice simulations shown with "YouTube", etc. I found this "code" example http://naveenshanmugam.blogspot.dk/2...-wlan-and.html → "naveen-UMTS-handoff.tcl" : The UMTS-Eurane protocol is used. ( http://www.linuxquestions.org/questions/tags/eurane/ ). .. vertical handover .. https://www.google.com/webhp?hl=all#...tical+handover Example http://downloads.hindawi.com/journal...010/794749.pdf - |
# 47 .
AHRA : What is it ? Unknown term, with Google .. ns2 AHRA .. |
1 Attachment(s)
1) AHRA : stands for AD hoc routing Agent (AODV , DSR)
2) how to add 2 MN or 3 MN in FHMIP_simula.tcl i tried but to add one node and get the following error Quote:
here are the edits i've made Quote:
Quote:
|
All times are GMT -5. The time now is 11:16 PM. |