how to create automatic simple queue when the client reaches humbral bw?

hi friends,
i need a script for create automatic simple queue when one or more ip local address reaches to the prestableced limit upload traffic.
regards !
Sebastian.