Statistics
| Branch: | Tag: | Revision:

mininet / examples @ 7c5d2771

Name Size Revision Age Author Comment
  test 7c5d2771 about 6 years cody burkard wait for sshd to start in example
README.md 3.84 KB d334c1cc over 6 years Brian O'Connor adding test for vlanhost.py and adding vlantopo...
__init__.py 48 Bytes 045ef7b8 about 7 years Bob Lantz Add docstring to satisfy pylint
baresshd.py 1.05 KB 7c5d2771 about 6 years cody burkard wait for sshd to start in example
bind.py 2.37 KB 40a4a25d over 6 years Cody Burkard use a single mininet instance in bindpy
cluster.py 29.6 KB 80d647a9 about 6 years Bob Lantz add findUser() to clean up user identification
clusterSanity.py 506 Bytes 3df36101 about 6 years cody burkard adding sanity check for cluster edition
clustercli.py 3.42 KB c265deed about 6 years Bob Lantz Cluster edition prototype: remote nodes and lin...
clusterdemo.py 637 Bytes c265deed about 6 years Bob Lantz Cluster edition prototype: remote nodes and lin...
consoles.py 15.2 KB 9bfc7c77 about 7 years Bob Lantz Satisfy pylint
controllers.py 1.03 KB 2e7d0d49 about 7 years Brian O'Connor fixed indent issue with examples/controllers.py
controllers2.py 1.57 KB 0fe73a67 over 6 years Bob Lantz build=False is unnecessary if topo=None, which ...
controlnet.py 4.66 KB cfb6bf95 about 7 years Brian O'Connor adding commandline args to UserSwitch in contro...
cpu.py 2.06 KB cf5bbd59 about 6 years cody burkard promote waitListening to util.py
emptynet.py 960 Bytes ecddbcf2 about 7 years Brian O'Connor updated emptynet to use addLink
hwintf.py 1.5 KB 220376b6 about 7 years Brian O'Connor hwintf.py: allow intf to be specified in cmd line
intfOptions.py 1.31 KB f0ce6f50 about 6 years cody burkard measure loss with udp iperf
limit.py 1.93 KB 58324bdc about 6 years cody burkard check if RT_GROUP_SCHED is enabled in kernel
linearbandwidth.py 3.58 KB 9cbf4688 about 6 years cody burkard add 1ms delay to all links to exaggerate TCP ba...
linuxrouter.py 2.22 KB 2c76ab71 over 6 years Brian O'Connor linuxrouter.py: changing name, printing routing...
miniedit.py 153 KB 8d493b68 over 6 years Gregory Gee Update to MiniEdit 2.2.0.1 - Replace custom cod...
mobility.py 4.15 KB 02bf34aa about 6 years Bob Lantz Remove setup/isOldOVS which have been merged in...
multiping.py 2.18 KB 891d8071 about 7 years Brian O'Connor fixed multiping example
multipoll.py 2.41 KB edf60032 about 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
multitest.py 1.02 KB b605cf74 about 7 years Brian O'Connor style in multitest
nat.py 3.77 KB 824afb84 almost 7 years Rémy Léone fixup: useless_parenthesis
natnet.py 1.92 KB 7c4e5b14 over 6 years Brian O'Connor adding line to natnet.py
numberedports.py 2.15 KB de41192e over 6 years Cody Burkard imported warn from mininet.log
popen.py 1023 Bytes 50cebe67 over 8 years Bob Lantz Add pmonitor() to make it easy to monitor popen...
popenpoll.py 932 Bytes 9a73dcad about 7 years Brian O'Connor fixed print format in popenpoll
scratchnet.py 1.98 KB a49c85a6 over 8 years Bob Lantz Fix examples to work with new API (and vice-ver...
scratchnetuser.py 2.4 KB bf208cde about 8 years Brandon Heller Fix SSHD example by generalizing input intf arg...
simpleperf.py 1.48 KB 7eeaed99 about 6 years cody burkard use udp with iperf to measure loss. pings are n...
sshd.py 2.98 KB a565bdd5 about 6 years cody burkard fix popen to work with shell
tree1024.py 534 Bytes 11782ae0 about 10 years Bob Lantz Commented out kernel ref, moved to Open vSwitch.
treeping64.py 950 Bytes 2e089b5e about 8 years Brandon Heller pep8: Fix E127 continuation line over-indented ...
vlanhost.py 3.58 KB eef43402 about 6 years cody burkard check for vlan dependency

Latest revisions

# Date Author Comment
7c5d2771 10/03/2014 11:52 AM cody burkard

wait for sshd to start in example

9487cb50 09/30/2014 02:57 AM Bob Lantz

Fix typo

762479c1 09/30/2014 02:06 AM Bob Lantz

Merge branch 'patches/linear_bw' of https://github.com/cdburkard/mininet into cdburkard-patches/linear_bw

f8e98d6a 09/30/2014 01:50 AM Bob Lantz

Merge branch 'patches/fix_sshd' of https://github.com/cdburkard/mininet into cdburkard-patches/fix_sshd

4aa0b823 09/30/2014 01:33 AM lantz

Merge pull request #395 from cdburkard/patches/vlan_fail_output

check for vlan dependency

9cbf4688 09/27/2014 11:48 AM cody burkard

add 1ms delay to all links to exaggerate TCP bandwidth decrease across an increasing number of links

74857ba4 09/27/2014 11:47 AM cody burkard

remove User Switch from linearBandwidth due to poor performance

f1b61c62 09/27/2014 11:31 AM cody burkard

Merge branch 'master' of github.com:mininet/mininet into patches/fix_sshd

Conflicts:
examples/cpu.py

a565bdd5 09/27/2014 11:30 AM cody burkard

fix popen to work with shell

cf5bbd59 09/27/2014 11:30 AM cody burkard

promote waitListening to util.py

View revisions

README


Mininet Examples

These examples are intended to help you get started using Mininet's Python API.

baresshd.py:

This example uses Mininet's medium-level API to create an sshd process running in a namespace. Doesn't use OpenFlow.

consoles.py:

This example creates a grid of console windows, one for each node, and allows interaction with and monitoring of each console, including graphical monitoring.

controllers.py:

This example creates a network with multiple controllers, by using a custom Switch() subclass.

controllers2.py:

This example creates a network with multiple controllers by creating an empty network, adding nodes to it, and manually starting the switches.

controlnet.py:

This examples shows how you can model the control network as well as the data network, by actually creating two Mininet objects.

cpu.py:

This example tests iperf bandwidth for varying CPU limits.

emptynet.py:

This example demonstrates creating an empty network (i.e. with no topology object) and adding nodes to it.

hwintf.py:

This example shows how to add an interface (for example a real hardware interface) to a network after the network is created.

limit.py:

This example shows how to use link and CPU limits.

linearbandwidth.py:

This example shows how to create a custom topology programatically by subclassing Topo, and how to run a series of tests on it.

linuxrouter.py:

This example shows how to create and configure a router in Mininet that uses Linux IP forwarding.

miniedit.py:

This example demonstrates creating a network via a graphical editor.

mobility.py

This example demonstrates detaching an interface from one switch and attaching it another as a basic way to move a host around a network.

multiping.py:

This example demonstrates one method for monitoring output from multiple hosts, using node.monitor().

multipoll.py:

This example demonstrates monitoring output files from multiple hosts.

multitest.py:

This example creates a network and runs multiple tests on it.

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?"

numberedports.py

This example verifies the mininet ofport numbers match up to the ovs port numbers. It also verifies that the port numbers match up to the interface numbers

popen.py:

This example monitors a number of hosts using host.popen() and pmonitor().

popenpoll.py:

This example demonstrates monitoring output from multiple hosts using the node.popen() interface (which returns Popen objects) and pmonitor().

scratchnet.py, scratchnetuser.py:

These two examples demonstrate how to create a network by using the lowest- level Mininet functions. Generally the higher-level API is easier to use, but scratchnet shows what is going on behind the scenes.

simpleperf.py:

A simple example of configuring network and CPU bandwidth limits.

sshd.py:

This example shows how to run an sshd process in each host, allowing you to log in via ssh. This requires connecting the Mininet data network to an interface in the root namespace (generaly the control network already lives in the root namespace, so it does not need to be explicitly connected.)

tree1024.py:

This example attempts to create a 1024-host network, and then runs the CLI on it. It may run into scalability limits, depending on available memory and sysctl configuration (see INSTALL.)

treeping64.py:

This example creates a 64-host tree network, and attempts to check full connectivity using ping, for different switch/datapath types.

vlanhost.py:

An example of how to subclass Host to use a VLAN on its primary interface.

Also available in: Atom