Analysis of online billing system

zhaozj2021-02-08  257

Online billing system, Liu Xuejun 01-5-23 05:06:02

The network billing system can not only statistically network user costs, but also monitor network data traffic. The network billing system can reasonably adjust the route of the network, allocate network traffic, and greatly strengthen the management capability of the network and reasonably control the cost. Therefore, the billing system is an integral part of all kinds of enterprises.

The network billing system can be divided into two parts - data acquisition and data analysis processing. Its structure is shown below:

Two subsystems, data acquisition and data processing as a billing system have certain independence. Data acquisition is a billing basic information for billing systems, which determines the performance of the billing system; and data processing resolves how to provide these data to users. The data acquisition portion is usually run as a service process in the background, and the data processing section is interacting with the user.

The billing system is running on the operating system platform, such as WinNT, Win2000, Linux. Since Linux is an Open source operating system, it is conducive to the development of software, so more and more billing software is based on Linux. At the same time, the background of the billing system requires the support of the database, such as Access, SQL, ORACL. The management platform uses a popular web interface.

The billing system we usually have divided into two categories, and one is based on the IP address collection data, and one is based on the PPP / SLIP dial user acquisition data. The billing system based on the IP address is corresponding to the username and the IP address, in accordance with time to query and count traffic information of each IP address and user, according to the quotation rate standard, statistical billing. The billing system based on PPP / SLIP dialing users performs statistical charging by recording user online time.

IP address-based billing system

The billing system based on the IP address is not only available in the enterprise local area network access to the Internet, butcomes the basis for enterprise management and cost control, but also more and more smart buildings, community users.

1, data collection

Data acquisition uses Java language to run on most different types of system platforms. The Java language contains a package Java.net that supports network programming can take advantage of its support for TCP / IP protocol to implement data acquisition of network devices.

2, data processing

The IP information collected by the system should be used to convert by the database. Data processing can list the IP address of the website to the website, and you will start when you start, when you end and stay. Such system managers can know which websites have been browsed by network users, however, can be managed for actual conditions.

Let's take a look at a typical LAN application with the network structure as follows:

The data acquisition section of the billing system server communicates with the router through the SNMP protocol, monitors the router port, and uses the listening mode to acquire the length and source address information in the IP packet through the port through the TCP / IP protocol, and use this as an internal The network (the user's pre-set IP address range) Each IP address flows into the original information of the flow outflow. That is, you can learn how much is the local area network user corresponding to the IP address and how much it is. You can also set the policy setting, and the host is visited by the host network. After collecting data from the router port, the database server is handled, generates a user-managed chart or report, and calculates the cost of the LAN user using the Internet by user. In addition, there are also many company's local area networks to connect to the Internet via a proxy server. At this time, the acquisition of the data can be obtained by proxy server software such as Wingate's log file, and analyzes processing through the database.

PPP / SLIP billing system

For domestic personal users, most of them use dial-up to access the Internet, including PSTN (ordinary phones) and ISDN users. Dial-up users The telephone network is connected to the ISP with the ISP via the telephone network to implement access to the Internet.

1, data collection

For PPP / SLIP dialing users, the ISP is dynamically assigned by ISP, so it cannot be charged for PPP / SLIP users in a way to collect IP information. Moreover, the PPP / SLIP user may not log in to any server in the ISP network after dial, but directly accessed the remote server on the Internet. In this case, RFC 1492 gives an access control protocol specification TACACS, Terminal Access Controller Access Control System, which uses the username / password paired verification mechanism to confirm access to the telephone line. Software based on TACACS can be used to record the login time of the PPP / SLIP user. When the PPP user is dial, the system access server will issue a login request to the server with TACACS software. If the verification is correct, TACACS software will Record the user's login time, when the user exits, the access server will notify the TACACS server to record the user exit time. This allows a user to calculate the online time of the user to calculate the user's online time. The most popular authentication software currently in ISP uses the RADIUS protocol. 2, data processing

The data processing of the PPP / SLIP user is based on time. The data processing system allows managers to establish various databases according to the actual situation of the user, and provide billing formula management, user management. The manager can set different billing formulas in accordance with normal time periods, preferential time periods, VIP users, etc., and select the corresponding billing formula for different users and user groups in the User Management Information Library. Managers can log in to the database at any time to query and report output for user costs. Most ISPs also put the user cost information on the WWW server, which is convenient for dialing users to query.

Case

The working process of the ISP billing system in the new era Tiandi internet access service.

The system structure is shown in the figure:

The new era Tiandong's network access server is placed on the same server with Cisco devices, billing software, and authentication software, authenticated to use the RADIUS protocol, and the database server uses an ORACL database. Cisco can support PSTN / ISDN access at the same time.

When the user logs in the new era World Congwei website (www.chinatdt.net) When the server (AS) is connected to the server (AS), the AS will pass the user's login request to the billing authentication server (BS) authentication, and the BS will use the user's username / password with the user database. The user record in the server (DBS) verifies. If the verification is not passed, if the username password is incorrect, the user cost is not enough, then the user's access request is rejected and feeds back the corresponding information. If verified, the BS records the user's login time, and notifies the AS to establish the connection with the user. When the AS detects the information hung up, the BS, the BS records the user exit time, and according to the set The fee formula calculates the fee that the user has taken this visit, and then stores the information in the user database for inquiry. For ISDN users, the AS supports NO.7 signaling can detect the use of signaling sent out by the client to detect the connection to which the user requests established is a B channel or two B channels to perform corresponding processing. The billing system can be charged to seconds, which fully protects the interests of users. Users can also visit the new era Tiandong's website to query the costs of their own accounts. It can also be used for the user's use of the user.

转载请注明原文地址:https://www.9cbs.com/read-3296.html

New Post(0)