Statistics
| Branch: | Tag: | Revision:

mininet / examples / README @ ae2ede79

History | View | Annotate | Download (2.08 KB)

1 35341142 Bob Lantz
2 736038f8 Bob Lantz
Mininet Examples
3
4 35341142 Bob Lantz
These examples are intended to help you get started using
5 22f807fc Bob Lantz
Mininet's Python API.
6
7
---
8 736038f8 Bob Lantz
9 a49c85a6 Bob Lantz
baresshd.py:
10
11
This example uses Mininet's medium-level API to create an sshd
12
process running in a namespace. Doesn't use OpenFlow.
13
14 6c82d1ba Bob Lantz
consoles.py:
15
16
This example creates a grid of console windows, one for each node, 
17 3758da2e Bob Lantz
and allows interaction with and monitoring of each console, including
18
graphical monitoring.
19 6c82d1ba Bob Lantz
20 a49c85a6 Bob Lantz
controllers.py:
21
22
This example creates a network and adds multiple controllers to it.
23
24 6c82d1ba Bob Lantz
emptynet.py:
25
26
This example demonstrates creating an empty network (i.e. with no
27
topology object) and adding nodes to it.
28
29 35341142 Bob Lantz
linearbandwidth.py:
30 736038f8 Bob Lantz
31
This example shows how to create a custom topology programatically
32
by subclassing Topo, and how to run a series of tests on it.
33
34 6c82d1ba Bob Lantz
miniedit.py:
35
36
This example demonstrates creating a network via a graphical editor.
37
38 1bb99035 Bob Lantz
multiping.py:
39
40
This example demonstrates one method for 
41
monitoring output from multiple hosts, using node.monitor().
42
43
multipoll.py:
44
45
This example demonstrates monitoring output files from multiple hosts.
46
47 22f807fc Bob Lantz
multitest.py:
48
49
This example creates a network and runs multiple tests on it.
50
51 35341142 Bob Lantz
scratchnet.py, scratchnetuser.py:
52 736038f8 Bob Lantz
53
These two examples demonstrate how to create a network by using the lowest-
54
level Mininet functions. Generally the higher-level API is easier to use,
55
but scratchnet shows what is going on behind the scenes.
56
57 d08d101e Bob Lantz
simpleperf.py:
58
59
A simple example of configuring network and CPU bandwidth limits.
60
61 22f807fc Bob Lantz
sshd.py:
62
63
This example shows how to run an sshd process in each host, allowing
64
you to log in via ssh. This requires connecting the Mininet data network
65
to an interface in the root namespace (generaly the control network
66
already lives in the root namespace, so it does not need to be explicitly
67
connected.)
68
69 a49c85a6 Bob Lantz
treeping64.py:
70 45e82d09 Bob Lantz
71
This example creates a 64-host tree network, and attempts to check full
72 a49c85a6 Bob Lantz
connectivity using ping, for different switch/datapath types.
73 45e82d09 Bob Lantz
74
tree1024.py:
75
76
This example attempts to create a 1024-host network, and then runs the
77
CLI on it. It may run into scalability limits, depending on available
78
memory and sysctl configuration (see INSTALL.)