我读到“扇出”是每个虚拟交换机上下游链接的数量。但是,一个默认的扇形会发生什么,它将创建多少个下游链路?例如,在下面的mininet命令中,结果是什么?
sudo mn --topo tree,depth=3
发布于 2020-05-23 18:49:35
在github上检查Mininet的topolib.py代码,默认情况下扇出等于2,所以它将创建一个二叉树。
class TreeTopo( Topo ):
"Topology for a tree network with a given depth and fanout."
def build( self, depth=1, fanout=2 ):
# Numbering: h1..N, s1..M
self.hostNum = 1
self.switchNum = 1
# Build topology
self.addTree( depth, fanout )https://stackoverflow.com/questions/61975836
复制相似问题