Community discussions

MUM Europe 2020
 
ilham.daulay
just joined
Topic Author
Posts: 8
Joined: Mon Nov 27, 2006 4:15 pm

configure queue automatically divided when some user active

Fri Feb 16, 2007 8:45 am

i had used BW limiter now, but how to configure BW limiter automatically in mikrotik when some user in active.Example, there are 20 user in each limit 20 kbps and max limit 128 kbps.
when one of them in active or more di BW will divided.Example:
Max limit : 128 kbps
User active : 20
All active and BW divisible 6,4 kbps
10 user active BW divisible 12,8 kbps
5 user active BW divisible 25,6 kbps and
2 user active BW divisible 64 kbps

All of BW limiter will divided automatically.So how i can configured it..?
Thank before,
 
User avatar
Equis
Forum Veteran
Forum Veteran
Posts: 888
Joined: Mon Jun 06, 2005 6:48 am

Fri Feb 16, 2007 8:51 am

Look in manual about pcq, I think this does it for you
 
ilham.daulay
just joined
Topic Author
Posts: 8
Joined: Mon Nov 27, 2006 4:15 pm

Sun Feb 18, 2007 9:00 am

Look in manual about pcq, I think this does it for you
Thank you equis, i have learned it.
It' is relation about queqe tree?I usually used queqe tree and queue type is pcq.But it's not affected when i used queue type pcg.I usually used pfifo queue type.
the configuration in pcq so little.it's just rate, limit and total limit and all of it in packet.
But if i used in queue tree there are limit at, max limit, burts limit, burst thershold and burstime.
Can you show me the example configuration....????
Plz help me, Sorry my english is not well but do you understand what i mean..?
 
User avatar
Equis
Forum Veteran
Forum Veteran
Posts: 888
Joined: Mon Jun 06, 2005 6:48 am

Sun Feb 18, 2007 11:13 am

Hello

I am no expert but this shares for all users and also some protocol has priority

Always set you max to only 80% of your pipe (or it wont queue)

Perhaps look here too
http://wiki.mikrotik.com/wiki/PCQ_Examples



Mark Connection or packect in Mangle

0 chain=prerouting dst-address=203.221.39.3 action=mark-packet
new-packet-mark=proxy passthrough=no
1 X chain=prerouting dst-address=203.221.38.133 action=mark-packet
new-packet-mark=over passthrough=no
2 X chain=prerouting src-address=203.221.38.133 action=mark-packet
new-packet-mark=over passthrough=no
3 chain=prerouting protocol=tcp dst-port=80 action=mark-connection
new-connection-mark=con_http passthrough=no
4 chain=prerouting connection-mark=con_http action=mark-packet
new-packet-mark=http passthrough=no
5 chain=prerouting protocol=tcp dst-port=25 action=mark-packet
new-packet-mark=smtp passthrough=no
6 chain=prerouting protocol=tcp dst-port=3389 action=mark-packet
new-packet-mark=rdp passthrough=no
7 chain=prerouting dst-address=202.61.13.0/24 action=mark-packet
new-packet-mark=voip passthrough=no
8 chain=prerouting src-address=202.61.13.0/24 action=mark-packet
new-packet-mark=voip passthrough=no
9 chain=prerouting p2p=all-p2p action=mark-connection
new-connection-mark=p2p_conn passthrough=yes
10 chain=prerouting connection-mark=p2p_conn action=mark-packet
new-packet-mark=p2p passthrough=no
11 chain=prerouting p2p=all-p2p action=mark-packet new-packet-mark=p2p
passthrough=no
12 chain=prerouting protocol=tcp dst-port=6300-6500 action=mark-packet
new-packet-mark=p2p passthrough=no
13 chain=prerouting protocol=udp dst-port=6300-6500 action=mark-packet
new-packet-mark=p2p passthrough=no
14 chain=prerouting protocol=tcp src-port=6300-6500 action=mark-packet
new-packet-mark=p2p passthrough=no
15 chain=prerouting protocol=udp src-port=6300-6500 action=mark-packet
new-packet-mark=p2p passthrough=no
16 chain=prerouting action=mark-connection new-connection-mark=other_conn
passthrough=yes
17 chain=prerouting connection-mark=other_conn action=mark-packet
new-packet-mark=other passthrough=no
18 chain=prerouting action=mark-packet new-packet-mark=other passthrough=no

