Public network cost accounting method and device based on IP address, and electronic equipment

By automatically obtaining the network segment and bandwidth information of the public network, and calculating the cost of the public network with the paid standard device, the problem of low cost calculation efficiency in the existing technology is solved, and fast and accurate cost accounting and resource scheduling are achieved.

CN120281593APending Publication Date: 2025-07-08INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510435120.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-08
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

In the prior art, the cost calculation efficiency of public network IP addresses is low and the accuracy is low, making it difficult to achieve accurate cost data, resulting in difficult resource scheduling.

Method used

By obtaining the network segment information and bandwidth information of the public network, calling the payment standard device, automatically calculate the total network segment price and IP address unit price of the public network during the validity period of the protocol, and generate cost accounting results.

Benefits of technology

It realizes fast and accurate accounting of public network costs, improves cost calculation efficiency, and helps the service user side effectively schedule resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120281593A_ABST
    Figure CN120281593A_ABST
Patent Text Reader

Abstract

The invention discloses a public network cost accounting method and device based on an IP address and electronic equipment, and relates to the field of financial science and technology or other related technical fields, and the method comprises the steps: obtaining network segment information and bandwidth information corresponding to a purchased public network; calling a payment standard device, querying the payment standard device through the network segment information and the bandwidth information, and accounting the total network segment price of the purchased public network within the period of validity of the protocol based on a query result; obtaining a full amount of in-use public network IP addresses, matching the belonging network segment with each in-use public network IP address, and calculating the IP address unit price of the in-use public network IP address in the protocol validity period based on the network segment total price of the belonging network segment in the protocol validity period; and generating a cost accounting result of the public network based on the total price of the network segments and the IP address unit price in the period of validity of the protocol. According to the method and the device, the technical problem of relatively low efficiency of a mode of manually estimating the network cost of the public network in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of fintech or other related technical fields. Specifically, it relates to a method and device for calculating the cost of a public network based on an IP address, and an electronic device. Background Art

[0002] In the context of the highly developed current Internet, enterprises, organizations, and even individual users are increasingly dependent on public IP addresses. As the only identifier for connecting to the Internet, public IP addresses are crucial for realizing the interconnection and interoperability of internal and external networks. However, the scarcity of public IP addresses and the complexity of their management make the reasonable allocation and cost control of public IP address resources an important issue in network operation and management.

[0003] In the related art, service users often make manual estimates and calculations based on the billing standards given by service providers. As a result, only the total network cost can be roughly calculated, and it is difficult to obtain accurate cost data. There are problems of low cost calculation efficiency and low accuracy, resulting in difficulty for operators to effectively schedule IP address resources.

[0004] In response to the above problems, no effective solution has been proposed yet. Summary of the Invention

[0005] Embodiments of the present invention provide a method and device for calculating the cost of a public network based on an IP address, and an electronic device, so as to at least solve the technical problem of low efficiency in the related art of manually estimating the cost of a public network.

[0006] According to one aspect of the embodiments of the present invention, a method for calculating the cost of a public network based on an IP address, which is applied to a service usage end, includes: obtaining the network segment information and bandwidth information corresponding to the purchased public network; calling a payment standard device, querying the payment standard device through the network segment information and the bandwidth information, and calculating the total network segment price of the purchased public network within the protocol validity period based on the query result; obtaining all the in-use public IP addresses, matching the network segment to which each in-use public IP address belongs, and calculating the unit price of the in-use public IP address within the protocol validity period based on the total network segment price of the network segment to which it belongs within the protocol validity period; generating a cost calculation result of the public network based on the total network segment price and the unit price of the IP address within the protocol validity period.

[0007] Further, the steps of querying the payment standard device through the network segment information and the bandwidth information and calculating the total price of the purchased public network segment within the validity period of the agreement include: querying the payment standard device through the bandwidth information to obtain the bandwidth pricing standard of the purchased public network; querying the payment standard device through the network segment information to determine the public network segment price of the purchased public network and the validity period of the agreement; calculating the bandwidth price of the purchased public network within the validity period of the agreement based on the bandwidth pricing standard and the bandwidth used by the purchased public network; calculating the total price of the purchased public network segment within the validity period of the agreement based on the bandwidth price and the public network segment price.

[0008] Further, the steps of calculating the bandwidth price of the purchased public network within the validity period of the agreement based on the bandwidth pricing standard and the bandwidth used by the purchased public network include: identifying the billing cycle and billing unit price defined in the bandwidth pricing standard; counting the actual used bandwidth of the purchased public network within the validity period of the agreement, where the actual used bandwidth includes peak bandwidth and average bandwidth; calculating the product of the actual used bandwidth and the billing unit price to obtain the bandwidth price of the purchased public network within a single billing cycle; multiplying the bandwidth price within a single billing cycle by the number of cycles within the validity period of the agreement to obtain the bandwidth price of the purchased public network within the entire validity period of the agreement.

[0009] Further, the steps of calculating the IP address unit price of the in-use public IP address within the validity period of the agreement based on the total price of the network segment within the validity period of the agreement to which it belongs include: counting the total number of IP addresses within the network segment to which the in-use public IP address belongs; calculating the IP address unit price of the in-use public IP address within the validity period of the agreement based on the total price of the network segment within the validity period of the agreement to which it belongs and the total number of in-use public IP addresses within the network segment.

[0010] Further, before obtaining the network segment information and bandwidth information corresponding to the purchased public network, it further includes: collecting the payment agreements signed with different service providers and the validity periods of the payment agreements, where at least the following are included in the payment agreements: the network segment information of the purchased public network, the bandwidth information of the purchased public network; entering the payment agreements and the validity periods into the payment standard device.

[0011] Further, after obtaining the cost accounting result of the public network based on the total price of the network segment and the unit price of the IP address within the validity period of the agreement, the method further includes: integrating the public IP addresses provided by the same service provider, and calculating the total IP address price of the public IP addresses provided by the same service provider; taking time as the horizontal coordinate and price as the vertical coordinate, and drawing a curve graph based on the total IP address price of each service provider to obtain a cost comparison graph of the public networks provided by different service providers.

[0012] Further, after obtaining the cost accounting result of the public network based on the total price of the network segment and the unit price of the IP address within the validity period of the agreement, the method further includes: counting the total number of in-use public IP addresses corresponding to each service provider in different regions; taking the region and the service provider as the horizontal coordinates and the total number of in-use public IP addresses of a single service provider in a single region as the vertical coordinate, and drawing a bar graph to obtain a usage distribution graph of the public IP addresses of different service providers in different regions.

