Prioritise http and ssh. Plus basic limiting

Hi all

I should really know to do this off the top of my head as it was covered in my exams, but ive not had a chance to play with it before and its become urgent whilst im away from the office.

I have a site with circa 30 users online, downloading no more than 6 gb per day. Users are limited to 1mb , but a few users are swamping the adsl upload degrading the service for everyone.

I want to allow no more than say 40k upload speed across all users, so the line doesnt get swamped, and also so new users can access the remote http login page. It also leaves me some guaranteed connectivity for inbound management ssh.

Next, i want to prioritise just http taffic ( short burst only) so http downloads dont get priority,

Does anyone have any code examples they can share until i have a chance to look into this?

Many thanks