I need help about share bandwidth equally
Posted: Sat Mar 17, 2007 3:43 pm
I need a way for everyone has equal bandwidth to access internet.and then,i bethink of PCQ and i have done some configuration.but the speed that userA try to open a Web page is slow and hardly when userB is downloading with http.where the problem is? I guess that pcq-src attached to the internet interface will group the traffic by source address(192.168.0.0/32),but the source address is changed to a public address(218.27.x.x) by src-NAT before traffic arrive to the pcq attached to internet interface.how should I do? please help me.
mangle:
0 chain=forward p2p=all-p2p action=mark-connection new-connection-mark=P2P-connection passthrough=yes
1 chain=forward connection-mark=P2P-connection action=mark-packet new-packet-mark=P2P-packet passthrough=yes
2 chain=forward connection-mark=!P2P-connection action=mark-connection new-connection-mark=Normal-connection
passthrough=yes
3 chain=forward connection-mark=Normal-connection action=mark-packet new-packet-mark=Normal-packet passthrough=yes
queue type:
0 name="PCQ-src" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000
1 name="PCQ-dst" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
queue tree:
at internet interface:
0 name="L1-wan" parent=Wan packet-mark="" limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s
1 name="L2-wan-p2p" parent=L1-wan packet-mark=P2P-packet limit-at=0 queue=default priority=8 max-limit=0
burst-limit=0 burst-threshold=0 burst-time=0s
2 name="L2-wan-normal" parent=L1-wan packet-mark=Normal-packet limit-at=0 queue=default priority=7 max-limit=0
burst-limit=0 burst-threshold=0 burst-time=0s
3 name="L3-wan-ordinary" parent=L2-wan-normal packet-mark=Normal-packet limit-at=0 queue=PCQ-src priority=8
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
at LAN interface:
4 name="L1-lan" parent=Lan packet-mark="" limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s
5 name="L2-lan-p2p" parent=L1-lan packet-mark=P2P-packet limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s
6 name="L2-lan-normal" parent=L1-lan packet-mark=Normal-packet limit-at=0 queue=default priority=7 max-limit=0
burst-limit=0 burst-threshold=0 burst-time=0s
7 name="L3-lan-ordinary" parent=L2-lan-normal packet-mark=Normal-packet limit-at=0 queue=PCQ-dst priority=8
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
mangle:
0 chain=forward p2p=all-p2p action=mark-connection new-connection-mark=P2P-connection passthrough=yes
1 chain=forward connection-mark=P2P-connection action=mark-packet new-packet-mark=P2P-packet passthrough=yes
2 chain=forward connection-mark=!P2P-connection action=mark-connection new-connection-mark=Normal-connection
passthrough=yes
3 chain=forward connection-mark=Normal-connection action=mark-packet new-packet-mark=Normal-packet passthrough=yes
queue type:
0 name="PCQ-src" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000
1 name="PCQ-dst" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
queue tree:
at internet interface:
0 name="L1-wan" parent=Wan packet-mark="" limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s
1 name="L2-wan-p2p" parent=L1-wan packet-mark=P2P-packet limit-at=0 queue=default priority=8 max-limit=0
burst-limit=0 burst-threshold=0 burst-time=0s
2 name="L2-wan-normal" parent=L1-wan packet-mark=Normal-packet limit-at=0 queue=default priority=7 max-limit=0
burst-limit=0 burst-threshold=0 burst-time=0s
3 name="L3-wan-ordinary" parent=L2-wan-normal packet-mark=Normal-packet limit-at=0 queue=PCQ-src priority=8
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
at LAN interface:
4 name="L1-lan" parent=Lan packet-mark="" limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s
5 name="L2-lan-p2p" parent=L1-lan packet-mark=P2P-packet limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s
6 name="L2-lan-normal" parent=L1-lan packet-mark=Normal-packet limit-at=0 queue=default priority=7 max-limit=0
burst-limit=0 burst-threshold=0 burst-time=0s
7 name="L3-lan-ordinary" parent=L2-lan-normal packet-mark=Normal-packet limit-at=0 queue=PCQ-dst priority=8
max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s