[0013] According to another aspect of the embodiments of the present invention, there is also provided a public network cost accounting device based on IP addresses, which is applied to the service usage end and includes: an acquisition unit, configured to acquire the network segment information and bandwidth information corresponding to the purchased public network; an accounting unit, configured to call a payment standard device, query the payment standard device through the network segment information and the bandwidth information, and calculate the total price of the network segment of the purchased public network within the validity period of the agreement based on the query result; a calculation unit, configured to acquire all in-use public IP addresses, match the network segment to which each in-use public IP address belongs, and calculate the unit price of the in-use public IP address within the validity period of the agreement based on the total price of the network segment of the network segment to which it belongs within the validity period of the agreement; a generation unit, configured to generate a cost accounting result of the public network based on the total price of the network segment and the unit price of the IP address within the validity period of the agreement.

[0014] Further, the accounting unit includes: a first acquisition module, configured to query the payment standard device through the bandwidth information to acquire the bandwidth pricing standard of the purchased public network; a first determination unit, configured to query the payment standard device through the network segment information to determine the public network segment price of the purchased public network and the validity period of the agreement; a first calculation unit, configured to calculate the bandwidth price of the purchased public network within the validity period of the agreement based on the bandwidth pricing standard and the bandwidth used by the purchased public network; a second calculation unit, configured to calculate the total price of the network segment of the purchased public network within the validity period of the agreement based on the bandwidth price and the public network segment price.

[0015] Further, the first calculation module includes: a first recognition sub-module, configured to recognize the charging period and charging unit price defined in the bandwidth pricing standard; a first statistics sub-module, configured to count the actually used bandwidth of the purchased public network during the validity period of the agreement, where the actually used bandwidth includes peak bandwidth and average bandwidth; a first calculation sub-module, configured to calculate the product of the actually used bandwidth and the charging unit price to obtain the bandwidth price of the purchased public network within a single charging period; and a second calculation sub-module, configured to multiply the bandwidth price within a single charging period by the number of periods during the validity period of the agreement to obtain the bandwidth price of the purchased public network during the entire validity period of the agreement.

[0016] Further, the calculation unit includes: a first statistics module, configured to count the total number of IP addresses in the network segment to which the in-use public IP address belongs; and a third calculation unit, configured to calculate the IP address unit price of the in-use public IP address during the validity period of the agreement based on the total price of the network segment during the validity period of the agreement and the total number of in-use public IP addresses in the network segment.

[0017] Further, the public network cost accounting device based on IP addresses further includes: a first acquisition module, configured to acquire the payment agreements signed with different service providers and the validity periods of the payment agreements, where at least the following information is included in the payment agreements: network segment information of the purchased public network and bandwidth information of the purchased public network; and a first input module, configured to input the payment agreements and the validity periods into the payment standard device.

[0018] Further, the public network cost accounting device based on IP addresses further includes: a fourth calculation module, configured to integrate the public IP addresses provided by the same service provider and calculate the total IP address price of the public IP addresses provided by the same service provider; and a first plotting module, configured to plot a curve graph with time as the abscissa and price as the ordinate based on the total IP address price of each service provider to obtain a cost comparison graph of the public networks provided by different service providers.

[0019] Further, the public network cost accounting device based on IP addresses further includes: a second statistics module, configured to count the total number of in-use public IP addresses corresponding to each service provider in different regions; and a second plotting module, configured to plot a bar graph with region and service provider as the abscissa and the total number of in-use public IP addresses of a single service provider in a single region as the ordinate to obtain a usage distribution graph of the public IP addresses of different service providers in different regions.

[0020] According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, which includes a stored computer program. When the computer program runs, it controls the device where the computer-readable storage medium is located to execute any one of the above-mentioned public network cost accounting methods based on IP addresses.

[0021] According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including one or more processors and a memory. The memory is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement any one of the above-mentioned public network cost accounting methods based on IP addresses.

[0022] In this application, through the following steps: obtaining the network segment information and bandwidth information corresponding to the purchased public network, and calling the payment standard device, querying the payment standard device through the network segment information and bandwidth information, and calculating the total network segment price of the purchased public network within the protocol validity period based on the query result. Then, obtaining all the public network IP addresses in use, matching the network segment to which each public network IP address in use belongs, calculating the unit price of the public network IP address in use within the protocol validity period based on the total network segment price of the network segment to which it belongs within the protocol validity period, and finally generating the cost accounting result of the public network based on the total network segment price and the unit price of the IP address within the protocol validity period.

[0023] In this application, the system automatically obtains the network segment information and bandwidth information of the purchased public network, queries the payment standard by calling the payment standard device, calculates the total network segment price of the public network within the protocol validity period, obtains all the public network IP addresses in use, calculates the unit price of each public network IP address in use based on the total network segment price and the public network IP addresses in use, thereby realizing the automatic accounting of the cost of public network IP addresses, achieving the purpose of quickly and accurately calculating the cost of the public network, and solving the technical problem of improving the efficiency of public network cost accounting. Furthermore, it solves the technical problem of low efficiency in the related art by manually estimating the cost of the public network. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present invention, form a part of this application, and the illustrative embodiments and descriptions of the present invention are used to explain the present invention, and do not constitute an improper limitation to the present invention. In the drawings:

[0025] Figure 1 It shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a public network cost accounting method based on IP addresses;

[0026] Figure 2It is a flowchart of an optional public network cost accounting method based on IP address according to an embodiment of the present invention;

[0027] Figure 3 It is a schematic diagram of an optional public network cost accounting system based on IP address according to an embodiment of the present invention;

[0028] Figure 4 It is a schematic diagram of an optional public network cost accounting process based on IP address according to an embodiment of the present invention;

[0029] Figure 5 It is a schematic diagram of an optional public network cost accounting device based on IP address according to an embodiment of the present invention;

[0030] Figure 6 It is a hardware structure block diagram of an electronic device (or mobile device) that executes an optional public network cost accounting method based on IP address according to an embodiment of the present invention. Detailed implementation manners

[0031] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0033] It should be noted that the method and device for calculating the public network cost based on the IP address in the present application can be used in the field of fintech when calculating the cost of the public network based on the IP address, and can also be used in any field other than the fintech field when calculating the cost of the public network based on the IP address. The application field of the method and device for calculating the public network cost based on the IP address in the present application is not limited.

