LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-21-2014, 07:28 PM   #31
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

# 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"!

-
 
1 members found this post helpful.
Old 03-22-2014, 05:01 AM   #32
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
@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
 
Old 03-22-2014, 05:23 AM   #33
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
# 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

-

Last edited by knudfl; 03-22-2014 at 05:32 AM.
 
1 members found this post helpful.
Old 03-22-2014, 05:42 AM   #34
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
https://drive.google.com/file/d/0ByC...it?usp=sharing


the results
 
Old 03-22-2014, 06:35 AM   #35
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
i already post this in the above two links ;
Quote:
1): Wimax :"./test-be" and "./datarate802.16" are supposed to be wimax plot examples.
i don't need any plot but
Quote:
throughput and delay only
not other network parameters
 
Old 04-05-2014, 01:21 AM   #36
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
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:
root@ubuntu:/usr/src/ns-allinone-2.33/ns-2.33# patch -p1 < ns-233-mobiwan-1.patch
patching file classifier/classifier-hash.h
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file classifier/classifier-hash.h.rej
patching file classifier/classifier-mcast.cc
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
8 out of 8 hunks ignored -- saving rejects to file classifier/classifier-mcast.cc.rej
patching file classifier/classifier-mcast.h
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file classifier/classifier-mcast.h.rej

patching file common/mobilenode.cc
Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file common/mobilenode.cc.rej

patching file common/mobilenode.h
Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file common/mobilenode.h.rej

patching file common/packet.h
Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file common/packet.h.rej
patching file mac/arp.cc
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file mac/arp.cc.rej
patching file mac/channel.cc
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file mac/channel.cc.rej
patching file mac/phy.cc
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file mac/phy.cc.rej
patching file Makefile.in
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file Makefile.in.rej
patching file mobile/mip.cc
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file mobile/mip.cc.rej
patching file mobile/mip.h
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file mobile/mip.h.rej
The next patch would create the file mobiwan/classifier-src.h,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file mobiwan/ipv6.cc,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file mobiwan/ipv6.h,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file mobiwan/ipv6-routing.h,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file mobiwan/mipv6.cc,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file mobiwan/mipv6.h,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored

patching file tcl/lib/ns-address.tcl
Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n]
Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file tcl/lib/ns-address.tcl.rej
patching file tcl/lib/ns-default.tcl
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file tcl/lib/ns-default.tcl.rej
patching file tcl/lib/ns-lib.tcl
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
12 out of 12 hunks ignored -- saving rejects to file tcl/lib/ns-lib.tcl.rej
The next patch would create the file tcl/lib/ns-local-lib.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file tcl/lib/ns-mcast.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file tcl/lib/ns-mipv6.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
patching file tcl/lib/ns-mobilenode.tcl
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file tcl/lib/ns-mobilenode.tcl.rej
patching file tcl/lib/ns-node.tcl
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
10 out of 10 hunks ignored -- saving rejects to file tcl/lib/ns-node.tcl.rej
The next patch would create the file tcl/lib/ns-ping.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
patching file tcl/lib/ns-route.tcl
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file tcl/lib/ns-route.tcl.rej
The next patch would create the file tcl/lib/ns-topoman.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file tcl/lib/proc-display.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file tcl/lib/proc-mipv6-config.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file tcl/lib/proc-mobi-config.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file tcl/lib/proc-mobi-global.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file tcl/lib/proc-ping.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file tcl/lib/proc-tools.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file tcl/lib/proc-topo.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file tcl/mobiwan/simple-mipv6.tcl,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
patching file trace/cmu-trace.cc
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file trace/cmu-trace.cc.rej
patching file trace/trace.cc
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file trace/trace.cc.rej

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
 
Old 04-05-2014, 01:27 AM   #37
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
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:
ns-2.33-mobiwan-an-110617.patch

Last edited by morzana; 04-05-2014 at 01:48 AM.
 
Old 04-05-2014, 04:07 AM   #38
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
# 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/
.
Attached Files
File Type: txt Patch.log.txt (2.8 KB, 7 views)

Last edited by knudfl; 04-05-2014 at 05:12 AM.
 
1 members found this post helpful.
Old 04-05-2014, 04:34 AM   #39
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
root@ubuntu:/usr/src/ns-allinone-2.33/ns-2.33/tcl/mobiwan# ns simple-mipv6.tcl
invalid command name "Agent/MIPv6/MN"
while executing
"Agent/MIPv6/MN set bs_forwarding_ 0 "
(file "simple-mipv6.tcl" line 4)


i got this after dispatching correctly
 
Old 04-05-2014, 04:54 AM   #40
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
i follow your following instruction

Quote:
Please have a look at post #2 : No 'make'. For Ubuntu 11.04 it is, example :
1) Unpack a new ns-allinone-2.33.tar.gz in a new directory.
2) $ cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-233-mobiwan-1.patch
3) $ cd ../ && export CC=gcc41 CXX=g++41 && ./install
4) $ cd ns-2.33/ ; $ strip ns ; $ cp ns ns-mobiwan ;
$ sudo cp ns-mobiwan /usr/local/bin/
5) $ cd tcl/mobiwan/ ; $ ns-mobiwan simple-mipv6.tcl ; $ nam out.nam

If you anyway did reconfigure in ns-2.33/ with plain ./configure :
Please redo with : a) $ export CC=gcc41 CXX=g++41 && ./configure
b) $ make clean && make
it works .....
 
Old 04-05-2014, 05:11 AM   #41
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
# 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 .

-

Last edited by knudfl; 04-05-2014 at 05:14 AM.
 
1 members found this post helpful.
Old 04-05-2014, 09:42 AM   #42
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
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:
(mipv4 & mipv6)
(fhmipv4&fhmipv6)

2) i want to understand difference ip addressing in ipv4 & ipv6 in ns2 please give an example as declaration !!!
 
Old 04-05-2014, 02:55 PM   #43
morzana
Member
 
Registered: Feb 2014
Posts: 43

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

Last edited by morzana; 04-05-2014 at 03:04 PM.
 
Old 04-06-2014, 01:21 PM   #44
morzana
Member
 
Registered: Feb 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
https://drive.google.com/file/d/0ByC...it?usp=sharing


how to install this and how to combine it with mip
 
Old 04-06-2014, 04:36 PM   #45
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
# 44 .

? Which MIP ? Please suggest.

Is it "mobiwan-an" : ns-233-mobiwan-1.patch ?

-
 
  


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 03:07 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