INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGIES (ICICT 2017)
Software Defined Networking (SDN) Ambrose Ahurr1!" #e$$e%h MAATHE #AMURALI 2" D&rmu&' r&&$* " Dr+ Doro%h, O-e..o/ netLabs!UG, Makerere University, Kampala, Uganda Email: ndahura12@gma ndahura12@gmail"m, il"m, 2 Email:maathek#$@gmail Email:maathek#$@gmail"m, "m, % & Email:diarmuid@"bria Email:diarmuid@"briain"m, in"m, Email:dk"kell"@eda Email:dk"kell"@edatmakaug tmakaug 1
INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGIES (ICICT 2017)
Abstract: The .e, $e%or- hs 3us% bou% ru$ &%s
Th&s 55er &.." &$4es%&%e %he o5er%&o$ $' use .s% m&.e" '4$eme$%s &$ .ou' om5u%&$" ses o SDN" 'emo$s%r%e 5rormmb&.&%, us&$ 4&r%u.&s%&o$ $' '% e$%res h4e .e' %o $ %he A9I %hrouh %he bu&.'&$ o 5h,s&. %es%be' e65o$e$%&. ro%h &$ '% %r& %h% &.. soo$ us&$ M&-ro%&- R7;0GL s&%hes" Rs5berr, 9& o4er85oer .e, $e%or-s+ s&$.e8bor' om5u%ers $' GNU
INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGIES (ICICT 2017)
I+ INTRODUCTION
So%re De&$e' Ne%or- see-s %o e$h$e $e%or- orhes%r%&o$ $' m$eme$% %hrouh se5r%&o$ o %he o$%ro. $' orr'&$ 5.$es+ SDN $ be &m5.eme$%e' us&$ bo%h 4&r%u. so%re s&%hes $' hr're s&%hes ru$$&$ %he O5e$ F.o 5ro%oo.+ The urre$% $e%or-s re he4&., re.&$% o he'er e$5su.%&o$ %h% -ee5s e%&$ &$%o %he M6&mum Tr$ser U$&% s&>e o 5-e%s+ The o$%&$ue' '4$eme$%s &$ .ou' om5u%&$" I$%er$e% o Th&$s $' ?&r%u.&s%&o$ re@u&re $e%or- &s h&h .e6&b.e $' s.b.e+ The SDN rh&%e%ure&s sho$ be.o+ 1.1.
II. Objectives
u&.' 5h,s&. %es%be'
Com5re So%re De&$e' Ne%or- $' .e, $e%or- us&$ 5erorm$e 5rme%ers suh s b$'&'%h" .%e$, $' re.&b&.&%,+ •
Demo$s%r%e 5rormmb&.&%, %hrouh 5ush&$ .os" re%r&e4&$ $e%or- s%%&s us&$ %he REST A9I+ •
III. Methodology
OpenDaylight (ODL)
Th&s &s $ o5e$ soure mo'u.r So%re De&$e' Ne%or- Co$%ro..er %h% $ be 'e5.o,e' &$ 4r&e%, o 5ro'u%&o$ $e%or- e$4&ro$me$%s+ I% e65oses o5e$ $or%hbou$' A55.&%&o$ 9rormm&$ I$%eres (A9Is) %h% $ be use' %o o..e% &$orm%&o$ bou% %he $e%or-" ru$ .or&%hms %o o$'u% $.,%&s" $' %he$ use %he O5e$D,.&h% Co$%ro..er %o re%e $e ru.es %hrouhou% %he $e%or-+ ODL oers $ o4er4&e o %he $e%or%o5o.o, sho&$ .. $e%or- 'e4&es us&$ eb &$%ere+
OpenvSwitch on Raspberry Pi
As $ e65er&me$%. 55roh %he O5e$4S&%h s &m5.eme$%e' o$ %he rs5berr, 5& s&$.e bor' om5u%er+ S&$e %he 9& hs o$., o$e o$8bor' E%her$e% &$%ere ''&%&o$. &$%eres ere 5ro4&'e' us&$ US %o E%her$e% '5%ers+ Requireents
Rs5berr, 9& 2 " L&$u6 m&$&b&$ 3ess&e 201;811812 re.ese #er$e. /+1+7847" US %o E%her$e% '5%ers" O5e$4S&%h 2+;+0" O5e$ D,.&h% er,..&um+ O$ resh &$s%.. o %he m&$&b&$ OS+ # download the OpenvSwitch root@ovs2:~# wget http://openvswitch.org/ releases/openvswitch-2.5.0.tar.gz root@ovs2:~# tar -xzv openvswitch!! 2.5.0.tar.gz root@ovs2:~# cd openvswitch-2.5.0 root@ovs2:~# apt-get "pdate # install "ild dependencies root@ovs2:~# apt-get install p$thonsi%ple&son p$thon-'t( lissl-dev p$thontwisted-conch a"to%a)e a"tocon gcc "%l"tilities litool "ild-essential p)gconig # install the lin"x headers to e "sed "sed or "ilding OpenvSwitch )ernel %od"le. root@ovs2:~# apt-get install lin"x-!! headers-*.+,.0-(-rpi root@ovs2:~# ./oot.sh root@ovs2:~# ./conig"re with lin"x/li/%od"les/*.+,.0-(-rpi/"ild root@ovs2:~# %a)e root@ovs2:~# %a)e install
INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGIES (ICICT 2017)
A%er %he &$s%.. %he -er$e. mo'u.e &s .o'e' $' O5e$4S&%h s%r%e'" s%r% sr&5% &s 5sse' %o %he r+.o. &.e %o .,s .o' %he %he -er$e. mo'u.e $' s%r% O5e$4S&%h e4er, %&me %he 9& boo%s+ A%er %h&s he-&$ &%h B"vs'vstl sh"( omm$' shou.' &4e %he '% 5%h o %he s&%h+ Bm"din)" "penvs(ith* &4es %he 'e%&.s o %he -er$e. mo'u.e+ root@ovs2:~# ovs-vsctl show e,5a,2(-5*a,-(+d-a*5-(2(+d0ce root@ovs2:~# %odino openvswitch ilena%e: /li/%od"les/(.+.1 v1/)ernel/net/openvswitch/openvswitch.)o license: 34 description: Open vSwitch switching datapath srcversion: 6*02+6576689,88+715 depends: intree: ; ver%agic: (.+.1-v1 S<4 pree%pt %od="nload %odversions 8>
OpenvSwitch on Mikrotik RB!"L
Rou%eror' 7;0GL" O5e$:r% Chos C.mer re.ese" O5e$4S&%h o5- 5-e+ O5e$:r% &s boo%e' o$%o %he rou%er us&$ Tr&4&. F&.e Tr$ser 9ro%oo. (TFT9) ser4er $' rou%er N$' .she' us&$ %he e%2$$' u%&.&%,+
The O5e$F.o mo'u.e &s %he$ &$s%..e'+ root@Open?rt: op)g "pdate root@Open?rt:~# op)g install openvswitchco%%on openvswitch-ipsec /openvswitchswitch
For more re.&s%& e6m&$%&o$ o SDN $' O5e$F.o" &$'us%r, s%$'r' s&%h&$ hr're s hose$+ The &$bu&.% rou%er OS o %he R7;0GL s re5.e' b, o5e$ soure rou%er &rmre ..e' O5e$:r%" %he Chos .mer re.ese $' %he O5e$4S&%h -er$e. mo'u.e .o'e'" %hus %ur$&$ Co$&rm&$ %he O5e$4S&%h &s ru$$&$ 5ro5er.,+ %he R7;0GL &$%o $ O5e$F.o e$b.e' s&%h+ r&e 'esr&5%&o$ o %he R7;0GL+ The R7;0GL &s s&$.e s&%h SOHO 'e4&e &%h A%heros s&%h $' C9U $' &4e G&b&% E%her$e% 5or%s+ As see$ &$ &ure++
F&$.., %he $e%or- &s se% u5 b, o$&ur&$ .. %he &4e &$%eres+ E4er, 5or% &s o$&ure' s s&$.e 5or% s o..os #thernet/4oe conig switch=vlan option device Aswitch0A option vlan A+A option ports A0t +A #thernet 2 conig switch=vlan option device Aswitch0A option vlan A2A option ports A0t 2A
The res% o %he 5or%s re o$&ure' s&m&.r.,+ The O5e$4S&%h &s o$&ure' s o..os # 7reate ridge
Requireents
root@Open?rt: ovs-vsctl add-r ro # 8dding interaces to the ridge root@Open?rt:~# ovs-vsctl add-port ro eth0.2 root@Open?rt:~# ovs-vsctl add-port ro eth0.*
INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGIES (ICICT 2017)
root@Open?rt:~# ovs-vsctl add-port ro eth0.( root@Open?rt:~# ovs-vsctl add-port ro eth0.5
Che-&$ %he O4S o$&ur%&o$+ root@Open?rt:~# ovs-vsctl show 0*d(5-a5de-(d0(-+e-ce,(20*+a, 9ridge ro 7ontroller Btcp:+2.+,.5.+0B 4ort Beth0.2B Cnterace Beth0.2B 4ort Beth0.*B Cnterace Beth0.*B 4ort ro Cnterace ro t$pe: internal 4ort Beth0.(B Cnterace Beth0.(B 4ort Beth0.5B Cnterace Beth0.5B
!" De#e$o%ents
The O5e$F.o 5ro%oo. &s $o o$ 4ers&o$ 1+/ h&.e %he O5e$4S&%h &s o$ 4ers&o$ 2+7+0+ The O5e$ D,.&h% hs h' s&6 re.eses urre$%., o$ Crbo$+ U$&4ers&%&es .&-e S%$'or' h4e .re', 'e5.o,e' SDN+ The .&s% o 4e$'ors 5ro'u&$ O5e$F.o e$b.e' Hr're or 4&%u.&s%&o$ $' D% Ce$%er 55.&%&o$s hs ro$ &$.u'&$ mo$ o%hers H9" IM" E6%reme Ne%or-s+ VI. Results
A s&m5.e $e%or- s se% u5 us&$ %he m&-ro%&O5e$F.o s&%h $' se4er. hos%s+ Tes%s rr&e' ou% o$ %he $e%or- ,&e.'e' %he o..o&$ resu.%s+ O5e$ D,.&h% '&s5.,s %he $e%or- &%h %he hos%s s &$ &ure 7+
Che- %he -er$e. mo'u.e+ root@Open?rt:~# %odino openvswitch %od"le: /li/%od"les/*.+0.(/openvswit ch.)o license: 34
'e5e$'s=
.&br*2"re IV. Technology description
O5e$F.o &s %he 5ro%oo. %h% e$b.es %he o$%ro..er %o %.- %o %he 4&r%u. $' hr're s&%hes+ The ommu$&%&o$ &s 4& SSL h$$e. o$ TC9 5or% ** s sho$ &$ &ure + Progra##ing the Switch
The mos% bs& , o 5ush&$ .os %o %he S&%hes &$ %he Forr'&$ 5.$e &s us&$ %he ur. u%&.&%, &$ GNU L&$u6+ cD> "ser E"serna%eF:EpasswordF -G Eheader+F -G Eheader2F -H Ere'"est-t$peF E"rlF -d AEre'"est-od$FA
9r% o %he re@u&re' o$s%ru% o %he URL re@ues%s o..os= --"ser E"ser-na%eF:EpasswordF= S5e&&es %he user$me $' 5ssor' %o use or ODL u%he$%&%&o$+ •
The o$%ro..er 5ushes .os &$%o %he .o %b.e %o e$b.e ommu$&%&o$ mo$ %he hos%s+
•
-G 8ccept: Eresponse-contentt$peF= S5e&&es %he o$%e$% %,5e %h% &s
e65e%e' &$ %he res5o$se bo', or %he re@ues%+ Usu.., Ae5%= 55.&%&o$<6m.+
INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGIES (ICICT 2017) •
•
•
-G 7ontent-t$pe: Ere'"estcontent-t$peF= S5e&&es %he o$%e$% o
%he re@ues% bo',+ Usu.., Co$%e$%8%,5e= 55.&%&o$<6m.+ -H Ere'"est-t$peF= S5e&&es %he %,5e o re@ues% ,ou $% %o se$' %o ODL+ For e6m5.e= 9UT" GET or DELETE .o+ -d Ere'"est-od$F= S5e&&es %he re@ues% bo', (.&-e F.o" Grou5" Me%er" $' so o$)+ Th&s &s re@u&re' or 9UT or 9OST re@ues% o$.,
Tes%s rr&e' ou% o$ %he $e%or- ,&e.'e' %he o..o&$ resu.%s+ $'&'%h %es%&$ o$ %he Rs5berr, 5& O5e$4S&%h+ Transission S%eeds in &bits'sec
TC9
UD9
:&$'o Tr$ser S5ee' :&$'o Tr$ser s&>e s&>e ;+0# ;+*M
S5ee'
*+
20# 1+2; M
1+0;
12# /+7;M *+7J
2;# 1+2; M
1+0;
2;# /+M *+7J
;12# 1+2; M
1+0;
From %b.e 1" &% &s e4&'e$% %h% %he Rs5berr, 9& &s $o% robus% e$ouh %o be use' s ,r's%&- or 3u'&$ SDN+ To %h&s e$'" %b.e 2" shos resu.%s rom %he more 5b.e M&-ro%&- O5e$F.o s&%h+ Transission S%eeds in &bits'sec
TC9
UD9
:&$'o Tr$ser S5ee' :&$'o Tr$ser S5ee' S&>e S&>e ;+*# ;1J M
/*/
20# 1+2; M 1+0;
12# 1; M
;1
2;# 1+2; M
1+0;
2;# 07 M
;0J
;12# 1+2; M
1+0;
I% &s 5ru'e$% %o om5re %he b$'&'%h 5erorm$e o %he O5e$F.o s&%h $' .e, M&-ro%&s&%h+ Tb.e *" shos %he resu.%s rom %he .e, s&%h+
Transission S%eeds in &bits'sec
TC9
UD9
:&$'o Tr$ser S5ee' :&$'o Tr$ser S&>e S&>e
S5ee'
;+*# 112 M J/+1
20# 1+2; M
1+0;
12#
112 M J/+1
2;# 1+2; M
1+0;
2;#
112 M J/+2
;12# 1+2; M
1+0;
!II"usiness enefits
Some o %he use ses or SDN &$.u'e I+ Ne%or- Aess Co$%ro. (NAC)" SDN oers r$u.r .e4e. o$%ro. %o se% 4r,&$ 5r&4&.ees or '&ere$% users $' 'e4&es &$ m5us $e%or-s $' or e$%er5r&ses+ II+ Ne%or- 4&r%u.&s%&o$" re%&o$ o bs%r%e' 4&r%u. $e%or-s $ %o5 o 5h,s&. hr're &$ %he .ou' or &$ .re e$%er5r&ses re'u&$ re'u&$ %he 'e5.o,me$% %&me+ I?+ A55.&%&o$ re rou%&$ Th&s &s 4&%. &$ se$r&os here '% rom '&ere$% 55.&%&o$s $ee's %o be se5r%e'" %re%e' '&ere$%., es5e&.., 'e., se$s&%&4e 55.&%&o$s+ ?+ Mob&.e Ne%or- ?&r%u.&s%&o$ Ab&.&%, %o 4&r%u.&se mob&.e $e%or- %hus ..o&$ mu.%&5.e o5er%ors %o shre ommo$ hr're< &$rs%ru%ure or mu.%&5.e $e%or-s $' ..o&$ '&ere$% o5er%ors %o o$%ro. %he&r o$ s.&e o %he $e%or- + Some 'e5.o,me$%s &.. $o% $eessr&., em5.o, om5.e%e e$'8%o8e$' 4&r%u.&>%&o$ bu% m&h% &$s%e' hoose %o 4&r%u.&>e 5r%s o %he $e%or-+ VIII.
Conclusion
So%re De&$e' Ne%or-&$ &s o$e5% %h% &s s%&.. %-&$ roo% &$ %he $e%or-&$ re$+ From our &$4es%&%&o$ &% &s .er %h% O5e$ F.o $e%or-s $ more %h$ ho.' %he&r o$ &$ %erms o hr're 5erorm$e+ Hoe4er" %he re. 4.ue o SDN .&es &$ &%s b&.&%, %o s&m5.&, bo%h 5h,s&. $' 4&r%u. $e%ororhes%r%&o$+
INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGIES (ICICT 2017)