all:我是 SDN 新手,也是 stackoverflow 新手。
这是我的拓扑: 当我为 mytopo 设置队列时,我注意到当最大位低于 300000 时,iperf 值变得奇怪。无法达到最大比特率设置。
让 max-rate= ppp 设置顺序:
ovs-vsctl -- set Port s1-eth1 qos=@newqos -- \
--id=@newqos create QoS type=linux-htb other-config:max-rate=1000000 queues=0=@q0 -- \
--id=@q0 create Queue other-config:min-rate= ppp other-config:max-rate= ppp
测试 ppp = 1000000,800000,600000,400000,300000,250000,200000。
有什么问题吗?还是ovs的限制?ovs-vswitchd --version ovs-vswitchd (Open vSwitch) 2.0.2 编译于 2015 年 12 月 9 日 14:08:11 OpenFlow 版本 0x1:0x1
迷你网python文件:
#!/usr/bin/python
import re
import sys
from mininet.cli import CLI
from mininet.log import setLogLevel, info, error
from mininet.net import Mininet
from mininet.link import TCLink
from mininet.topolib import TreeTopo
from mininet.util import quietRun
from mininet.node import RemoteController
from mininet.topo import Topo
topos = { 'mytopo': ( lambda: MyTopo() ) }
class MyTopo( Topo ):
# "this topo is used for Scheme_1"
def __init__( self ):
"Create custom topo."
# Initialize topology
Topo.__init__( self )
# Add hosts
h1 = self.addHost( 'h1' , ip="192.168.254.11/24", mac="00:00:00:00:00:01", defaultRoute="via 10.0.0.254")
h2 = self.addHost( 'h2' , ip="192.168.254.12/24", mac="00:00:00:00:00:02", defaultRoute="via 10.0.0.254")
h3 = self.addHost( 'h3' , ip="192.168.254.13/24", mac="00:00:00:00:00:03", defaultRoute="via 10.0.0.254")
# Add switches
s1 = self.addSwitch( 's1' )
# Add links
self.addLink( s1, h1 )
self.addLink( s1, h2 )
self.addLink( s1, h3 )
if __name__ == '__main__':
setLogLevel( 'info' )
info( '*** Creating network\n' )
net = Mininet( topo=MyTopo(),controller=None, link=TCLink)
c0 = RemoteController( 'c0', ip='127.0.0.1', port=6653 )
net.addController(c0)
net.start()
CLI( net )
net.stop()