Fixed bigTreePing64.
More edits for INSTALL and README files. Batteries still not included (for the moment.) ;-)
This commit is contained in:
@@ -41,6 +41,13 @@ Preliminary Mininet Installation/Configuration Notes
|
|||||||
insmod /home/openflow/openflow/datapath/linux-2.6/ofdatapath.ko
|
insmod /home/openflow/openflow/datapath/linux-2.6/ofdatapath.ko
|
||||||
modprobe tun
|
modprobe tun
|
||||||
|
|
||||||
|
- The default OpenFlow controller (controller(8)) only supports 16
|
||||||
|
switches! If you wish to run a network with more than 16 switches,
|
||||||
|
please recompile controller(8) with larger limits, or use a different
|
||||||
|
controller such as nox. (At the moment, unfortunately, it's not
|
||||||
|
easy to do so without modifying mininet.py. This will be improved
|
||||||
|
upon, and an example provided, in the future.)
|
||||||
|
|
||||||
- For scalable configurations, you might need to increase some of your
|
- For scalable configurations, you might need to increase some of your
|
||||||
kernel limits. For example, you could add something like the following
|
kernel limits. For example, you could add something like the following
|
||||||
to /etc/sysctl.conf (modified as necessary for your desired
|
to /etc/sysctl.conf (modified as necessary for your desired
|
||||||
|
|||||||
@@ -46,10 +46,17 @@ Currently mininet includes:
|
|||||||
|
|
||||||
- A simple command-line interface which may be invoked on a network using
|
- A simple command-line interface which may be invoked on a network using
|
||||||
.run( Cli )
|
.run( Cli )
|
||||||
|
|
||||||
|
- A 'cleanup' script to get rid of junk (interfaces, processes, etc.)
|
||||||
|
which might be left around by mininet. Try this if things stop
|
||||||
|
working.
|
||||||
|
|
||||||
- Examples (in examples/ directory) to help you get started.
|
- Examples (in examples/ directory) to help you get started.
|
||||||
|
|
||||||
Some preliminary installation notes are included in the INSTALL file.
|
Batteries are not included (yet!)
|
||||||
|
|
||||||
|
However, some preliminary installation notes are included in the INSTALL
|
||||||
|
file. Good luck!
|
||||||
|
|
||||||
---
|
---
|
||||||
Bob Lantz
|
Bob Lantz
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"""Create a tree network of depth 4 and fanout 2, and
|
"""Create a tree network of depth 4 and fanout 2, and
|
||||||
test connectivity using pingTest."""
|
test connectivity using pingTest."""
|
||||||
|
|
||||||
from mininet import init, TreeNet, iperfTest
|
from mininet import init, TreeNet, pingTestVerbose
|
||||||
|
|
||||||
def bigTreePing64():
|
def bigTreePing64():
|
||||||
results = {}
|
results = {}
|
||||||
@@ -14,13 +14,13 @@ def bigTreePing64():
|
|||||||
k = datapath == 'kernel'
|
k = datapath == 'kernel'
|
||||||
results[ datapath ] = []
|
results[ datapath ] = []
|
||||||
for switchCount in range( 1, 4 ):
|
for switchCount in range( 1, 4 ):
|
||||||
network = TreeNet( depth=4, fanout=4, kernel=k )
|
network = TreeNet( depth=3, fanout=4, kernel=k )
|
||||||
testResult = network.run( pingTest )
|
testResult = network.run( pingTestVerbose )
|
||||||
results[ datapath ] += testResult
|
results[ datapath ] += testResult
|
||||||
|
|
||||||
print "*** Test results:", results
|
print "*** Test results:", results
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
init()
|
init()
|
||||||
linearBandwidthTest()
|
bigTreePing64()
|
||||||
|
|
||||||
|
|||||||
+16
-1
@@ -695,7 +695,22 @@ class Cli( object ):
|
|||||||
# Commands
|
# Commands
|
||||||
def help( self, args ):
|
def help( self, args ):
|
||||||
"Semi-useful help for CLI"
|
"Semi-useful help for CLI"
|
||||||
print "available commands are:", self.cmds
|
print "Available commands are:", self.cmds
|
||||||
|
print
|
||||||
|
print "You may also send a command to a node using:"
|
||||||
|
print " <node> command {args}"
|
||||||
|
print "For example:"
|
||||||
|
print " mininet> h0 ifconfig"
|
||||||
|
print
|
||||||
|
print "The interpreter automatically substitutes IP addresses"
|
||||||
|
print "for node names, so commands like"
|
||||||
|
print " mininet> h0 ping -c1 h1"
|
||||||
|
print "should work."
|
||||||
|
print
|
||||||
|
print "Interactive commands are not really supported yet,"
|
||||||
|
print "so please limit commands to ones that do not"
|
||||||
|
print "require user interaction, and that will terminate"
|
||||||
|
print "after a reasonable amount of time."
|
||||||
def nodes( self, args ):
|
def nodes( self, args ):
|
||||||
"List available nodes"
|
"List available nodes"
|
||||||
print "available nodes are:", [ node.name for node in self.nodelist]
|
print "available nodes are:", [ node.name for node in self.nodelist]
|
||||||
|
|||||||
Reference in New Issue
Block a user