欢迎来到天天文库
浏览记录
ID:47316409
大小:20.01 KB
页数:3页
时间:2019-09-04
《ROS最正确的限速》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、ROS最正确的限速--------小包优先+带宽均分+简单队列限制上传速度注意:本文针对10M带宽做出的限速说明,请根据自己的实际带宽更改相应的限速设置=================================START========================一、小包优先的脚本如下:/ipfirewallmangleaddchain=forwardp2p=all-p2paction=mark-connectionnew-connection-mark=p2p_connpassthrough=yescomment=""disabled=noaddchain=f
2、orwardconnection-mark=p2p_connaction=mark-packetnew-packet-mark=p2ppassthrough=yescomment=""disabled=noaddchain=forwardconnection-mark=!p2p_connaction=mark-packetnew-packet-mark=generalpassthrough=yescomment=""disabled=noaddchain=forwardpacket-size=32-512action=mark-packetnew-packet-mark=s
3、mallpassthrough=yescomment=""disabled=noaddchain=forwardpacket-size=512-1200action=mark-packetnew-packet-mark=bigpassthrough=yescomment=""disabled=no/queuetreeaddname="p2pW"parent=WANpacket-mark=p2plimit-at=400000queue=defaultpriority=8max-limit=400000burst-limit=0burst-threshold=0burst-ti
4、me=0sdisabled=noaddname="p2pL"parent=LANpacket-mark=p2plimit-at=400000queue=defaultpriority=8max-limit=400000burst-limit=0burst-threshold=0burst-time=0sdisabled=noaddname="ClassA"parent=LANpacket-mark=""limit-at=0queue=defaultpriority=8max-limit=100000000burst-limit=0burst-threshold=0burst
5、-time=0sdisabled=noaddname="ClassB"parent=ClassApacket-mark=""limit-at=0queue=defaultpriority=8max-limit=0burst-limit=0burst-threshold=0burst-time=0sdisabled=noaddname="Leaf1"parent=ClassApacket-mark=generallimit-at=0queue=defaultpriority=7max-limit=0burst-limit=0burst-threshold=0burst-tim
6、e=0sdisabled=noaddname="Leaf2"parent=ClassBpacket-mark=biglimit-at=0queue=defaultpriority=6max-limit=0burst-limit=0burst-threshold=0burst-time=0sdisabled=noaddname="Leaf3"parent=ClassBpacket-mark=smalllimit-at=0queue=defaultpriority=5max-limit=0burst-limit=0burst-threshold=0burst-time=0sdi
7、sabled=no二、然后是带宽均分:这个例子示范了如何将10Mbps下载2Mbps上传,均分给网络10.10.12.0/24中的活动的用户#所有来自本地网络192.168.0.0/24的流,标记一个用户标记/ipfirewallmangleaddchain=forwardsrc-address=192.168.10.0/24action=mark-connectionnew-connection-mark=users-con/ipfirewallmangleaddconnection-mark=users-co
此文档下载收益归作者所有