Community discussions

MikroTik App
 
Max
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Jan 01, 2010 5:45 pm

Limit upload speed on a port.Am I doing it wrong?(pics adde)

Mon Aug 02, 2010 7:15 pm

I want to limit the upload speed on port 60000.
I've marked the packets, and added the queue, but things don't work as expected. The upload speed still has some burts, and at the same time, the download speed drops severely to bytes/s.

1,2,3-packet marking
4,5,6-adding the queue

Any idea of what am I doing wrong?
You do not have the required permissions to view the files attached to this post.
Last edited by Max on Mon Aug 02, 2010 7:32 pm, edited 1 time in total.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Mon Aug 02, 2010 7:17 pm

Instead of screenshots that don't show all the necessary information, can you post the output of "/ip firewall mangle export" and "/queue export"?
 
Max
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Jan 01, 2010 5:45 pm

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Mon Aug 02, 2010 7:18 pm

the rest of the attachments.
You do not have the required permissions to view the files attached to this post.
 
Max
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Jan 01, 2010 5:45 pm

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Mon Aug 02, 2010 7:23 pm

add action=mark-packet chain=prerouting comment="" disabled=no \
new-packet-mark=port60000 passthrough=yes protocol=tcp src-address=\
10.223.44.5 src-port=60000




add burst-limit=32k/0 burst-threshold=0/0 burst-time=1s/1s comment="" \
direction=both disabled=yes dst-address=0.0.0.0/0 interface=all limit-at=\
32k/0 max-limit=32k/0 name=limit-port60000 packet-marks=port60000 parent=\
none priority=8 queue=default-small/default-small target-addresses=\
10.223.44.5/32 total-queue=default-small
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Mon Aug 02, 2010 7:53 pm

Upload/download is from the point of view of the router. Upload is traffic TO the target (so, from the client's point of view, download) and download is traffic FROM the target (so, from the client's point of view, upload).

http://wiki.mikrotik.com/wiki/Manual:Qu ... ple_Queues
# direction (One of both, upload, download, none; default: both) : allow to enable one-directional limitation for simple queues (disable other direction)
* both - limit both download and upload traffic
* upload - limit only traffic to the target
* download - limit only traffic from the target
 
Max
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Jan 01, 2010 5:45 pm

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Mon Aug 02, 2010 8:47 pm

Thank you for the explanation.
However, there is also something else that I'm doing wrong, because after I added the limit to the download instead of upload, I get no input on the graphs, everything is on 0 bps.

I guessing that is has something to do with the chain that I've selected(prerouting). I read some explanations on the chains, but these things are a bit too complex for me, at least, at the moment.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Mon Aug 02, 2010 8:49 pm

The prerouting chain should be fine for your purpose. Are the byte and packet counters increasing on that mangle rule?

Please post the new queue that you configured.
 
Max
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Jan 01, 2010 5:45 pm

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Mon Aug 02, 2010 8:54 pm

add burst-limit=0/32k burst-threshold=0/0 burst-time=1s/1s comment="" \
direction=both disabled=no dst-address=0.0.0.0/0 interface=ether2 \
limit-at=0/32k max-limit=0/32k name=limit-port60000 packet-marks=\
port60000 parent=none priority=8 queue=default-small/default-small \
target-addresses=10.223.44.5/32 total-queue=default-small


yes, the packet counter is increasing on the selected mangle rule.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Mon Aug 02, 2010 8:58 pm

interface=ether2

Is that address actually behind ether2? Beyond that I don't know why it isn't working, sorry.
 
Max
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Jan 01, 2010 5:45 pm

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Mon Aug 02, 2010 9:02 pm

yes, it is behind ether2, but I've even changed it to "all" and still nothing shown on the graphs.
 
Max
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Jan 01, 2010 5:45 pm

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Mon Aug 02, 2010 11:47 pm

nobody knows why doesn't it work? :(
 
Max
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Jan 01, 2010 5:45 pm

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Mon Aug 09, 2010 10:40 pm

Maybe someone is willing to do a test and limit ApexDC++'s upload and then share the config with me.
I've tried many ideas and none of them worked right.
 
adrianatkins
Long time Member
Long time Member
Posts: 556
Joined: Wed Sep 05, 2007 10:34 am
Location: Spain
Contact:

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Tue Aug 10, 2010 12:16 am

Do you ever get the feeling that you're being ignored ?

What exactly is the port 60000 service ?
TCP, UDP or what ?
 
Max
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Jan 01, 2010 5:45 pm

Re: Limit upload speed on a port.Am I doing it wrong?(pics a

Tue Aug 10, 2010 8:17 am

It's TCP.

I'm trying to limit ApexDC's upload speed, but I believe that the same rules apply when trying to limit other applications.

Who is online

Users browsing this forum: No registered users and 36 guests