为Mininet添加自定义拓扑: Mininet原生提供了多种拓扑类型: SingleSwitchTopo:简单拓扑(Host——Switch——Host) LinearTopo(k,n):链状拓扑,k台交换机以单链形态连接,分别下接n台主机 TreeTopo(depth,fanout):树形拓扑,创建一个深度为dept。