/ip firewall mangle add action=mark-connection chain=forward comment="ISP DOWNSTEAM" in-interface=vlan201-TEL new-connection-mark=dconn-isp add action=mark-packet chain=forward comment="Packets Total Downsteam" connection-mark=dconn-isp in-interface=vlan201-TEL new-packet-mark=dpkt-isp passthrough=yes add action=mark-packet chain=forward comment="Packets Less Then 1000000" connection-bytes=0-1000000 in-interface=vlan201-TEL new-packet-mark=dpkt-light-isp packet-mark=dpkt-isp passthrough=no add action=mark-packet chain=forward comment="Packets 1000001-3000000" connection-bytes=1000000-3000000 in-interface=vlan201-TEL new-packet-mark=dpkt-fair-isp packet-mark=dpkt-isp passthrough=no add action=mark-packet chain=forward comment="Packets 3000001-6000000" connection-bytes=3000000-6000000 in-interface=vlan201-TEL new-packet-mark=dpkt-weight-isp packet-mark=dpkt-isp passthrough=no add action=mark-packet chain=forward comment="Packets more then 6000000" connection-bytes=6000000-0 in-interface=vlan201-TEL new-packet-mark=dpkt-very-isp packet-mark=dpkt-isp passthrough=no add action=mark-connection chain=forward comment="ISP UPSTEAM" new-connection-mark=uconn-isp out-interface=vlan201-TEL add action=mark-packet chain=forward comment="Packets Total Upsteam" connection-mark=uconn-isp new-packet-mark=upkt-isp out-interface=vlan201-TEL passthrough=yes
/queue tree add max-limit=80M name=Downsteam-ISP packet-mark=dpkt-isp parent=global queue=pcq-download-default add limit-at=4M max-limit=80M name=1.light-isp packet-mark=dpkt-light-isp parent=Downsteam-ISP priority=1 queue=pcq-download-default add limit-at=4M max-limit=40M name=2.fair-isp packet-mark=dpkt-fair-isp parent=Downsteam-ISP priority=2 queue=pcq-download-default add limit-at=4M max-limit=20M name=3.weight-isp packet-mark=dpkt-weight-isp parent=Downsteam-ISP priority=3 queue=pcq-download-default add limit-at=4M max-limit=4M name=4.very-isp packet-mark=dpkt-very-isp parent=Downsteam-ISP priority=4 queue=pcq-download-default add max-limit=80M name=Upsteam-ISP packet-mark=upkt-isp parent=global queue=pcq-upload-default
当前vlan201-TEL带宽为100M,那么限速在80M里比较合适,上载不限速;
打标先做连接标记,再做包的标记;
记得不管连接还是包标记都记得加方向,下载是in-interface=vlan201-TEL,上载是out-interface=vlan201-TEL;
包的大小分为0-1M,1M-3M,3M-6M,6M-无限大,优先级为别为1,2,3,4;
下载queue=pcq-download-default,上载queue=pcq-upload-default。
亲测效果比较佳!另外,如果需要对游戏不限速,需要添加游戏端口到fasttract。fasttract模式下限速无效
至于接口名称,请自行修改。速度值也需要做相应的修改