Community discussions

MikroTik App
 
jjshrimp
just joined
Topic Author
Posts: 6
Joined: Sat Mar 17, 2007 8:42 am

I need help about share bandwidth equally

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
 
User avatar
jwcn
Forum Guru
Forum Guru
Posts: 1495
Joined: Sun Aug 27, 2006 6:49 am
Location: Maryland, USA
Contact:

Sat Mar 17, 2007 8:32 pm

Put a "k" at the end of your speeds you speficy.

Your current configuration has a max limit of 2000 bytes
 
jjshrimp
just joined
Topic Author
Posts: 6
Joined: Sat Mar 17, 2007 8:42 am

Sun Mar 18, 2007 5:13 pm

Put a "k" at the end of your speeds you speficy.

Your current configuration has a max limit of 2000 bytes
thank jwcn for your help
but max limit of 2000
the meaning is that total subqueue has a data size.the size is 2000.
this is a default parameter,must be changed?
 
jjshrimp
just joined
Topic Author
Posts: 6
Joined: Sat Mar 17, 2007 8:42 am

Mon Mar 19, 2007 7:44 am

request for your idea
 
jjshrimp
just joined
Topic Author
Posts: 6
Joined: Sat Mar 17, 2007 8:42 am

Mon Mar 19, 2007 12:22 pm

give me some advice whether right or wrong
i will feel better
thanks
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Mon Mar 19, 2007 1:54 pm

go here:
http://wiki.mikrotik.com/wiki/Routing

choose one scenario that is more suitable for you and check against it your configuration
 
weller
just joined
Posts: 12
Joined: Fri Feb 09, 2007 7:58 am
Location: Iraq

Mon Mar 19, 2007 3:30 pm

yes, that's right since some VSAT systems or even DSL modems don't priorties/manage traffic passed to them, IN this case PCQ and queues have very limited benefits, you should try a firewall rules that limits speed and manage traffic based on number of packets per second for each user/ip