kzyfl 发表于 2011-6-18 13:01:53

ROS小包优先

最近发现个小包优先脚本,上机试验后很不错,用迅雷下载,发现延时小,也不丢包。并且限速非常不错。只可惜是对互联网入口进行限速,有木有办法对内网每一台机器进行限速,迅雷下载,延时小,也不丢包,下边的脚本该咋改呢。我的是八条十M的PPPOE方式上网,合计带宽是80M。外网网卡名为wan ,内网网卡名为lan,想对内网用户限速4M,做到迅雷下载,延时小,也不丢包。
/ ip firewall mangle
add chain=prerouting packet-size=0-512 action=mark-connection new-connection-mark=small_con passthrough=yes
add chain=prerouting connection-mark=small_con packet-size=0-512 action=mark-packet new-packet-mark=small passthrough=no

add chain=prerouting packet-size=513-1000 action=mark-connection new-connection-mark=middle_con passthrough=yes
add chain=prerouting connection-mark=middle_con packet-size=513-1000 action=mark-packet new-packet-mark=middle passthrough=no

add chain=prerouting packet-size=1001-1300 action=mark-connection new-connection-mark=middle_con2 passthrough=yes
add chain=prerouting connection-mark=middle_con2 packet-size=1001-1300 action=mark-packet new-packet-mark=middle2

passthrough=no

add chain=prerouting protocol=tcp src-port=80 action=mark-connection new-connection-mark=IE_CON passthrough=yes
add chain=prerouting connection-mark=IE_CON action=mark-packet new-packet-mark=IE passthrough=no

add chain=prerouting packet-size=1301-1500 action=mark-connection new-connection-mark=big_con passthrough=yes
add chain=prerouting connection-mark=big_con packet-size=1301-1500 action=mark-packet new-packet-mark=big passthrough=no

/ queue tree
add name="small" parent=global-in packet-mark=small priority=1
add name="middle" parent=global-in packet-mark=middle priority=2 max-limit=10000000
add name="big" parent=global-in packet-mark=big priority=7 max-limit=10000000
add name="IE" parent=global-in packet-mark=IE priority=8 max-limit=30000000

WGHBOY 发表于 2011-6-18 14:37:25

光纤的跟adsl是没得比

kzyfl 发表于 2011-6-18 15:03:28

回复 WGHBOY 的帖子

也是光纤,只不过是EPON那种光纤.八条EDSL,合计带宽80M,下载,上传带宽合计40M

jt00278 发表于 2011-6-20 12:12:59

确实不能比较……
页: [1]
查看完整版本: ROS小包优先