File: README.md

package info (click to toggle)
mininet 2.3.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,588 kB
  • sloc: python: 11,181; ansic: 1,332; sh: 967; makefile: 87
file content (179 lines) | stat: -rw-r--r-- 4,965 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
Mininet Examples
========================================================

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

========================================================

#### baresshd.py:

This example uses Mininet's medium-level API to create an sshd
process running in a namespace. Doesn't use OpenFlow.

#### bind.py:

This example shows how you can create private directories for each
node in a Mininet topology.

#### cluster.py:

This example contains all of the code for experimental cluster
edition. Remote classes and MininetCluster can be imported from
here to create a topology with nodes on remote machines.

#### clusterSanity.py:

This example runs cluster edition locally as a sanity check to test
basic functionality.

#### clustercli.py:

This example contains a CLI for experimental cluster edition.

#### clusterdemo.py:

This example is a basic demo of cluster edition on 3 servers with
a tree topology of depth 3 and fanout 3.

#### consoles.py:

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

#### controllers.py:

This example creates a network with multiple controllers, by
using a custom `Switch()` subclass.

#### controllers2.py:

This example creates a network with multiple controllers by
creating an empty network, adding nodes to it, and manually
starting the switches.

#### controlnet.py:

This examples shows how you can model the control network as well
as the data network, by actually creating two Mininet objects.

#### cpu.py:

This example tests iperf bandwidth for varying CPU limits.

#### emptynet.py:

This example demonstrates creating an empty network (i.e. with no
topology object) and adding nodes to it.

#### hwintf.py:

This example shows how to add an interface (for example a real
hardware interface) to a network after the network is created.

#### intfoptions.py:

This example reconfigures a TCIntf during runtime with different
traffic control commands to test bandwidth, loss, and delay.

#### limit.py:

This example shows how to use link and CPU limits.

#### linearbandwidth.py:

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

#### linuxrouter.py:

This example shows how to create and configure a router in Mininet
that uses Linux IP forwarding.

#### miniedit.py:

This example demonstrates creating a network via a graphical editor.

#### mobility.py:

This example demonstrates detaching an interface from one switch and
attaching it another as a basic way to move a host around a network.

#### multiLink.py:

This example demonstrates the creation of multiple links between
nodes using a custom Topology class.

#### multiping.py:

This example demonstrates one method for
monitoring output from multiple hosts, using `node.monitor()`.

#### multipoll.py:

This example demonstrates monitoring output files from multiple hosts.

#### multitest.py:

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

#### nat.py:

This example shows how to connect a Mininet network to the Internet
using NAT. It also answers the eternal question "why can't I ping
`google.com`?"

#### natnet.py:

This example demonstrates how to create a network using a NAT node
to connect hosts to the internet.

#### numberedports.py:

This example verifies the mininet ofport numbers match up to the ovs port numbers.
It also verifies that the port numbers match up to the interface numbers

#### popen.py:

This example monitors a number of hosts using `host.popen()` and
`pmonitor()`.

#### popenpoll.py:

This example demonstrates monitoring output from multiple hosts using
the `node.popen()` interface (which returns `Popen` objects) and `pmonitor()`.

#### scratchnet.py, scratchnetuser.py:

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

#### simpleperf.py:

A simple example of configuring network and CPU bandwidth limits.

#### sshd.py:

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

#### tree1024.py:

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

#### treeping64.py:

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

#### vlanhost.py:

An example of how to subclass Host to use a VLAN on its primary interface.