Statistics
| Branch: | Tag: | Revision:

mininet / examples / bigTreePing64.py @ 748e35d5

History | View | Annotate | Download (675 Bytes)

1
#!/usr/bin/python
2

    
3
"""Create a tree network of depth 4 and fanout 2, and 
4
   test connectivity using pingTest."""
5
   
6
from mininet import init, TreeNet, iperfTest
7

    
8
def bigTreePing64():
9
   results = {}
10

    
11
   print "*** Testing Mininet with kernel and user datapath"
12
   
13
   for datapath in [ 'kernel', 'user' ]:
14
      k = datapath == 'kernel'
15
      results[ datapath ] = []
16
      for switchCount in range( 1, 4 ):
17
         network = TreeNet( depth=4, fanout=4, kernel=k )
18
         testResult = network.run( pingTest )
19
         results[ datapath ] += testResult
20
         
21
   print "*** Test results:", results
22
      
23
if __name__ == '__main__':
24
   init()
25
   linearBandwidthTest()
26