ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 7200|回复: 5

[交流] ROS软路由5.5无延迟但时不时的掉一两个包。在线跪求答案

[复制链接]
发表于 2008-11-15 02:17:16 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

您需要 登录 才可以下载或查看,没有账号?会员注册

x


i845板
82546EB双接口网卡
2.4的U
256M电子盘
ROS软路由5.5无延迟但时不时的掉一两个包。 是因为什么呢。。。?有人能提示一下吗。?
是路由规则。还是硬件?
ARP已绑定。CPU负载20%左右
路由规则
/ip dns
set allow-remote-requests=yes cache-max-ttl=1w cache-size=20480KiB
max-udp-packet-size=512 servers=202.103.224.68,202.103.225.68
/ip firewall layer7-protocol
add name=http_html regexp="http/(0.9|1.0|1.1)[x09-x0d ][1-5][0-9][0-
9][x09-x0d -~]*(content-type: text/html)"
add name=http_png regexp="http/(0.9|1.0|1.1)[x09-x0d ][1-5][0-9][0-9
][x09-x0d -~]*(content-type: image/png)"
add name=http_gif regexp="http/(0.9|1.0|1.1)[x09-x0d ][1-5][0-9][0-9
][x09-x0d -~]*(content-type: image/gif)"
add name=http_javascript regexp="http/(0.9|1.0|1.1)[x09-x0d ][1-5][0
-9][0-9][x09-x0d -~]*(content-type: text/javascript)"
add name=http_jpeg regexp="http/(0.9|1.0|1.1)[x09-x0d ][1-5][0-9][0-
9][x09-x0d -~]*(content-type: image/jpeg)"
add name=http_flash regexp="http/(0.9|1.0|1.1)[x09-x0d ][1-5][0-9][0
-9][x09-x0d -~]*(content-type: application/x-shockwave-flash)"
add name=f4v regexp="^.*get.+.f4v.*$"
add name=flv regexp="^.*get.+.flv.*$"
add name=hlv regexp="^.*get.+.hlv.*$"
add name=mp4 regexp="^.*get.+.mp4.*$"
add name=rm regexp="^.*get.+.rm.*$"
add name=rmvb regexp="^.*get.+.rmvb.*$"
add name=http regexp="http/(0.9|1.0|1.1) [1-5][0-9][0-9] [x09-x0d -~
]*(connection:|content-type:|content-length:|date|post [x09-x0d -~]*
_http/[01].[019]r
n"
/ip firewall mangle
add action=change-mss chain=forward disabled=no new-mss=1440 protocol=tcp
tcp-flags=syn
add action=mark-connection chain=prerouting disabled=no limit=5,5
new-connection-mark=dns-conn passthrough=yes protocol=icmp
add action=mark-connection chain=prerouting disabled=no new-connection-mark=
dns-conn passthrough=yes protocol=udp src-port=53
add action=mark-packet chain=prerouting connection-mark=dns-conn disabled=no
dst-address=192.168.1.0/24 new-packet-mark=dnspac passthrough=no
add action=mark-packet chain=prerouting connection-mark=dns-conn disabled=no
new-packet-mark=dnsup passthrough=no src-address=192.168.1.0/24
add action=mark-connection chain=prerouting disabled=no new-connection-mark=
games-conn passthrough=yes protocol=tcp src-port=
10000-10090,5223,2393,29000,13006
add action=mark-packet chain=prerouting connection-mark=games-conn disabled=
no new-packet-mark=gameup passthrough=no src-address=192.168.1.0/24
add action=mark-packet chain=prerouting connection-mark=games-conn disabled=
no new-packet-mark=gamespac passthrough=no
add action=mark-packet chain=prerouting disabled=no new-packet-mark=small
packet-size=32-256 passthrough=no
add action=mark-connection chain=prerouting disabled=no layer7-protocol=
http_gif new-connection-mark=http-conn passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no layer7-protocol=
http_flash new-connection-mark=http-conn passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no layer7-protocol=
http_html new-connection-mark=http-conn passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no layer7-protocol=
http_javascript new-connection-mark=http-conn passthrough=yes protocol=
tcp
add action=mark-connection chain=prerouting disabled=no layer7-protocol=
http_jpeg new-connection-mark=http-conn passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no layer7-protocol=
http_png new-connection-mark=http-conn passthrough=yes protocol=tcp
add action=mark-connection chain=prerouting disabled=no layer7-protocol=http
new-connection-mark=http-conn passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting connection-mark=http-conn disabled=no
new-packet-mark=httppac passthrough=no
add action=mark-connection chain=prerouting disabled=no layer7-protocol=f4v
new-connection-mark=video-conn passthrough=yes
add action=mark-connection chain=prerouting disabled=no layer7-protocol=flv
new-connection-mark=video-conn passthrough=yes
add action=mark-connection chain=prerouting disabled=no layer7-protocol=hlv
new-connection-mark=video-conn passthrough=yes
add action=mark-connection chain=prerouting disabled=no layer7-protocol=mp4
new-connection-mark=video-conn passthrough=yes
add action=mark-connection chain=prerouting disabled=no layer7-protocol=rm
new-connection-mark=video-conn passthrough=yes
add action=mark-connection chain=prerouting disabled=no layer7-protocol=rmvb
new-connection-mark=video-conn passthrough=yes
add action=mark-packet chain=prerouting connection-mark=video-conn disabled=
no new-packet-mark=videopac passthrough=no
add action=mark-packet chain=prerouting disabled=no in-interface=pppoe-out1
new-packet-mark=all-dn passthrough=no
add action=mark-packet chain=prerouting disabled=no in-interface=lan
new-packet-mark=allup passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=pppoe-out1
src-address=192.168.1.0/24
add action=redirect chain=dstnat disabled=no dst-port=53 protocol=udp
to-ports=53
/system scheduler
add disabled=no interval=1d name=dnsclear on-event="/ip dns cache flush"
policy=
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api
start-date=jan/12/2012 start-time=12:13:19
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0
max-limit=9M name=alldn parent=global-in priority=7
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0
max-limit=5M name=allup parent=global-in priority=8
/queue type
set default kind=pfifo name=default pfifo-limit=50
set ethernet-default kind=pfifo name=ethernet-default pfifo-limit=50
set wireless-default kind=sfq name=wireless-default sfq-allot=1514
sfq-perturb=5
set synchronous-default kind=red name=synchronous-default red-avg-packet=1000
red-burst=20 red-limit=60 red-max-threshold=50 red-min-threshold=10
set hotspot-default kind=sfq name=hotspot-default sfq-allot=1514 sfq-perturb=
5
add kind=pcq name=filedn pcq-burst-rate=0 pcq-burst-threshold=0
pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=1500k
pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=1500
add kind=pcq name=allup pcq-burst-rate=0 pcq-burst-threshold=0
pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=400k pcq-src-address-mask=
32 pcq-src-address6-mask=64 pcq-total-limit=1500
add kind=pcq name=httpdn pcq-burst-rate=0 pcq-burst-threshold=0
pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=4M pcq-src-address-mask=32
pcq-src-address6-mask=64 pcq-total-limit=1500
add kind=pcq name=videotype pcq-burst-rate=0 pcq-burst-threshold=0
pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32
pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=2M pcq-src-address-mask=32
pcq-src-address6-mask=64 pcq-total-limit=1500
set default-small kind=pfifo name=default-small pfifo-limit=10
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=2M
max-limit=4M name=games packet-mark=gamespac parent=alldn priority=2
queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0
max-limit=5M name=otherdn packet-mark=all-dn parent=alldn priority=8
queue=filedn
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=2M
max-limit=3M name=samll packet-mark=small parent=alldn priority=3 queue=
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=3M
max-limit=9M name=http packet-mark=httppac parent=alldn priority=4 queue=
httpdn
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0
max-limit=4M name=video packet-mark=videopac parent=alldn priority=7
queue=videotype
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=500k
max-limit=3M name=dns packet-mark=dnspac parent=alldn priority=1 queue=
default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=1M
max-limit=2M name=queue1 packet-mark=gameup parent=allup priority=2
queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0
max-limit=4M name=queue2 packet-mark=allup parent=allup priority=8 queue=
allup
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=1M
max-limit=2M name=queue3 packet-mark=dnsup parent=allup priority=1 queue=
default
发表于 2008-11-19 13:58:54 | 显示全部楼层
回复 1# 278560261


    各位老师帮我看看呗。。头痛。啊
发表于 2008-11-20 00:45:14 | 显示全部楼层
为什么没有人说两句呢
发表于 2008-11-20 11:21:08 | 显示全部楼层
竟然没有一个人。谈谈。更有的垃圾在我发贴第二天早上尝试登录我的ROS。
发表于 2008-11-22 13:33:38 | 显示全部楼层
是不是网页游戏优先和整体限速度的问题,你禁掉看看
发表于 2008-11-22 22:21:57 | 显示全部楼层
人呢?。。。。。
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2024-11-24 14:48 , Processed in 0.149783 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表