Statistics
| Branch: | Tag: | Revision:

mininet / examples / README @ 45e82d09

History | View | Annotate | Download (1.34 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
linearbandwidth.py:
10

    
11
This example shows how to create a custom topology programatically
12
by subclassing Topo, and how to run a series of tests on it.
13

    
14
multitest.py:
15

    
16
This example creates a network and runs multiple tests on it.
17

    
18
scratchnet.py, scratchnetuser.py:
19

    
20
These two examples demonstrate how to create a network by using the lowest-
21
level Mininet functions. Generally the higher-level API is easier to use,
22
but scratchnet shows what is going on behind the scenes.
23

    
24
sshd.py:
25

    
26
This example shows how to run an sshd process in each host, allowing
27
you to log in via ssh. This requires connecting the Mininet data network
28
to an interface in the root namespace (generaly the control network
29
already lives in the root namespace, so it does not need to be explicitly
30
connected.)
31

    
32
treeping64:
33

    
34
This example creates a 64-host tree network, and attempts to check full
35
connectivity using ping, for three different switch/datapath types.
36

    
37
tree1024.py:
38

    
39
This example attempts to create a 1024-host network, and then runs the
40
CLI on it. It may run into scalability limits, depending on available
41
memory and sysctl configuration (see INSTALL.)
42

    
43
udpbwtest.py:
44

    
45
This example shows how to run a test across an entire network, and monitor
46
the output of a set of hosts in real time.