LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-02-2016, 06:40 AM   #31
archerhao
LQ Newbie
 
Registered: Feb 2016
Posts: 2

Rep: Reputation: Disabled

Hi,
I have installed ns2.27 in ubuntu12.04 and added obs_optical-burst-switching_ns227.patch.

$ uname -m
Code:
i686
$ cat /etc/issue
Code:
Ubuntu 12.04.5 LTS \n \l
and I run sim20_7b.tcl.
according to sim20_7b.tcl,

Code:
.
.
.
for {set i 2} {$i < 12} {incr i} {
	set d [expr $i + 10]
.
.
.
	set temp [$n($i) set src_agent_]
	$temp install_connection $d	$i $d  $i 0 1 $d
	set temp [$n($d) set src_agent_]
	$temp install_connection $i	$d $i  $d 1 0 $i
	
	$ns at [expr $i] "$ftp($i) start"
}
.
.
.

$ns at 1 "plotWindow $winfile"
$ns at 10 "finish"
$ns run
it means that the tcp packet start be transmitted from node 2 to node 12 at 2,
the tcp packet start be transmitted from node 3 to node 13 at 3,
and so on the tcp packet start be transmitted from node 9 to node 19 at 9,
(finish at 10, so node 10 and node 11 are not working)

but I got this result:

Code:
fdlnumber_ 0
fdlnumber_ 0
record 1 DEBUG 3 at 2.008002064516129
corrupt error 0
corrupt error 0
record 1 DEBUG 3 at 2.025012704516129
corrupt error 0
corrupt error 0
corrupt error 0
corrupt error 0
corrupt error 0
corrupt error 0
corrupt error 0
corrupt error 0
corrupt error 0
corrupt error 0
corrupt error 0
corrupt error 0
corrupt error 0
corrupt error 0
record 2 DEBUG 3 at 9.039072895483869
corrupt error 0
corrupt error 0
record 4 DEBUG 3 at 9.070211659354836
corrupt error 0
corrupt error 0
record 8 DEBUG 3 at 9.101367063225803
corrupt error 0
corrupt error 0
record 16 DEBUG 3 at 9.132555747096770
corrupt error 0
corrupt error 0
record 20 DEBUG 3 at 9.157830861935494
corrupt error 0
.
.
.

except node 9 to node 19,
all of nodes didn't transmit the packet,
I checked out.tr and found
node 2~6, the tcp packet was transmitted to optical node 0,
the OP_BURST was transmitted from node 0 to node 1,
then optical node 1 didn't send tcp packet to node 12~16,
so node 12~16 can't send ack back.

Code:
+ 2 2 0 tcp 40 ------- 12 2.1 12.1 0 800
- 2 2 0 tcp 40 ------- 12 2.1 12.1 0 800
r 2.001002 2 0 tcp 40 ------- 12 2.1 12.1 0 800
+ 2.008002 0 1 OP_BURST 40 ------- 12 0.0 1.0 -1 11
- 2.008002 0 1 OP_BURST 40 ------- 12 0.0 1.0 -1 11
+ 2.008012 0 1 OP_BURST 80 ------- 12 0.0 1.0 -1 10
- 2.008012 0 1 OP_BURST 80 ------- 12 0.0 1.0 -1 10
r 2.018002 0 1 OP_BURST 40 ------- 12 0.0 1.0 -1 11
r 2.018013 0 1 OP_BURST 80 ------- 12 0.0 1.0 -1 10
+ 3 3 0 tcp 40 ------- 13 3.1 13.1 0 805
.
.
.
and node 7, node 8, the tcp packet was successfully transmitted to node 17 and node 18,
and node 17, node 18 send ack to optical node 1,
the OP_BURST was transmitted from node 1 to node 0,
but optical node 0 didn't send ack to node 7 and node 8.

Code:
.
.
.
+ 7 7 0 tcp 40 ------- 17 7.1 17.1 0 825
- 7 7 0 tcp 40 ------- 17 7.1 17.1 0 825
r 7.001002 7 0 tcp 40 ------- 17 7.1 17.1 0 825
+ 7.008002 0 1 OP_BURST 40 ------- 17 0.1 1.-1 -1 802
- 7.008002 0 1 OP_BURST 40 ------- 17 0.1 1.-1 -1 802
+ 7.008012 0 1 OP_BURST 80 ------- 17 0.1 1.-1 -1 801
- 7.008012 0 1 OP_BURST 80 ------- 17 0.1 1.-1 -1 801
r 7.018002 0 1 OP_BURST 40 ------- 17 0.1 1.-1 -1 802
r 7.018013 0 1 OP_BURST 80 ------- 17 0.1 1.-1 -1 801
+ 7.018013 1 17 tcp 40 ------- 17 7.1 17.1 0 825
- 7.018013 1 17 tcp 40 ------- 17 7.1 17.1 0 825
r 7.019015 1 17 tcp 40 ------- 17 7.1 17.1 0 825
+ 7.019015 17 1 ack 40 ------- 7 17.1 7.1 0 828
- 7.019015 17 1 ack 40 ------- 7 17.1 7.1 0 828
r 7.020017 17 1 ack 40 ------- 7 17.1 7.1 0 828
+ 7.020017 1 0 OP_BURST 40 ------- 7 1.0 0.0 -1 400
- 7.020017 1 0 OP_BURST 40 ------- 7 1.0 0.0 -1 400
r 7.030017 1 0 OP_BURST 40 ------- 7 1.0 0.0 -1 400
+ 8 8 0 tcp 40 ------- 18 8.1 18.1 0 833
- 8 8 0 tcp 40 ------- 18 8.1 18.1 0 833
+ 8 2 0 tcp 40 ---A--- 12 2.1 12.1 0 834
- 8 2 0 tcp 40 ---A--- 12 2.1 12.1 0 834
.
.
.
only node 9 successfully transmit the tcp packet.

