Mininet用于模拟多数据中心带宽实验
发布时间
阅读量:
阅读量
二、多数据中心拓扑创建脚本编写
在mininet环境中,进入custom目录并引入faattree脚本文件
步骤1 采用python语言编写自定义脚本,构建一个涵盖两个数据中心的网络架构:
# cd custom
# vi fattree.py
#!/usr/bin/python
"""Custom topology example
Adding the 'topos' dict with a key/value pair to generate our newly defined
topology enables one to pass in '--topo=mytopo' from the command line.
"""
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.node import RemoteController,CPULimitedHost
from mininet.link import TCLink
from mininet.util import d
全部评论 (0)
还没有任何评论哟~
