ROS、简单小包优先策略!

ROS ,小包优先策略应用于网吧,企业,等等

ROS、简单小包优先策略!

2009年04月21日 13:45

/ 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=内网网卡名 packet-mark=small priority=1 add name="middle" parent=内网网卡名 packet-mark=middle priority=2 max-limit=8000000

add name="big" parent=内网网卡名 packet-mark=big priority=7

max-limit=5000000

add name="IE" parent=内网网卡名 packet-mark=IE priority=8

max-limit=6000000

脚本的一些可设置地方:

add name="middle" parent=global-in packet-mark=middle priority=2 max-limit=8000000

max-limit为中等大小包最大使用带宽

Word文档免费下载Word文档免费下载:ROS、简单小包优先策略! (共2页,当前第1页)

你可能喜欢

  • ros认证系统
  • ros网页优先
  • winradius+ros对接说明
  • ros游戏端口
  • ros防火墙策略
  • 彻底解决ros
  • ros官网

ROS、简单小包优先策略!相关文档

最新文档

返回顶部