Community discussions

 
Silale
just joined
Topic Author
Posts: 13
Joined: Mon Jul 28, 2008 3:02 pm
Location: Riga, Latvia
Contact:

PCQ queue with profile list problem

Fri Apr 23, 2010 10:49 am

Good day.
We have strange problem with pcq queues and profile lists in mikrotik, latest versions too.
Problem is this : if we set 40M and more rate in profile, then client can download only with speed 30-32 Mb/s, 60M - speed the same - 30-35 megobits. With pppoe routers we don't have this problem, becouse use pppoe profiles, and in this router all fine, if client have 60M in profile, then he download with 60M.
One router set like in this examlple : http://mum.mikrotik.com/presentations/C ... _Megis.pdf problem with speed, all others configured like this example : http://wiki.mikrotik.com/wiki/Different ... queue_tree , and same problem with speed too. Only if we setup simple queue for clients - speed normal.
Tried to increase queues buffers, and others, helped with specific software ( wget on bsd box show 60M with profile 60M, but on same box cli ftp client - download only with speed 20M, like windows klients)
 
User avatar
martini
Member Candidate
Member Candidate
Posts: 296
Joined: Tue Dec 21, 2004 12:13 am

Re: PCQ queue with profile list problem

Fri Apr 23, 2010 11:15 am

what CPU load on your routers ??
 
Silale
just joined
Topic Author
Posts: 13
Joined: Mon Jul 28, 2008 3:02 pm
Location: Riga, Latvia
Contact:

Re: PCQ queue with profile list problem

Fri Apr 23, 2010 11:17 am

20-30% , this is not cpu related, we using 2-4 core xeon's with intel server network adapters.
We have some peers with others providers, and for this peers other access list, without shaping, and speed normal, only problem with shaped cahnnels.
 
User avatar
martini
Member Candidate
Member Candidate
Posts: 296
Joined: Tue Dec 21, 2004 12:13 am

Re: PCQ queue with profile list problem

Fri Apr 23, 2010 12:07 pm

20-30% on 4 core processor its almost 100 % load 1 core, beacose MT cant use all cores of processor. I have the same situation on some heavy loaded routers
 
Silale
just joined
Topic Author
Posts: 13
Joined: Mon Jul 28, 2008 3:02 pm
Location: Riga, Latvia
Contact:

Re: PCQ queue with profile list problem

Fri Apr 23, 2010 12:13 pm

at this moment - we setted up test router - and on this router only one client - I ! and same problem, then quastion - 30% eat all processor, or with single core cpu load 2% - and speed the same 30Mb/s ?

P.S. And how i typed in first post : if i use wget on bsd box - speed 60, if i use windows ftp client, or cli ftp client on same box - speed 30Mb/s, then quastion - again problem in cpu load, or maybe in some specific settings.

P.P.S. And - we talked with other providers, who work with mikrotik - some have this problem, and use simple queues, some don;t have - configuration not same, but no more is different.

PPPS :
ftp> get postcity_part2_xvid.avi
local: postcity_part2_xvid.avi remote: postcity_part2_xvid.avi
229 Entering Extended Passive Mode (|||54204|)
150 Opening BINARY mode data connection for postcity_part2_xvid.avi (209612452 bytes)
 10841 KB    1.75 MB/s 

WGET ( same box )
==> SIZE postcity_part2_xvid.avi ... 209612452                                
==> PASV ... done.    ==> RETR postcity_part2_xvid.avi ... done.              
Length: 209612452 (200M)                                                      

15% [========>                                                     ] 32,281,712  9.56M/s  eta 19s
 
User avatar
martini
Member Candidate
Member Candidate
Posts: 296
Joined: Tue Dec 21, 2004 12:13 am

Re: PCQ queue with profile list problem

Fri Apr 23, 2010 1:10 pm

show config of the router. And its slow speed only on pppoe clients ?
 
Silale
just joined
Topic Author
Posts: 13
Joined: Mon Jul 28, 2008 3:02 pm
Location: Riga, Latvia
Contact:

Re: PCQ queue with profile list problem

Fri Apr 23, 2010 2:11 pm

Retype first post :
On pppoe routers all fine, speed normally added for any client profile, but on routers with standart PCQ rules, without pppoe, problem with download speed, and interesting only one : why unix wget download with declared speed in profile ( in test profile have 95 Mb/s ) , but cli ftp client and windows clients download with speed 20-30Mb/s .
P.S. Before increasing queue limits in pcq profiles - wget downloaded with speed same with cli ftp client.
 
User avatar
martini
Member Candidate
Member Candidate
Posts: 296
Joined: Tue Dec 21, 2004 12:13 am

Re: PCQ queue with profile list problem

