0
全部: 我是SDN新手,也是新的stackoverflow。Openvswitch創建隊列無法達到比特率限制
這裏是我的拓撲結構: 當我設置mytopo隊列中,我注意到,當最大位低於300000的iperf的價值變得奇怪。不能達到最大比特率設置。
讓最大速率= PPP 設置順序:
ovs-vsctl -- set Port s1-eth1 [email protected] -- \
[email protected] create QoS type=linux-htb other-config:max-rate=1000000 [email protected] -- \
[email protected] 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(開放虛擬交換機)2.0.2 編譯2015年12月9日14時08分11秒 開放流版本爲0x1:爲0x1
mininet 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()
最高費率單位似乎不同於此[文章](http://users.ecs.soton.ac.uk/drn/ofertie/openflow_qos_mininet.pdf)。 寫道:最大速率= 4000000是4Mbit/s,但在我的試用版中的4Gbit/s –
,我使用Vmware和os ubuntu 14.04 –