Community discussions

MikroTik App
 
D3L05
newbie
Topic Author
Posts: 28
Joined: Tue Feb 09, 2010 1:54 am

PPPoE profile and queue tree

Fri Jul 23, 2010 11:28 pm

Hi,
i've a (stupid?) question,

i've a pppoe server with 900-1000 clients, I don't have any queue for limit or priorization, for now I've enough bandwidth for all the clients, but I want to start using QoS to improve the service...

the question is, if I create a queue tree (pcq), in pppoe profiles I need to "unset" the rate limit? so that way no simple queues are created, right?


and what do you think about this pcq? I have about 800 clients with 512kbps and about 200 with 1mbps:

/queue type
add kind=pcq name=PCQ_down_512k pcq-classifier=dst-address pcq-limit=40 pcq-rate=512000 pcq-total-limit=40000
add kind=pcq name=PCQ_down_1M pcq-classifier=dst-address pcq-limit=30 pcq-rate=1000000 pcq-total-limit=9000
add kind=pcq name=PCQ_up_192k pcq-classifier=src-address pcq-limit=20 pcq-rate=192000 pcq-total-limit=16000
add kind=pcq name=PCQ_up_256k pcq-classifier=src-address pcq-limit=30 pcq-rate=256000 pcq-total-limit=9000


/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=yes limit-at=0 max-limit=40M name=QOS parent=global-in priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name="2 - Messenger" packet-mark=Messenger-Packed parent=QOS priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=20M name="8 - p2p" packet-mark=P2P-Packets parent=QOS priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name="1 - Navigation" packet-mark=Navigation-Packets parent=QOS priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name="3 - UDP" packet-mark=UDP-Packed parent=QOS priority=3 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name="7 - Otros" packet-mark=other-Packed parent=QOS priority=7 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=20M name="8 - Descargas" packet-mark=Descargas-Packets parent=QOS priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name="1 - ICMP" packet-mark=ICMP-Packed parent=QOS priority=1 queue=default



add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=Download parent=global-out priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=1Mb_down packet-mark=paquetes_1mb parent=Download priority=8 queue=PCQ_down_1M
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=Upload parent=global-out priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=1Mb_up packet-mark=paquetes_1mb parent=Upload priority=8 queue=PCQ_up_256k



thanks for any help!!! :)
 
adrianatkins
Long time Member
Long time Member
Posts: 556
Joined: Wed Sep 05, 2007 10:34 am
Location: Spain
Contact:

Re: PPPoE profile and queue tree

Fri Jul 23, 2010 11:53 pm

800 clients with 512kbps
Where on earth are you ?

Do people still pay good money for 512k ?!?!?

Is this 2010 or has NTP transported me back in time .... again .....
 
nitrium
Frequent Visitor
Frequent Visitor
Posts: 94
Joined: Wed Apr 04, 2007 9:00 pm

Re: PPPoE profile and queue tree

Sat Jul 24, 2010 2:24 am

Well actually there is a lot of places on earth that dont sell large links and dont have good coverage, so the solution is a WISP with this kind of link to supply the demand. I also sell 256k and 512k links to my clients and there is a lot of people seeking for the services!

And about the topic, why dont you set address-list on PPPoE server profile and then use it to make a queue tree based on mangle with that address-list. It will contain all the LOGGED client IPs from your IP POOL! So the queue tree will work only on the IPs being used at the moment and it will modify itself dinamically!
 
D3L05
newbie
Topic Author
Posts: 28
Joined: Tue Feb 09, 2010 1:54 am

Re: PPPoE profile and queue tree

Sat Jul 24, 2010 2:37 am

And about the topic, why dont you set address-list on PPPoE server profile and then use it to make a queue tree based on mangle with that address-list. It will contain all the LOGGED client IPs from your IP POOL! So the queue tree will work only on the IPs being used at the moment and it will modify itself dinamically!
it's what i'm want to do, just want to know if I must set rate limit or not in pppoe profile, I think no but i'm new in queing with mikrotik.

i'm from Argentina, 512k/1mb conections are common


Ps: sorry my english is not too good
 
nitrium
Frequent Visitor
Frequent Visitor
Posts: 94
Joined: Wed Apr 04, 2007 9:00 pm

Re: PPPoE profile and queue tree

Sat Jul 24, 2010 2:43 am

Im from Brazil, as I see you dont have to modify your profile at PPPoE since queue tree will be obeyed over simple queues when the packets are identified as being part of one q-tree. I used cache full for thundercache proxy here and when it passd over the q-tree, even if my profile gets 512k as download the client got full speed setted at q-tree rule.
 
D3L05
newbie
Topic Author
Posts: 28
Joined: Tue Feb 09, 2010 1:54 am

