下面的mininet命令是什么意思?

时间:2016-02-27 02:47:43

标签: networking command mininet sdn

我开始学习mininet,我知道下面的mininet命令将创建一个深度为2且扇出为3的默认树形拓扑。但我不明白这究竟意味着什么?有人可以解释一下吗?

sudo mn --topo tree,depth=2,fanout=3

2 个答案:

答案 0 :(得分:2)

执行该命令将创建一个拓扑,其中包含9个主机(扇出^深度,在本例中为 3 ^ 2 ),连接到4个交换机(扇出+ 1 ,在这种情况下 3 + 1 )。

结果拓扑看起来像这样:

                   h2  h3
                    | /
           s1 ———  s2 — h1
             | \
             |  \
       h8 — s4   s3  — h4
          / |     |  \
        h9  h7    h5  h6

答案 1 :(得分:0)

树形拓扑具有单个交换机,其他交换机根据扇出编号连接到该拓扑。这将根据指定的深度继续。

下面是几个例子。

深度= 1,扇出= 2 enter image description here

深度= 2,扇出= 2 enter image description here

深度= 2,扇出= 3 enter image description here

深度= 3,扇出= 2 enter image description here