LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-21-2014, 03:17 PM   #16
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled

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.
 
Old 02-21-2014, 04:11 PM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
# 16 :
Quote:
checking whether the C compiler (gcc34 ) works... no
C compiler cannot create executables.
? So you are trying to use a tool, that is not installed ? (gcc34/g++34).

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".)

-
 
Old 03-01-2014, 08:30 AM   #18
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
@knudfl



https://drive.google.com/file/d/0ByC...it?usp=sharing
 
1 members found this post helpful.
Old 03-01-2014, 11:44 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
# 18 : "Season FHMIP 1.3.1".

Got the files, thank you.
 
Old 03-01-2014, 03:39 PM   #20
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-01-2014, 04:33 PM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
# 20 .
Quote:
how to edit in mip-reg.cc
Why not edit tcl scripts / write files.tcl for new scenarios ?
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" ?


-

Last edited by knudfl; 03-02-2014 at 04:47 AM.
 
Old 03-02-2014, 11:05 AM   #22
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-02-2014, 12:15 PM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
# 22 .
Quote:
but I see this post by another user
Which post ? Which user ? A link, please.
 
Old 03-03-2014, 01:07 AM   #24
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
http://www.linuxquestions.org/questi...461/page2.html



#23
 
Old 03-03-2014, 06:39 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
# 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

-
 
Old 03-21-2014, 06:26 AM   #26
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-21-2014, 06:52 AM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
# 26 : NIST prerelease041707.tgz .
Quote:
all trials failed with the error message "wrong node routing agent"
Which trials ? ? Please show the commands used for "trials".
 
Old 03-21-2014, 10:20 AM   #28
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-21-2014, 11:50 AM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
# 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

-
 
Old 03-21-2014, 05:47 PM   #30
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply

Tags
fhmip, fhmip#17, ns2, wimax-nist


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error applying ns2.29 clustering patch on ubuntu 12.04 razachis Linux - Software 3 02-14-2014 03:38 AM
ns2 installation on ubuntu with olsr patch giving following error bhushan0710 Linux - Newbie 8 01-21-2013 04:09 AM
Got error when add a new antenna module into NS2! haiying7 Linux - Software 4 12-02-2011 02:03 AM
ns2-802.11e patch - error: stream.h, iostream.h not found shojaru Linux - Newbie 3 06-12-2009 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration