LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2012, 04:27 PM   #31
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

Post #30, @yotta15 : Ubuntu 10.10

The correct procedure is in post #26.
So it is not "patch -p1 < .." but p0. And in "ns-allinone-2.33/", please. Not ns-2.33*.
After renaming back to "ns-2.33" you will have : ns-allinone-2.33/ns-2.33/mobiwan/.
And can rebuild ns-2.33/ with :
export CC=gcc41 CXX=g++41 && ./configure && make clean && make


$ ns233-mobiwan simple-mipv6.tcl : Works perfectly.

There is a binary package for Ubuntu 10.10 now : mobiwan-ns-2.33-u1010_i386.deb
https://docs.google.com/open?id=0B7S...VdJaVBLdlhqZW8
.. Provides /usr/local/bin/ ns233-orig ns233-mobiwan
( The libraries etc. for the binaries are in /usr/local/lib/mobiwan/** ).
Install : sudo dpkg -i mobiwan-ns-2.33-u1010_i386.deb

P.S. : gcc41 / g++41, please see post # 17 here ..
http://www.linuxquestions.org/questi...571/page2.html

.

Last edited by knudfl; 10-10-2012 at 04:47 PM.
 
Old 03-22-2013, 11:50 PM   #32
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
hello...
i wanna ask...
can i use "ns-233-mobiwan-1.patch" for simulate pmipv6 and fmipv6 network?
or it can simulate mipv6 only?

thank you~
 
Old 03-23-2013, 02:16 AM   #33
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 32 .
Quote:
Can I use "ns-233-mobiwan-1.patch" for simulate pmipv6 and fmipv6 network?
Don't know. ? Probable have a look at the FHMIPv6 patch : ns2.31_fhmip.patch.gz ?
http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html
> http://tagus.inesc-id.pt/~pestrela/n...fhmip.patch.gz

You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add anything to .bashrc, .bashprofile.
Random example :
Installing two times ns-2.33, ns-2.31, ns-2.34 etc. etc. is no problem.

-

Last edited by knudfl; 03-23-2013 at 02:19 AM.
 
Old 05-07-2013, 05:14 PM   #34
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
#28

Yes. Very few ns2 patches can live together.
Solution : Install two times ns-2.33.
The LTE patched ns-2.33 : Save a copy of the binary 'ns' as ns-lte.
The mobiwan patched ... : Save an ns copy as ns-mobiwan.

Then you can use each for the lte / mobiwan dedicated tcl files.

.

is this mean that i cannot make a simulation that run both of mip and LTE simultaneously at one tcl script?
 
Old 05-08-2013, 03:24 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 34 .
Quote:
.. cannot make a simulation that run both of mip and LTE simultaneously
It means that the patches may conflict.
I.e. LTE will make changes to some files : Please read the script 'checkin'.
The unknown <mip>, be it ns-2.33-mobiwan-an-110617.patch, ns2.31_fhmip.patch.gz
or <??.patch> may then undo those changes, or make conflicting changes.

If you have succeeded an install with combined patches,
you may also be able to run some combined simulations.

-
 
Old 05-11-2013, 03:02 AM   #36
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
i try to install mip using ns-233-mobiwan-1.patch
i already follow the step from post #26
but i still got this error messege when try to run simple3_mipv6.tcl

invalid command name "Agent/MIPv6/MN"
while executing
"Agent/MIPv6/MN set bs_forwarding_ 0 "
(file "simple3_mipv6.tcl" line 4)


can anyone help me how to fix it?

oh and when i tried to do make clean and then make again this error messege appear

trace/trace.cc: In static member function "static int Trace::get_seqno(Packet*)':
trace/trace.cc:201: error: 'PT_BU' was not declared in this scope
trace/trace.cc:201: error: 'PT_BU_HA' was not declared in this scope
trace/trace.cc:201: error: 'PT_BU_CN' was not declared in this scope
trace/trace.cc:202: error: 'PT_BU_BS' was not declared in this scope
trace/trace.cc:202: error: 'PT_BACK' was not declared in this scope
trace/trace.cc:202: error: 'PT_BREQ' was not declared in this scope
trace/trace.cc:202: error: 'PT_RADS' was not declared in this scope
make: *** [trace/trace.o] Error 1


i don't really understand it's meaning... what should i do?

Last edited by cio; 05-11-2013 at 03:26 AM. Reason: adding more error messege that i get
 
Old 05-12-2013, 07:26 AM   #37
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 36 .

Which OS are you using ? : 1) $ cat /etc/*release* <Enter>
2) uname -m <Enter>

"simple3_mipv6.tcl" : Unknown file. Please attach as simple3_mipv6.tcl.txt :
Attachments : The paper clip tool in the 'Advanced Editor'.

The install command for {ns-2.33 / ns-233-mobiwan-1.patch} is like :
$ cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-233-mobiwan-1.patch
$ cd ../ && export CC=gcc41 CXX=g++41 && ./install

-

Last edited by knudfl; 05-13-2013 at 02:01 AM.
 
1 members found this post helpful.
Old 05-13-2013, 12:00 AM   #38
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
.#37

1.) cat: /etc/release: no such file or directory
2.) i686

but in post #31 you said it was p0 not p1
so which one is right? patch p1 or patch p0?
i follow the istalation step from post #26
but it's from ns-2.33-allinone not from ns-2.33
i just don't get it...
Attached Files
File Type: txt simple3_mipv6.tcl.txt (5.9 KB, 24 views)
 
Old 05-13-2013, 02:08 AM   #39
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 38 .

Sorry, it's : $ cat /etc/*release* <Enter>
! And : Please answer the question : Which OS are you using ? Name and version, please.

$ patch -p0
$ patch -p1
... It's just two different commands for the two location choices :
ns-allinone-2.33/ or ns-allinone-2.33/ns-2.33/ : Both work OK.

-
 
1 members found this post helpful.
Old 05-13-2013, 03:57 AM   #40
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
oooh sorry... XD
it's ubuntu 11.04 natty

i've tried both of them patch p0 on ns-2.33-allinone and p1 on ns-2.33
but still get this error messege

invalid command name "Agent/MIPv6/MN"
while executing
"Agent/MIPv6/MN set bs_forwarding_ 0 "
(file "simple3_mipv6.tcl" line 4)
 
Old 05-13-2013, 05:53 AM   #41
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 10 : Ubuntu 11.04 ...
Installed in one of the right ways : No errors, simple3_mipv6.tcl.

tar xvf ns-allinone-2.33.tar.gz ; cd ns-allinone-2.33/ns-2.33/ ;
patch -p1 < ns-233-mobiwan-1.patch ; cd ../ ;
export CC=gcc41 CXX=g++41 && ./install

For an existing ns-2.33 : cd ns-allinone-2.33/ns-2.33/ ;
patch -p1 < ns-233-mobiwan-1.patch ; make clean ;
export CC=gcc41 CXX=g++41 && ./configure ; make ;
cp ns ns-mobiwan ( To have a backup, and to be sure the right ns is used.)
$ ./ns-mobiwan simple3_mipv6.tcl : Works perfectly, and nam opens.

The compilers gcc41, g++41 : Post #31.
You can also install the package mobiwan-ns-2.33-u1010_i386.deb (6MB): Post #31.
Providing /usr/local/bin/ ns233-mobiwan ns-orig
.. To do $ ns233-mobiwan simple3_mipv6.tcl : Also perfect.

-

Last edited by knudfl; 05-13-2013 at 05:57 AM.
 
1 members found this post helpful.
Old 05-13-2013, 06:22 AM   #42
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
when i'm using ./ns-mobiwan simple3_mipv6.tcl
i got this error messege

ns:
[code omitted because of length]
: invalid command name "Queue/LTEQueue"
while executing
"Queue/LTEQueue set drop_front_ 0"


but when i'm using ns simple3_mipv6.tcl
i got this error messege

invalid command name "Agent/MIPv6/MN"
while executing
"Agent/MIPv6/MN set bs_forwarding_ 0 "
(file "simple3_mipv6.tcl" line 4)


is there something wrong with my ns?
 
Old 05-13-2013, 06:47 AM   #43
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 42 .
Quote:
invalid command name "Queue/LTEQueue
That's an ns-2.33 patched with LTE.

Quote:
Is there something wrong with my ns ?
Yes.
An LTE patched ns-2.33 will not work together with the mobiwan patch.

Testing "simple3_mipv6.tcl" : Install "mobiwan-ns-2.33-u1010_i386.deb",
... and type : $ ns233-mobiwan simple3_mipv6.tcl

-

Last edited by knudfl; 05-13-2013 at 07:38 AM.
 
1 members found this post helpful.
Old 05-13-2013, 07:57 AM   #44
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
and now... i get this error messege...

couldn't read file "/home/c11/Desktop//ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl": no such file or directory
while executing
"source.orig /home/c11/Desktop//ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source /home/c11/Desktop//ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl"
(procedure "main" line 6)
invoked from within
"main"
(file "simple3_mipv6.tcl" line 191)
 
Old 05-13-2013, 08:31 AM   #45
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 44 .

Please read "simple3_mipv6.tcl" : It's a text file.

Line 105 : # set BASEDIR to your own correct path

I.e. edit lines 106 .. 112 to the actual path.

Example, when you have ns-allinone-2.33/ns-2.33/simple3_mipv6.tcl :
Code:
   105	   # set BASEDIR to your own correct path
   106	   source ./tcl/lib/proc-mipv6-config.tcl
   107	   source ./tcl/lib/proc-tools.tcl
   108	   source ./tcl/lib/proc-topo.tcl
   109	   source ./tcl/lib/ns-topoman.tcl
   110	   source ./tcl/lib/proc-mobi-global.tcl
   111	   source ./tcl/lib/proc-mobi-config.tcl
   112	   source ./tcl/mobility/timer.tcl
 
1 members found this post helpful.
  


Reply

Tags
fhmip, mobiwan, ns2



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:05 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