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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
10-13-2012, 10:58 AM
|
#1
|
LQ Newbie
Registered: Oct 2012
Posts: 7
Rep: 
|
Optical Busrt Switched networks
What is the best simulator for OBS networks? Why?
Is it obs-ns? matlab? n-obs? pleaseeeeeee help me.
|
|
|
10-13-2012, 11:16 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,666
|
Quote:
Originally Posted by small_rz
What is the best simulator for OBS networks? Why?
Is it obs-ns? matlab? n-obs? pleaseeeeeee help me.
|
When you read the LQ Rules, you must have missed the part about posting rules....you posted the same question SIX TIMES...and re-opened threads that have been closed for FIVE YEARS to do it. Multiple postings are frowned upon, as is thread hijacking and reopening old threads.
And your question answers itself...you want to simulate a network...so NS2 ( Network Simulator) would be what you're after. Load the OBS module into it.
|
|
|
11-09-2012, 01:36 AM
|
#4
|
LQ Newbie
Registered: Nov 2012
Posts: 3
Rep: 
|
Good day Mr Knudfl.
Once again, I found your topic related to my research on OBS simulator,
Of course, OBS for ns2-2.27 is rather easier to build.
I am installing ns2-2.27 allinone, on Redhat Linux 9.0
It's successfully with pass all verification result, and I tried with tutorial from Marc Greis ns2, it's ok.
However, the most important part is to make optica-burst-switching(obs)-simulator.zip work... I found in Internet that when adding new protocol, manyone face some error when recompiling ns2.
1, Follow the guide inside of Dr Onur, I face this issue when recompile (make clean --> make)
"
make[1]: Entering directory `/home/linhth/ns-allinone-2.27/ns-2.27/indep-utils/c
mu-scen-gen/setdest'
g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -o setdest.o setdest.cc
In file included from ../../../config.h:54,
from setdest.h:5,
from setdest.cc:57:
../../../autoconf.h:85: namespace `CPP_NAMESPACE' undeclared
setdest.cc:71:1: warning: "INFINITY" redefined
In file included from /usr/include/math.h:40,
from setdest.cc:43:
/usr/include/bits/mathdef.h:35:1: warning: this is the location of the previous
definition
make[1]: *** [setdest.o] Error 1
make[1]: Leaving directory `/home/linhth/ns-allinone-2.27/ns-2.27/indep-utils/cm
u-scen-gen/setdest'
"
Following that is other directories happen CPP_NAMESPACE error with other files.
2, Follow your offered file: optical-burst-switching.obs-simulator-ns227-patch2012.tar.gz, I face the same issue when recompile
3, The binary package, instead, only provide ns, not nam, after installing by dpkg.
Can you please support me to solve in order to run OBS-simulator-ns2.27? Thank you so much.
|
|
|
11-09-2012, 05:42 AM
|
#5
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 4 : Redhat 9 Desktop was followed by Fedora, now version 17 :
You are 17 versions behind. No support for a 10 year old OS.
Quote:
Entering directory `/home/linhth/ns-allinone-2.27/ns-2.27/indep-utils/
|
indep-utils/* are extra applications.
The binary ns has already been built.
And you can stop, and consider everything OK.
Nam : cd nam-1.10/ && ./configure && make
Quote:
3, The binary package, instead, only provide ns, not nam
|
Nam is a separate application.
Not supposed to be included in an ns package.
Imagine several **-ns packages with nam : They would conflict at install.
Nam binary, post # 4 here ..
http://www.linuxquestions.org/questi...04-a-842109/#4
.
|
|
|
01-27-2015, 03:11 AM
|
#6
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep: 
|
How to give path for patch file for obs simulator??
hi,
knufl
how to give path to patch the obs simulator to ns2.227...
Please give me proper instruction..
|
|
|
01-27-2015, 03:36 AM
|
#7
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep: 
|
installation problem of obs simulator...
HI, any one solve this error ...while installing obs simulator i have the following error...
in file included from optical/op-sragent.h:52,
from optical/op-classifier.h:41,
from optical/op-classifier.cc:42:
optical/op-schedule.h: At global scope:
optical/op-schedule.h:71: warning: ‘typedef’ was ignored in this declaration
optical/op-schedule.h:135: error: extra qualification ‘OpSchedule::’ on member ‘Previous’
In file included from optical/op-sragent.h:52,
from optical/op-classifier.h:41,
from optical/op-classifier.cc:42:
optical/op-schedule.h:137: error: extra qualification ‘OpSchedule::’ on member ‘ScheduleBurst2’
In file included from optical/op-sragent.h:53,
from optical/op-classifier.h:41,
from optical/op-classifier.cc:42:
optical/op-converterschedule.h:71: warning: ‘typedef’ was ignored in this declaration
optical/op-converterschedule.h:136: error: extra qualification ‘OpConverterSchedule::’ on member ‘Previous’
In file included from optical/op-sragent.h:53,
from optical/op-classifier.h:41,
from optical/op-classifier.cc:42:
optical/op-converterschedule.h:138: error: extra qualification ‘OpConverterSchedule::’ on member ‘ScheduleBurst2’
In file included from optical/op-sragent.h:54,
from optical/op-classifier.h:41,
from optical/op-classifier.cc:42:
optical/op-fdlschedule.h:71: warning: ‘typedef’ was ignored in this declaration
optical/op-fdlschedule.h:140: error: extra qualification ‘OpFDLSchedule::’ on member ‘Previous’
In file included from optical/op-sragent.h:54,
from optical/op-classifier.h:41,
from optical/op-classifier.cc:42:
optical/op-fdlschedule.h:142: error: extra qualification ‘OpFDLSchedule::’ on member ‘ScheduleBurst2’
make: *** [optical/op-classifier.o] Error 1
|
|
|
01-28-2015, 04:37 AM
|
#9
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep: 
|
Hi, knufl
I have installed ubuntu 10.04 32 bit os....
Do the step as you say...
But validation process give the corrupt error....
How can i resolve it?
|
|
|
01-28-2015, 04:40 AM
|
#10
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep: 
|
I have installed ubuntu 10.04 32 bit os....
is this compulsary to patch gcc410 patch??
|
|
|
01-28-2015, 06:56 AM
|
#11
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
← #10 .
OK, Ubuntu 10.04 - 32 : Install the compilers :
1) $ sudo apt-get install g++-4.1
2) Download gcc34-compat, g++34-compat ...
https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ gcc34-compat-3.4.6_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ g++34-compat-3.4.6_i386.deb
Install gcc34-compat, g++34-compat : $ sudo dpkg -i \
gcc34-compat-3.4.6_i386.deb g++34-compat-3.4.6_i386.deb
$ cd /usr/bin/
$ sudo ln -s ../gcc34/bin/gcc34
$ sudo ln -s ../gcc34/bin/g++34
Quote:
is this compulsary to patch gcc410 patch ?
|
Why ask ? Adding a patch is an easy / basic thing to do.
Ubuntu 10.04 - 32 : The build command for OBS is :
$ export CC= gcc-4.1 CXX= g++34 && ./install
← #9 : You can skip the 'make test' = ./validate .
Nothing you can do if you get an inferior result.
Anyway "optical-burst-switching" will work OK : $ ns227-obs.
|
|
1 members found this post helpful.
|
01-28-2015, 08:32 AM
|
#12
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep: 
|
thank you so much knufl...
i am asked that question because i have successfully installed ns2.27 in ubuntu10.04.
But have problem with only obs simulator patch...
the tcl script given within it sim20_7b.tcl give the corrupt error while i run it...
|
|
|
01-28-2015, 09:06 AM
|
#13
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
← #12 .
$ cd ns-allinone-2.27/ns-2.27/ && ./ns sim20_7b.tcl
Or using any old or new executable 'ns227-obs' :
$ ns227-obs sim20_7b.tcl
→ → I get this result :
Code:
warning: no class variable ONA::agent_addr_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable ONA::agent_port_
warning: no class variable ONA::dst_addr_
warning: no class variable ONA::dst_port_
warning: no class variable ONA::fid_
warning: no class variable ONA::prio_
warning: no class variable ONA::flags_
warning: no class variable ONA::ttl_
warning: no class variable ONA::class_
warning: no class variable ONA::debug_
fdlnumber_ 0
fdlnumber_ 0
record 1 DEBUG 3 at 2.008002064516129
corrupt error 0
record 1 DEBUG 3 at 2.020016833548387
record 2 DEBUG 3 at 2.039072895483871
corrupt error 0
record 4 DEBUG 3 at 2.070211659354840
corrupt error 0
record 8 DEBUG 3 at 2.101367063225808
corrupt error 0
record 16 DEBUG 3 at 2.132555747096777
corrupt error 0
record 20 DEBUG 3 at 2.157830861935484
corrupt error 0
.
.
.
... I have no solution, sorry.
-
Last edited by knudfl; 01-28-2015 at 09:14 AM.
|
|
|
01-28-2015, 09:10 AM
|
#14
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
One file is a usable output (may be) : stat.txt
You can do $ xgraph stat.txt
-
|
|
1 members found this post helpful.
|
01-28-2015, 09:18 AM
|
#15
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep: 
|
ok...knufl...
then how to know that obs-simulator is working properly?
Is this error occur because of tcl script or you have properly working obs simulator then also same problem?
|
|
|
All times are GMT -5. The time now is 02:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|