Code:
.
.
.
+ 9 9 0 tcp 40 ------- 19 9.1 19.1 0 844
- 9 9 0 tcp 40 ------- 19 9.1 19.1 0 844
+ 9 3 0 tcp 40 ---A--- 13 3.1 13.1 0 845
- 9 3 0 tcp 40 ---A--- 13 3.1 13.1 0 845
r 9.001002 9 0 tcp 40 ------- 19 9.1 19.1 0 844
r 9.001002 3 0 tcp 40 ---A--- 13 3.1 13.1 0 845
+ 9.008002 0 1 OP_BURST 40 ------- 19 0.1 1.-1 -1 812
- 9.008002 0 1 OP_BURST 40 ------- 19 0.1 1.-1 -1 812
+ 9.008012 0 1 OP_BURST 80 ------- 19 0.1 1.-1 -1 811
- 9.008012 0 1 OP_BURST 80 ------- 19 0.1 1.-1 -1 811
r 9.018002 0 1 OP_BURST 40 ------- 19 0.1 1.-1 -1 812
r 9.018013 0 1 OP_BURST 80 ------- 19 0.1 1.-1 -1 811
+ 9.018013 1 19 tcp 40 ------- 19 9.1 19.1 0 844
- 9.018013 1 19 tcp 40 ------- 19 9.1 19.1 0 844
r 9.019015 1 19 tcp 40 ------- 19 9.1 19.1 0 844
+ 9.019015 19 1 ack 40 ------- 9 19.1 9.1 0 850
- 9.019015 19 1 ack 40 ------- 9 19.1 9.1 0 850
r 9.020017 19 1 ack 40 ------- 9 19.1 9.1 0 850
+ 9.020017 1 0 OP_BURST 40 ------- 9 1.0 0.0 -1 404
- 9.020017 1 0 OP_BURST 40 ------- 9 1.0 0.0 -1 404
r 9.030017 1 0 OP_BURST 40 ------- 9 1.0 0.0 -1 404
+ 9.030017 0 9 ack 40 ------- 9 19.1 9.1 0 850
- 9.030017 0 9 ack 40 ------- 9 19.1 9.1 0 850
r 9.031019 0 9 ack 40 ------- 9 19.1 9.1 0 850
+ 9.031019 9 0 tcp 1040 ------- 19 9.1 19.1 1 853
.
.
.

How can I resolve it?
 
Old 05-08-2016, 04:28 AM   #32
archerhao
LQ Newbie
 
Registered: Feb 2016
Posts: 2

Rep: Reputation: Disabled
Hi,everyone
I solve this question!

I have installed ns2.27 with obs_optical-burst-switching_ns227.patch in ubuntu12.04 with gcc-4.6/g++-4.6 before.

and I have installed ns2.27 with obs_optical-burst-switching_ns227.patch again with gcc-3.3/g++-3.3 just now.

then this question has been resolved !

Thanks, everyone
 
1 members found this post helpful.
Old 09-13-2016, 10:05 AM   #33
onur
LQ Newbie
 
Registered: Sep 2016
Posts: 2

Rep: Reputation: Disabled
nOBS is updated for ns version 2.35, so installing ns2.27 is no longer necessary. Also the bugs are fixed. You can find it at https://github.com/onuralparslan/nOBS
 
Old 04-12-2017, 09:15 AM   #34
mrhai
LQ Newbie
 
Registered: Apr 2017
Posts: 1

Rep: Reputation: Disabled
hi
please help me!!
install obs for ns2.35

queue/errmodel.o: In function `hdr_burst::access(Packet const*)':
errmodel.cc.text._ZN9hdr_burst6accessEPK6Packet[hdr_burst::access(Packet const*)]+0x7): undefined reference to `hdr_burst:ffset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
 
Old 04-12-2017, 03:35 PM   #35
onur
LQ Newbie
 
Registered: Sep 2016
Posts: 2

Rep: Reputation: Disabled
Did you install nOBS v2.0 at https://github.com/onuralparslan/nOBS ?
Did you add the following code to OBJ_CC in Makefile and then recompile?

optical/op-delay.o
optical/op-queue.o
optical/op-burst_agent.o
optical/op-classifier.o
optical/op-classifier-hash.o
optical/op-classifier-sr.o
optical/op-sragent.o
optical/op-queue2.o
optical/op-schedule.o
optical/op-converterschedule.o
optical/op-fdlschedule.o\

Is there a file called "op-burst_agent.o" under the folder "optical"?
 
1 members found this post helpful.
Old 04-12-2017, 06:04 PM   #36
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Post #34, @mrhai : Welcome to LQ.

OBS for ns-2.35 : obs-nOBS_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Building ns-2.35 with nOBS :
Code:
tar xvf ns-allinone-2.35_gcc482.tar.gz (Oct2014 update for gcc versions 4.6 - 5.3)
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < obs-nOBS_ns235.patch
./install
cd ns-2.35/
cp ns ns-nOBS
sudo cp ns-nOBS /usr/local/bin/
Simulation : ns-nOBS sim20_7bmulti-cont.tcl
.. The files {cont.txt, goodput.txt, not-arr-cont.txt, out.nam, out.tr, stat.txt, windows.txt} are created.

Using some of the files for Xgraph : xgraph goodput.txt stat.txt windows.txt &


P.S. :
The patch was made from @onurīs files https://github.com/onuralparslan/nOBS


-

Last edited by knudfl; 04-12-2017 at 06:36 PM.
 
  


Reply

Tags
n.obs, 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 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: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