I want to get total traffic used by every PPPoE session (active user) before their PPPoE session will disconnect (by their side). Is there some event for scripts or something that will help?
This is needed for our billing system to count users traffic.
We’re using RADIUS for users authentication which integrated with billing. Maybe there is some RADIUS property, supported by RouterOS, that will work for me?
NetFlow will not help - it generates traffic with very small packets (headers of all ip packets) and will slow down our network and billing server.
Accounting will not work with many users and connections active.
All I need is simply get PPPoE session (by username) RX total and TX total, before session disconnection (while data is still present).
Question is HOW?
Thanks! Somehow you hinted me to the right direction. (no sarcasm)
I’ve found that the RADIUS-server accounting provides exact functional I want.
Acct-Input-Octets and Acct-Output-Octets is TX/RX bytes which gets only on session stop and stores into DB. Now I can use script to collect traffic data from DB and pass it to an external billing.
Sorry, I’ve dropped this idea because I can’t pass collected traffic to the Traffic Inspector billing system due to API limitation and bad support for the product. So thats why script isn’t ready and I can’t help you.