Fri Apr 23, 2010 2:56 pm

show config of the router
 
Silale
just joined
Topic Author
Posts: 13
Joined: Mon Jul 28, 2008 3:02 pm
Location: Riga, Latvia
Contact:

Re: PCQ queue with profile list problem

Fri Apr 23, 2010 5:28 pm

Mangle:
0   chain=forward action=mark-packet new-packet-mark=11,80 passthrough=no 
     src-address-list=Latvia dst-address-list=11,80 

1  chain=forward action=mark-packet new-packet-mark=11,80_UL passthrough=no 
     src-address-list=11,80 dst-address-list=Latvia 

2   chain=forward action=mark-packet new-packet-mark=G_DL passthrough=no 
     src-address-list=!Latvia dst-address-list=11,80 

3   chain=forward action=mark-packet new-packet-mark=G_UL passthrough=no 
     src-address-list=11,80 dst-address-list=!Latvia

Queues:
 0   name="Total_Download" parent=eth-loc limit-at=0 priority=1 max-limit=0 
     burst-limit=0 burst-threshold=0 burst-time=0s 

 1   name="Total_Upload" parent=eth-int limit-at=0 priority=1 max-limit=0 
     burst-limit=0 burst-threshold=0 burst-time=0s

 2   name="G_UL" parent=Total_Upload packet-mark=G_UL limit-at=0 queue=G_UL 
     priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s 

 3   name="G_DL" parent=Total_Download packet-mark=G_DL limit-at=0 queue=G_DL 
     priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

 4   name="11,80" parent=Total_Download packet-mark=11,80 limit-at=0 queue=11,80 DT 
     priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s 

 5   name="11,80_UL" parent=Total_Upload packet-mark=11,80_UL limit-at=0 
     queue=11,80_UL priority=5 max-limit=0 burst-limit=0 burst-threshold=0 
     burst-time=0s

 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8319
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: PCQ queue with profile list problem

Sat Apr 24, 2010 1:39 am

where are queue types? have you increased 'limit' value of pcq queues?
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
Silale
just joined
Topic Author
Posts: 13
Joined: Mon Jul 28, 2008 3:02 pm
Location: Riga, Latvia
Contact:

Re: PCQ queue with profile list problem

Sat Apr 24, 2010 11:28 am

 0 name="default" kind=pfifo pfifo-limit=5000 

 1 name="ethernet-default" kind=pfifo pfifo-limit=5000 

 2 name="wireless-default" kind=sfq sfq-perturb=5 sfq-allot=1514 

 3 name="synchronous-default" kind=red red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20 
   red-avg-packet=1000 

 4 name="hotspot-default" kind=sfq sfq-perturb=5 sfq-allot=1514 

 5 name="G_DL" kind=pcq pcq-rate=12000000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=5000 

 6 name="G_UL" kind=pcq pcq-rate=512000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=5000 

 7 name="11,80" kind=pcq pcq-rate=40000000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=5000 

 8 name="11,80_UL" kind=pcq pcq-rate=30000000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=5000

 9 name="default-small" kind=pfifo pfifo-limit=10
And - i tryed to download only 1 trough the router... Tested on Mikrotik versions : 3.* 4.*
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8319
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: PCQ queue with profile list problem

Sat Apr 24, 2010 6:28 pm

for high speeds, increase pcq-limit=50. ten times will be fine for the testing =)
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
Silale
just joined
Topic Author
Posts: 13
Joined: Mon Jul 28, 2008 3:02 pm
Location: Riga, Latvia
Contact:

Re: PCQ queue with profile list problem

Sun Apr 25, 2010 2:08 pm

increased to limit=500, total limit 8000 - same speed. tryed different settings, didn't help.
 
User avatar
martini
Member Candidate
Member Candidate
Posts: 296
Joined: Tue Dec 21, 2004 12:13 am

Re: PCQ queue with profile list problem

Sun Apr 25, 2010 9:49 pm

set mangle chain to prerouting when marking packet
 
Silale
just joined
Topic Author
Posts: 13
Joined: Mon Jul 28, 2008 3:02 pm
Location: Riga, Latvia
Contact:

Re: PCQ queue with profile list problem

Mon Apr 26, 2010 10:24 am

changed, did'n help, but strange one - upload trought router counting normally, and not always , tested on other test router...., but download - not.

P.S. Finally - created simple queues for users, and all work fine, becouse users in first place, but answers and optimisation with testing on second.
On the test router droped all settings, created only 4 marks and 4 queues, result same. This problem persist - only if in queue set address list, without lists - all fine, speed decrising if queues try to get data from lists, if no lists - all work like charm.

Who is online

Users browsing this forum: Google [Bot] and 103 guests