[0034] It should be noted that the information collected (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in the present application are information and data authorized by the user or fully authorized by all parties. And the processing of the relevant data, such as collection, storage, use, processing, transmission, provision, disclosure, and application, all comply with relevant laws, regulations, and standards, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse. For example, an interface is set between the present system and relevant users or institutions to provide corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.

[0035] The following embodiments of the present invention can be applied to various public network cost accounting systems / applications / devices. The present invention can calculate the total price of the network segment by automatically obtaining the network segment information and bandwidth information, and calculate the unit price of the public network IP address according to the relationship between the full amount of public network IP addresses in use and the network segment, thereby calculating the cost of the public network, improving the efficiency of network cost accounting, and displaying the cost according to the calculation result, so that the service user side can intuitively master data such as the payment situation of public network IP addresses and the IP usage rate at the regional level, and can assist service users in effectively scheduling and allocating resources.

[0036] The present invention will be described in detail below in conjunction with each embodiment.

[0037] Embodiment 1

[0038] According to an embodiment of the present invention, an embodiment of a method for calculating the cost of a public network based on an IP address is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0039] The method embodiment provided in the first embodiment of the present application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for calculating the cost of a public network based on an IP address is shown. As Figure 1As shown, the computer terminal 10 (or mobile device) may include one or more processors 102 (shown as 102a, 102b, ……, 102n in the figure) (the processor 102 may include, but is not limited to, processing devices such as a microprocessor MCU or a field programmable gate array FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may further include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply, and / or a camera. Those of ordinary skill in the art can understand that Figure 1 The structure shown is only schematic and does not limit the structure of the above-mentioned electronic device. For example, the computer terminal 10 may further include more or fewer components than Figure 1 shown in, or have a different configuration from Figure 1 shown.

[0040] It should be noted that the above one or more processors 102 and / or other data processing circuits are generally referred to as "data processing circuits" herein. The data processing circuit may be embodied in software, hardware, firmware, or any combination thereof, in whole or in part. In addition, the data processing circuit may be a single independent processing module, or be incorporated in whole or in part into any one of the other elements in the computer terminal 10 (or mobile device). As involved in the embodiments of the present application, the data processing circuit is a kind of processor control (such as the selection of a variable resistor terminal path connected to an interface).

[0041] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the public network cost accounting method based on the IP address in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implements the above-mentioned public network cost accounting method based on the IP address. The memory 104 may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely set relative to the processor 102, and these remote memories can be connected to the computer terminal 10 through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0042] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0043] The display can be, for example, a touch-screen liquid crystal display (LCD), which enables the user to interact with the user interface of the computer terminal 10 (or mobile device).

[0044] Under the above operating environment, the present application provides a public network cost accounting method based on IP addresses as Figure 2 shown. The implementation subject of this method is a public network cost accounting system based on IP addresses, which is applied to the service usage side. The service usage side corresponds to the service provider side and refers to the party that purchases public IP addresses from the service provider side.

[0045] Figure 2 is a flowchart of an optional public network cost accounting method based on IP addresses according to an embodiment of the present invention, as Figure 2 shown. The method includes the following steps:

[0046] Step S201, obtain the network segment information and bandwidth information corresponding to the purchased public network.

[0047] In the above step S201, the public network is a network infrastructure that is open to the public in the Internet or wide area network and can be accessed globally. It is jointly constructed and maintained by many network service providers and realizes data exchange and communication globally through various technologies and protocols. The public network resources are rich, providing a large number of IP addresses, bandwidths and other network resources. Any individual, enterprise or organization can access the public network through the services purchased from network service providers. The service usage side is the terminal where the object of purchasing network services is located. When the service usage side purchases public network services from the service provider, the service provider will issue public IP addresses to the service usage side according to user needs and sign a payment agreement. The service usage side records the purchased public network and enters the payment agreement. The payment agreement records the network segment information and bandwidth information of the purchased public network segment, which is the basis for calculating the public network cost. The network segment information refers to the range of public IP addresses purchased by the user side from the network service provider, and the bandwidth information reflects the transmission capacity of the public network connection.

[0048] It should be noted that when the service user purchases and uses the public network service, certain usage costs will be incurred, which may specifically include: IP address rental fee. Due to the scarcity of IP address resources, enterprises or individuals need to rent public IP addresses from service providers, resulting in certain rental fees. Bandwidth fee. The bandwidth of the public network is the data transmission capacity, which determines the communication speed and capacity of the network. Service providers usually charge fees according to the bandwidth used by enterprises or individuals, including fixed bandwidth fees and traffic fees for the excess part. For enterprises, in the case of high load and high traffic requirements, the bandwidth fee may become the main part of the public network cost. Service fee: In addition to the basic network access and usage fees, enterprises may also need to pay additional service fees, such as network security services, load balancing services, etc. These services help optimize the performance and security of the public network.

[0049] Further, before obtaining the network segment information and bandwidth information corresponding to the purchased public network, it also includes: collecting the payment agreements signed with different service providers and the validity periods of the payment agreements, where the payment agreements at least include: the network segment information of the purchased public network, the bandwidth information of the purchased public network; and entering the payment agreements and the validity periods into the payment standard device.

[0050] In some embodiments, the network segment information and bandwidth information are obtained through the payment agreements. When the service user calculates the cost of the public network, it is first necessary to collect the payment agreements signed with different service providers and the validity periods of the agreements. These payment agreements should at least include the network segment information and bandwidth information of the purchased public network, as well as the charging standards for different network segments and different transmission bandwidths. And enter the payment agreements and the validity periods into the payment standard device. Subsequently, when performing real-time cost calculation, the payment standard device can be directly called to calculate the cost of the public network. The purpose of this step is to ensure that the subsequent cost calculation is based on accurate payment standards. By entering the payment agreements and their validity periods into the payment standard device, this method establishes a complete payment framework and provides an important data basis for the subsequent steps.

[0051] Alternatively, the payment standard device contains all the signed payment agreements and their validity periods. The payment agreement is a long-term cooperation agreement reached between the service user and the public network service provider, which details the charging rules and price terms for purchasing and using public IP addresses.

[0052] Step S202, call the payment standard device, query the payment standard device through the network segment information and bandwidth information, and calculate the total price of the network segment of the purchased public network within the validity period of the agreement based on the query result.

[0053] In the above step S202, after determining the network segment information and bandwidth information of the purchased public network, the service user end calls the payment standard device. Using the obtained bandwidth information, the service user end queries in the payment standard device to determine the bandwidth pricing standard, that is, the unit price charged by the service provider for different bandwidths. The bandwidth pricing standard may vary according to various factors such as agreements, regions, and time.

