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
be963554
Commit
be963554
authored
15 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Added some additional explanatory comments.
parent
b924c5b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/linearbandwidth.py
+8
-0
8 additions, 0 deletions
examples/linearbandwidth.py
examples/udpbwtest.py
+9
-1
9 additions, 1 deletion
examples/udpbwtest.py
with
17 additions
and
1 deletion
examples/linearbandwidth.py
+
8
−
0
View file @
be963554
...
...
@@ -13,6 +13,14 @@
Note: by default, the reference controller only supports 16
switches, so this test WILL NOT WORK unless you have recompiled
your controller to support 100 switches (or more.)
In addition to testing the bandwidth across varying numbers
of switches, this example demonstrates:
- creating a custom topology, LinearTestTopo
- using the ping() and iperf() tests from Mininet()
- testing both the kernel and user switches
"""
import
sys
...
...
This diff is collapsed.
Click to expand it.
examples/udpbwtest.py
+
9
−
1
View file @
be963554
...
...
@@ -6,6 +6,14 @@
udp traffic. This should be something of a stress test.
We should also make a tcp version. :D
In addition to trying to saturate global bandwidth in
various Mininet configurations, this example:
- uses a topology, TreeTopo, from mininet.topolib
- starts up a custom test program, udpbwtest, on each host
- dynamically monitors the output of a set of hosts
"""
import
os
...
...
@@ -36,7 +44,7 @@ def readline( host, buffer ):
def
monitor
(
hosts
,
seconds
):
"
Monitor a set of hosts and yield their output.
"
poller
=
select
.
poll
()
Node
=
hosts
[
0
]
# so we can call class method
Node
=
hosts
[
0
]
# so we can call class method
fdToNode
buffers
=
{}
for
host
in
hosts
:
poller
.
register
(
host
.
stdout
)
...
...
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