| Accounting system is a very important component of network service. With high-speed development of cyber economy, have put forward higher and higher demand for accounting system. Generally, the accounting system of the network service can only charge for a kind of specific network service at present. The accounting systems of each network service can't be compatible with each other, that can't meet demand of cyber economy development more and more already. To the deficiency that the accounting system of the network service exists at present, this paper propose a kind of design philosophy of the general-purpose accounting system of network service that has nothing to do with network services, and can apply to various kinds of network services, and can charge for a lot of network services at the same time. Analysis of the course through charging of all kinds of charge network services, it find though their service forms and charge rules are different from each other, but they are based on such flow information as length or size of the flow of data ,etc. to charge basically. So only collect the flow information, and then according to the corresponding charging rule, can charge for all kinds of network services. Firstly, this paper have studied current situations of the development of all kinds of network accounting system and pluses and minuses of different charging technology at present, and then analyzed the demand of the general-purpose accounting system of network service carefully. According to the demand of the system, have absorbed technological advantages of other type network accounting systems and combined the concrete environment of Internet, provide the design plan of general-purpose accounting system of network service --accounting system based on socks5 agreement and data collect through proxy server. This kind of design plan has realized independence between the accounting system and concrete network service, and meets various kinds of demands for the accounting system of network service. To two key technology questions in the design plan: performance bottleneck of the charging gateway and intercepting of the client network data, this pare has carried on research carefully and provided the rational solution. Then this paper provide the architecture of this system according to the design plan, introduce this system each component and the interactions among those components. Finally, this paper carried on the detailed discussion of the concrete course of realizing includes several main parts as the charging client, the charging gateway and the part of database etc.. After this system is finished, make ideal result through trying out, have reached the designing requirement. Practice has proved the design philosophy of the general-purpose accounting system of network service is totally feasible, and has enormous practical value in cyber economy. |