[0054] Furthermore, the service user end queries the price information of the public IP network segment and the validity period of the agreement according to the network segment information. The price information of the public IP network segment refers to the amount charged by the service provider for a specific network segment, and the validity period of the agreement refers to the effective time range of the payment agreement. These two pieces of data are crucial for cost accounting and directly determine the actual cost of the public network within the validity period of the agreement.

[0055] Further, the steps of querying the payment standard device through the network segment information and bandwidth information and calculating the total network segment price of the purchased public network within the validity period of the agreement include: querying the payment standard device through the bandwidth information to obtain the bandwidth pricing standard of the purchased public network; querying the payment standard device through the network segment information to determine the public network segment price and the validity period of the agreement of the purchased public network; calculating the bandwidth price of the purchased public network within the validity period of the agreement based on the bandwidth pricing standard and the bandwidth used by the purchased public network; calculating the total network segment price of the purchased public network within the validity period of the agreement based on the bandwidth price and the public network segment price.

[0056] Specifically, to achieve accurate and automated cost accounting, the service user end calls the query interface of the payment standard device and inputs the bandwidth information of the purchased public network to obtain the bandwidth pricing standard of the public network during the agreement period. The bandwidth pricing standard refers to the charging rules of the public network service provider for public IP addresses according to different bandwidth settings. At the same time, the service user end continues to call the payment standard device and queries through the network segment information to obtain the public network segment price and the specific validity period of the agreement of the purchased public network. The public network segment price refers to the charge of the service provider for a specific IP address range, and the validity period of the agreement defines the time range of cost accounting.

[0057] Furthermore, according to the bandwidth pricing standard and the actual bandwidth usage during the validity period of the agreement, the bandwidth usage cost can be calculated, that is, the bandwidth price of the purchased public network within the validity period of the agreement. The calculation of the bandwidth price fully considers the actual network usage situation, ensuring the accuracy of cost accounting. Finally, the bandwidth price calculated in the previous step is integrated with the above-determined public network segment price to calculate the total network segment price of the purchased public network within the validity period of the agreement. The total network segment price is the total expense of the service user end for the public network during the agreement period, including the network segment purchase cost and the bandwidth usage cost.

[0058] In the embodiment of the present invention, through an automated, dynamic, and precise data query and processing mechanism, the efficiency and accuracy of public network cost accounting are significantly improved.

[0059] Further, the steps of calculating the bandwidth price of the purchased public network within the validity period of the agreement based on the bandwidth pricing standard and the bandwidth used by the purchased public network include: identifying the billing cycle and billing unit price defined in the bandwidth pricing standard; counting the actual used bandwidth of the purchased public network within the validity period of the agreement, where the actual used bandwidth includes peak bandwidth and average bandwidth; calculating the product of the actual used bandwidth and the billing unit price to obtain the bandwidth price of the purchased public network within a single billing cycle; multiplying the bandwidth price within a single billing cycle by the number of cycles within the validity period of the agreement to obtain the bandwidth price of the purchased public network throughout the validity period of the agreement.

[0060] Specifically, when calculating the bandwidth price, it is necessary to calculate in combination with the actual usage of the bandwidth. The service user end calls the interface of the payment standard device to read the bandwidth pricing standard information. The bandwidth pricing standard usually includes the billing cycle (for example, billing by month, quarter, or year) and the billing unit price within different cycles. Identifying this information is the premise for calculating the bandwidth price to ensure that the cost accounting is based on the correct billing rules. Then, the service user end statistically calculates the actual used bandwidth of the public network within the validity period of the agreement through methods such as network monitoring systems or log data collection. The actual used bandwidth includes peak bandwidth (the highest bandwidth usage at a certain point in time or within a cycle) and average bandwidth (the average bandwidth usage within a certain time range). These data reflect the actual demand and usage of the public network and are crucial for cost accounting. Further, perform a multiplication operation based on the actual used bandwidth and the billing unit price to obtain the bandwidth price of the public network within each billing cycle. Finally, multiply the bandwidth price within a single cycle by the number of cycles within the validity period of the agreement to obtain the total bandwidth price throughout the validity period of the agreement.

[0061] In the embodiment of the present invention, calculating the bandwidth usage cost according to the actual bandwidth usage of the purchased public network provides dynamic and real-time traffic data for cost accounting, which helps the service user end adjust the bandwidth configuration according to the actual demand and optimize the cost.

[0062] Step S203: Obtain all the in-use public IP addresses, match the network segment to which each in-use public IP address belongs, and calculate the IP address unit price of the in-use public IP address within the validity period of the agreement based on the total price of the network segment within the validity period of the agreement.

[0063] In the above step S203, in addition to calculating the network segment summary, it is also necessary to calculate the usage cost of the public IP addresses in use to achieve more refined cost accounting. The service user end calls the interface of the network monitoring system or relevant network management tools to collect all the public IP addresses in use, that is, all the public IP addresses that are currently being used, and calculates the unit price of the public IP address in use based on the relationship between the public IP address in use and the network segment.

[0064] Further, the steps for calculating the unit price of the public IP address in use based on the total price of the network segment within the validity period of the agreement include: counting the total number of IP addresses in the network segment to which the public IP address in use belongs; calculating the unit price of the public IP address in use within the validity period of the agreement based on the total price of the network segment within the validity period of the agreement and the total number of public IP addresses in use in the network segment.

[0065] Specifically, when calculating the unit price of a single public IP address in use, it is first necessary to determine the network segment to which the public IP address in use belongs, and count the total number of IP addresses in the network segment to which the public IP address in use belongs. Then, calculate the unit price of a single public IP address in use within the validity period of the agreement based on the total price of the network segment and the total number of public IP addresses in use in the network segment.

[0066] Step S204, generate the cost accounting result of the public network based on the total price of the network segment and the unit price of the IP address within the validity period of the agreement.

[0067] In the above step S204, integrate the total price of the network segment and the unit price of the IP address calculated in the above steps to obtain the cost accounting result of the public network. The total price of the network segment determines the total cost of the public IP resources within a certain period of time, which helps the service user end to have a clear understanding of the overall expenditure of the public network, facilitating budget planning and cost control. The unit price of the IP address breaks down the total cost to each public IP address, making the cost accounting more accurate, helping to identify high-cost resource usage scenarios, and promoting the optimal allocation and conservation of resources. A series of reports can be generated based on the cost accounting result of the public network, which helps the service user end to effectively schedule and allocate resources.

