PPPoE profile and queue tree

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!!! :slight_smile:

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 …

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!

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

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.

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! :smiley:

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!

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!.

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…
Pantallazo.png

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 :slight_smile: Cya…

thanks, what about the upload queue showing no traffic? it seems to be something wrong

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.