I need some help with implementing "Throttle on Cap Usage" type feature for our ADSL project. Wondering if any one has implemented this using Freeradius and MySQL and if you could point me in the right direction. The BRAS we are using is Huawei MA5200F. Thanks in Advance ============================================ Alex Abraham
I need some help with implementing "Throttle on Cap Usage" type feature for
Could you elaborate a bit what this "Throttle on Cap Usage" is supposed to do? Greetings, Stefan Winter -- Stefan WINTER Stiftung RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche Ingenieur Forschung & Entwicklung 6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg E-Mail: stefan.winter@restena.lu Tel.: +352 424409-1 http://www.restena.lu Fax: +352 422473
I am trying to achieve the following simply, subscriber get a ADSL connection where they get 200Mb usage @ 512k/256k, and when they have exceeded 200Mb usage, the speed is throttled to 64/64k. Cheers Alex
-----Original Message----- From: freeradius-users- bounces+alex.abraham=samoatel.ws@lists.freeradius.org [mailto:freeradius- users-bounces+alex.abraham=samoatel.ws@lists.freeradius.org] On Behalf Of Stefan Winter Sent: Thursday, 29 June 2006 6:54 p.m. To: FreeRadius users mailing list Subject: Re: Throttle On Cap
I need some help with implementing "Throttle on Cap Usage" type feature for
Could you elaborate a bit what this "Throttle on Cap Usage" is supposed to do?
Greetings,
Stefan Winter
-- Stefan WINTER
Stiftung RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche Ingenieur Forschung & Entwicklung
6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg E-Mail: stefan.winter@restena.lu Tel.: +352 424409-1 http://www.restena.lu Fax: +352 422473
"Alex Abraham" <alex.abraham@samoatel.ws> wrote:
I am trying to achieve the following simply, subscriber get a ADSL connection where they get 200Mb usage @ 512k/256k, and when they have exceeded 200Mb usage, the speed is throttled to 64/64k.
Unless the NAS documentation explains how to do this, it's impossible. i.e. If the NAS supports Change of Authorization attributes, you could give them one service to start, and then monitor the accounting packets. Once they hit 200Mb, you would have to run a script on the server to send a CoA packet to the NAS, which *might* honor the request. Alan DeKok.
Hi Alan,
i.e. If the NAS supports Change of Authorization attributes, you could give them one service to start, and then monitor the accounting packets. Once they hit 200Mb, you would have to run a script on the server to send a CoA packet to the NAS, which *might* honor the request. I had some else tell me that this was the only way I could do this. General question what are the typical type of models used overseas with ADSL.
As a workaround, do you think I could have session time set to 1hr whereby the customer will need to log in then during the logging in process, check their usage which will indicate if they are usage is over and then change some attribute which controls the speed on the NAS. I don't know freeradius enough but where could I do invoke this in Freeradius. I also have these attributes specific to the vendor, could you advise me how I can incorporate this into Freeradius. Thanks in advance Alex
Hi,
I had some else tell me that this was the only way I could do this.
Great. So instead of taking the advice, you didn't want to believe it (or back it up with some reading) and instead bothered _more_ people with the same question. Thanks.
General question what are the typical type of models used overseas with ADSL.
What do you expect as an answer? "Overseas" has a completely different meaning depending on where your reader sits. I'm in Germany, so "overseas" is for example the US. If you ask me" what are the typical type of models used in the US with ADSL" then this question is indeed so very general that my answer can only be "lots of". I would even be so bold to say: given the size of the US, probably every single ADSL NAS product that is manufactured anywhere in the world can be found in the US. Now does that help you? No? Then please ask specific questions, preferably some that deal with FreeRADIUS, because that's what this list is about.
As a workaround, do you think I could have session time set to 1hr whereby the customer will need to log in then during the logging in process, check their usage which will indicate if they are usage is over and then change some attribute which controls the speed on the NAS.
Sure. If your NAS supports the "Session-Timeout" attribute, send it along with the Access-Accept and set it to 1 hour. Then, when a re-login occurs which is over quota, send the throttling attribute (however that is called in your NAS, check the documentation) with the appropriate value. But I doubt you want that. Kicking your customer out of the network every hour for no good reason is not very nice.
I don't know freeradius enough but where could I do invoke this in Freeradius.
Sending attributes with responses is a very basic thing to do. Read the documentation, and look into the "users" file for examples.
I also have these attributes specific to the vendor, could you advise me how I can incorporate this into Freeradius.
Write a dictionary file for them and add it to FreeRADIUS' dictionaries. And please send them to the list in that case as well so that they can be incorporated into the next release. Greetings, Stefan Winter -- Stefan WINTER Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche - Ingénieur de recherche 6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg
participants (3)
-
Alan DeKok -
Alex Abraham -
Stefan Winter