LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-13-2012, 11:58 AM   #1
small_rz
LQ Newbie
 
Registered: Oct 2012
Posts: 7

Rep: Reputation: Disabled
Optical Busrt Switched networks


What is the best simulator for OBS networks? Why?
Is it obs-ns? matlab? n-obs? pleaseeeeeee help me.
 
Old 10-13-2012, 12:16 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,919

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by small_rz View Post
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.
 
Old 10-15-2012, 04:50 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Welcome to LQ.

Your questions about NCTUns and Matlab : Both are commercial, please ask EstiNet / Matlab support.
Google .. optical-burst-switching nctuns ..
https://www.google.com/webhp?hl=all#...w=1024&bih=557


OBS-0.9b for ns-2.26 : Buggy ?
OBS for ns-2.27 is rather easy to build : ns-2.27-gcc410.patch, g++ version 3.4.6 works.
OBS for ns-2.27 : http://www.anarg.jp/personal/a-onur/ >
> http://www.anarg.jp/personal/a-onur/...-simulator.zip
> optical-burst-switching(obs)-simulator.zip : The obs files.
** optical-burst-switching.obs-simulator-ns227-patch2012.tar.gz : All obs changes incl. Makefile.in
>>> https://docs.google.com/open?id=0B7S...lNieUpnSWxBcUk
Binary package : obs-ns-2.27-ubuntu10_i386.deb >
>> https://docs.google.com/open?id=0B7S...mRQRV9ROXhQRzQ

.
 
Old 11-09-2012, 02:36 AM   #4
linh.to
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 11-09-2012, 06:42 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
# 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

.
 
Old 01-27-2015, 04:11 AM   #6
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
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..
 
Old 01-27-2015, 04:36 AM   #7
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
Unhappy 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
 
Old 01-27-2015, 07:01 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← Posts #6, #7, @Pinakini : Welcome to LQ.

Please read http://www.linuxquestions.org/questi...estion.-71791/
. http://www.linuxquestions.org/linux/...Ask_a_Question
... I.e. no precise answer is available for <unknown OS>.

Answer the questions to you : Your other thread here ...
http://network-simulator-ns-2.7690.n...89.html#a29590
$ uname -m
OS version.

OBS build example : $ tar xvf ns-allinone-2.27.tar.gz
$ patch -p0 < ns-2.27-gcc410.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.27/
$ patch -p0 < obs_optical-burst-switching_ns227.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ export CC=gcc34 CXX=g++34 && ./install
→ → → g++ must be version 3.4.6 .
$ cd ns-2.27/
$ cp ns ns227-obs
# cp ns227-obs /usr/local/bin/


-

Last edited by knudfl; 01-27-2015 at 07:12 AM.
 
1 members found this post helpful.
Old 01-28-2015, 05:37 AM   #9
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
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?
 
Old 01-28-2015, 05:40 AM   #10
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
I have installed ubuntu 10.04 32 bit os....
is this compulsary to patch gcc410 patch??
 
Old 01-28-2015, 07:56 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← #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.
Old 01-28-2015, 09:32 AM   #12
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
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...
 
Old 01-28-2015, 10:06 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← #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 10:14 AM.
 
Old 01-28-2015, 10:10 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
One file is a usable output (may be) : stat.txt

You can do $ xgraph stat.txt


-
 
1 members found this post helpful.
Old 01-28-2015, 10:18 AM   #15
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
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?
 
  


Reply

Tags
ns2, obs, optical burst switching


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
view optical media and optical drive information in CLI m4rtin Linux - Server 7 03-03-2016 11:54 AM
Optical Busrt Switched networks small_rz Linux - Networking 1 10-14-2012 03:41 AM
TDK develops 1TB optical disc, leaves other optical storage feeling emasculated Jeebizz Linux - News 0 10-11-2010 12:56 PM
I am bridging 2 networks, but only want the Bridge machine to see both networks. themrrobert Linux - Networking 1 02-17-2009 01:40 PM
Is there DMA for SATA Optical Drives? Or is my inspiron optical not supported (yet)? RHLinuxGUY Linux - Kernel 14 09-24-2006 04:11 PM


All times are GMT -5. The time now is 02:05 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration