Minor tweaks and corrections.
Added commentary on control network to mininet.py. Hopefully fixed linearbandwidth.py for real.
This commit is contained in:
+1
-1
@@ -13,5 +13,5 @@ class NoxController( Controller ):
|
||||
|
||||
if __name__ == '__main__':
|
||||
init()
|
||||
network = GridNet( 2, 2, kernel=True, Controller=NoxController)
|
||||
network = GridNet( 2, 2, kernel=True, Controller=NoxController )
|
||||
network.run( Cli )
|
||||
|
||||
@@ -26,7 +26,7 @@ def linearBandwidthTest():
|
||||
results[ datapath ] = []
|
||||
for switchCount in switchCounts:
|
||||
print "*** Creating linear network of size", switchCount
|
||||
network = LinearNet( switchCount, k)
|
||||
network = LinearNet( switchCount, kernel=k)
|
||||
bandwidth = network.run( iperfTest )
|
||||
results[ datapath ] += [ ( switchCount, bandwidth ) ]
|
||||
|
||||
|
||||
+1
-1
@@ -13,5 +13,5 @@ class NoxController( Controller ):
|
||||
|
||||
if __name__ == '__main__':
|
||||
init()
|
||||
network = TreeNet( depth=2, fanout=4, kernel=True, Controller=NoxController)
|
||||
network = TreeNet( depth=2, fanout=4, kernel=True, Controller=NoxController )
|
||||
network.run( Cli )
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"""
|
||||
Build a simple network from scratch, using mininet primitives.
|
||||
This is more complicated than using the higher-level classes,
|
||||
but it exposes the configuration details and allows cusomization.
|
||||
but it exposes the configuration details and allows customization.
|
||||
"""
|
||||
|
||||
from mininet import init, Node, createLink
|
||||
|
||||
@@ -3,15 +3,19 @@
|
||||
"""
|
||||
Build a simple network from scratch, using mininet primitives.
|
||||
This is more complicated than using the higher-level classes,
|
||||
but it exposes the configuration details and allows cusomization.
|
||||
but it exposes the configuration details and allows customization.
|
||||
|
||||
This version uses the user datapath.
|
||||
"""
|
||||
|
||||
from mininet import init, Node, createLink
|
||||
|
||||
def scratchNet( cname='controller', cargs='ptcp:'):
|
||||
def scratchNetUser( cname='controller', cargs='ptcp:'):
|
||||
# Create Network
|
||||
# It's not strictly necessary for the controller and switches
|
||||
# to be in separate namespaces. For performance, they probably
|
||||
# should be in the root namespace. However, it's interesting to
|
||||
# see how they could work even if they are in separate namespaces.
|
||||
controller = Node( 'c0' )
|
||||
switch = Node( 's0')
|
||||
h0 = Node( 'h0' )
|
||||
@@ -40,4 +44,4 @@ def scratchNet( cname='controller', cargs='ptcp:'):
|
||||
|
||||
if __name__ == '__main__':
|
||||
init()
|
||||
scratchNet()
|
||||
scratchNetUser()
|
||||
|
||||
Reference in New Issue
Block a user