Statistics
| Branch: | Tag: | Revision:

mininet / examples / README @ 8a130dea

History | View | Annotate | Download (1.71 KB)

1

    
2
Mininet Examples
3

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

    
7
---
8

    
9
consoles.py:
10

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

    
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
linearbandwidth.py:
21

    
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
miniedit.py:
26

    
27
This example demonstrates creating a network via a graphical editor.
28

    
29
multitest.py:
30

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

    
33
scratchnet.py, scratchnetuser.py:
34

    
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
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
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
udpbwtest.py:
59

    
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.