Communication charging method and system, electronic equipment, storage medium and program product
By transmitting the terminal's billing mode selection message between the core network and the edge application server, determining the billing mode based on the terminal ID, and calculating communication costs using real-time balance and preset quota traffic statistics, the communication billing efficiency in the existing technology is solved. It solves the problem of low cost, realizes efficient and flexible billing processing, and is suitable for edge computing nodes.
Patent Information
- Application Number
- CN202411024258.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-18
Smart Images

Figure CN118803635A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication billing method, system, electronic device, storage medium and program product. Background Art
[0002] Currently, telecom operators deploy edge application servers as edge computing nodes to push computing and data processing capabilities to the edge of the network to provide low-latency and real-time response services. Edge application servers are increasingly used by telecom operators. However, the existing communication billing process is not applicable to edge servers. At the same time, the existing communication billing model cannot effectively process and expand a large amount of billing data, which affects the accuracy and efficiency of billing.
[0003] From the above, it can be seen that the existing communication billing method is inefficient. Summary of the invention
[0004] The present application provides a communication billing method to solve the defect of low communication billing efficiency in the prior art and improve the efficiency of communication billing.
[0005] In a first aspect, the present application provides a communication billing method, which is applied to a billing domain device of a core network, and includes the following steps: sending a billing mode selection message of a terminal to an edge application server, the billing mode selection message including a terminal ID, so that the edge application server can obtain the billing mode of the terminal based on the terminal ID, and the edge application server is the communication object of the terminal; receiving the billing mode sent by the edge application server; if the billing mode is a large data volume mode, determining the communication fee of the terminal based on a first statistical value and a second statistical value, the first statistical value is the communication traffic of the terminal calculated by a base station accessed by the terminal based on the real-time balance of the terminal's account in the edge application server and the preset quota traffic of the large data volume mode, and the second statistical value is the communication traffic of the terminal calculated by the edge application server based on the real-time balance and the preset quota traffic; if the billing mode is a timing mode, determining the communication fee based on a third statistical value and a fourth statistical value, the third statistical value is the communication traffic of the terminal calculated by the base station based on the real-time balance and the preset timing period of the timing mode, and the fourth statistical value is the communication traffic of the terminal calculated by the edge application server based on the real-time balance and the preset timing period.
[0006] In one embodiment, the third statistical value and the fourth statistical value are obtained based on the following steps: when the real-time balance is greater than the first threshold value, a timing mode start message is sent to the base station, the timing mode start message includes the terminal ID, the edge application server ID and a preset timing period, so that the base station can count the communication traffic of the terminal within the preset timing period to obtain the third statistical value; a timing mode start message is sent to the edge application server, so that the edge application server can count the communication traffic of the terminal within the preset timing period to obtain the fourth statistical value, the communication traffic of the terminal is the data traffic transmitted between the terminal and the edge application server; the third statistical value sent by the base station is received, and the fourth statistical value sent by the edge application server is received.
[0007] In one embodiment, the first statistical value and the second statistical value are obtained based on the following steps: when the real-time balance is greater than the second threshold value, a large data volume mode startup message is sent to the base station, the large data volume mode startup message includes the terminal ID, the edge application server ID and the preset quota flow, so that the base station can count the communication flow of the terminal to obtain the first statistical value, and the first statistical value is less than or equal to the preset quota flow; a large data volume mode startup message is sent to the edge application server, so that the edge application server can count the communication flow of the terminal to obtain the second statistical value, the second statistical value is less than or equal to the preset quota flow, and the first threshold value is greater than the second threshold value; the first statistical value sent by the base station is received, and the second statistical value sent by the edge application server is received.
[0008] In one embodiment, the edge application server is determined based on the following steps: receiving a communication service request message of a terminal forwarded by a base station, the communication service request message including an ID of the edge application server; and determining the edge application server based on the ID of the edge application server.
[0009] In a second aspect, the present application provides a communication billing method, which is applied to an edge application server, where the edge application server is a communication object of a terminal, and includes the following steps: receiving a billing mode selection message of a terminal sent by a billing domain device of a core network, where the billing mode selection message includes a terminal ID; determining the billing mode of the terminal based on the terminal ID, and sending the billing mode to the billing domain device; if the billing mode is a large data volume mode, the communication traffic of the terminal is counted based on the real-time balance of the terminal's account in the edge application server and the preset quota traffic of the large data volume mode to obtain a second statistical value, and the second statistical value is sent to the billing domain device, so that the billing domain device determines the communication fee of the terminal based on the second statistical value and the first statistical value, and the first statistical value is the communication traffic of the terminal counted by the base station to which the terminal accesses based on the real-time balance and the preset quota traffic; if the billing mode is a timing mode, the communication traffic of the terminal is counted based on the real-time balance and the preset timing period of the timing mode to obtain a fourth statistical value, and the fourth statistical value is sent to the billing domain device, so that the billing domain device determines the communication fee based on the fourth statistical value and the third statistical value, and the third statistical value is the communication traffic of the terminal counted by the base station based on the real-time balance and the preset timing period.
[0010] In one embodiment, the billing mode of a terminal is determined based on the terminal ID, including: determining the contract information of the terminal in the edge application server based on the terminal ID to obtain the service type of the terminal, the service type of the terminal includes a large data volume service type and a timing service type, the large data volume service type is a service in which the communication volume of the terminal within a preset time period is greater than a set threshold, and the timing service type is a service in which the terminal has communication needs within multiple consecutive preset time periods; determining the billing mode as the large data volume mode based on the large data volume service type, and determining the billing mode as the timing mode based on the timing service type.
[0011] In a third aspect, the present application provides a communication billing system, including a billing domain device of a core network, an edge application server and a base station to which a terminal accesses, the edge application server being the communication object of the terminal, the billing domain device being used to send a billing mode selection message of the terminal to the edge application server, the billing mode selection message including a terminal ID; the edge application server being used to obtain the billing mode of the terminal based on the terminal ID, and sending the billing mode to the billing domain device; if the billing mode is a large data volume mode, a first billing proxy module of the base station calculates the communication traffic of the terminal based on the real-time balance of the terminal's account in the edge application server and the preset quota traffic of the large data volume mode, obtains a first statistical value, and sends the first statistical value to the billing domain device; the edge The second billing proxy module of the edge application server counts the communication traffic of the terminal based on the real-time balance and the preset quota traffic, obtains a second statistical value, and sends the second statistical value to the billing domain device; the billing domain device determines the communication fee of the terminal based on the first statistical value and the second statistical value; if the billing mode is the timing mode, the first billing proxy module counts the communication traffic of the terminal based on the real-time balance and the preset timing period of the timing mode, obtains a third statistical value, and sends the third statistical value to the billing domain device; the second billing proxy module counts the communication traffic of the terminal based on the real-time balance and the preset timing period, obtains a fourth statistical value, and sends the fourth statistical value to the billing domain device; the billing domain device determines the communication fee of the terminal based on the third statistical value and the fourth statistical value.
[0012] In a fourth aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the above-mentioned communication billing methods is implemented.
[0013] In a fifth aspect, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-mentioned communication billing methods.
[0014] In a sixth aspect, the present application also provides a computer program product, including a computer program, which implements any of the above-mentioned communication billing methods when executed by a processor.
[0015] The communication billing method, system, electronic device, storage medium and program product provided by the present application, by setting the terminal ID in the billing mode selection message, is conducive to efficiently determining the billing mode of the terminal according to the terminal ID. The present application realizes distributed processing of communication billing by performing billing statistics on the terminal and the edge application server, improves the flexibility and scalability of communication billing, and thus improves the efficiency of communication billing. By selecting different billing modes, different billing requirements are achieved, and the application occasions of communication billing are expanded. According to the real-time balance of the terminal, the preset quota flow and the preset timing period of the terminal, the communication flow of the terminal is counted, which is conducive to the accurate control of the communication flow of the terminal, thereby improving the accuracy of communication billing. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 This is one of the flow charts of the communication billing method provided in this application.
[0018] Figure 2 This is the second flow chart of the communication billing method provided by this application.
[0019] Figure 3 This is the third flow chart of the communication billing method provided in this application.
[0020] Figure 4 This is the fourth flow chart of the communication billing method provided by this application.
[0021] Figure 5 It is a structural diagram of the communication billing system provided by this application.
[0022] Figure 6 It is a schematic diagram of the structure of the electronic device provided by this application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] Edge application servers push computing and data processing to the edge of the network. Compared with the existing centralized billing model, the location of data processing has changed. The Call Detail Record (CDR) billing model usually performs billing at the core network center, while the billing data of the edge application server is generated at the edge of the network. Therefore, the CDR billing model cannot collect and process billing data at the edge.
[0025] Edge application servers may generate large amounts of billing data, especially under high load and high concurrency conditions. The CDR billing model may not be able to effectively process and scale large amounts of billing data, thus affecting the accuracy and efficiency of billing.
[0026] The billing requirements of edge application servers may be more complex and diverse. The CDR billing model may not be able to flexibly support different billing strategies, such as usage-based billing, differentiated billing for different service types, etc.
[0027] Combine the following Figure 1-Figure 6 The present invention describes a communication charging method, system, electronic device, storage medium and computer program product.
[0028] Figure 1 This is one of the flow charts of the communication billing method provided by this application, such as Figure 1 As shown, a communication billing method is applied to a billing domain device of a core network, including steps S100 to S400, and each step is specifically as follows.
[0029] S100: Sending a billing mode selection message of the terminal to an edge application server, the billing mode selection message including a terminal ID, so that the edge application server can obtain the billing mode of the terminal based on the terminal ID. The edge application server is a communication object of the terminal.
[0030] The edge application server is determined based on the following steps: receiving a communication service request message of a terminal forwarded by a base station, the communication service request message including an ID of the edge application server; and determining the edge application server based on the ID of the edge application server.
[0031] like Figure 2 or Figure 3 As shown, the terminal (UE) sends a communication service request message to the base station. The communication service request message includes at least one flag bit, which is used to indicate whether the communication object of the requested communication service is an edge application server; if it is an edge application server, the request message also includes the ID of the edge application server, otherwise the information content of the flag bit is empty. The base station forwards the communication service request message to the billing domain device of the core network.
[0032] Setting the ID of the edge application server in the communication service request message according to the communication object is conducive to accurately identifying the communication service and edge application server of the edge application server whose communication object is the communication service of the edge application server, thereby improving the efficiency of communication billing.
[0033] like Figure 2 or Figure 3 As shown, the billing domain device analyzes the communication service request message. If the edge application server is not involved, the billing domain device on the core network side completes the billing. If the edge application server is involved, step S100 is executed. The billing domain device sends a billing mode selection message to the edge application server, and the billing mode selection message includes a terminal ID (UE-ID). The edge application server determines the corresponding billing mode according to the UE-ID.
[0034] The edge application server determines the contract information of the terminal in the edge application server according to the terminal ID, determines the service type of the terminal according to the contract information, and matches the corresponding billing mode according to the service type. The edge application server sends the determined billing mode to the billing domain device of the core network.
[0035] S200: receiving a billing mode sent by an edge application server.
[0036] The core network's billing domain device receives the billing mode sent by the edge application server. The billing mode includes the normal mode (billing operation completed by the core network's billing domain device according to the existing billing process), the large data volume mode, and the timing mode. The large data volume mode is suitable for terminals with large communication volume requirements in a short period of time. The timing mode is suitable for terminals with continuous high-frequency communication requirements. All modes other than the above large data volume mode and timing mode are classified as normal modes.
[0037] S300: If the billing mode is a large data volume mode, determine the communication fee of the terminal based on the first statistical value and the second statistical value.
[0038] The first statistical value is the communication traffic of the terminal calculated by the base station to which the terminal accesses based on the real-time balance of the terminal's account on the edge application server and the preset quota traffic in the large data volume mode. The second statistical value is the communication traffic of the terminal calculated by the edge application server based on the real-time balance and the preset quota traffic.
[0039] The billing domain device performs corresponding billing according to the billing mode. If the billing mode is the normal mode, it is processed according to the normal billing method.
[0040] like Figure 2As shown, if the billing mode is the large data volume mode, the billing domain device checks the real-time balance of the terminal (UE) account in the edge application server. If the real-time balance is greater than the second threshold value, the preset quota flow of the large data volume mode in the contract information of the edge application server is obtained, and the preset quota flow is used as the rated flow of this communication of the UE, and a large data mode start message is sent to the base station and the edge application server; if the real-time balance is not greater than the second threshold value, billing is performed according to the normal mode. The base station counts the communication flow between the terminal and the edge server to obtain a first statistical value, ensuring that the first statistical value does not exceed the preset rated flow. The base station sends the first statistical value to the billing domain device. The edge application server counts the communication flow between the terminal and the edge server to obtain a second statistical value, ensuring that the second statistical value does not exceed the preset rated flow. The base station sends the second statistical value to the billing domain device.
[0041] The billing domain device determines the communication fee of the terminal according to the first statistical value and the second statistical value. For example, the billing domain device compares the first statistical value and the second statistical value. If the first statistical value (for example, the first statistical value is 20G traffic) and the second statistical value (for example, the second statistical value is 20G traffic) are equal, the communication fee of the corresponding terminal is calculated according to the first statistical value or the second statistical value (20G traffic). For example, the communication fee corresponding to 20G traffic is 30 yuan.
[0042] Preferably, the billing domain device can pre-deduct the cost of this communication from the real-time balance of the terminal's account in the edge application server; it can also wait until the communication service ends before deducting. Compared with the conventional mode, it is to approve a standard amount of communication resources and approve again after use. The large-volume mode of this application can greatly save the communication between the billing domain device and the front-end device (for example, the edge application server and the terminal).
[0043] S300: If the billing mode is the time-based mode, determine the communication fee based on the third statistical value and the fourth statistical value.
[0044] The third statistic is the communication flow of the terminal counted by the base station based on the real-time balance and the preset timing period of the timing mode, and the fourth statistic is the communication flow of the terminal counted by the edge application server based on the real-time balance and the preset timing period.
[0045] like Figure 3As shown, the billing domain device checks the real-time balance of the terminal's account in the edge application server. If the real-time balance is greater than the first threshold value, the preset timing period of the timing mode in the contract information of the edge application server is obtained, and the base station and the edge application server are notified to execute the proxy billing mode within the preset timing period; if the real-time balance is not greater than the first threshold value, the billing is performed according to the normal mode. The first threshold value is greater than the second threshold value, which means that the terminal has more real-time balance in the account of the edge application server. The base station counts the communication traffic between the terminal and the edge server within the preset timing period to obtain a third statistical value. The base station sends the third statistical value to the billing domain device. The edge application server counts the communication traffic between the terminal and the edge server within the preset timing period to obtain a fourth statistical value. The edge application server sends the fourth statistical value to the billing domain device.
[0046] The charging domain device determines the communication fee of the terminal according to the third statistical value and the fourth statistical value. For example, the charging domain device compares the first statistical value and the second statistical value, and if the first statistical value and the second statistical value are equal, the communication fee of the corresponding terminal is calculated according to the first statistical value or the second statistical value.
[0047] The communication billing method provided by the present application is conducive to efficiently determining the billing mode of the terminal according to the terminal ID by setting the terminal ID in the billing mode selection message. The present application realizes the distributed processing of communication billing by performing billing statistics on the terminal and the edge application server, improves the flexibility and scalability of communication billing, and thus improves the efficiency of communication billing. By selecting different billing modes, different billing requirements are achieved, and the application occasions of communication billing are expanded. The communication traffic of the terminal is counted according to the real-time balance of the terminal, the preset quota traffic and the preset timing period, which is conducive to the accurate control of the communication traffic of the terminal, thereby improving the accuracy of communication billing.
[0048] Based on the above embodiment, the third statistical value and the fourth statistical value are obtained based on steps S410 to S420, and each step is specifically as follows.
[0049] S410: When the real-time balance is greater than the first threshold value, a timing mode start message is sent to the base station, where the timing mode start message includes the terminal ID, the edge application server ID and a preset timing period, so that the base station can count the communication traffic of the terminal within the preset timing period to obtain a third statistical value; a timing mode start message is sent to the edge application server, so that the edge application server can count the communication traffic of the terminal within the preset timing period to obtain a fourth statistical value, where the communication traffic of the terminal is the data traffic transmitted between the terminal and the edge application server.
[0050] S420: Receive the third statistical value sent by the base station, and receive the fourth statistical value sent by the edge application server.
[0051] The charging domain device sends a timing mode start message to the base station and the edge application server. The timing mode start message includes at least a terminal ID (UE-ID), an edge application server ID and a preset timing period.
[0052] The base station adds the UE-ID and the edge application server ID to the table to be counted according to the timing mode start message, so as to count the data flow transmitted between the corresponding terminal and the edge application server within the preset timing period, and obtain the third statistical value. When the preset timing period ends, the base station sends the corresponding third statistical value to the billing domain device.
[0053] The edge application server starts counting the data flow transmitted between the corresponding terminal and the edge application server within the preset timing period according to the timing mode, and obtains a fourth statistical value. When the preset timing period ends, the edge application server sends the corresponding fourth statistical value to the billing domain device.
[0054] The embodiment of the present application sends a timing mode start message to send the terminal ID, the edge application server ID and the preset timing period to the base station and the edge application server, thereby realizing the communication billing of the timing mode at the base station and the edge application server.
[0055] Based on the above embodiment, the first statistical value and the second statistical value are obtained based on the following steps.
[0056] S310: When the real-time balance is greater than the second threshold value, a large data volume mode startup message is sent to the base station, the large data volume mode startup message includes the terminal ID, the edge application server ID and the preset quota flow, so that the base station can count the communication flow of the terminal to obtain a first statistical value, and the first statistical value is less than or equal to the preset quota flow; a large data volume mode startup message is sent to the edge application server, so that the edge application server can count the communication flow of the terminal to obtain a second statistical value, the second statistical value is less than or equal to the preset quota flow, and the first threshold value is greater than the second threshold value.
[0057] S320: Receive a first statistical value sent by the base station, and receive a second statistical value sent by the edge application server.
[0058] The charging domain device sends a large data volume mode start message to the base station and the edge application server. The large data volume mode start message includes at least the terminal ID, the edge application server ID and the preset quota flow.
[0059] The base station adds the terminal ID and the edge application server ID to the table to be counted according to the large data volume mode start message, so as to count the data flow transmitted by the terminal and the edge application server in the current data transmission, obtain the first statistical value, and ensure that the first statistical value is less than or equal to the preset quota flow. The base station sends the first statistical value to the billing domain device.
[0060] The edge application server starts the message statistics terminal and the data flow transmitted by the edge application server in the current data transmission according to the large data volume mode to obtain a second statistical value, and ensures that the second statistical value is less than or equal to the preset quota flow. The edge application server sends the second statistical value to the billing domain device.
[0061] The embodiment of the present application sends a large data volume mode startup message to send the terminal ID, edge application server ID and preset traffic quota to the base station and edge application server, thereby realizing communication billing in the large data volume mode at the base station and edge application server.
[0062] The present application provides a communication billing method, which is applied to an edge application server, where the edge application server is a communication object of a terminal, and includes steps S500 to S800, and each step is specifically as follows.
[0063] S500: Receive a billing mode selection message of a terminal sent by a billing domain device of a core network, where the billing mode selection message includes a terminal ID.
[0064] S600: Determine the charging mode of the terminal based on the terminal ID, and send the charging mode to the charging domain device.
[0065] S700: If the billing mode is a large data volume mode, the communication traffic of the terminal is counted based on the real-time balance of the terminal's account on the edge application server and the preset quota traffic of the large data volume mode to obtain a second statistical value, and the second statistical value is sent to the billing domain device so that the billing domain device can determine the communication fee of the terminal based on the second statistical value and the first statistical value. The first statistical value is the communication traffic of the terminal calculated by the base station to which the terminal accesses based on the real-time balance and the preset quota traffic.
[0066] S800: If the billing mode is the timing mode, the communication traffic of the terminal is counted based on the real-time balance and the preset timing period of the timing mode to obtain a fourth statistical value, and the fourth statistical value is sent to the billing domain device so that the billing domain device determines the communication fee based on the fourth statistical value and the third statistical value, and the third statistical value is the communication traffic of the terminal counted by the base station based on the real-time balance and the preset timing period.
[0067] The billing mode of the terminal is determined based on the terminal ID. Specifically, the contract information of the terminal in the edge application server is determined based on the terminal ID to obtain the service type of the terminal. The service type of the terminal includes a large data volume service type and a timing service type. The large data volume service type is a service in which the communication volume of the terminal within a preset time period is greater than a set threshold, and the timing service type is a service in which the terminal has communication needs within multiple consecutive preset time periods; the billing mode is determined to be the large data volume mode based on the large data volume service type, and the billing mode is determined to be the timing mode based on the timing service type.
[0068] When the communication service request message includes the ID of the edge application server, it indicates that the communication service currently requested by the terminal involves the edge application server. Then the charging domain device sends a charging mode selection message to the edge application server.
[0069] The edge application server receives the billing mode selection message, and queries the contract information of the terminal in the edge application server according to the terminal ID in the billing mode selection message. The edge application server divides the service type according to the contract information of the terminal, and obtains the service type signed by the terminal in the edge application server, so as to perform communication billing according to the service type. The service type includes a large data volume service type and a timing service type. With the large-scale commercial use of 5G, the service types of terminals are currently showing great differences. Some terminals have a large communication volume demand in the current communication process (or in a short period of time), so they choose a large data volume service type; some terminals have continuous high-frequency communication needs, so they choose a timing service type. The edge application server determines the billing mode of the terminal according to the service type of the terminal. For example, the billing mode corresponding to the large data volume service type is the large data volume mode, and the billing mode corresponding to the timing service type is the timing mode. The edge application server sends the billing mode to the billing domain device.
[0070] If the billing mode is the large data volume mode, the billing domain device checks the real-time balance of the terminal. If the real-time balance is greater than the second threshold value, the preset quota flow of the large data volume mode is obtained, and the preset quota flow is used as the rated flow of the terminal for the current communication. The billing domain device sends a large data mode start message to the base station. The billing domain device sends a large data mode start message to the edge application server and the base station.
[0071] The edge application server, in response to the big data mode startup message, counts the data flow of the communication between the current secondary terminal and the edge application server, obtains a second statistical value, and ensures that the second statistical value is less than or equal to the preset quota flow. The edge application server sends the second statistical value to the billing domain device. The base station, in response to the big data mode startup message, counts the data flow of the communication between the current secondary terminal and the edge application server, obtains a first statistical value, and ensures that the first statistical value is less than or equal to the preset quota flow. The base station sends the first statistical value to the billing domain device. The billing domain device performs communication billing according to the first statistical value and the second statistical value.
[0072] If the billing mode is the timing mode, the billing domain device checks the real-time balance of the terminal. If the real-time balance is greater than the first threshold value, the preset timing period of the large data volume mode is obtained. The billing domain device sends a timing mode start message to the base station. The billing domain device sends a timing mode start message to the edge application server. The timing mode start message includes a preset timing period. The first threshold value is greater than the second threshold value, indicating that the timing mode requires a higher real-time balance.
[0073] The edge application server responds to the timing mode start message, and counts the data flow of the communication between the terminal and the edge application server within the preset timing period within the preset timing period to obtain a fourth statistical value. The edge application server sends the fourth statistical value to the billing domain device. The base station accessed by the terminal responds to the timing mode start message, and counts the data flow of the communication between the current terminal and the edge application server within the preset timing period to obtain a third statistical value. The base station sends the third statistical value to the billing domain device. The billing domain device performs communication billing according to the third statistical value and the fourth statistical value.
[0074] The communication billing method provided by the present application is conducive to efficiently determining the billing mode of the terminal according to the terminal ID by setting the terminal ID in the billing mode selection message. The present application realizes the distributed processing of communication billing by performing billing statistics on the terminal and the edge application server, improves the flexibility and scalability of communication billing, and thus improves the efficiency of communication billing. By selecting different billing modes, different billing requirements are achieved, and the application occasions of communication billing are expanded. The communication traffic of the terminal is counted according to the real-time balance of the terminal, the preset quota traffic and the preset timing period, which is conducive to the accurate control of the communication traffic of the terminal, thereby improving the accuracy of communication billing.
[0075] The communication billing system provided by the present application is described below. The communication billing system described below and the communication billing method described above can be referenced to each other.
[0076] like Figure 5As shown, a communication billing system includes a billing domain device of a core network, an edge application server and a base station accessed by a terminal, wherein the edge application server is a communication object of the terminal.
[0077] The charging domain device is used to send a charging mode selection message of the terminal to the edge application server, where the charging mode selection message includes the terminal ID.
[0078] The edge application server is used to obtain the billing mode of the terminal based on the terminal ID and send the billing mode to the billing domain device.
[0079] If the billing mode is a large data volume mode, the first billing proxy module of the base station counts the communication traffic of the terminal based on the real-time balance of the terminal's account on the edge application server and the preset quota traffic of the large data volume mode, obtains a first statistical value, and sends the first statistical value to the billing domain device; the second billing proxy module of the edge application server counts the communication traffic of the terminal based on the real-time balance and the preset quota traffic, obtains a second statistical value, and sends the second statistical value to the billing domain device; the billing domain device determines the communication fee of the terminal based on the first statistical value and the second statistical value.
[0080] If the billing mode is the timing mode, the first billing proxy module counts the communication traffic of the terminal based on the real-time balance and the preset timing period of the timing mode, obtains a third statistical value, and sends the third statistical value to the billing domain device; the second billing proxy module counts the communication traffic of the terminal based on the real-time balance and the preset timing period, obtains a fourth statistical value, and sends the fourth statistical value to the billing domain device; the billing domain device determines the communication fee of the terminal based on the third statistical value and the fourth statistical value.
[0081] like Figure 5 As shown, the communication billing system of the present application includes a terminal, a base station, a billing domain device of the core network and an edge application server. The base station is located on the access network side and is used to provide access services to the terminal. The base station includes a first billing proxy module, which is used to count the communication traffic between the terminal and the edge application service at the base station. The billing domain device of the core network is used to perform billing operations for communication services. The edge application server is at the front end of the network and can be deployed by an operator or a third party. The edge application server includes a second billing proxy module, which is used to count the communication traffic between the terminal and the edge application server at the edge application server end. The billing domain device is a module in the core network used to process communication billing, which is undertaken by different entities under different 3GPP protocol standards.
[0082] The communication billing system provided by the present application is conducive to efficiently determining the billing mode of the terminal according to the terminal ID by setting the terminal ID in the billing mode selection message. The present application realizes the distributed processing of communication billing by performing billing statistics on the terminal and the edge application server, improves the flexibility and scalability of communication billing, and thus improves the efficiency of communication billing. By selecting different billing modes, different billing requirements are achieved, and the application occasions of communication billing are expanded. The communication traffic of the terminal is counted according to the real-time balance of the terminal, the preset quota traffic and the preset timing period, which is conducive to the accurate control of the communication traffic of the terminal, thereby improving the accuracy of communication billing.
[0083] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor (processor) 610 , a communication interface (Communications Interface) 620 , a memory (memory) 630 and a communication bus 640 , wherein the processor 610 , the communication interface 620 , and the memory 630 communicate with each other through the communication bus 640 . The processor 610 can call the logic instructions in the memory 630 to execute the communication billing method, which includes: sending a billing mode selection message of the terminal to the edge application server, the billing mode selection message includes a terminal ID, so that the edge application server obtains the billing mode of the terminal based on the terminal ID, and the edge application server is the communication object of the terminal; receiving the billing mode sent by the edge application server; if the billing mode is a large data volume mode, determining the communication fee of the terminal based on a first statistical value and a second statistical value, the first statistical value is the communication traffic of the terminal calculated by the base station accessed by the terminal based on the real-time balance of the terminal's account in the edge application server and the preset quota traffic of the large data volume mode, and the second statistical value is the communication traffic of the terminal calculated by the edge application server based on the real-time balance and the preset quota traffic; if the billing mode is a timing mode, determining the communication fee based on a third statistical value and a fourth statistical value, the third statistical value is the communication traffic of the terminal calculated by the base station based on the real-time balance and the preset timing period of the timing mode, and the fourth statistical value is the communication traffic of the terminal calculated by the edge application server based on the real-time balance and the preset timing period.
[0084] Or execute a communication billing method, the method comprising: receiving a billing mode selection message of a terminal sent by a billing domain device of a core network, the billing mode selection message comprising a terminal ID; determining a billing mode of the terminal based on the terminal ID, and sending the billing mode to the billing domain device; if the billing mode is a large data volume mode, counting the communication traffic of the terminal based on the real-time balance of the account of the terminal on the edge application server and the preset quota traffic of the large data volume mode, obtaining a second statistical value, and sending the second statistical value to the billing domain device, so that the billing domain device determines the communication fee of the terminal based on the second statistical value and the first statistical value, the first statistical value being the communication traffic of the terminal counted by the base station accessed by the terminal based on the real-time balance and the preset quota traffic; if the billing mode is a timing mode, counting the communication traffic of the terminal based on the real-time balance and the preset timing period of the timing mode, obtaining a fourth statistical value, and sending the fourth statistical value to the billing domain device, so that the billing domain device determines the communication fee based on the fourth statistical value and the third statistical value, the third statistical value being the communication traffic of the terminal counted by the base station based on the real-time balance and the preset timing period.
[0085] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0086] On the other hand, the present application also provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by the processor, the computer can execute the communication billing method provided by the above methods, the method comprising: sending a billing mode selection message of the terminal to the edge application server, the billing mode selection message includes a terminal ID, so that the edge application server obtains the billing mode of the terminal based on the terminal ID, the edge application server is the communication object of the terminal; receiving the billing mode sent by the edge application server; if the billing mode is a large data volume mode, based on the first system The communication fee of the terminal is determined based on the calculation value and the second statistical value, the first statistical value is the communication flow of the terminal calculated by the base station to which the terminal accesses based on the real-time balance of the terminal's account on the edge application server and the preset quota flow of the large data volume mode, and the second statistical value is the communication flow of the terminal calculated by the edge application server based on the real-time balance and the preset quota flow; if the billing mode is the timing mode, the communication fee is determined based on the third statistical value and the fourth statistical value, the third statistical value is the communication flow of the terminal calculated by the base station based on the real-time balance and the preset timing period of the timing mode, and the fourth statistical value is the communication flow of the terminal calculated by the edge application server based on the real-time balance and the preset timing period.
[0087] Alternatively, a computer can execute the communication billing method provided by each of the above methods, the method comprising: receiving a billing mode selection message of a terminal sent by a billing domain device of a core network, the billing mode selection message comprising a terminal ID; determining a billing mode of the terminal based on the terminal ID, and sending the billing mode to the billing domain device; if the billing mode is a large data volume mode, counting the communication traffic of the terminal based on the real-time balance of the account of the terminal on the edge application server and the preset quota traffic of the large data volume mode, obtaining a second statistical value, and sending the second statistical value to the billing domain device, so that the billing domain device determines the communication fee of the terminal based on the second statistical value and the first statistical value, the first statistical value being the communication traffic of the terminal counted by the base station accessed by the terminal based on the real-time balance and the preset quota traffic; if the billing mode is a timing mode, counting the communication traffic of the terminal based on the real-time balance and the preset timing period of the timing mode, obtaining a fourth statistical value, and sending the fourth statistical value to the billing domain device, so that the billing domain device determines the communication fee based on the fourth statistical value and the third statistical value, the third statistical value being the communication traffic of the terminal counted by the base station based on the real-time balance and the preset timing period.
[0088] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented by a processor to execute the communication billing method provided by the above methods when executed, the method comprising: sending a billing mode selection message of the terminal to an edge application server, the billing mode selection message including a terminal ID, so that the edge application server obtains the billing mode of the terminal based on the terminal ID, and the edge application server is the communication object of the terminal; receiving the billing mode sent by the edge application server; if the billing mode is a large data volume mode, determining the communication fee of the terminal based on a first statistical value and a second statistical value, the first statistical value being the communication traffic of the terminal calculated by a base station accessed by the terminal based on the real-time balance of the terminal's account in the edge application server and the preset quota traffic of the large data volume mode, and the second statistical value being the communication traffic of the terminal calculated by the edge application server based on the real-time balance and the preset quota traffic; if the billing mode is a timing mode, determining the communication fee based on a third statistical value and a fourth statistical value, the third statistical value being the communication traffic of the terminal calculated by the base station based on the real-time balance and the preset timing period of the timing mode, and the fourth statistical value being the communication traffic of the terminal calculated by the edge application server based on the real-time balance and the preset timing period.
[0089] Or the computer program is implemented when executed by the processor to execute the communication billing method provided by the above methods, the method comprising: receiving a billing mode selection message of the terminal sent by the billing domain device of the core network, the billing mode selection message including the terminal ID; determining the billing mode of the terminal based on the terminal ID, and sending the billing mode to the billing domain device; if the billing mode is a large data volume mode, based on the real-time balance of the terminal's account on the edge application server and the preset quota flow of the large data volume mode, the communication flow of the terminal is counted to obtain a second statistical value, and the second statistical value is sent to the billing domain device, so that the billing domain device determines the communication fee of the terminal based on the second statistical value and the first statistical value, the first statistical value is the communication flow of the terminal counted by the base station accessed by the terminal based on the real-time balance and the preset quota flow; if the billing mode is a timing mode, based on the real-time balance and the preset timing period of the timing mode, the communication flow of the terminal is counted to obtain a fourth statistical value, and the fourth statistical value is sent to the billing domain device, so that the billing domain device determines the communication fee based on the fourth statistical value and the third statistical value, and the third statistical value is the communication flow of the terminal counted by the base station based on the real-time balance and the preset timing period.
[0090] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A communication billing method, It is characterized in that Billing domain equipment used in the core network includes: Sending a billing mode selection message of the terminal to an edge application server, the billing mode selection message including a terminal ID, so that the edge application server can obtain the billing mode of the terminal based on the terminal ID, and the edge application server is a communication object of the terminal; Receiving the billing mode sent by the edge application server; If the billing mode is a large data volume mode, the communication fee of the terminal is determined based on a first statistical value and a second statistical value, the first statistical value being the communication traffic of the terminal calculated by the base station accessed by the terminal based on the real-time balance of the account of the terminal in the edge application server and the preset quota traffic of the large data volume mode, and the second statistical value being the communication traffic of the terminal calculated by the edge application server based on the real-time balance and the preset quota traffic; If the billing mode is a timing mode, the communication fee is determined based on a third statistical value and a fourth statistical value, the third statistical value is the communication traffic of the terminal counted by the base station based on the real-time balance and the preset timing period of the timing mode, and the fourth statistical value is the communication traffic of the terminal counted by the edge application server based on the real-time balance and the preset timing period.
2. The communication charging method according to claim 1, It is characterized in that The third statistical value and the fourth statistical value are obtained based on the following steps: When the real-time balance is greater than the first threshold value, a timing mode start message is sent to the base station, where the timing mode start message includes the terminal ID, the edge application server ID and the preset timing period, so that the base station can count the communication traffic of the terminal within the preset timing period to obtain the third statistical value; Sending the timing mode start message to the edge application server, so that the edge application server can count the communication traffic of the terminal within the preset timing period to obtain the fourth statistical value, where the communication traffic of the terminal is the data traffic transmitted between the terminal and the edge application server; The third statistical value sent by the base station is received, and the fourth statistical value sent by the edge application server is received.
3. The communication charging method according to claim 2, It is characterized in that The first statistical value and the second statistical value are obtained based on the following steps: When the real-time balance is greater than the second threshold value, a large data volume mode start message is sent to the base station, where the large data volume mode start message includes the terminal ID, the edge application server ID and the preset quota flow, so that the base station can count the communication flow of the terminal to obtain the first statistical value, where the first statistical value is less than or equal to the preset quota flow; Sending the large data volume mode start message to the edge application server, so that the edge application server can count the communication traffic of the terminal to obtain the second statistical value, where the second statistical value is less than or equal to the preset quota traffic, and the first threshold value is greater than the second threshold value; The first statistical value sent by the base station is received, and the second statistical value sent by the edge application server is received.
4. The communication charging method according to claim 1, It is characterized in that The edge application server is determined based on the following steps: receiving a communication service request message of the terminal forwarded by the base station, wherein the communication service request message includes an ID of an edge application server; The edge application server is determined based on the ID of the edge application server.
5. A communication billing method, It is characterized in that Applied to an edge application server, which is a communication object of a terminal, including: Receiving a billing mode selection message of the terminal sent by a billing domain device of a core network, where the billing mode selection message includes a terminal ID; Determine a billing mode of the terminal based on the terminal ID, and send the billing mode to the billing domain device; If the billing mode is a large data volume mode, the communication traffic of the terminal is counted based on the real-time balance of the account of the terminal in the edge application server and the preset quota traffic of the large data volume mode to obtain a second statistical value, and the second statistical value is sent to the billing domain device, so that the billing domain device determines the communication fee of the terminal based on the second statistical value and the first statistical value, and the first statistical value is the communication traffic of the terminal counted by the base station accessed by the terminal based on the real-time balance and the preset quota traffic; If the billing mode is a timing mode, the communication traffic of the terminal is counted based on the real-time balance and a preset timing period of the timing mode to obtain a fourth statistical value, and the fourth statistical value is sent to the billing domain device so that the billing domain device determines the communication fee based on the fourth statistical value and a third statistical value, and the third statistical value is the communication traffic of the terminal counted by the base station based on the real-time balance and the preset timing period.
6. The communication charging method according to claim 5, It is characterized in that The determining the charging mode of the terminal based on the terminal ID includes: Determine, based on the terminal ID, the subscription information of the terminal in the edge application server to obtain the service type of the terminal, where the service type of the terminal includes a large data volume service type and a timing service type, where the large data volume service type is a service in which the communication volume of the terminal within a preset time period is greater than a set threshold, and the timing service type is a service in which the terminal has a communication demand within multiple consecutive preset time periods; The billing mode is determined to be the large data volume mode based on the large data volume service type, and the billing mode is determined to be the timing mode based on the timing service type.
7. A communication billing system, It is characterized in that It includes a charging domain device of a core network, an edge application server and a base station accessed by a terminal, wherein the edge application server is a communication object of the terminal. The billing domain device is used to send a billing mode selection message of the terminal to the edge application server, where the billing mode selection message includes a terminal ID; The edge application server is used to obtain the billing mode of the terminal based on the terminal ID, and send the billing mode to the billing domain device; If the billing mode is a large data volume mode, the first billing proxy module of the base station counts the communication traffic of the terminal based on the real-time balance of the account of the terminal in the edge application server and the preset quota traffic of the large data volume mode, obtains a first statistical value, and sends the first statistical value to the billing domain device; The second billing proxy module of the edge application server counts the communication traffic of the terminal based on the real-time balance and the preset quota traffic, obtains a second statistical value, and sends the second statistical value to the billing domain device; the billing domain device determines the communication fee of the terminal based on the first statistical value and the second statistical value; If the billing mode is a timing mode, the first billing proxy module counts the communication traffic of the terminal based on the real-time balance and the preset timing period of the timing mode to obtain a third statistical value, and sends the third statistical value to the billing domain device; the second billing proxy module counts the communication traffic of the terminal based on the real-time balance and the preset timing period to obtain a fourth statistical value, and sends the fourth statistical value to the billing domain device; the billing domain device determines the communication fee of the terminal based on the third statistical value and the fourth statistical value.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the communication charging method according to any one of claims 1 to 4 is implemented, or, When the processor executes the program, the communication charging method according to any one of claims 5 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the communication charging method according to any one of claims 1 to 4 is implemented, or, When the computer program is executed by the processor, the communication charging method according to any one of claims 5 to 6 is implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the communication charging method according to any one of claims 1 to 4 is implemented, or, When the computer program is executed by the processor, the communication charging method according to any one of claims 5 to 6 is implemented.
