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
f4d9e05d
Commit
f4d9e05d
authored
15 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Fixed treePing64.
Minor tweaks to other files.
parent
2a0cad3c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README
+3
-0
3 additions, 0 deletions
README
examples/linearBandwidth.py
+5
-0
5 additions, 0 deletions
examples/linearBandwidth.py
examples/treePing64.py
+17
-14
17 additions, 14 deletions
examples/treePing64.py
mininet.py
+2
-0
2 additions, 0 deletions
mininet.py
with
27 additions
and
14 deletions
README
+
3
−
0
View file @
f4d9e05d
...
...
@@ -15,6 +15,9 @@ datapath) are created as processes in separate network namespaces. This
allows a complete OpenFlow network to be simulated on top of a single
Linux kernel.
Mininet provides a set of Python classes and functions which enable
creation of OpenFlow networks of varying sizes and topologies.
In order to run Mininet, you must have:
* A Linux 2.6.26 or greater kernel compiled with network namespace support
...
...
This diff is collapsed.
Click to expand it.
examples/linearBandwidth.py
+
5
−
0
View file @
f4d9e05d
...
...
@@ -7,6 +7,11 @@
Each network looks like:
h0 <-> s0 <-> s1 .. sN <-> h1
Note: by default, the reference controller only supports 16
switches, so this test WILL NOT WORK unless you have recompiled
your controller to support a 100 switches (or more.)
"""
from
mininet
import
init
,
LinearNet
,
iperfTest
...
...
This diff is collapsed.
Click to expand it.
examples/treePing64.py
+
17
−
14
View file @
f4d9e05d
#!/usr/bin/python
"
Create a 64-node tree network, and test connectivity using ping
Test
.
"
"
Create a 64-node tree network, and test connectivity using ping.
"
from
mininet
import
init
,
TreeNet
,
pingTestVerbose
def
bigT
reePing64
():
def
t
reePing64
():
results
=
{}
print
"
*** Testing Mininet with kernel and user datapath
"
datapaths
=
[
'
kernel
'
,
'
user
'
]
print
"
*** Testing Mininet with kernel and user datapaths
"
for
datapath
in
[
'
kernel
'
,
'
user
'
]
:
for
datapath
in
datapaths
:
k
=
datapath
==
'
kernel
'
results
[
datapath
]
=
[]
for
switchCount
in
range
(
1
,
4
):
network
=
TreeNet
(
depth
=
3
,
fanout
=
4
,
kernel
=
k
)
testResult
=
network
.
run
(
pingTestVerbose
)
results
[
datapath
]
+=
testResult
print
"
*** Test results:
"
,
results
network
=
TreeNet
(
depth
=
2
,
fanout
=
8
,
kernel
=
k
)
result
=
network
.
run
(
pingTestVerbose
)
results
[
datapath
]
=
result
print
print
"
*** TreeNet ping results:
"
for
datapath
in
datapaths
:
print
"
%s:
"
%
datapath
,
results
[
datapath
]
print
if
__name__
==
'
__main__
'
:
init
()
bigT
reePing64
()
t
reePing64
()
This diff is collapsed.
Click to expand it.
mininet.py
+
2
−
0
View file @
f4d9e05d
...
...
@@ -482,7 +482,9 @@ def stop( self ):
controller
.
stop
();
controller
.
terminate
()
print
"
*** Stopping switches
"
for
switch
in
self
.
switches
:
print
switch
.
name
,
;
flush
()
switch
.
stop
()
;
switch
.
terminate
()
print
print
"
*** Stopping hosts
"
for
host
in
self
.
hosts
:
host
.
terminate
()
...
...
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