找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2751|回复: 3

[限速] PCQ 只限上传 为何连下载也受限?

[复制链接]
发表于 2007-2-16 00:59:41 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

×
ros主机是架在vmware虚拟机上的(只虚拟1个网卡)

PCQ 配置流程如下

/ip firewall mangle     chain=prerouting action=mark-packet new-packet-mark=all-mark passthrough=yes


/queue type            name="PCQ-Down" kind=pcq pcq-rate=1024000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
                           
                            name="PCQ-Up" kind=pcq pcq-rate=128000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000


/queue tree            
                            name="PCQ-Down" parent=global-in packet-mark=all-mark limit-at=0 queue=PCQ-Down priority=8
                            max-limit=0    burst-limit=0  burst-threshold=0 burst-time=0s
                           
                             name="PCQ-Up" parent=global-out packet-mark=all-mark limit-at=0 queue=PCQ-Up priority=8
                            max-limit=0   burst-limit=0   burst-threshold=0  burst-time=0s


在只打开PCQ-Down的时候
                                   客户机下载可以达到110K左右(单线程/多线程都一样) 上传(55K)=不受限(我的ADSL上传是512Kbit)

但是一但打开PCQ-Up时候 (打不打开PCQ-Down都一样)
                                   客户机下载(单线程)只能达到16K(多线程)110K     上传(16K)

我不理解的是为什么只限PCQ-Up 连下载也会受限制  (跟我架在虚拟机上有没有关系????)
那们大侠帮帮我看看?

[ 本帖最后由 diyernet 于 2007-2-16 01:01 编辑 ]
routeros
发表于 2008-11-9 14:12:51 | 显示全部楼层
TCP协议里,下载伴随着上行同时发生,如果上行受到限制,那么下载也就同样受影响了
routeros
回复

使用道具 举报

发表于 2008-11-9 14:48:13 | 显示全部楼层
错误1:在mangle里,你要先标记连接(因为你做了NAT)分别标记上传和下载 。网卡一定要选对。。。
  2、passthrough=yes你理解这个是什么意思吗???NO
  3、 在队列树里,name="PCQ-Down" parent=global-in    parent===你内网岗卡。。。
  4、 name="PCQ-Down" kind=pcq pcq-rate=1024000   这里的PCQ-Rate不要为0就可以了。自动平均分配.
               然后:max-limit=0   burst-limit=0   burst-threshold=0  burst-time=0s  在这里改。最大速度 突破最大值 等。。。。。。 
routeros
回复

使用道具 举报

发表于 2008-11-9 14:54:58 | 显示全部楼层
1.jpg
2.jpg
看完你就明白了
Limitation for in mangle chain “forward” marked
traffic can be placed in the “global-out”  or
interface queue
If queues will be placed in the interface queues
queues on the public interface will capture only
client upload
queues on the local interface will capture only
client's download
If queues will be placed in global-out download
and upload will be limited together (separate marks
needed)



PCQ Adjustments
There are ~340 Basic class clients so:
pcq_limit = 40
pcq_total_limit = 7000  ( ~20*340) (~15MB)
There are ~40 Standard class clients so:
pcq_limit = 30
pcq_total_limit = 1000  ( ~20*40) (~2MB)
There are ~20 Business class clients so:
pcq_limit = 20 (!!!)
pcq_total_limit = 500  ( ~20*20) (~1MB)
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-19 22:42 , Processed in 0.096243 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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