[0068] Further, after obtaining the cost accounting result of the public network based on the total price of the network segment and the unit price of the IP address within the validity period of the agreement, it also includes: integrating the public IP addresses provided by the same service provider, and calculating the total price of the IP addresses provided by the same service provider; taking time as the abscissa and price as the ordinate, and drawing a curve graph based on the total price of the IP addresses of each service provider to obtain the cost comparison graph of the public networks provided by different service providers.

[0069] In some embodiments, after obtaining the cost accounting result of the public network based on the total price of the network segment and the unit price of the IP address within the validity period of the agreement, the public network cost can be displayed in the form of a chart, specifically including: aggregating the costs of all public IP addresses under the same service provider to facilitate cost comparison and management at the service provider level. First, the service usage end filters out all in-use public IP address information belonging to the same service provider. Group the public IP addresses according to the service provider field. Then, aggregate and calculate the filtered IP address unit prices to obtain the total price of the public IP addresses of the same service provider. Finally, based on the calculated total price of the IP addresses of each service provider, with time as the abscissa and price as the ordinate, draw the public network cost curve of each service provider. The curves of each service provider are identified with different colors for easy distinction. In addition, the overall curve chart supports filtering by time period, enabling the service usage end to focus on the cost analysis for specific years, quarters, or months. Through this chart, the service usage end can clearly see the changing trends and cost distributions of the public network costs of different service providers.

[0070] Furthermore, after obtaining the cost accounting result of the public network based on the total price of the network segment and the unit price of the IP address within the validity period of the agreement, it also includes: counting the total number of in-use public IP addresses corresponding to each service provider in different regions; taking the region and the service provider as the abscissa and the total number of in-use public IP addresses of a single service provider in a single region as the ordinate, draw a bar chart to obtain the usage distribution map of the public IP addresses of different service providers in different regions.

[0071] In some embodiments, to understand the usage of the public IP addresses allocated by each service provider in different regions and provide a basis for resource scheduling and cost optimization, a usage distribution map can also be drawn based on the cost accounting result of the public network. Specifically, filter out all in-use public IP addresses in different regions and classify and count them according to the service provider field. The system will return the usage quantities of the public IP addresses of each region and each service provider. Then, taking the region and the service provider as the abscissa and the total number of in-use public IP addresses of a single service provider in a single region as the ordinate, generate a bar chart. In the chart, each bar represents the usage quantity of the public IP addresses of a service provider in a region, and the height of the bar reflects the scale of the public IP usage of the service provider in that region. The chart also supports filtering by region and service provider, facilitating the service usage end to focus on the public IP usage of a specific region or service provider.

[0072] Based on the cost accounting results of the public network obtained through calculation, various statistical charts are drawn according to the statistical mechanism and image drawing rules to clearly show the cost and usage of the public network, that is, the IP address, to the service usage end. The service usage end can make more scientific and reasonable decisions on the allocation of public IP resources based on the chart information, such as increasing investment in areas with resource shortages or optimizing the selection of service providers to maximize cost-effectiveness.

[0073] Through the above steps, obtain the network segment information and bandwidth information corresponding to the purchased public network, call the payment standard device, query the payment standard device through the network segment information and bandwidth information, and calculate the total network segment price of the purchased public network within the protocol validity period based on the query result. Then obtain all the public IP addresses in use, match the network segment to which each public IP address in use belongs, calculate the unit price of the public IP address in use within the protocol validity period based on the total network segment price of the network segment to which it belongs within the protocol validity period, and finally generate the cost accounting result of the public network based on the total network segment price and the unit price of the public IP address within the protocol validity period.

[0074] In this embodiment, the system automatically obtains the network segment information and bandwidth information of the purchased public network, queries the payment standard by calling the payment standard device, calculates the total network segment price of the public network within the protocol validity period, and obtains all the public IP addresses in use. Calculate the unit price of each public IP address in use based on the total network segment price and the public IP addresses in use, thereby realizing the automatic accounting of the cost of public IP addresses, achieving the purpose of quickly and accurately calculating the cost of the public network, and solving the technical problem of improving the efficiency of the cost accounting of the public network. Furthermore, it solves the technical problem of low efficiency in the way of manually estimating the cost of the public network in the related technology.

[0075] The following is a detailed description in combination with another optional specific implementation manner.

[0076] Figure 3 It is a schematic diagram of an optional public network cost accounting system based on IP addresses according to an embodiment of the present invention, as Figure 3 shown. The public network cost accounting system based on IP addresses includes: a statistical analysis device, a public IP network segment maintenance device, a public IP details maintenance device, and a payment standard device. Specifically,

[0077] A statistical analysis device is used to summarize the purchase situation, usage situation of public network IP addresses, and price comparison in previous years. It is presented respectively through a price comparison curve graph of previous years of service providers (corresponding to the cost comparison graph of public networks provided by the above different service providers), a bar graph of public IP distribution in different regions (corresponding to the above usage distribution graph), and a pie chart of public IP usage in applications. The abscissa of the price curve graph is time, and the ordinate is cost. Different colored curves represent different service providers. The whole curve graph supports filtering by time period; for the bar graph of public IP distribution, the abscissa is regions and service providers, and the ordinate is the number of IPs. Each bar supports showing the purchased quantity and the used quantity. The whole bar graph supports filtering by region and service provider; the pie chart of public IP shows the situation of different service providers' public IP addresses used in applications.

[0078] A public network IP network segment maintenance device is used to record the purchased network segments, service providers, charging standards, and paid prices. The public network IP traffic is transmitted through dedicated lines, and this device connects the network segment and dedicated line information. The network segment corresponding to the dedicated line data is obtained by calling the API interface, and at the same time, operations such as addition, deletion, modification, and query are supported. According to the user usage situation, the relevant data supports filtering and querying by region and service provider.

[0079] A public network IP detailed information maintenance device. The public network IP address information includes IP address, affiliated network area, address type, maintenance agency, service provider, unit price, associated application. The relevant data is obtained by calling the interfaces of other systems and supports operations such as addition, deletion, modification, and query. According to the daily usage situation of users, the device supports filtering and querying by address type, deployment area, and associated application.

[0080] A payment standard device is used to dynamically maintain the service providers corresponding to the introduced public network IP addresses and the signed payment agreements, and the relevant data is managed online.

[0081] Figure 4 is a schematic diagram of an optional public network cost accounting process based on IP addresses according to an embodiment of the present invention, as Figure 4 shown. The public network cost accounting process based on IP addresses includes:

[0082] Step 1, enter the framework agreements (corresponding to the above payment agreements) signed by users with different service providers and the agreement validity period in the payment standard device;

