Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
898efb69
Commit
898efb69
authored
12 years ago
by
Ryan Cox
Browse files
Options
Downloads
Patches
Plain Diff
Added markdown formatting to examples readme
parent
0aefb0e0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/README
+29
-29
29 additions, 29 deletions
examples/README
with
29 additions
and
29 deletions
examples/README
+
29
−
29
View file @
898efb69
Mininet Examples
========================================================
These examples are intended to help you get started using
Mininet's Python API.
---
========================================================
baresshd.py:
###
baresshd.py:
This example uses Mininet's medium-level API to create an sshd
process running in a namespace. Doesn't use OpenFlow.
consoles.py:
###
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:
###
controllers.py:
This example creates a network and adds multiple controllers to it.
cpu.py:
###
cpu.py:
This example tests iperf bandwidth for varying CPU limits.
emptynet.py:
###
emptynet.py:
This example demonstrates creating an empty network (i.e. with no
topology object) and adding nodes to it.
hwintf.py:
###
hwintf.py:
This example shows how to add an interface (for example a real
hardware interface) to a network after the network is created.
limit.py:
###
limit.py:
This example shows how to use link and CPU limits.
linearbandwidth.py:
###
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.
miniedit.py:
###
miniedit.py:
This example demonstrates creating a network via a graphical editor.
multiping.py:
###
multiping.py:
This example demonstrates one method for
monitoring output from multiple hosts, using node.monitor().
monitoring output from multiple hosts, using
`
node.monitor()
`
.
multipoll.py:
###
multipoll.py:
This example demonstrates monitoring output files from multiple hosts.
multitest.py:
###
multitest.py:
This example creates a network and runs multiple tests on it.
popen.py:
###
popen.py:
This example monitors a number of hosts using host.popen() and
pmonitor().
This example monitors a number of hosts using
`
host.popen()
`
and
`
pmonitor()
`
.
popenpoll.py:
###
popenpoll.py:
This example demonstrates monitoring output from multiple hosts using
the node.popen() interface (which returns Popen objects) and pmonitor().
the
`
node.popen()
`
interface (which returns Popen objects) and
`
pmonitor()
`
.
scratchnet.py, scratchnetuser.py:
###
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:
###
simpleperf.py:
A simple example of configuring network and CPU bandwidth limits.
sshd.py:
###
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
...
...
@@ -89,14 +90,13 @@ 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.)
treeping64.py:
This example creates a 64-host tree network, and attempts to check full
connectivity using ping, for different switch/datapath types.
tree1024.py:
### 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.)
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.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment