How to limit router bandwidth

bandwidththrottlingwireless-router

Is there a way to configure my (D-Link DIR-615) router to throttle down the allowed bandwidth after a certain amount of bandwidth has been used? For instance, I want my router to operate normally up to 20GB. After 20GB I want the router to limit bandwidth to a fraction of the normal speed (perhaps 1/5th).

I live in Canada, so in about a month, everyone is going to be billed based on the amount they used (usage based billing). Instead of the unlimited bandwidth that I am enjoying now, most people will be capped at 25GB and will have to fork out $2/GB of over usage.

Thank you in advance for the help.

Best Answer

Certain models of the DIR-615 family are DD-WRT (a 3rd party firmware) capable with some work.

Third party firmware gives you the flexibility required to implement enterprise-class features on your little $50 SOHO router such as the throttling you're after.

Since most custom firmware is just a compact modified build of Linux, tools like cron are there and can be used to schedule usage checking on an interface along with awk/sed/grep. Parsing the WAN interface's usage and throttling based on the data is only a script away, some firmware may have an even easier alternative built-in. Typically you will make use of the tc command in shell scripts to throttle interface speeds.

Related Question