Presenter: Yung-Yu Wang Design a Ryu APP Presenter: Yung-Yu Wang 1
Outline What is SDN What is “Ryu” Introduction to Ryu Ryu’s structure Ryu APP You need to know first python decorator event and dispatcher Demo 2
SDN : software defined network What is SDN SDN : software defined network 3
What is “Ryu” 4
Introduction to Ryu A component-based SDN framework Support OpenFlow, Network, OF-config Fully Support Openflow 1.0,1.2,1.3,1.4,1.5 All of the code is freely available under the Apache 2.0 license OpenStack support Ryu Ryu book 5
Ryu’s structure 6
Ryu APP Ryu applications are single-threaded entities The queue is FIFO and preserves the order of events Event based 7
You need to know first ryu.controller.handler.set_ev_cls(ev_cls, dispatchers=None) usage : 8
Decorator without parameter Python decorator Decorator without parameter 9
Decorator with parameter Python decorator Decorator with parameter 10
event and dispatchers Event OFPSwitchFeatures EventOFPPacketIn CONFIG_DISPATCHER MAIN_DISPATCHER 11
12
Ryu APP — part 1 13
Ryu APP — part 2-1 14
Ryu APP — part 2-2 15
Demo 16