port prioritising for gamers

Hi

Alot of the guys on my network plays dota and uses ports 6112-6118. the problem i have is the ftp downloads sometimes uses all the bandwidth. is there a way to slow down the bandwith for ftp useres while there is gaming going on and resume the ftp downloads to full speed when the gaming is done?

Thanks

Here is what i done so far which appears to work. I added some marks and then used some queue trees.

MARK:

0 chain=prerouting action=mark-connection new-connection-mark=dota
passthrough=yes dst-port=6112-6118 protocol=tcp

1 chain=prerouting action=mark-packet new-packet-mark=dota passthrough=no
connection-mark=dota

2 chain=prerouting action=mark-connection new-connection-mark=http_conn
passthrough=yes dst-port=80 protocol=tcp

3 chain=prerouting action=mark-packet new-packet-mark=http passthrough=no
connection-mark=http_conn

4 chain=prerouting action=mark-connection new-connection-mark=Ftp
passthrough=yes dst-port=21 protocol=tcp

5 chain=prerouting action=mark-packet new-packet-mark=Ftp passthrough=no
connection-mark=Ftp

Then i added some queue tree and specified limit speeds and max speeds.

0 name=“dota” parent=global-total packet-mark=dota limit-at=512000
queue=default priority=1 max-limit=1000000 burst-limit=0
burst-threshold=0 burst-time=0s

1 name=“http” parent=global-total packet-mark=http limit-at=1000000
queue=default priority=5 max-limit=4000000 burst-limit=0
burst-threshold=0 burst-time=0s

2 name=“Ftp” parent=global-total packet-mark=Ftp limit-at=6000000
queue=default priority=8 max-limit=20000000 burst-limit=0
burst-threshold=0 burst-time=0s

Seems to be working.Any improvements welkom.

Thanks