Community discussions

MikroTik App
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

[ask] problem queue tree and mangle doesnt work

Sat Mar 09, 2013 5:33 am

hello, I have these screenshots.
Image

Image
The Ping destination are : 8.8.8.8 (google dns), 202.162.207.111(game), 192.168.172.1 (modem)

I have game and browse queues. And have static bandwidth of 3Mbps
When the ping of the game(202.162.207.111) has above 100, the game become so lag.
I dont know what's wrong with this.
Please, anyone have any idea with this?


Below are my mangle (0-4) and one of the client (5-10)
0   chain=forward action=change-mss new-mss=1440 passthrough=yes tcp-flags=sy>
     protocol=tcp in-interface=speedy tcp-mss=1441-65535 

 1   chain=forward action=change-mss new-mss=1440 passthrough=yes tcp-flags=sy>
     protocol=tcp out-interface=speedy tcp-mss=1441-65535 

 2   ;;; Master Mangle
     chain=prerouting action=mark-connection new-connection-mark=conn-game 
     passthrough=yes dst-address-list=game in-interface=ether4-lan 

 3   chain=prerouting action=mark-packet new-packet-mark=packet-game 
     passthrough=no connection-mark=conn-game 

 4   chain=prerouting action=mark-packet new-packet-mark=packet-net 
     passthrough=no 

 5   ;;; User Mangle
     chain=forward action=mark-connection new-connection-mark=GAME-2 
     passthrough=yes src-address=192.168.44.2 packet-mark=packet-game 

 6   chain=forward action=mark-connection new-connection-mark=NET-2 
     passthrough=yes src-address=192.168.44.2 packet-mark=packet-net 

 7   chain=forward action=mark-packet new-packet-mark=up-game2 passthrough=no 
     in-interface=ether4-lan connection-mark=GAME-2 

 8   chain=forward action=mark-packet new-packet-mark=up-net2 passthrough=no 
     in-interface=ether4-lan connection-mark=NET-2 

 9   chain=forward action=mark-packet new-packet-mark=limit-game2 
     passthrough=no connection-mark=GAME-2 

10   chain=forward action=mark-packet new-packet-mark=limit-net2 passthrough=n>
     connection-mark=NET-2 
I use this for every queue in queue tree.
name="default" kind=pfifo pfifo-limit=200
I'll provide every single config if someone ask for it.
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

Re: [ask] problem queue tree and mangle doesnt work

Sun Mar 10, 2013 6:29 am

bump
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

Re: [ask] problem queue tree and mangle doesnt work

Fri Mar 15, 2013 11:19 pm

bump !!!
 
lambert
Long time Member
Long time Member
Posts: 548
Joined: Fri Jul 23, 2010 1:09 am

Re: [ask] problem queue tree and mangle doesnt work

Sat Mar 16, 2013 6:53 am

I don't know that I can come up with an answer for you, but I would want to see the export compact of /queue and /ip firewall mangle
 
User avatar
zernz
just joined
Topic Author
Posts: 24
Joined: Fri Mar 25, 2011 12:34 am

Re: [ask] problem queue tree and mangle doesnt work

Mon Mar 18, 2013 1:13 pm

I've written the mangle above.
And this is my queue tree.
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=10M name=Total-Download packet-mark="" parent=ether4-lan \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=Total-Upload packet-mark="" parent=speedy priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=5M name=Download-GAME packet-mark="" parent=Total-Download \
    priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=2M name=Download-NET packet-mark="" parent=Total-Download \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=450k name=Upload-GAME packet-mark="" parent=Total-Upload \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=450k name=Upload-NET packet-mark="" parent=Total-Upload \
    priority=8

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no \
    name="DL-GAME-2" parent=Download-GAME packet-mark="limit-game2" \
    limit-at=256k max-limit=3M 
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no \
    name="DL-NET-2" parent=Download-NET packet-mark="limit-net2" \
    limit-at=256k max-limit=2M

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no \
    name="UP-GAME-2" parent=Upload-GAME packet-mark="up-game2" \
    limit-at=64k max-limit=128k
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no \
    name="UP-NET-2" parent=Upload-NET packet-mark="up-net2" \
    limit-at=64k max-limit=128k
 
lambert
Long time Member
Long time Member
Posts: 548
Joined: Fri Jul 23, 2010 1:09 am

Re: [ask] problem queue tree and mangle doesnt work

Mon Mar 18, 2013 7:16 pm

I've written the mangle above.
And this is my queue tree.
/queue tree
...
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=5M name=Download-GAME packet-mark="" parent=Total-Download \
    priority=1
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=2M name=Download-NET packet-mark="" parent=Total-Download \
    priority=8

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=450k name=Upload-GAME packet-mark="" parent=Total-Upload \
    priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=450k name=Upload-NET packet-mark="" parent=Total-Upload \
    priority=8
...
Your screenshots show 134 queue tree entries. You gave us 8.

In the screenshots, Download-NET and Download-GAME have limit-at values greater than 0. Are the rules in your last post from a limited subset test setup?

I don't see anything specifically wrong with what you've posted. While I do have my TCE, I haven't played with queues beyond the per IP address PCQ rate limits I use on my network.

If you look at your /ip firewall connection-tracking in winbox, and filter for traffic which is supposed to be in one category or another, are ALL of the connections being marked correctly? Are there connections without connection-mark entries? Are there connections with the wrong connection-mark?

Have you tried using RED, SFQ, or PCQ queue types? pfifo is somewhat un-sophisticated.