Sunday, October 21, 2018

Byte Accounting

Howdy

The topic of accounting RX and TX bytes intrigues me. I’ve been reading a few how to articles and it seems there is a varying opinion of whether or not to just rely upon iptables or something else.

Quick guide on accounting; http://www.catonmat.net/blog/traffic-accounting-with-iptables/

Claims it is dark ages; https://www.anchor.com.au/hosting/tools/IPTrafficAccounting

I’ve looked at various tools such as collectd and pmacct and they seem like they’d fit the bill.

Basically if I was an ISP without specialized hardware; just say a Linux box on premises for resell of bandwidth and I wanted to charge the local hotspot provider based upon local devices and TX and RX usage. Why wouldn’t I try to have a script that reads iptables at a fixed interval and reports that out (really want the delta to build the big picture, since I know counters can get reset). I know another option is just do the aggregate on the upstream device; but I want to be difficult ;)



No comments:

Post a Comment