LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   add new patch in ns2 error (https://www.linuxquestions.org/questions/linux-software-2/add-new-patch-in-ns2-error-4175494924/)

morzana 02-14-2014 11:48 AM

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

knudfl 02-14-2014 12:57 PM

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.

-

morzana 02-14-2014 11:31 PM

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

shazadahmed89 02-15-2014 02:12 AM

i am new in linux kindly help me. how can i install vlc player with the help of rpm. (not yum)

shazadahmed89 02-15-2014 02:34 AM

how to mount nfts files in linux

knudfl 02-15-2014 02:42 AM

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.

-

knudfl 02-15-2014 03:17 AM

@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.

-

knudfl 02-15-2014 06:42 AM

# 3 .
Quote:

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
Which patch in which OS ?
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.

-

morzana 02-15-2014 12:11 PM

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

morzana 02-15-2014 12:14 PM

results reached
 
traffic.nam 70.5MB
traffic.tr 49.9MB
after hashing commands as said before in the brevious post

morzana 02-21-2014 11:44 AM

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

morzana 02-21-2014 11:46 AM

[QUOTE=knudfl;5118146]# 3 .

please knudfl help me in tis project tell me what to do

morzana 02-21-2014 12:14 PM

export CC=gcc34 CXX=g++34


how to install gcc34 on ubuntu
from downloading to install i'm new to linux

knudfl 02-21-2014 12:50 PM

# 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.


-

morzana 02-21-2014 01:56 PM

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

morzana 02-21-2014 03:17 PM

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.

knudfl 02-21-2014 04:11 PM

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

-

morzana 03-01-2014 08:30 AM

@knudfl



https://drive.google.com/file/d/0ByC...it?usp=sharing

knudfl 03-01-2014 11:44 AM

# 18 : "Season FHMIP 1.3.1".

Got the files, thank you.

morzana 03-01-2014 03:39 PM

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

knudfl 03-01-2014 04:33 PM

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


-

morzana 03-02-2014 11:05 AM

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

knudfl 03-02-2014 12:15 PM

# 22 .
Quote:

but I see this post by another user
Which post ? Which user ? A link, please.

morzana 03-03-2014 01:07 AM

http://www.linuxquestions.org/questi...461/page2.html



#23

knudfl 03-03-2014 06:39 AM

# 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

-

morzana 03-21-2014 06:26 AM

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.

knudfl 03-21-2014 06:52 AM

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

morzana 03-21-2014 10:20 AM

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.

knudfl 03-21-2014 11:50 AM

# 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

-

morzana 03-21-2014 05:47 PM

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

knudfl 03-21-2014 07:28 PM

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

-

morzana 03-22-2014 05:01 AM

@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

knudfl 03-22-2014 05:23 AM

# 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

-

morzana 03-22-2014 05:42 AM

https://drive.google.com/file/d/0ByC...it?usp=sharing


the results

morzana 03-22-2014 06:35 AM

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

morzana 04-05-2014 01:21 AM

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

morzana 04-05-2014 01:27 AM

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

knudfl 04-05-2014 04:07 AM

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/
.

morzana 04-05-2014 04:34 AM

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

morzana 04-05-2014 04:54 AM

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

knudfl 04-05-2014 05:11 AM

# 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 .

-

morzana 04-05-2014 09:42 AM

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

morzana 04-05-2014 02:55 PM

@ 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

morzana 04-06-2014 01:21 PM

https://drive.google.com/file/d/0ByC...it?usp=sharing


how to install this and how to combine it with mip

knudfl 04-06-2014 04:36 PM

# 44 .

? Which MIP ? Please suggest.

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

-

morzana 04-06-2014 05:03 PM

#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:

31819126ns-2.29-nist-mob-022707
from pudn.com how to install vertical handover?????

morzana 04-25-2014 06:31 PM

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

knudfl 04-26-2014 05:21 AM

# 46 .
Quote:

.. how to install vertical handover ????
Google .. ns2 vertical handoff .. https://www.google.com/webhp?hl=all#...rtical+handoff
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

-

knudfl 04-26-2014 05:25 AM

# 47 .

AHRA : What is it ?
Unknown term, with Google .. ns2 AHRA ..

morzana 04-26-2014 12:45 PM

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:

root@ubuntu:/usr/src/ns-allinone-2.31/ns-2.31/tcl/ex/fhmip# ns-fhmip fhmip_simula.tcl
num_nodes is set 1
INITIALIZE THE LIST xListHead
Segmentation fault (core dumped)

here are the edits i've made

Quote:

AddrParams set domain_num_ 5
lappend cluster_num 2 1 1 2 2
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 2 2 2 2 2 2 2 2
AddrParams set nodes_num_ $eilastlevel
Quote:

#MN - 6
$ns_ node-config -wiredRouting OFF

# now create mobilenodes
set MN [$ns_ node 1.0.1]
[$MN set regagent_] set home_agent_ [AddrParams addr2id [$HA node-addr]]
$ns_ node-config -wiredRouting ON

#MN2
set MN2 [$ns_ node 1.0.2]



All times are GMT -5. The time now is 11:16 PM.