3. What is RYU
Ryu is a component-based software defined networking framework.
4. What is RYU
OSS SDN Framework founded by NTT:
•Python library for SDN
•Apache v2 license
•Supports various protocols for managing network devices:
- OpenFlow, Netconf, OF-config, SNMP etc.
Features:
•OpenFlow
- Version:1.0,1.2,1.3,1.4,1.5
•Parsing and building various protocols packets:
- IP, UDP,TCP,MPLS…
•Ryu can configure Open vSwitch directly without ovs-vsctl, ovsdb-client
•Integration with other project
- OpenStack
- HA with Zookeeper
- IDS(Intrusion Detection System) with snort
5. What RYU can do
• Various SDN Application and library:
- simple_switch firewall router…
- LACP,STP…
- RESTAPI, RPC
• Integration with other project:
- OpenStack
- HA with Zookeeper
- IDS(Intrusion Detection System) with snort
• Topology Viewer
- Topology discovery
- Flow entry management.
11. GUI
● 使用官方 GUI
o 官方提供 GUI 套件
o 详细教程:
http://www.muzixing.com/pages/2015/04/21/ryu316-guian-zhuang-yu-topologymo-kuai-fen-x
● 使用第三方 GUI
o 第三方 GUI 提供者有很多
o http://sdnhub.org/releases/sdn-starter-kit-ryu/
o ANT GUI
15. RESAT API
RYU 提供了 RESTAPI , 用于可以使用 RESTAPI 来开发应用程序。
•Ofctl_rest.py 提供 OpenFlow 方面的 REST API 接口:
get the list of all switches GET /stats/switches
get the desc stats of the switch GET /stats/desc/<dpid>
get flows stats of the switch GET /stats/flow/<dpid>
get flows stats of the switch filtered by the fields : POST /stats/flow/<dpid>
•Rest_topology.py 提供获取拓扑相关 API:
get all the switches GET /v1.0/topology/switches
get the switch GET /v1.0/topology/switches/<dpid>
get all the links GET /v1.0/topology/links
get the links of a switch GET /v1.0/topology/links/<dpid>
16. Write your first APP
http://ryu.readthedocs.org/en/latest/writing_ryu_app.html
outline:
什么是Mininet
如何安装mininet
如何启动mininet
-启动参数
CLI介绍
自定义拓扑
与Internet通信
源码分析。
拓展mininet
Part 1: Everyday Mininet Usage
Display Startup Options
Start Wireshark
Interact with Hosts and Switches
Test connectivity between hosts
Run a simple web server and client
Cleanup
Part 2: Advanced Startup Options
Run a Regression Test
Changing Topology Size and Type
Link variations
Adjustable Verbosity
Custom Topologies
ID = MAC
XTerm Display
Other Switch Types
Mininet Benchmark
Everything in its own Namespace (user switch only)
Part 3: Mininet Command-Line Interface (CLI) Commands
Display Options
Python Interpreter
Link Up/Down
XTerm Display
Part 4: Python API Examples
SSH daemon per host
Part 5: Walkthrough Complete!
Next Steps to mastering Mininet
Appendix: Supplementary Information
Using a Remote Controller
NOX Classic
http://csie.nqu.edu.tw/smallko/sdn/sdn.htm
Sflow