資源描述:
《ROS軟路由小包優(yōu)先策略》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、如果你需要做網(wǎng)絡(luò)優(yōu)化你可以做小包優(yōu)先的策略。以下提供兩種小包優(yōu)先的配置方法鮫簡單的小包優(yōu)先配置方法:/ipfirewallmangle更改MSSaddchain=forwardprotocoltcptcp-flags=synaction=change-mssnew-mss=1440comment—”'disabled=no設(shè)置包大小0-32字節(jié)的為smalladdchain=forwardpacket-size=0-32action=mark-packetnew-packet-mark=smallpassthro
2、ugh=yescomment="disabled=no設(shè)置包大小為33-511字節(jié)的為small_BIGaddchain=forwardpacket-size=33-511action=mark-packetnew-packet-mark=small_BIGpassthrough=yescomment」’disabled=no設(shè)置包人小為512-1500字節(jié)的為bigaddchain=forwardpacket-size=512?1500action=mark-packetnew-packet-mark=bigp
3、assthrough=yescomment』disabled=noparent=lan,Ian是內(nèi)網(wǎng)的接口,下面依次設(shè)置剛剛標(biāo)記的包的優(yōu)先級和帶寬(帶寬根據(jù)實(shí)際網(wǎng)絡(luò)情況設(shè)置)priority:small5,small_BIG6,big8/queuetreeaddname=,,smaHHparent=lanpacket-mark=smalllimit-at=0queue=defaultpriority=5max-limit=8Mburst-limit=Oburst-threshold=0burst-time=Osd
4、isabled=noaddname=nsmall_bignparent=Ianpacket-mark=small_BIGlimit-at=0queue=defaultpriority=6max-limit=8Mburst-limit=Oburst-threshold=0burst-time=Osdisabled=noaddname=HbigHparent=lanpacket-mark=biglimit-at=0較詳細(xì)的小包優(yōu)先配置力法:/ipfirewallmangleaddchain=forwardprotoc
5、oltcptcp-flags=synaction=change?mssnew-mss=1440comment—”'disabled=noaddchain=forwardp2p=all-p2paction=mark-connectionnew-connection-mark=p2p_connpassthrough=yescomment—'”disabled=noaddchain=forwardconnection-mark=p2p_connaction=mark-packetnew-packet-mark=p2pp
6、assthrough=yescomment』disabled=noaddchain=forwardconnection-mark=!p2p_connaction=mark-packetnew-packet-mark=generalpassthrough=yescomment=,M,disabled=noaddchain=forwardpacket-size=32-512action=mark-packetnew-packet-mark=smallpassthrough=yescomment="disabled=n
7、oaddchain=forwardpacket-size=512-1200action=mark?packetnew-packet?mark=bigpassthrough=yescomment=,,Hdisabled=noKulesKATMaacl*S?rviceP?rtfCom?ctiorisAddressListsLey?r7Protocols+TOOMlCounttriActionCb—f)SrcFwtUttPertF2PUOut.vCoMieeiionN%rkTCPFly/TCP.0/USS6(Up)1
8、
9、2packet曲31WrU