Statistics
| Branch: | Tag: | Revision:

mininet / examples / README @ 0b7c277e

History | View | Annotate | Download (1.79 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 22f807fc Bob Lantz
multitest.py:
39
40
This example creates a network and runs multiple tests on it.
41
42 35341142 Bob Lantz
scratchnet.py, scratchnetuser.py:
43 736038f8 Bob Lantz
44
These two examples demonstrate how to create a network by using the lowest-
45
level Mininet functions. Generally the higher-level API is easier to use,
46
but scratchnet shows what is going on behind the scenes.
47
48 22f807fc Bob Lantz
sshd.py:
49
50
This example shows how to run an sshd process in each host, allowing
51
you to log in via ssh. This requires connecting the Mininet data network
52
to an interface in the root namespace (generaly the control network
53
already lives in the root namespace, so it does not need to be explicitly
54
connected.)
55
56 a49c85a6 Bob Lantz
treeping64.py:
57 45e82d09 Bob Lantz
58
This example creates a 64-host tree network, and attempts to check full
59 a49c85a6 Bob Lantz
connectivity using ping, for different switch/datapath types.
60 45e82d09 Bob Lantz
61
tree1024.py:
62
63
This example attempts to create a 1024-host network, and then runs the
64
CLI on it. It may run into scalability limits, depending on available
65
memory and sysctl configuration (see INSTALL.)