Statistics
| Branch: | Tag: | Revision:

mininet / examples @ 9c6620d8

Name Size Revision Age Author Comment
README 2.08 KB d08d101e about 8 years Bob Lantz Added simpleperf.py to examples.
baresshd.py 651 Bytes a49c85a6 about 8 years Bob Lantz Fix examples to work with new API (and vice-ver...
consoles.py 14.8 KB 14ff3ad3 about 8 years Bob Lantz Fix codecheck and MininetWithControlNet.
controllers.py 1.47 KB 74a56e2b almost 10 years Bob Lantz Pass code check.
cpu.py 2.32 KB 612b21cb about 8 years Bob Lantz Pass code check.
emptynet.py 948 Bytes 82b72072 about 10 years Bob Lantz Pass pylint.
hwintf.py 1.14 KB 1d67218d over 9 years Bob Lantz Modified to add eth1.
limit.py 2.13 KB c1a6ae2b about 8 years Bob Lantz Remove blank line.
linearbandwidth.py 3.22 KB e52d0ee1 about 8 years Bob Lantz Fix to work with new Topo class.
miniedit.py 24.6 KB 14ff3ad3 about 8 years Bob Lantz Fix codecheck and MininetWithControlNet.
multiping.py 2.22 KB 7cb340b7 about 8 years Bob Lantz Pass code check.
multipoll.py 2.41 KB 7cb340b7 about 8 years Bob Lantz Pass code check.
multitest.py 1.02 KB 11782ae0 over 9 years Bob Lantz Commented out kernel ref, moved to Open vSwitch.
popen.py 1023 Bytes 50cebe67 about 8 years Bob Lantz Add pmonitor() to make it easy to monitor popen...
scratchnet.py 1.98 KB a49c85a6 about 8 years Bob Lantz Fix examples to work with new API (and vice-ver...
scratchnetuser.py 2.38 KB 14ff3ad3 about 8 years Bob Lantz Fix codecheck and MininetWithControlNet.
simpleperf.py 1.3 KB 7cb340b7 about 8 years Bob Lantz Pass code check.
sshd.py 2.48 KB a49c85a6 about 8 years Bob Lantz Fix examples to work with new API (and vice-ver...
tree1024.py 534 Bytes 11782ae0 over 9 years Bob Lantz Commented out kernel ref, moved to Open vSwitch.
treeping64.py 930 Bytes 54d320ce over 9 years Bob Lantz Pass code check.

Latest revisions

# Date Author Comment
50cebe67 04/14/2012 12:42 AM Bob Lantz

Add pmonitor() to make it easy to monitor popen objects.

237a3c54 04/13/2012 10:50 PM Bob Lantz

Begin test/example for popen().

7cb340b7 04/10/2012 12:12 AM Bob Lantz

Pass code check.

50202e12 04/06/2012 04:38 AM Bob Lantz

Off by one... I dislike range()

d08d101e 04/04/2012 01:49 AM Bob Lantz

Added simpleperf.py to examples.

1bb99035 04/04/2012 12:32 AM Bob Lantz

Added multipoll and multiping examples.

c1a6ae2b 04/01/2012 04:29 AM Bob Lantz

Remove blank line.

00d9b780 03/24/2012 01:41 AM Bob Lantz

Reinstate more complicated test.

612b21cb 03/24/2012 01:38 AM Bob Lantz

Pass code check.

74ea006d 03/24/2012 01:17 AM Bob Lantz

Increase the quota and cpu fraction to get max cfs performance.

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 and adds multiple controllers to it. emptynet.py: This example demonstrates creating an empty network (i.e. with no topology object) and adding nodes to it. 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. miniedit.py: This example demonstrates creating a network via a graphical editor. 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. 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.) treeping64.py: This example creates a 64-host tree network, and attempts to check full connectivity using ping, for different switch/datapath types. 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.)

Also available in: Atom