首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

KVM 基于系统的流量控制(Qos)---Linux

1 限制流出速度 限制流出速度,主要通过tc这个工具,常用的有三个队列: tbf队列,令牌桶队列,适用于流量×××; cbq队列,分类的队列,用于实现精细的qos控制,配置复杂; htb队列,分层的令牌桶队列,用于实现精细的qos控制,配置比cbq简单些; 通过tbf限制流程速度的例子: tc qdisc add dev eth0 root tbf rate 51200kbit latency 50ms minburst 200k burst 200k 限制网卡eth0流出速度为51200kbit,正确的设置方法,和minburst这个参数有很大的关系,不同的硬件环境和系统需要具体调试。 通过htb实现不同目标地址的限速 删除 tc qdisc del dev eth0 root tbf 修改 tc qdisc change dev eth0 root tbf rate 2200kbit latency 5000ms burst 1540 查看当前队列 tc -s -d qdisc ls

02

Linux Mrtg系统监控

#通过public监控localhost上的192.168.1.68地址流量 Target[eth1_lan]:/192.168.1.68:public@localhost #图片右对齐方式 Options[eth1_lan]:growright #生成图片存放目录 Directory[eth1_lan]:eth1 #网卡最大流量 MaxBytes[eth1_lan]:100000000 #图片Y轴单位数 Kmg[eth1_lan]:K,M,G #Y轴标题 YLegend[eth1_lan]:Bytes per Second #Y轴单位 ShortLegend[eth1_lan]:B/s #接下来是网页上的数据,因为Mrtg需要把生成的图片渲染到网页中,下面这写都是网页上的属性标签 #网页中颜色对应值 Legend1[eth1_lan]:每秒流入量(单位Bytes) Legend2[eth1_lan]:每秒流出量(单位Bytes) LegendI[eth1_lan]:流入 LegendO[eth1_lan]:流出 #网页标题 Title[eth1_lan]:eth1网络流量[流入+流出] PageTop[eth1_lan]:eth1网络流量[流入+流出]

02
领券