[0083] Step 2, the public network IP network segment maintenance device obtains the purchased public network segments and line bandwidths of the line by calling the interface, queries in the payment standard device according to the bandwidth field, and calculates the total price of the network segments within the agreement validity period;

[0084] Step 3: In the public IP detail information maintenance device, obtain all the in-use public IP addresses (i.e., in-use IP details) through the interface, match the network segments to which the in-use public IP addresses belong, calculate the total number of in-use public IP addresses in the network segments, and calculate the unit price of the IP addresses within the protocol validity period based on the total price of the network segments within the protocol validity period and the total number of in-use public IP addresses.

[0085] Step 4: Draw statistical charts.

[0086] Filter the in-use public IP addresses according to the service provider field, summarize the total price of all in-use public IP addresses under this service provider, use time as the abscissa and price as the ordinate, and use different colors to represent different service providers to draw a curve graph.

[0087] Obtain the in-use public IP addresses through the interface, calculate the number of in-use public IP addresses, use the region and service provider as the abscissa and the number as the ordinate, and draw a bar graph to show the usage distribution of the in-use public IP addresses.

[0088] Calculate the number of applications according to the applications and service providers in the public IP information detail maintenance device, and draw a bar graph of the number of application services provided by the service provider.

[0089] Step 5: Display through the display interface.

[0090] In the embodiment of the present invention, by automatically obtaining network segment information and bandwidth information, the total price of the network segment can be calculated, and the unit price of the public IP address can be calculated according to the relationship between all the in-use public IP addresses and the network segment, thereby calculating the public network cost, improving the network cost calculation efficiency, and displaying the cost according to the calculation result, so that the service using end can intuitively master data such as the payment situation of the public IP address and the regional IP usage rate, and can assist the service user to effectively schedule and allocate resources.

[0091] The following is a detailed description in combination with another embodiment.

[0092] Embodiment 2

[0093] A public network cost accounting device based on IP addresses provided in this embodiment includes multiple implementation units, each implementation unit corresponding to each implementation step in Embodiment 1 above. Its specific implementation manner and beneficial effects can be referred to the foregoing method embodiment and will not be elaborated here.

[0094] Figure 5 is a schematic diagram of an optional public network cost accounting device based on IP addresses according to an embodiment of the present invention. As Figure 5 shown, the public network cost accounting device based on IP addresses may include: an acquisition unit 51, an accounting unit 52, a calculation unit 53, and a generation unit 54, where

[0095] An acquisition unit 51, configured to acquire the network segment information and bandwidth information corresponding to the purchased public network;

[0096] An accounting unit 52, configured to call a payment standard device, query the payment standard device through the network segment information and bandwidth information, and calculate the total network segment price of the purchased public network within the validity period of the agreement based on the query result;

[0097] A calculation unit 53, configured to acquire all the public network IP addresses in use, match the network segment to which each public network IP address in use belongs, and calculate the unit price of the public network IP address in use within the validity period of the agreement based on the total network segment price of the network segment to which it belongs within the validity period of the agreement;

[0098] A generation unit 54, configured to generate a cost accounting result of the public network based on the total network segment price and the unit price of the IP address within the validity period of the agreement.

[0099] The above public network cost accounting device based on IP addresses acquires the network segment information and bandwidth information corresponding to the purchased public network through the acquisition unit 51; calls the payment standard device through the accounting unit 52, queries the payment standard device through the network segment information and bandwidth information, and calculates the total network segment price of the purchased public network within the validity period of the agreement based on the query result; acquires all the public network IP addresses in use through the calculation unit 53, matches the network segment to which each public network IP address in use belongs, and calculates the unit price of the public network IP address in use within the validity period of the agreement based on the total network segment price of the network segment to which it belongs within the validity period of the agreement; generates a cost accounting result of the public network based on the total network segment price and the unit price of the IP address within the validity period of the agreement through the generation unit 54.

[0100] In this embodiment, the system automatically acquires the network segment information and bandwidth information of the purchased public network, queries the payment standard by calling the payment standard device, calculates the total network segment price of the public network within the validity period of the agreement, and acquires all the public network IP addresses in use, calculates the unit price of each public network IP address in use according to the total network segment price and the public network IP addresses in use, thereby realizing the automatic accounting of the cost of public network IP addresses, achieving the purpose of quickly and accurately calculating the cost of the public network, and solving the technical problem of improving the efficiency of public network cost accounting. Furthermore, it solves the technical problem of low efficiency in the related art of estimating the cost of the public network manually.

[0101] Further, the accounting unit 52 includes: a first acquisition module configured to query a payment standard device through bandwidth information to acquire the bandwidth pricing standard of the purchased public network; a first determination unit configured to query the payment standard device through network segment information to determine the public network segment price and the protocol validity period of the purchased public network; a first calculation unit configured to calculate the bandwidth price of the purchased public network within the protocol validity period based on the bandwidth pricing standard and the bandwidth used by the purchased public network; and a second calculation unit configured to calculate the total network segment price of the purchased public network within the protocol validity period based on the bandwidth price and the public network segment price.

[0102] Further, the first calculation module includes: a first identification sub-module configured to identify the billing cycle and billing unit price defined in the bandwidth pricing standard; a first statistics sub-module configured to statistics the actually used bandwidth of the purchased public network within the protocol validity period, where the actually used bandwidth includes peak bandwidth and average bandwidth; a first calculation sub-module configured to calculate the product of the actually used bandwidth and the billing unit price to obtain the bandwidth price of the purchased public network within a single billing cycle; and a second calculation sub-module configured to multiply the bandwidth price within a single billing cycle by the number of cycles within the protocol validity period to obtain the bandwidth price of the purchased public network within the entire protocol validity period.

[0103] Further, the calculation unit 53 includes: a first statistics module configured to statistics the total number of IP addresses within the network segment to which the in-use public IP address belongs; and a third calculation unit configured to calculate the IP address unit price of the in-use public IP address within the protocol validity period based on the total network segment price of the network segment to which the in-use public IP address belongs within the protocol validity period and the total number of in-use public IP addresses within the network segment.

[0104] Further, the public network cost accounting device based on IP addresses further includes: a first collection module configured to collect the payment agreements signed with different service providers and the protocol validity periods of the payment agreements, where the payment agreements at least include: the network segment information of the purchased public network and the bandwidth information of the purchased public network; and a first input module configured to input the payment agreements and the protocol validity periods into the payment standard device.

[0105] Further, the public network cost accounting device based on IP addresses further includes: a fourth calculation module configured to integrate the public IP addresses provided by the same service provider and calculate the total IP address price of the public IP addresses provided by the same service provider; and a first plotting module configured to use time as the horizontal coordinate and price as the vertical coordinate to plot a curve graph based on the total IP address prices of each service provider to obtain a cost comparison graph of the public networks provided by different service providers.

