Statistics
| Branch: | Tag: | Revision:

mininet / examples / README @ 8a130dea

History | View | Annotate | Download (1.71 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 6c82d1ba Bob Lantz
consoles.py:
10
11
This example creates a grid of console windows, one for each node, 
12 3758da2e Bob Lantz
and allows interaction with and monitoring of each console, including
13
graphical monitoring.
14 6c82d1ba Bob Lantz
15
emptynet.py:
16
17
This example demonstrates creating an empty network (i.e. with no
18
topology object) and adding nodes to it.
19
20 35341142 Bob Lantz
linearbandwidth.py:
21 736038f8 Bob Lantz
22
This example shows how to create a custom topology programatically
23
by subclassing Topo, and how to run a series of tests on it.
24
25 6c82d1ba Bob Lantz
miniedit.py:
26
27
This example demonstrates creating a network via a graphical editor.
28
29 22f807fc Bob Lantz
multitest.py:
30
31
This example creates a network and runs multiple tests on it.
32
33 35341142 Bob Lantz
scratchnet.py, scratchnetuser.py:
34 736038f8 Bob Lantz
35
These two examples demonstrate how to create a network by using the lowest-
36
level Mininet functions. Generally the higher-level API is easier to use,
37
but scratchnet shows what is going on behind the scenes.
38
39 22f807fc Bob Lantz
sshd.py:
40
41
This example shows how to run an sshd process in each host, allowing
42
you to log in via ssh. This requires connecting the Mininet data network
43
to an interface in the root namespace (generaly the control network
44
already lives in the root namespace, so it does not need to be explicitly
45
connected.)
46
47 45e82d09 Bob Lantz
treeping64:
48
49
This example creates a 64-host tree network, and attempts to check full
50
connectivity using ping, for three different switch/datapath types.
51
52
tree1024.py:
53
54
This example attempts to create a 1024-host network, and then runs the
55
CLI on it. It may run into scalability limits, depending on available
56
memory and sysctl configuration (see INSTALL.)
57
58 35341142 Bob Lantz
udpbwtest.py:
59 736038f8 Bob Lantz
60
This example shows how to run a test across an entire network, and monitor
61
the output of a set of hosts in real time.