Re: PPPoE profile and queue tree

Sat Jul 24, 2010 5:42 pm

I was thinking that simple queues "overlaps" queue tree, and what do you think about the queue types? about the limits I mean...


thanks guys! :D
 
nitrium
Frequent Visitor
Frequent Visitor
Posts: 94
Joined: Wed Apr 04, 2007 9:00 pm

Re: PPPoE profile and queue tree

Sat Jul 24, 2010 11:37 pm

Hi again... Im not that good at queues too but I think if you just put max-limit at 20M and dot put a limit an user with PPPoE account limited to 512K can get no limit when it goes by the queue tree because it will be limited by 20M and for sure the client dont have a 20M interface beetween you and his home. Anyway, I think you should set limit at what you want at max-rate per client. I mean, the sum of all clients using the queue tree wont pass 20M, but also wont pass the rate you set at limit per client.

I hope it helps! Also if anyone reading this forum think Im telling some wrong info please correct me if Im wrong. Thx!
 
D3L05
newbie
Topic Author
Posts: 28
Joined: Tue Feb 09, 2010 1:54 am

Re: PPPoE profile and queue tree

Mon Jul 26, 2010 6:50 pm

I understand that I must set a rate-limit per client queue, but I ask about the rate-limit in the pppoe profile, it's seems to be redundant, have a dynamic simple queue per user and then limit again in the queue tree

or maybe I'm missunderstanding how the queues works...

thanks!.
 
D3L05
newbie
Topic Author
Posts: 28
Joined: Tue Feb 09, 2010 1:54 am

Re: PPPoE profile and queue tree

Wed Jul 28, 2010 2:32 am

Here is my actual config:

/ip firewall mangle
add action=mark-connection chain=forward comment="Clientes 512k" disabled=no new-connection-mark=clientes_512k passthrough=yes src-address-list=lista_512
add action=mark-packet chain=forward comment="" connection-mark=clientes_512k disabled=no new-packet-mark=paquetes_512k passthrough=no
add action=mark-connection chain=forward comment="Clientes 1mb" disabled=no new-connection-mark=clientes_1mb passthrough=yes src-address-list=lista_1
add action=mark-packet chain=forward comment="" connection-mark=clientes_1mb disabled=no new-packet-mark=paquetes_1mb passthrough=no

/queue type
add kind=pcq name=PCQ_down_512k pcq-classifier=dst-address pcq-limit=40 pcq-rate=512000 pcq-total-limit=40000
add kind=pcq name=PCQ_down_1M pcq-classifier=dst-address pcq-limit=30 pcq-rate=1000000 pcq-total-limit=9000
add kind=pcq name=PCQ_up_192k pcq-classifier=src-address pcq-limit=20 pcq-rate=192000 pcq-total-limit=16000
add kind=pcq name=PCQ_up_256k pcq-classifier=src-address pcq-limit=30 pcq-rate=256000 pcq-total-limit=9000

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=Download parent=global-out priority=1

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=1Mb_down packet-mark=paquetes_1mb parent=Download priority=8 queue=PCQ_down_1M
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=512_down packet-mark=paquetes_512k parent=Download priority=8 queue=PCQ_down_512k

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=Upload parent=global-out priority=1

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=1Mb_up packet-mark=paquetes_1mb parent=Upload priority=8 queue=PCQ_up_256k
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=512_up packet-mark=paquetes_512k parent=Upload priority=8 queue=PCQ_up_192k


the upload queue shows no traffic, i think i'm doing something wrong...
You do not have the required permissions to view the files attached to this post.
 
nitrium
Frequent Visitor
Frequent Visitor
Posts: 94
Joined: Wed Apr 04, 2007 9:00 pm

Re: PPPoE profile and queue tree

Wed Jul 28, 2010 7:18 pm

Actually the pppoe profile will be obeyed until the packets fall into the queue tree rule, then it will obey that rule instead of the pppoe profile. Anything that dont fit at queue tree rule will follow the rate setted at the pppoe profile. Any problem just post here again :) Cya...
 
D3L05
newbie
Topic Author
Posts: 28
Joined: Tue Feb 09, 2010 1:54 am

Re: PPPoE profile and queue tree

Fri Jul 30, 2010 6:26 pm

thanks, what about the upload queue showing no traffic? it seems to be something wrong
 
nitrium
Frequent Visitor
Frequent Visitor
Posts: 94
Joined: Wed Apr 04, 2007 9:00 pm

Re: PPPoE profile and queue tree

Mon Aug 02, 2010 9:32 pm

I experienced this problem some time ago, it has something to do with the global queue setting, since its a dinamic IP in the PPPoE interface it goes after the HTB and not before if Im not mistaken.

Who is online

Users browsing this forum: yhfung and 21 guests