[0106] Furthermore, the public network cost accounting device based on IP addresses further includes: a second statistics module, configured to count the total number of in-use public IP addresses corresponding to each service provider in different regions; a second plotting module, configured to plot a bar chart with regions and service providers as the abscissa and the total number of in-use public IP addresses of a single service provider in a single region as the ordinate, so as to obtain a distribution map of the usage of public IP addresses of different service providers in different regions.

[0107] It should be noted here that the above-mentioned obtaining unit 51, accounting unit 52, calculating unit 53, and generating unit 54 correspond to steps S201 to S204 in Embodiment 1. The examples and application scenarios implemented by the above units and the corresponding steps are the same, but are not limited to the content disclosed in Embodiment 1 above. It should be noted that the above modules or units may be hardware components or software components stored in a memory (for example, memory 104) and processed by one or more processors (for example, processors 102a, 102b,..., 102n). The above modules or units may also be part of the device and can run in the computer terminal 10 provided in Embodiment 1.

[0108] The present invention will be described below in conjunction with another optional embodiment.

[0109] Embodiment 3

[0110] An embodiment of the present invention may further provide an electronic device. Figure 6 It is a hardware structure block diagram of an optional electronic device (or mobile device) that executes the public network cost accounting method based on IP addresses according to an embodiment of the present invention, as Figure 6 shown. The electronic device may include: one or more ( Figure 6 only one is shown in the figure) processors 602, a memory 604, a storage controller, and a peripheral interface. Among them, the peripheral interface is connected to a radio frequency module, an audio module, and a display.

[0111] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, implements the above-mentioned method. The memory may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory may further include a memory remotely disposed relative to the processor, and these remote memories may be connected to the terminal through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0112] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: obtain the network segment information and bandwidth information corresponding to the purchased public network; call the payment standard device, query the payment standard device through the network segment information and bandwidth information, and calculate the total network segment price of the purchased public network within the protocol validity period based on the query result; obtain the full amount of public network IP addresses in use, match the network segment to which each public network IP address in use belongs, and calculate the IP address unit price of the public network IP address in use within the protocol validity period based on the total network segment price of the network segment to which it belongs within the protocol validity period; generate the cost accounting result of the public network based on the total network segment price and IP address unit price within the protocol validity period.

[0113] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: the steps of querying the payment standard device through the network segment information and bandwidth information and calculating the total network segment price of the purchased public network within the protocol validity period based on the query result include: query the payment standard device through the bandwidth information to obtain the bandwidth pricing standard of the purchased public network; query the payment standard device through the network segment information to determine the public network segment price and the protocol validity period of the purchased public network; calculate the bandwidth price of the purchased public network within the protocol validity period based on the bandwidth pricing standard and the bandwidth used by the purchased public network; calculate the total network segment price of the purchased public network within the protocol validity period based on the bandwidth price and the public network segment price.

[0114] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: the steps of calculating the bandwidth price of the purchased public network within the protocol validity period based on the bandwidth pricing standard and the bandwidth used by the purchased public network include: identify the billing cycle and billing unit price defined in the bandwidth pricing standard; count the actual used bandwidth of the purchased public network within the protocol validity period, where the actual used bandwidth includes peak bandwidth and average bandwidth; calculate the product of the actual used bandwidth and the billing unit price to obtain the bandwidth price of the purchased public network within a single billing cycle; multiply the bandwidth price within a single billing cycle by the number of cycles within the protocol validity period to obtain the bandwidth price of the purchased public network within the entire protocol validity period.

[0115] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: the steps of calculating the IP address unit price of the public network IP address in use within the protocol validity period based on the total network segment price of the network segment to which it belongs within the protocol validity period include: count the total number of IP addresses in the network segment to which the public network IP address in use belongs; calculate the IP address unit price of the public network IP address in use within the protocol validity period based on the total network segment price of the network segment to which it belongs within the protocol validity period and the total number of public network IP addresses in use in the network segment.

[0116] The processor can also call the information and application programs stored in the memory through the transmission device to execute the following steps: Before obtaining the network segment information and bandwidth information corresponding to the purchased public network, it further includes: collecting the payment agreements signed with different service providers and the validity period of the payment agreements, where the payment agreements at least include: the network segment information of the purchased public network and the bandwidth information of the purchased public network; entering the payment agreements and the validity period of the agreements into the payment standard device.

[0117] The processor can also call the information and application programs stored in the memory through the transmission device to execute the following steps: After obtaining the cost accounting result of the public network based on the total price of the network segment within the validity period of the agreement and the unit price of the IP address, it further includes: integrating the public IP addresses provided by the same service provider and calculating the total price of the IP addresses provided by the same service provider; taking time as the abscissa and price as the ordinate, and drawing a curve graph based on the total price of the IP addresses of each service provider to obtain a cost comparison graph of the public networks provided by different service providers.

[0118] The processor can also call the information and application programs stored in the memory through the transmission device to execute the following steps: After obtaining the cost accounting result of the public network based on the total price of the network segment within the validity period of the agreement and the unit price of the IP address, it further includes: counting the total number of in-use public IP addresses corresponding to each service provider in different regions; taking the region and the service provider as the abscissa and the total number of in-use public IP addresses of a single service provider in a single region as the ordinate, and drawing a bar graph to obtain a distribution graph of the usage of public IP addresses of different service providers in different regions.

[0119] By adopting the embodiment of the present invention, a method for cost accounting of a public network based on IP addresses is provided. By automatically obtaining the network segment information and bandwidth information of the purchased public network, calling the payment standard device to query the payment standard, calculating the total price of the network segment within the validity period of the agreement for the public network, and obtaining all in-use public IP addresses, calculating the unit price of each in-use public IP address according to the total price of the network segment and the in-use public IP addresses, thereby realizing the automatic accounting of the cost of public IP addresses, achieving the purpose of quickly and accurately calculating the cost of the public network, and solving the technical problem of improving the efficiency of cost accounting of the public network. Furthermore, it solves the technical problem of low efficiency in the related art of estimating the cost of the public network manually.

[0120] Those of ordinary skill in the art can understand that Figure 6 The structure shown is only for illustration, and the electronic device can also be a terminal device such as a smart phone, a tablet computer, a handheld computer, and a Mobile Internet Device (MID), a PAD, etc. Figure 6It does not limit the structure of the above electronic device. For example, the electronic device may further include more or fewer components (such as network interfaces, display devices, etc.) than those shown in Figure 6 or have a different configuration from that shown in Figure 6 .

