The article discusses the principle of network accounting system;tells the diffrence between Telnet based and SNMP based;gives the sourcecode of the network accounting system which includes:data collection, data dispose,account information search,rules ...