I gave it a try, see http://forum.mikrotik.com/t/script-implementing-active-congestion-control/115302/1