In simple que
0 name="main" dst-address=0.0.0.0/0 interface=Local parent=none direction=both priority=1 queue=PCQ_upload/PCQ_download limit-at=1500000/1700000
max-limit=1500000/1700000 total-queue=default-small

1 name="p2p" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=p2p direction=both priority=8 queue=PCQ_upload/PCQ_download
limit-at=64000/64000 max-limit=1000000/1500000 total-queue=default-small

2 name="other" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=other direction=both priority=3 queue=PCQ_upload/PCQ_download
limit-at=1000000/1000000 max-limit=1000000/1500000 total-queue=default-small

3 name="voip" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=voip direction=both priority=1 queue=PCQ_upload/PCQ_download
limit-at=1000000/1000000 max-limit=1000000/1500000 total-queue=default-small

4 name="rdp" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=rdp direction=both priority=1 queue=PCQ_upload/PCQ_download
limit-at=1000000/1000000 max-limit=1000000/1500000 total-queue=default-small

5 name="http" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=http direction=both priority=3 queue=PCQ_upload/PCQ_download
limit-at=512000/1000000 max-limit=1000000/1700000 total-queue=default-small

6 name="smtp" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=smtp direction=both priority=6 queue=PCQ_upload/PCQ_download
limit-at=64000/64000 max-limit=512000/512000 total-queue=default-small

7 name="over" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=over direction=both priority=8 queue=default-small/default-small
limit-at=64000/64000 max-limit=64000/64000 total-queue=default-small

8 name="proxy" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=proxy direction=both priority=1 queue=PCQ_upload/PCQ_download
limit-at=1000000/1700000 max-limit=1000000/1700000 total-queue=default-small
 
ilham.daulay
just joined
Topic Author
Posts: 8
Joined: Mon Nov 27, 2006 4:15 pm

Mon Feb 19, 2007 1:12 pm

Hello

I am no expert but this shares for all users and also some protocol has priority

Always set you max to only 80% of your pipe (or it wont queue)

Perhaps look here too
http://wiki.mikrotik.com/wiki/PCQ_Examples



Mark Connection or packect in Mangle

0 chain=prerouting dst-address=203.221.39.3 action=mark-packet
new-packet-mark=proxy passthrough=no
1 X chain=prerouting dst-address=203.221.38.133 action=mark-packet
new-packet-mark=over passthrough=no
2 X chain=prerouting src-address=203.221.38.133 action=mark-packet
new-packet-mark=over passthrough=no
3 chain=prerouting protocol=tcp dst-port=80 action=mark-connection
new-connection-mark=con_http passthrough=no
4 chain=prerouting connection-mark=con_http action=mark-packet
new-packet-mark=http passthrough=no
5 chain=prerouting protocol=tcp dst-port=25 action=mark-packet
new-packet-mark=smtp passthrough=no
6 chain=prerouting protocol=tcp dst-port=3389 action=mark-packet
new-packet-mark=rdp passthrough=no
7 chain=prerouting dst-address=202.61.13.0/24 action=mark-packet
new-packet-mark=voip passthrough=no
8 chain=prerouting src-address=202.61.13.0/24 action=mark-packet
new-packet-mark=voip passthrough=no
9 chain=prerouting p2p=all-p2p action=mark-connection
new-connection-mark=p2p_conn passthrough=yes
10 chain=prerouting connection-mark=p2p_conn action=mark-packet
new-packet-mark=p2p passthrough=no
11 chain=prerouting p2p=all-p2p action=mark-packet new-packet-mark=p2p
passthrough=no
12 chain=prerouting protocol=tcp dst-port=6300-6500 action=mark-packet
new-packet-mark=p2p passthrough=no
13 chain=prerouting protocol=udp dst-port=6300-6500 action=mark-packet
new-packet-mark=p2p passthrough=no
14 chain=prerouting protocol=tcp src-port=6300-6500 action=mark-packet
new-packet-mark=p2p passthrough=no
15 chain=prerouting protocol=udp src-port=6300-6500 action=mark-packet
new-packet-mark=p2p passthrough=no
16 chain=prerouting action=mark-connection new-connection-mark=other_conn
passthrough=yes
17 chain=prerouting connection-mark=other_conn action=mark-packet
new-packet-mark=other passthrough=no
18 chain=prerouting action=mark-packet new-packet-mark=other passthrough=no

