LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-29-2015, 06:59 AM   #16
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled

If you have any other tcl for obs then please share with me....so i can understand how to configure the obs network in ns2.
And after patch of obs only sim20_7b.tcl give the error as you have listed...and other program run successfully...so i can mean that no problem of gcc??

I have installed the ns2.27 with this steps given in below link and installed successfully...then neccesary to install any other gcc?
http://netlab-mn.unipv.it/wsn/dokuwiki/misc/ns2_227
 
Old 01-29-2015, 09:12 AM   #17
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
← Ref post #16 :
Quote:
neccesary to install any other gcc ?
The patch that you used, ns-2.27-ubuntu_10.04-gcc_4.patch
( Not much difference from the `ns-2.27-gcc410.patch´ )
probably adds a few edits for g++-4.3 .
So it seems OK for Ubuntu 10.04.
* Read post #13 : "using any old or new executable 'ns227-obs'"
→ → They all produce the same result,
i.e. the gcc/g++ version makes no difference.


Another tcl example ?
Please use Google, ns2 optical burst tcl
https://www.google.dk/webhp?hl=all&g...ical+burst+tcl
Examples, "may be some hints" ...
. http://kilyos.ee.bilkent.edu.tr/~ezhan/nOBS.pdf
* http://www.ijcst.com/vol22/1/rajeshwara.pdf
* TCL http://naveenshanmugam.blogspot.dk/
→ The "OBS-Network-Topology.tcl" : A worse result. No nam.out.
→ → With nam enabled / un-commented lines 62,63 :
sim20_7b.tcl creates a perfect out.nam .

About the "tcl errors" : ns-2.27 is eleven years old: 18-Jan-2004.
A suggestion could be : Test ns-2.27 + obs with a "Year 2004 OS".
Or 2005 : Slackware 10.1 . Or 2007 : CentOS 5.

-
 
1 members found this post helpful.
Old 01-29-2015, 10:01 AM   #18
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
CentOS 5 : No difference. The same terminal output.

But then again : Lots of output files →
→ cont.txt 75B, out.nam 26.2MB, out.tr 10.8MB, stat.txt 24kB.



-

Last edited by knudfl; 01-29-2015 at 10:15 AM.
 
1 members found this post helpful.
Old 02-02-2015, 06:42 AM   #19
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
I have remove here OpConverterSchedule:: then it is ok??
 
Old 02-02-2015, 06:46 AM   #20
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
#7 - I have remove here
OpSchedule:: for error...it is ok....or i have to anything else?

Last edited by Pinakini; 02-02-2015 at 06:49 AM.
 
Old 02-10-2015, 10:48 PM   #21
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
After apply obs0.9a patch i have following error...how to resolve?

obs-0.9a/cpp/integrated_agent.cc:91: error: invalid conversion from ‘const char*’ to ‘char*’
obs-0.9a/cpp/integrated_agent.cc: In member function ‘virtual void BurstManager::recv(Packet*, Handler*)’:
obs-0.9a/cpp/integrated_agent.cc:136: error: ‘PT_SELFSIM’ was not declared in this scope
obs-0.9a/cpp/integrated_agent.cc: In member function ‘virtual void IPKTAgent::recv(Packet*, Handler*)’:
obs-0.9a/cpp/integrated_agent.cc:282: warning: deprecated conversion from string constant to ‘char*’
obs-0.9a/cpp/integrated_agent.cc:282: warning: deprecated conversion from string constant to ‘char*’
obs-0.9a/cpp/integrated_agent.cc: In member function ‘void IPKTAgent::deBurst(Packet*)’:
obs-0.9a/cpp/integrated_agent.cc:360: error: ‘PT_SELFSIM’ was not declared in this scope
make: *** [obs-0.9a/cpp/integrated_agent.o] Error 1
 
Old 02-11-2015, 04:08 AM   #22
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
← ref. #21.

An error output really makes no sense without showing the preceding commands.
? What are you doing ? Which version of ns2 ?

"obs-0.9a" is for ns-2.26 ?
http://read.pudn.com/downloads164/so.../CHANGES__.htm
→ Please upload obs-0.9a.tar.gz to e.g. `Google Docs´,
and provide a download link.

( The above post #16 indicates that you have no issues.)

-
 
Old 02-11-2015, 04:16 AM   #23
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
Ya, thanks knufdl. actually some of paramater can not set by nobs simulator which i have previously applied....so i switched to obs0.9a...i will share you that by google...using same ubuntu10.04-32 bit and ns2.27.. i try to apply patch of obs09a...follow the step as suggested by change file...actually one of the reference paper i have read that they apply obs0.9a with ns2.27..and also in other document i read that it applied on ns2.28...so it may be compatible with old version after ns2.26..
 
Old 02-11-2015, 05:31 AM   #24
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
here is the link for obs0.9a...

https://drive.google.com/folderview?...zA&usp=sharing
 
Old 02-11-2015, 06:44 AM   #25
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
Above problem is occured after the make...
 
Old 02-11-2015, 07:34 AM   #26
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
← ref. #24, #25.

Got the files : obs-0.9a-2015-02-11.zip , from Google Drive.
(Google can automatically pack up all the files / folders into one file.zip.)


#25, 'make'. The instructions are ~eleven years old.
.... Which means you cannot just edit the Makefile, and run 'make'.
I.e. in 2003 the gcc version was 3.2.x !

You can do :
Add the new objects to the Makefile.in, and run :
$ export CXX=g++34 && ./configure
$ make
.... Or you can edit the Makefile from : CPP = g++
To : CPP = g++34

* Make sure that gcc34-compat, g++34-compat are installed beforehand.
→ See post #11.


-

Last edited by knudfl; 02-11-2015 at 07:43 AM.
 
Old 02-11-2015, 07:55 AM   #27
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
I have done this steps....but same error is occured after make...
 
Old 02-17-2015, 10:31 AM   #28
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
I have successfully applied obs0.9a patch with ns2.27....now i want to know how to call .cc file in .tcl file...have any idea about that?
 
Old 02-17-2015, 11:36 AM   #29
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
← ref. #28.

1) All C++ functions are compiled into the executable 'ns'.
2) Functions to be used in tcl/otcl syntax are also present in :
ns-2.xx/tcl/*/** → and all these functions are also compiled into 'ns'.

Which means that the most simulation only require this :
'ns' , ns-allinone.2.xx/{ bin/*, lib/* }.
Everything else can be deleted.



There are ways to use c++ in tcl, I have never seen anybody use it ..
http://www.linuxquestions.org/questi...9/#post4094259
< http://www.linuxquestions.org/questi...ines-813129/#7

http://wiki.tcl.tk/1491

C++ http://cpptcl.sourceforge.net/doc/quickstart.html
http://wiki.tcl.tk/13040
http://cpptcl.sourceforge.net/


-

Last edited by knudfl; 02-17-2015 at 11:37 AM.
 
Old 02-17-2015, 11:30 PM   #30
Pinakini
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
ok..thanks for links...
i will not use c++ in tcl...as i have send you obs0.9a...in that cpp folder contain scheduler...in that lauc.cc file is there...in test01.tcl they have include this scheduler...in place of this lauc algorithm i want other scheduler...so i want to know how to call that?? If any idea than please tell me..

https://drive.google.com/file/d/0B_5...sp=sharing_eid

link is for testo1.tcl
 
  


Reply

Tags
n.obs, ns2, obs, optical burst switching



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

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

All times are GMT -5. The time now is 05:11 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
Open Source Consulting | Domain Registration