Community discussions

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

PCQ and PPPoE

Sun Nov 21, 2010 4:22 am

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
You do not have the required permissions to view the files attached to this post.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: PCQ and PPPoE

Sun Nov 21, 2010 7:49 am

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.
 
D3L05
newbie
Topic Author
Posts: 28
Joined: Tue Feb 09, 2010 1:54 am

Re: PCQ and PPPoE

Thu Nov 25, 2010 1:34 am

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...
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: PCQ and PPPoE

Thu Nov 25, 2010 3:11 am

Sorry, I don't understand what you mean by that.
 
D3L05
newbie
Topic Author
Posts: 28
Joined: Tue Feb 09, 2010 1:54 am

Re: PCQ and PPPoE

Thu Nov 25, 2010 6:14 pm

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
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: PCQ and PPPoE

Thu Nov 25, 2010 6:39 pm

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.
 
D3L05
newbie
Topic Author
Posts: 28
Joined: Tue Feb 09, 2010 1:54 am

Re: PCQ and PPPoE

Thu Nov 25, 2010 7:05 pm

I tried with global-in global-out, but it's the same... :?
 
D3L05
newbie
Topic Author
Posts: 28
Joined: Tue Feb 09, 2010 1:54 am

Re: PCQ and PPPoE

Sat Dec 04, 2010 12:12 am

any idea? please
 
magnavox
Member
Member
Posts: 357
Joined: Thu Jun 14, 2007 1:03 pm

Re: PCQ and PPPoE

Wed Feb 23, 2011 7:18 pm

mmm.... how to mark QoS packets?
 
oxigeno20
Member Candidate
Member Candidate
Posts: 116
Joined: Tue May 23, 2006 5:29 pm
Location: Argentina

Re: PCQ and PPPoE

Thu Mar 22, 2012 3:43 pm

Hello everybody!. i'm with the same problem. can you solve the problem?
Best regards
 
elcoco
just joined
Posts: 2
Joined: Fri Jul 13, 2012 12:50 am

Re: PCQ and PPPoE

Fri Jul 13, 2012 1:14 am

Helllo anybody relsoved this problem?
 
User avatar
nickb
Member
Member
Posts: 406
Joined: Thu Jan 26, 2006 6:24 pm
Location: Southeast Kansas
Contact:

Re: PCQ and PPPoE

Wed Aug 08, 2012 9:11 am

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

To effectively use queue-tree you must eliminate all simple queues.
 
Jeanluck
Member Candidate
Member Candidate
Posts: 280
Joined: Tue Apr 19, 2011 7:07 pm

Re: PCQ and PPPoE

Tue Jul 18, 2017 10:47 pm

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

Who is online

Users browsing this forum: geekera1n, raphielscape and 26 guests