[0121] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium. The storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.

[0122] The present invention will be described below in conjunction with another alternative embodiment.

[0123] Embodiment 4

[0124] The embodiment of the present invention also provides a computer-readable storage medium. Optionally, in the embodiment of the present invention, the above computer-readable storage medium can be used to store the program code executed by the public network cost accounting method based on the IP address provided in the first embodiment.

[0125] Optionally, in the embodiment of the present invention, the above storage medium can be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.

[0126] The embodiment of the present invention also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program for the steps of the public network cost accounting method based on the IP address: obtaining the network segment information and bandwidth information corresponding to the purchased public network; calling a payment standard device, querying the payment standard device through the network segment information and bandwidth information, and calculating the total network segment price of the purchased public network during the protocol validity period based on the query result; obtaining all the in-use public IP addresses, matching the network segment to which each in-use public IP address belongs, and calculating the unit price of the in-use public IP address during the protocol validity period based on the total network segment price of the network segment to which it belongs during the protocol validity period; generating a cost accounting result of the public network based on the total network segment price and the unit price of the IP address during the protocol validity period.

[0127] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0128] In the above embodiments of the present invention, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0129] In several embodiments provided by the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are merely illustrative. For example, the division of the units can be a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the couplings or direct couplings or communication connections shown or discussed with each other can be through some interfaces. The indirect couplings or communication connections of units or modules can be in electrical or other forms.

[0130] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0131] In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0132] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention. The foregoing storage medium includes: USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs and other various media that can store program codes.

[0133] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.

Claims

1. A method for calculating the cost of a public network based on IP addresses, characterized in that, Applied to the service user side, including: Obtain the network segment information and bandwidth information corresponding to the purchased public network; Call the payment standard device, query the payment standard device through the network segment information and the bandwidth information, and calculate the total network segment price of the purchased public network within the validity period of the agreement based on the query result; Obtain all the in-use public IP addresses. For each of the in-use public IP addresses, match the network segment to which it belongs, and calculate the unit price of the in-use public IP address within the validity period of the agreement based on the total network segment price of the network segment to which it belongs within the validity period of the agreement; Generate the cost accounting result of the public network based on the total network segment price and the unit price of the IP address within the validity period of the agreement.

2. The method according to claim 1, wherein The steps of querying the payment standard device through the network segment information and the bandwidth information and calculating the total network segment price of the purchased public network within the validity period of the agreement include: Query the payment standard device through the bandwidth information to obtain the bandwidth pricing standard of the purchased public network; Query the payment standard device through the network segment information to determine the public network segment price of the purchased public network and the validity period of the agreement; Calculate the bandwidth price of the purchased public network within the validity period of the agreement based on the bandwidth pricing standard and the bandwidth used by the purchased public network; Calculate the total network segment price of the purchased public network within the validity period of the agreement based on the bandwidth price and the public network segment price.

3. The method according to claim 2, wherein The steps of calculating the bandwidth price of the purchased public network within the validity period of the agreement based on the bandwidth pricing standard and the bandwidth used by the purchased public network include: Identify the billing cycle and billing unit price defined in the bandwidth pricing standard; Statistically calculate the actual used bandwidth of the purchased public network within the validity period of the agreement, where the actual used bandwidth includes peak bandwidth and average bandwidth; Calculate the product of the actual used bandwidth and the billing unit price to obtain the bandwidth price of the purchased public network within a single billing cycle; Multiply the bandwidth price within a single billing cycle by the number of cycles within the validity period of the agreement to obtain the bandwidth price of the purchased public network within the entire validity period of the agreement.

4. The method according to claim 1, characterized in that The steps of calculating the unit price of the in-use public IP address within the validity period of the agreement based on the total network segment price of the network segment to which it belongs within the validity period of the agreement include: Statistically calculate the total number of IP addresses within the network segment to which the in-use public IP address belongs; Calculate the unit price of the in-use public IP address within the validity period of the agreement based on the total network segment price of the network segment to which it belongs within the validity period of the agreement and the total number of in-use public IP addresses within the network segment to which it belongs.

5. The method according to claim 1, characterized in that, Before obtaining the network segment information and bandwidth information corresponding to the purchased public network, it further includes: Collect the payment agreements signed with different service providers and the validity periods of the payment agreements, where at least the following are included in the payment agreements: the network segment information of the purchased public network, the bandwidth information of the purchased public network; Enter the payment agreements and the validity periods of the agreements into the payment standard device.

6. The method according to claim 1, characterized in that After obtaining the cost accounting result of the public network based on the total price of the network segment and the unit price of the IP address within the validity period of the agreement, it further includes: Integrate the public IP addresses provided by the same service provider, and calculate the total price of the IP addresses provided by the same service provider; Taking time as the horizontal coordinate and price as the vertical coordinate, draw a curve graph based on the total price of the IP addresses of each service provider to obtain a cost comparison graph of the public networks provided by different service providers.

7. The method according to claim 1, characterized in that, After obtaining the cost accounting result of the public network based on the total price of the network segment and the unit price of the IP address within the validity period of the agreement, it further includes: Count the total number of in-use public IP addresses corresponding to each service provider in different regions; Taking the region and the service provider as the horizontal coordinates and the total number of in-use public IP addresses of a single service provider in a single region as the vertical coordinate, draw a bar graph to obtain a distribution graph of the usage of public IP addresses of different service providers in different regions.

8. A public network cost accounting device based on an IP address, characterized in that, Applied to the service usage end, it includes: An acquisition unit for acquiring the network segment information and bandwidth information corresponding to the purchased public network; An accounting unit for calling the payment standard device, querying the payment standard device through the network segment information and the bandwidth information, and accounting the total price of the network segment of the purchased public network within the validity period of the agreement based on the query result; A calculation unit for obtaining all in-use public IP addresses, matching the network segment to which each in-use public IP address belongs, and calculating the unit price of the in-use public IP address within the validity period of the agreement based on the total price of the network segment within the validity period of the agreement to which the network segment belongs; A generation unit for generating the cost accounting result of the public network based on the total price of the network segment and the unit price of the IP address within the validity period of the agreement.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein when the computer program runs, it controls the device where the computer-readable storage medium is located to execute the public network cost accounting method based on the IP address according to any one of claims 1 to 7.

10. An electronic device, characterized in that, It includes one or more processors and a memory, and the memory is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the public network cost accounting method based on the IP address according to any one of claims 1 to 7.