In simple que
0 name="main" dst-address=0.0.0.0/0 interface=Local parent=none direction=both priority=1 queue=PCQ_upload/PCQ_download limit-at=1500000/1700000
max-limit=1500000/1700000 total-queue=default-small

1 name="p2p" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=p2p direction=both priority=8 queue=PCQ_upload/PCQ_download
limit-at=64000/64000 max-limit=1000000/1500000 total-queue=default-small

2 name="other" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=other direction=both priority=3 queue=PCQ_upload/PCQ_download
limit-at=1000000/1000000 max-limit=1000000/1500000 total-queue=default-small

3 name="voip" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=voip direction=both priority=1 queue=PCQ_upload/PCQ_download
limit-at=1000000/1000000 max-limit=1000000/1500000 total-queue=default-small

4 name="rdp" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=rdp direction=both priority=1 queue=PCQ_upload/PCQ_download
limit-at=1000000/1000000 max-limit=1000000/1500000 total-queue=default-small

5 name="http" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=http direction=both priority=3 queue=PCQ_upload/PCQ_download
limit-at=512000/1000000 max-limit=1000000/1700000 total-queue=default-small

6 name="smtp" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=smtp direction=both priority=6 queue=PCQ_upload/PCQ_download
limit-at=64000/64000 max-limit=512000/512000 total-queue=default-small

7 name="over" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=over direction=both priority=8 queue=default-small/default-small
limit-at=64000/64000 max-limit=64000/64000 total-queue=default-small

8 name="proxy" dst-address=0.0.0.0/0 interface=Local parent=main packet-marks=proxy direction=both priority=1 queue=PCQ_upload/PCQ_download
limit-at=1000000/1700000 max-limit=1000000/1700000 total-queue=default-small
Thanks equis, i had tried it and it has a progress.
Other wise, i had to configure web proxy in it.when i enabled it the BW limiter not work.
is my tranparent proxy have a little problem..? This is the configure :

ip firewall nat add chain=dstnat src-address=192.168.5.100
/24 protocol=tcp dst-port=80 action=redirect to-ports=3128 and

ip firewall nat add chain=dstnat src-address=192.168.5.100
/24 protocol=tcp dst-port=8080 action=redirect to-ports=3128

i think that configured is still common like another.
or is't has another special configuration for activated webproxy and BW limiter...?

This is my web proxy configure :
[admin@meteor-net] > ip web-proxy print
enabled: yes
src-address: 0.0.0.0
port: 3128
hostname: "squid.meteor.net"
transparent-proxy: yes
parent-proxy: 0.0.0.0:0
cache-administrator: "admin@Meteor.net"
max-object-size: 4096KiB
cache-drive: system
max-cache-size: 80000KiB
max-ram-cache-size: unlimited
status: running
reserved-for-cache: 79872KiB
reserved-for-ram-cache: 379904KiB

for access list :
[admin@meteor-net] > ip web-proxy access pr
Flags: X - disabled, I - invalid
0 dst-port=443-563 action=deny

1 dst-port=21 action=deny

2 dst-port=70 action=deny

3 dst-port=1025-65535 action=deny

4 dst-port=280,488,591,777 action=deny

5 dst-port=81,82,10000 action=deny

6 dst-port=8291 action=allow

7 ;;; localhost
src-address=127.0.0.1/32 action=allow

8 ;;; local
src-address=192.168.5.0/24 action=allow

9 ;;; kantor
src-address=202.xx.xxx.xx/28 action=allow

10 action=deny

thank's for your guidance before,
:)
 
User avatar
Equis
Forum Veteran
Forum Veteran
Posts: 888
Joined: Mon Jun 06, 2005 6:48 am

Mon Feb 19, 2007 1:18 pm

Did you have a look at this one?

I have not tried it.

http://wiki.mikrotik.com/wiki/Queue_wit ... _Web-Proxy
 
ilham.daulay
just joined
Topic Author
Posts: 8
Joined: Mon Nov 27, 2006 4:15 pm

Mon Feb 19, 2007 3:29 pm

Did you have a look at this one?

I have not tried it.

http://wiki.mikrotik.com/wiki/Queue_wit ... _Web-Proxy
I had tried it and that is work now.Thank Equis.
And now i'll concentrate for limiter BW automatically can work perfectly.

If can work perfectly i'll tell u.

Thanks before,
:)

Who is online

Users browsing this forum: Google [Bot], Google Feedfetcher, McSee, Sob and 101 guests