PCQ 只限上传 为何连下载也受限?
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=0burst-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=0burst-time=0s
在只打开PCQ-Down的时候
客户机下载可以达到110K左右(单线程/多线程都一样) 上传(55K)=不受限(我的ADSL上传是512Kbit)
但是一但打开PCQ-Up时候 (打不打开PCQ-Down都一样)
客户机下载(单线程)只能达到16K(多线程)110K 上传(16K)
我不理解的是为什么只限PCQ-Up 连下载也会受限制(跟我架在虚拟机上有没有关系????)
那们大侠帮帮我看看?
[ 本帖最后由 diyernet 于 2007-2-16 01:01 编辑 ] TCP协议里,下载伴随着上行同时发生,如果上行受到限制,那么下载也就同样受影响了:lol 错误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=0burst-time=0s 在这里改。最大速度 突破最大值 等。。。。。。
看完你就明白了
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)
页:
[1]