資源描述:
《網(wǎng)吧用ros最正確的限速》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、網(wǎng)吧用ROS最正確的限速一直以來(lái),都看論壇上的達(dá)人說(shuō)ROS做軟路由器效果是多么的強(qiáng)大,于是偶也搞一個(gè)試試看。找了一個(gè)2.9.27的完全破解版,用了2塊D-LINK530的網(wǎng)卡,裝完一用還真行。比我那1000的銳捷強(qiáng)多了,網(wǎng)吧120臺(tái)機(jī)器,座滿的時(shí)候那個(gè)銳捷的路由器登陸界面都打不開(kāi)。用上以后問(wèn)題就來(lái)了,我們30M的光纖,如果不限速,那些下載狂人把帶寬全部給占用了,打游戲的顧客很有意見(jiàn)。于是我就做了個(gè)限速,每個(gè)機(jī)器下載最大2M.平均1M。但是群眾還是不滿意,都所卡。我又找資料,發(fā)現(xiàn)原來(lái)還有個(gè)叫智能動(dòng)態(tài)限速的東西,好偶照做。做好以后,平時(shí)喊卡的人沒(méi)有了,人多的時(shí)候一樣都喊卡。偶傻眼
2、了,難道只能不限速。還好天無(wú)絕人之路,還有個(gè)“小包優(yōu)先”的高級(jí)貨,于是照做。結(jié)果用簡(jiǎn)單隊(duì)列限速后,“小包優(yōu)先”也是白搭,難道天要忘我。終于經(jīng)過(guò)N次測(cè)試以后,我明白了。網(wǎng)吧用簡(jiǎn)單隊(duì)列做限速完全是扯蛋。網(wǎng)吧限速最好的辦法應(yīng)該是帶寬均分,然后在用簡(jiǎn)單隊(duì)列來(lái)限制上傳。在利用小包優(yōu)先來(lái)處理游戲卡的問(wèn)題。經(jīng)過(guò)2個(gè)網(wǎng)吧,一個(gè)月的測(cè)試,完全擺脫了到處喊卡的噩夢(mèng),現(xiàn)在把經(jīng)驗(yàn)發(fā)來(lái)大家分享一下。ROS不要用簡(jiǎn)單隊(duì)列來(lái)限速,什么智能動(dòng)態(tài)限速也不要用。只需要用小包優(yōu)先+帶寬均分+簡(jiǎn)單隊(duì)列限制上傳速度。小包優(yōu)先的腳本如下:ipfirewallmangleaddchain=forwardp2p=all-p
3、2paction=mark-connectionnew-connection-mark=p2p_connpassthrough=yescomment=""disabled=noaddchain=forwardconnection-mark=p2p_connaction=mark-packetnew-packet-mark=p2ppassthrough=yescomment=""disabled=noaddchain=forwardconnection-mark=!p2p_connaction=mark-packetnew-packet-mark=generalpassthro
4、ugh=yescomment=""disabled=noaddchain=forwardpacket-size=32-512action=mark-packetnew-packet-mark=smallpassthrough=yescomment=""disabled=noaddchain=forwardpacket-size=512-1200action=mark-packetnew-packet-mark=bigpassthrough=yescomment=""disabled=no/queuetreeaddname="p2p1"parent=wanpacket-mark
5、=p2plimit-at=2000000queue=defaultpriority=8max-limit=6000000burst-limit=0burst-threshold=0burst-time=0sdisabled=noaddname="p2p2"parent=lanpacket-mark=p2plimit-at=2000000queue=defaultpriority=8max-limit=6000000burst-limit=0burst-threshold=0burst-time=0sdisabled=noaddname="ClassA"parent=lanpa
6、cket-mark=""limit-at=0queue=defaultpriority=8max-limit=100000000burst-limit=0burst-threshold=0burst-time=0sdisabled=noaddname="ClassB"parent=ClassApacket-mark=""limit-at=0queue=defaultpriority=8max-limit=0burst-limit=0burst-threshold=0burst-time=0sdisabled=noaddname="Leaf1"parent=ClassApack
7、et-mark=generallimit-at=0queue=defaultpriority=7max-limit=0burst-limit=0burst-threshold=0burst-time=0sdisabled=noaddname="Leaf2"parent=ClassBpacket-mark=smalllimit-at=0queue=defaultpriority=5max-limit=0burst-limit=0burst-threshold=0burst-time=0sdisabled=