soma
soma

Reputation: 93

What does the below mininet command mean?

I'm starting to learn mininet and I know that the below mininet command will create a default tree topology with a depth of 2 and a fanout of 3. But I didn't understand what this exactly means? Can someone please explain?

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

Upvotes: 1

Views: 4182

Answers (2)

Anton De Rose
Anton De Rose

Reputation: 102

A tree topology has a single switch with others connected to it based on a fanout number. This continues based on the depth specified.

Below are few of the examples.

Depth = 1, fanout = 2 enter image description here

Depth = 2, fanout =2 enter image description here

Depth = 2, fanout = 3 enter image description here

Depth = 3, fanout = 2 enter image description here

Upvotes: 1

The execution of that command will create a topology with 9 hosts (fanout ^ depth, in this case 3^2) connected to 4 switches (fanout + 1, in this case 3+1).

The resultant topology will look something like this:

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

Upvotes: 2

Related Questions