PCQ and PPPoE

Hi,

i’m running a pppoe server with 1000 users, and simple queues are messy, so im trying to set up a
queue tree, after read the megis presentation, I have some doubts, this is my setup:

/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=30 pcq-rate=512000 pcq-total-limit=24000
add kind=pcq name=PCQ_down_1M pcq-classifier=dst-address pcq-limit=20 pcq-rate=1000000 pcq-total-limit=4000
add kind=pcq name=PCQ_up_256k pcq-classifier=src-address pcq-limit=20 pcq-rate=256000 pcq-total-limit=4000
add kind=pcq name=PCQ_up_512k pcq-classifier=src-address pcq-limit=30 pcq-rate=512000 pcq-total-limit=24000

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=40M max-limit=43M name=Upload parent=ether1 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_512k
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_256k

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=40M max-limit=43M name=Download parent=ether2 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

with this setup simple queues are stealing almost all the traffic from queue tree, may be i’m doing something wrong
Pantallazo.png

Queue trees attached to global-in and global-out fire before simple queues, then simple queues fire, then others. Try attaching to globals.

At least that works with Hotspots, which also use dynamic simple queues.

thanks i’ll try, but in the janis slides, says that the use of globals it’s needed when you use NAT, is not my case…

Sorry, I don’t understand what you mean by that.

janis say:

Global-Out or Interface HTB?
There are two fundamental differences 

In case of SRC-NAT (masquerade) Global-Out will be aware of private client addresses, but Interface HTB will not – Interface HTB is after SRC-NAT


Each Interface HTB only receives traffic that will be leaving through a particular interface – there is no need for to separate upload and download in mangle

I’m not using masquerade or any kind of nat.
please correct me if i’m wrong

Then that doesn’t matter to you. He describes a limitation of where you can attach things if you need to base them on true source address and are using NAT. You are not using NAT so that simply doesn’t apply to you.

I tried with global-in global-out, but it’s the same… :confused:

any idea? please

mmm… how to mark QoS packets?

Hello everybody!. i’m with the same problem. can you solve the problem?
Best regards

Helllo anybody relsoved this problem?

Simple queues will always get packets before queue-tree queues.

To effectively use queue-tree you must eliminate all simple queues.

Hello, I have the same issue, anybody relsoved this problem?