I need your help about a mangle rule.
I have a Server with mysql behide a mikrotik router. I want to give priority
to the mysql port (3306/tcp) over everything else for so mysql Server will always have best traffic from & to internet.
There’s nothing you can do to increase priority in DL direction … that’s up to your ISP to arrange. You can, though, increase priority in UL. For that, wan1 will be out-interface.
Thx for your replay. Because mikrotik gives internet to other devices also except of the Server
I want when I connect to mysql from outside to have priority to traffic if my bandwidth is full because
some clients e.g. download something. Same for upload when the Server needs to answer to an external
client.
From my experience, that’s is not entirely true. Since most of the traffic on net is tcp based, one can limit the throughput of data coming from ISP and making sure QoS is ensured. To limit tcp connections, it suffices to drop when necessary some packets, which will result in:
retransmission
reduction of transmission speed (reduction of window) by sender
This can be achieved by attaching a queue to interface connected to lan. The approach is further similar to upload side.