Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 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"!
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 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
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
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.
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)
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 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:
(mipv4 & mipv6)
(fhmipv4&fhmipv6)
2) i want to understand difference ip addressing in ipv4 & ipv6 in ns2 please give an example as declaration !!!
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.