Title: ???G????????????%20??????%20Software%20Defined%20Networks%20(SDN)
1???G???????????? ??????Software Defined
Networks(SDN)
???ast???? ??a?e???s?? ?a? ???t?st?? S?ed?asµ??
???t??? (NETMODE)
2G???? ?????????S?? ???G????????????? ??????
https//github.com/mininet/mininet/wiki/pdf/mini
net-hotnets2010-final.pdf
- ???e d??t?a??? ??µß?? ??e? d??? t??
- ?S (OS)
- ep?ped? p?????s?? ded?µ???? (forwarding plane)
- ep?ped? e??????(control plane)
- ?? ap?f?se?? p??pe? ?a ?aµß????ta? s??e??at???
- ?p??ad?p?te e?d??? µeta?e???s? pa??t?? ?a p??pe?
?a ???eta? a?? ??µß? (ACLs)
- ????? ???e?t???t?ta
- -????? d?a?e???st??? ??st??
- -????t?s? ap? ?atas?/st??
- -??s????a efa?µ???? ?e?t????? p???t????
3G???? ?????????S?? ???G????????????? ??????
- ???e d??t?a??? ??µß?? ??e? d??? t??
- ep?ped? p?????s?? ded?µ???? (forwarding plane)
- ?? ?S t?? d??t??? ???p??e?
- ?e?t????p???µ??? ep?ped? e??????(control plane)
- ?p??ad?p?te p???t??? e?d???? µeta?e???s?? pa??t??
- -?e??µ??? ???e?t???t?ta
- ?aµ??? d?a?e???st??? ??st??
- ????ap??? ?atas?e?ast??
- ??????a efa?µ???? ?e?t????? p???t????
4G???? ?????????S?? ???G????????????? ??????
Network Programmability
SeparateControl-Data plane
L2 topologiesL2-L4 forwarding
5??????S ???OT?S?S ???????O? Forwarding Table (as
defined in OpenFlow)
6OpenFlow v1.0
Rule
Action
Stats
Packet byte counters
- Forward packet to port(s)
- Encapsulate and forward to controller
- Drop packet
- Send to normal processing pipeline
Optional Actions 1.Enqueue 2.Modify Fields
Switch Port
MAC Src
MAC Dst
Eth Type
VLAN Id
IP Src
IP Dst
IP Prot
TCP/UDP Sport
TCP/UDP Dport
IP TOS
VLANPCP
7?????F?S ???G??? ????????S?SControl
Management interfaces (as defined from ONF)
Management interface
Control interfaces
8(No Transcript)
9???G?????????????S ????GOG??S ??G?S?????Open
vSwitch
Control Plane
Management Plane
10??????O??S ???????Mininet
- S?ed?asµ??? ??a t?? p??s?µ???s? SDN d??t???
- ?????? st? ???s?
- ?????? ap?d?s?? (100 ??µß?? se ??a? ?p?????st?)
- ?a OpenFlow-enabled switches µp????? ?a
e??????ta? e?te ap? t?? built-in e?te ap? ??a?
e??te???? Controller
11???????G?? ??????G??S
??t??es? Mininet ???s? t?? built-in µe??d?? ??a
t? d?µ??????a t?p?????a? sudo mn --topo
single,3 --controller remote,ip127.0.0.1,port663
3 ??µ??????a custom t?p?????a? --custom
/home/mininet/mininet/custom/topo-4sw-3host.py
--topo mytopo
??e???? t?? OF-Switches mininetgt ovs-vsctl
show mininetgt s1 dpctl add-flow
tcp127.0.0.16634 in_port1,actionsoutput2 mini
netgt s1 dpctl dump-flows tcp127.0.0.16634
??e???? t?? Hosts mininetgt lthostnamegt
command mininetgt h1 ifconfig a mininetgt h1 ping
h2 mininetgt pingall
12???????G?? ???S????S?S FLOW-TABLEdump-flows se
flowtable ap? ??aµµ? e?t????
mininetgt s1 dpctl dump-flows tcp127.0.0.16634 s
tats_reply (xid0x92adc26a) flagsnone
type1(flow) cookie0, duration_sec10s,
duration_nsec171000000s, table_id0,
priority65535, n_packets1, n_bytes98,
idle_timeout10,hard_timeout30, icmp,in_port2,dl
_vlan0xffff,dl_src26469f126a91,dl_dstf602
84d2e499,nw_src10.0.0.2,nw_dst10.0.0.1,nw_to
s0x00,icmp_type0,icmp_code0, actionsoutput1
cookie0, duration_sec10s, duration_nsec14400000
0s, table_id0, priority65535, n_packets1,
n_bytes98, idle_timeout10,hard_timeout30, icmp,
in_port1,dl_vlan0xffff,dl_srcf60284d2e499,
dl_dst6a40eaa37357,nw_src10.0.0.1,nw_dst10
.0.0.3,nw_tos0x00,icmp_type8,icmp_code0, action
soutput2