Mininet
Mininet creates arealistic virtual network, running real kernel, switch and application code, on a single
machine (VM, cloud or native), in seconds, with a single command:
http://mininet.org/
OpenVSwitch
Open vSwitch isa production
quality, multilayer virtual
switch licensed under the
open source Apache
2.0 license. It is designed to
enable massive network
automation through
programmatic extension,
while still supporting standard
management interfaces and
protocols (e.g. NetFlow,
sFlow, IPFIX, RSPAN, CLI,
LACP, 802.1ag).
6.
Installation
• Mininet VMInstallation(easy, recommended)
http://mininet.org/download/#option-1-mininet-vm-installation-easy-recommended
• Native Installation form Source
http://mininet.org/download/#option-2-native-installation-from-source
http://www.muzixing.com/pages/2014/11/02/openvswitch230-and-mininet-install.html
• Installation form Packages
http://mininet.org/download/#option-3-installation-from-packages
bin/mn
Simple use classnames as option help.
该脚本定义了一个 MininetRunner 类,用来表示模拟网络的主程序。主要过程是创建一个 MininetRunner() 实例,依次解
析传入参数,进行初始化后开启网络。整体过程如下图所示。
Ref:http://yeasy.gitbooks.io/mininet_book/content/runtime_and_example/mn.html
17.
examples
These examples areintended to help you get started using Mininet's Python API.
hwintf.py:
This example shows how to add an interface (for example a real hardware interface) to a network after the network is
created.
nat.py:
This example shows how to connect a Mininet network to the Internet using NAT. It also answers the eternal question
"why can't I ping google.com?"
...
#2 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