Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Lab 5: Interconnecting a Datacenter using Mininet
1. 5: Interconnecting a Datacenter using Mininet
Zubair Nabi
zubair.nabi@itu.edu.pk
April 21, 2013
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 1 / 6
3. Mininet
Project website: http://mininet.org/
Emulator for real-world networks which uses real kernel, switch, and
application code on just a single machine
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 2 / 6
4. Mininet
Project website: http://mininet.org/
Emulator for real-world networks which uses real kernel, switch, and
application code on just a single machine
Internally uses Linux containers to emulate hosts, switches, and links
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 2 / 6
5. Virtual Hosts
For each virtual host, Mininet creates a container connected to a
network namespace
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 3 / 6
6. Virtual Hosts
For each virtual host, Mininet creates a container connected to a
network namespace
Each network namespace consists of a virtual network interface and
associated data, such as ARP cache and routing tables
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 3 / 6
7. Virtual Hosts
For each virtual host, Mininet creates a container connected to a
network namespace
Each network namespace consists of a virtual network interface and
associated data, such as ARP cache and routing tables
Virtual interfaces are connected to software switches via virtual
Ethernet (veth) links
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 3 / 6
8. Interface
Both a command line interface as well as Python bindings
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 4 / 6
9. Interface
Both a command line interface as well as Python bindings
Running the CLI: sudo mn
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 4 / 6
10. Interface
Both a command line interface as well as Python bindings
Running the CLI: sudo mn
By default creates a toy topology
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 4 / 6
11. Some CLI Interaction
Displaying the hosts: nodes
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 5 / 6
12. Some CLI Interaction
Displaying the hosts: nodes
Displaying the links: net
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 5 / 6
13. Some CLI Interaction
Displaying the hosts: nodes
Displaying the links: net
Executing a command on a host/switch: name_of_host/switch
command
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 5 / 6
14. Reference(s)
Nikhil Handigol, Brandon Heller, Vimalkumar Jeyakumar, Bob Lantz,
and Nick McKeown. 2012. Reproducible network experiments using
container-based emulation. In Proceedings of the 8th international
conference on Emerging networking experiments and technologies
(CoNEXT ’12). ACM, New York, NY, USA, 253-264.
Zubair Nabi 5: Interconnecting a Datacenter using Mininet April 21, 2013 6 / 6