ros 动态限速 小包先行

 
更多

/queue type
add kind=pcq name=PCQ_Down pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-limit=80KiB pcq-rate=70M pcq-src-address6-mask=64 pcq-total-limit=3000KiB
add kind=pcq name=PCQ_Up pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-limit=80KiB pcq-rate=70M pcq-src-address6-mask=64 pcq-total-limit=3000KiB
/queue type print

/queue tree
add max-limit=70M name=Down packet-mark=All_Down parent=global priority=6 queue=PCQ_Down
add limit-at=8M max-limit=50M name=HTTP packet-mark=Http parent=Down priority=1 queue=PCQ_Down
add max-limit=70M name=Up packet-mark=All_Up parent=global priority=3 queue=PCQ_Up
add limit-at=10M max-limit=50M name=Small packet-mark=Small parent=Down priority=2 queue=PCQ_Down
add limit-at=10M max-limit=50M name=Middle packet-mark=Middle parent=Down priority=6 queue=PCQ_Down
add limit-at=10M max-limit=50M name=Big packet-mark=Big parent=Down priority=3 queue=PCQ_Down
add limit-at=10M max-limit=50M name=Large packet-mark=Large parent=Down queue=PCQ_Down
add limit-at=10M max-limit=50M name=HTTP_Up packet-mark=Http_Pack_Up parent=Up priority=1 queue=PCQ_Up
add limit-at=6M max-limit=50M name=Small_Up packet-mark=Small_Pack_UP parent=Up priority=2 queue=PCQ_Up
add limit-at=10M max-limit=60M name=Middle_Up packet-mark=Middle_Pack_Up parent=Up priority=5 queue=PCQ_Up
add limit-at=10M max-limit=50M name=Big_Up packet-mark=Big_Pack_Up parent=Up priority=5 queue=PCQ_Up
add limit-at=8M max-limit=50M name=Large_Up packet-mark=Large_Pack_Up parent=Up queue=PCQ_Up
/queue tree print

/ip firewall mangle
add action=mark-packet chain=forward comment=All_Down in-interface=pppoe-out1 new-packet-mark=All_Down passthrough=no
add action=mark-packet chain=forward comment=All_Up new-packet-mark=All_Up out-interface=pppoe-out1 passthrough=no
add action=mark-connection chain=prerouting comment=HTTP_Con dst-port=53,80,443 new-connection-mark=Http_Con passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting comment=”HTTP_Con[DNS]” dst-port=53 new-connection-mark=Http_Con passthrough=yes protocol=udp
add action=mark-packet chain=prerouting comment=Http connection-mark=Http_Con new-packet-mark=Http passthrough=no
add action=mark-connection chain=prerouting comment=Small_Con new-connection-mark=Small_Con packet-size=0-512 passthrough=yes
add action=mark-packet chain=prerouting comment=Small connection-mark=Small_Con new-packet-mark=Small packet-size=0-512 passthrough=no
add action=mark-connection chain=prerouting comment=Big_Con new-connection-mark=Big_Con packet-size=1001-1300 passthrough=yes
add action=mark-packet chain=prerouting comment=Big connection-mark=Big_Con new-packet-mark=Big packet-size=1001-1300 passthrough=no
add action=mark-connection chain=prerouting comment=Middle_Con new-connection-mark=Middle_Con packet-size=513-1000 passthrough=yes
add action=mark-packet chain=prerouting comment=Middle connection-mark=Middle_Con new-packet-mark=Middle packet-size=513-1000 passthrough=no
add action=mark-connection chain=prerouting comment=Large_Con new-connection-mark=Large_Con packet-size=1301-1500 passthrough=yes
add action=mark-packet chain=prerouting comment=Large connection-mark=Large_Con new-packet-mark=Large packet-size=1301-1500 passthrough=no
add action=mark-connection chain=postrouting comment=Http_Con_Up dst-port=80,443 new-connection-mark=Http_Up passthrough=yes protocol=tcp
add action=mark-packet chain=postrouting connection-mark=Http_Up new-packet-mark=Http_Pack_Up passthrough=no
add action=mark-connection chain=postrouting comment=Small_Con_UP new-connection-mark=Small_Con_Up packet-size=0-512 passthrough=yes
add action=mark-packet chain=postrouting connection-mark=Small_Con_Up new-packet-mark=Small_Pack_UP passthrough=no
add action=mark-connection chain=postrouting comment=Middle_Con_Up new-connection-mark=Middle_Con_Up packet-size=513-1000 passthrough=yes
add action=mark-packet chain=postrouting connection-mark=Middle_Con_Up new-packet-mark=Middle_Pack_Up passthrough=no
add action=mark-connection chain=postrouting comment=Big_Con_Up new-connection-mark=Big_Con_Up packet-size=1001-1300 passthrough=yes
add action=mark-packet chain=postrouting connection-mark=Big_Con_Up new-packet-mark=Big_Pack_Up passthrough=no
add action=mark-connection chain=postrouting comment=Large_Con_Up new-connection-mark=Large_Con_Up packet-size=1301-1500
add action=mark-packet chain=postrouting connection-mark=Large_Con_Up new-packet-mark=Large_Pack_Up passthrough=no
/ip firewall mangle print

打赏

本文固定链接: https://www.cxy163.net/archives/1552 | 绝缘体

该日志由 绝缘体.. 于 2017年07月17日 发表在 首页 分类下,
原创文章转载请注明: ros 动态限速 小包先行 | 绝缘体
【上一篇】
【下一篇】

报歉!评论已关闭.