Terminal data flow billing method and system
By analyzing and identifying the categories of user terminal application software, combining traffic package information, and calculating data traffic usage fees, the problem of consistent billing standards in the existing technology is solved, and differentiated billing is realized to meet the differentiated needs of users.
Patent Information
- Application Number
- CN202110513337.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-11
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-05-11
AI Technical Summary
In the prior art, the charging standards for data traffic generated by users when using various application software to access the Internet are consistent, which is difficult to meet the needs of users' differentiated.
By obtaining network requests initiated by user terminal application software, analyzing and identifying the category of application software, combining the traffic package information ordered by users, calculating the data traffic usage fee of the application software, and adopting a differentiated billing method.
It realizes differentiated billing of users' data traffic according to the category of application software, meets the differentiated needs of different users, and improves the billing flexibility of traffic data.
Smart Images

Figure CN115334469B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communication technology, and in particular to a terminal data flow billing method and system. Background Art
[0002] Existing data traffic packages are mainly monthly packages. As long as you pay the monthly rent every month, you can get the corresponding traffic package or voice package.
[0003] Within the package, users can use data traffic to watch videos, play games, watch TV shows, listen to music, etc., without restrictions on time or location. Users will be charged separately for data traffic exceeding the package.
[0004] Generally, different applications generate different values. For example, reading books or taking online courses is completely different from watching popular dramas or watching Tik Tok videos. Generally, in the prior art, the billing standards for data traffic generated when users use various application software to surf the Internet are the same, which makes it difficult to meet the differentiated needs of users. Summary of the invention
[0005] The present invention provides a terminal data flow billing method and system, which are used to solve the defect that the billing standard of data flow generated when users use various application software to surf the Internet is consistent in the prior art, which is difficult to meet the differentiated needs of users, and realizes billing of data flow generated when users surf the Internet according to the category of application software.
[0006] The present invention provides a data flow billing method for a terminal, comprising:
[0007] Acquire a network request initiated by a user through an application software of a terminal, parse the network request, and acquire a first category of the application software according to the parsed network request;
[0008] The data traffic usage fee of the application software is calculated based on the first category and the total amount of data traffic usage of the application software, as well as the traffic package information subscribed by the user.
[0009] According to a data traffic billing method for a terminal provided by the present invention, the network request includes a traffic type identification contract;
[0010] The traffic type identification contract includes a header, the second category and identification information of the application software, and a verification string.
[0011] According to a data traffic billing method for a terminal provided by the present invention, parsing the network request, and obtaining the first category of the application software according to the parsed network request, comprises:
[0012] Verifying the traffic type identification contract according to the header and the verification string, and if the verification passes, parsing the second category and the identification information from the traffic type identification contract;
[0013] If the second category is a preset category, then the first category of the application software corresponding to the identification information is obtained; wherein the identification information is pre-associated with the first category.
[0014] According to a terminal data traffic billing method provided by the present invention, the traffic type identification contract is verified according to the header and the verification string, including:
[0015] If the header is the same as a preset character string, dividing the character string composed of the header, the second category and the identification information into multiple character strings according to preset intervals, performing an XOR operation on the multiple character strings, and obtaining an XOR operation result;
[0016] The XOR operation result is compared with the verification string, and whether the traffic type identification contract passes the verification is determined according to the comparison result.
[0017] According to a data traffic billing method for a terminal provided by the present invention, the data traffic usage fee of the application software is calculated according to the first category and the total data traffic usage of the application software, and the traffic package information subscribed by the user, including:
[0018] Acquire the data traffic limit value corresponding to the first category of the application software from the traffic package information;
[0019] If the total amount of data traffic usage is less than or equal to the data traffic limit value, multiplying the total amount of data traffic usage by the first charging price corresponding to the first category of the application software in the traffic package information to obtain the data traffic usage fee;
[0020] If the total amount of data traffic usage is greater than the data traffic limit value, multiplying the portion of the total amount of data traffic usage that is greater than the data traffic limit value by the second charging price corresponding to the first category of the application software in the traffic package information, and adding the data traffic package fee corresponding to the first category of the application software in the traffic package information to obtain the data traffic usage fee;
[0021] The first category of the application software is pre-associated with the data traffic limit value, the first billing price, the second billing price and the data traffic package fee.
[0022] According to a terminal data flow billing method provided by the present invention, after calculating the data flow usage fee of the application software, the method further includes:
[0023] If the total data traffic usage is greater than the data traffic alarm value corresponding to the first category of the application software in the traffic package information, an alarm message is sent to the terminal; wherein the first category of the application software is pre-associated with the data traffic alarm value.
[0024] According to a data traffic billing method for a terminal provided by the present invention, if the total amount of data traffic usage is greater than the data traffic alarm value corresponding to the first category of the application software in the traffic package information, sending an alarm message to the terminal includes:
[0025] If the total amount of data traffic usage is greater than the data traffic alarm value, verifying the alarm information;
[0026] If the alarm information verification passes, it is determined whether the sending frequency of the alarm information is less than a preset threshold. If so, the alarm information is sent to the terminal.
[0027] The present invention also provides a terminal data user communication billing system, comprising:
[0028] An acquisition module, configured to acquire a network request initiated by a user through an application software of a terminal, parse the network request, and acquire a first category of the application software according to the parsed network request;
[0029] The billing module is used to calculate the data traffic usage fee of the application software according to the first category and the total amount of data traffic usage of the application software, and the traffic package information subscribed by the user.
[0030] The present invention 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, the steps of the data flow billing method for the terminal as described above are implemented.
[0031] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the data flow billing method for the terminal as described in any one of the above are implemented.
[0032] The data traffic billing method and system of the terminal provided by the present invention can obtain the first category of the application software in real time by real-time parsing the network request initiated by the application software, and determine the billing method of the total data traffic usage of the application software according to the first category of the application software and the total data traffic usage, as well as the traffic package information ordered by the user, and then accurately calculate the data traffic usage fee of the application software. Through the first category of the application software, the corresponding billing method is adaptively selected, so that the billing method of the traffic data is more flexible and can meet the differentiated needs of different users. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 It is a flow chart of the data flow billing method of the terminal provided by the present invention;
[0035] Figure 2 It is one of the structural schematic diagrams of the data flow billing framework in the data flow billing method of the terminal provided by the present invention;
[0036] Figure 3 This is the second structural diagram of the data flow billing framework in the data flow billing method for the terminal provided by the present invention;
[0037] Figure 4 This is the third structural diagram of the data flow billing framework in the data flow billing method for the terminal provided by the present invention;
[0038] Figure 5 It is a structural diagram of the data flow billing system of the terminal provided by the present invention;
[0039] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] In addition, the terms “first” or “second” etc., if used, are merely used to distinguish the descriptions and should not be understood as indicating or implying relative importance.
[0042] Combine the following Figure 1 The data flow billing method of the terminal of the present invention is described, comprising: step 101, obtaining a network request initiated by a user through an application software of the terminal, parsing the network request, and obtaining a first category of the application software according to the parsed network request;
[0043] The terminal may be a mobile phone, a personal computer, or a tablet computer, etc., and this example does not specifically limit this.
[0044] The application software may be TikTok, WeChat, or iQiyi, etc., and this example does not specifically limit this.
[0045] When a user uses a terminal to surf the Internet, he needs to open the application software of the terminal. Then, the application software of the terminal initiates a network request to the base station. When the base station receives the network request initiated by the application software, it can parse the communication message protocol of the network request and obtain the first category of the application software according to the parsed communication message protocol of the network request.
[0046] The parsing method may be based on a DPI (Deep Packet Inspection) algorithm, etc., and this embodiment does not specifically limit this.
[0047] Optionally, the first category of the application software can be set according to actual needs, such as learning type, game type, entertainment type or work type, etc. For example, the TikTok software and the iQiyi software are entertainment types.
[0048] Step 102, calculating the data traffic usage fee of the application software according to the first category and the total amount of data traffic usage of the application software, and the traffic package information subscribed by the user.
[0049] Specifically, in order to meet the needs of different types of users, there are multiple traffic packages in this embodiment for users to selectively subscribe according to actual needs.
[0050] like Figure 2 As shown, users can order different traffic packages through the package setting interface.
[0051] The billing prices, data traffic limits, data traffic alarm values, etc. for each application type in different traffic packages are different.
[0052] Compared with the traditional single data traffic billing method, in this embodiment, the user can select the corresponding traffic package according to actual needs. Accordingly, the method for billing the data traffic generated by the application software can be determined according to the traffic package information subscribed by the user, the first category of the application software and the total data traffic usage.
[0053] like Figure 3 As shown, after the base station acquires the first category of the application software, the first category of the application software is synchronized to the user communication billing system.
[0054] The user communication billing system can search for the correlation between the total data traffic used by the application software and the billing price in the traffic package information subscribed by the user according to the first category of the application software and the total data traffic usage, and obtain the billing price of the total data traffic usage of the application software.
[0055] Then, the traffic usage fee of the application software is calculated based on the billing price and the total amount of data traffic used.
[0056] The total amount of data traffic used is the sum of the data traffic used by the application software during the preset time period.
[0057] The preset time period can be set according to actual needs, such as from 0:00 to 24:00 of a day, or from the first day to the last day of a month, etc. This embodiment does not make specific limitations on this.
[0058] This embodiment can obtain the first category of the application software in real time by performing real-time analysis on the network request initiated by the application software, and determine the billing method of the total data traffic usage of the application software based on the first category of the application software and the total data traffic usage, as well as the traffic package information ordered by the user, and then accurately calculate the data traffic usage fee of the application software. Through the first category of the application software, the corresponding billing method is adaptively selected, making the billing method of traffic data more flexible and able to meet the differentiated needs of different users.
[0059] On the basis of the above embodiment, the network request in this embodiment includes a traffic type identification contract; the traffic type identification contract includes a header, the second category and identification information of the application software, and a verification string.
[0060] The traffic type identification contract may be used to store information related to the first category of the terminal's application software.
[0061] A traffic type identification contract can be added to the communication message protocol of the network request.
[0062] Optionally, the implementation method of adding a traffic type identification contract can be to modify the existing communication message protocol specification, add a field in the existing communication message protocol to store the traffic type identification contract; or select a preset field in the communication message protocol to store the traffic type identification contract.
[0063] The preset field may be 128 bits or 64 bits, etc., and this embodiment does not specifically limit this.
[0064] The traffic type identification contract can be stored at the front of the communication message protocol. As shown in Table 1, it is an example of the communication message protocol of the network request.
[0065] Table 1 Communication message protocol of network request
[0066] Traffic type identification contract Header information of other protocols Data flow request information …
[0067] Optionally, the header of the traffic type identification contract can be used to verify the traffic type identification contract. The number of bits occupied by the header can be set according to actual needs, such as 8 bits.
[0068] The second category of application software includes a general category, an encouraged category, and a restricted category, which is not specifically limited in this implementation.
[0069] Among them, application software under the general category does not need to be restricted or encouraged for the data traffic it generates; application software under the encouraged category is encouraged for the data traffic it generates, that is, users are encouraged to use related application software, such as learning software; the restricted category is to restrict the data traffic it generates, that is, restrict users from using related application software.
[0070] The number of bits occupied by the second category can be set according to actual needs, such as 8 bits.
[0071] Different character strings may be used to represent different second categories, such as the common type is represented by the character string 0x0, the encouraged type is represented by the character string 0x1, and the constrained type is represented by the character string 0x2.
[0072] Each application software belongs to a different second category. For example, the second category of the Tik Tok software is 0x2, and the second category of the online learning software is 0x1.
[0073] The identification information of the application software is used to record the relevant identification of the application software. The number of bits occupied by the identification information can be set according to actual needs, such as 8 bits.
[0074] The identification information may be set according to actual needs, such as the name of the application software.
[0075] For example, the identification information of Douyin includes its name douyin, and the identification information of WeChat includes its name weixin.
[0076] The verification string is used to further verify the traffic type identification contract to ensure the integrity and comprehensiveness of the verification. The number of bits occupied by the verification string can be set according to actual needs, such as 16 bits.
[0077] It should be noted that when setting the number of digits of the header, second category, identification information and verification string in the traffic type identification contract according to actual needs, the sum of the number of digits of the header, second category, identification information and verification string must be the same as the number of digits of the traffic type identification contract.
[0078] As shown in Table 2, it is an example of a traffic type identification contract. The header, the second category, the identification information, and the verification string are arranged in sequence to form a traffic type identification contract.
[0079] Table 2 Example of traffic type identification contract
[0080] head Second Category Identification Information Verification String 8bit 8bit 32bit 16bit
[0081] This embodiment sets a traffic type identification contract in the network request, so that the base station can quickly obtain the first category of the application software from the traffic type identification contract of the network request. And it only needs to add a preset field or select a preset field in the existing communication message protocol to store the traffic type identification contract, and there is no need to redesign the terminal system. The design is simple, compatible with a variety of terminals, and has good compatibility.
[0082] On the basis of the above-mentioned embodiment, the network request is parsed in this embodiment, and the first category of the application software is obtained according to the parsed network request, including: verifying the traffic type identification contract according to the header and the verification string, and if the verification passes, parsing the second category and the identification information from the traffic type identification contract; if the second category is a preset category, obtaining the first category of the application software corresponding to the identification information; wherein the identification information is pre-associated with the first category.
[0083] Specifically, before parsing the network request, the traffic type identification contract is verified.
[0084] Optionally, the traffic type identification contract is verified in conjunction with the header and the verification string.
[0085] The verification method may be to first verify the traffic type identification contract according to the header, and if the verification passes, then verify the traffic type identification contract again according to the verification string, and if the verification of the verification string passes, the traffic type identification contract passes the verification;
[0086] Alternatively, the traffic type identification contract is verified based on both the header and the verification string. If both the header and the verification string are verified, the traffic type identification contract is verified. This embodiment does not specifically limit the verification method.
[0087] Then, when the traffic type identification contract passes the verification, the second category and identification information of the application software are parsed from the traffic type identification contract.
[0088] In order to relieve the processing pressure of the base station, the first category of the application software is selectively marked according to the second category of the application software. In this embodiment, after parsing the second category and identification information of the application software, it is first determined whether the second category meets the preset conditions. If the second category meets the preset conditions, the first category of the application software corresponding to the identification information is searched in the configuration table according to the identification information. If the second category of the application software does not meet the preset conditions, it is directly skipped and the first category of the application software is not marked.
[0089] Among them, the preset categories include encouragement type and constraint type.
[0090] For example, when the second category of the application software is a common type and does not meet the conditions, the first category of the application software is not marked, and the data traffic used by the application software can be charged according to the existing traffic billing method.
[0091] If the second category of the application software is an encouragement type or a restriction type, the first category of the application software is marked first, and then the data traffic is charged according to the first category of the application software.
[0092] This embodiment can ensure the correctness of the transmission of the traffic type identification contract by verifying the traffic type identification contract. Then, after judging the traffic type, the application software whose traffic type meets the preset conditions is identified, and the first category of the application software is obtained, which can relieve the processing pressure of the base station.
[0093] On the basis of the above-mentioned embodiment, the traffic type identification contract is verified according to the header and the verification string in this embodiment, including: if the header is the same as a preset string, the string composed of the header, the second category and the identification information is divided into multiple strings according to preset intervals, and the multiple strings are subjected to an XOR operation to obtain an XOR operation result; the XOR operation result is compared with the verification string, and it is determined whether the traffic type identification contract has passed the verification according to the comparison result.
[0094] Specifically, the character string of the header is compared with a preset character string. If the character string of the header is the same as the preset character string, the header verification passes.
[0095] Among them, the preset string indicates that the traffic type identification contract is supported, which can be set according to actual needs, such as 0xff. That is, when the string in the header is 0xff, the header verification passes, otherwise the traffic type identification contract verification of the application software fails, and the traffic type identification contract of the application software is not a traffic type identification contract protocol string.
[0096] If the header verification passes, the traffic type identification contract is further verified based on the verification string.
[0097] Optionally, the header, the second category and the identification information are combined into a string according to their positions in the traffic type identification contract.
[0098] Then, the combined character string is divided into a plurality of character strings according to preset intervals, and an XOR operation is performed on the elements at corresponding positions of each character string, and the XOR operation result is compared with the verification character string.
[0099] If the comparison result is that the XOR operation result is the same as the verification string, the traffic type identification contract passes the verification; if the comparison result is that the XOR operation result is different from the verification string, the traffic type identification contract fails the verification.
[0100] The preset interval may be 16 bits, that is, the combined character string is divided into multiple character strings of 16 bits.
[0101] This embodiment verifies the traffic type identification contract by using the header and the verification string, which can not only verify whether the traffic type identification contract is legal, but also ensure the correctness of the traffic type identification contract during the transmission process.
[0102] On the basis of the above embodiments, the data traffic usage fee of the application software is calculated according to the first category and the total data traffic usage of the application software, as well as the traffic package information subscribed by the user, including: obtaining the data traffic limit value corresponding to the first category of the application software from the traffic package information; if the total data traffic usage is less than or equal to the data traffic limit value, multiplying the total data traffic usage by the first billing price corresponding to the first category of the application software in the traffic package information to obtain the data traffic usage fee; if the total data traffic usage is greater than the data traffic limit value, multiplying the portion of the total data traffic usage greater than the data traffic limit value by the second billing price corresponding to the first category of the application software in the traffic package information, and adding the data traffic package fee corresponding to the first category of the application software in the traffic package information to obtain the data traffic usage fee; wherein the first category of the application software is pre-associated with the data traffic limit value, the first billing price, the second billing price and the data traffic package fee.
[0103] Specifically, the existing traffic package information only includes the billing method within the package and the billing method outside the package, and the data traffic used by each application software is priced and processed without differentiation. Therefore, the existing traffic packages and billing methods are difficult to meet the differentiated needs of users.
[0104] For example, when parents want to guide their children to use mobile phone data traffic properly, such as watching less TV series, using WeChat less to surf the Internet, reading more books, and doing more voice and communication social networking, they can only set up the phone to limit the time children use the phone. However, the settings on the phone are reversible and modifiable. Children can easily crack and modify them through learning, thus breaking through the guidance and management of parents.
[0105] Furthermore, when parents want to guide their children to use more learning software, they can only customize more expensive data packages for their children, and cannot adaptively choose high-data traffic packages corresponding to the learning software, resulting in a poor user experience.
[0106] As shown in Table 3, this is information of an existing data traffic package.
[0107] Table 3 Existing data traffic package information
[0108] Monthly rent Traffic(GB) Voice (minutes) 238 80 600 298 100 800 398 150 1200 598 300 3000
[0109] In this embodiment, the traffic package information includes general data traffic information, as well as the data traffic limit value, billing price and data traffic package fee corresponding to the first category of each application software.
[0110] Table 4 Traffic package information
[0111]
[0112] Table 4 shows an example of traffic package information. Considering that parents are more willing to invest in value-added services for their children, a set of value-added packages for children to prevent addiction is designed. The value-added packages for children to prevent addiction support the conventional traffic billing mode, the billing price corresponding to the first category of specific application software, the data traffic limit value corresponding to the first category of specific application software, and the alarm mechanism corresponding to the first category of specific application software.
[0113] Combining the above-mentioned traffic package information and the first category of application software, the billing method, data traffic limit value and alarm method corresponding to the first category of each application software can be obtained, so as to bill and alarm the data traffic generated by each application software, which can adapt to the needs of different users and effectively improve the user experience.
[0114] Optionally, when the base station uploads the first category of application software to the user communication billing system, the user communication billing system continuously monitors the data traffic usage information of the application software to obtain the total data traffic usage of the application software.
[0115] And obtain the data traffic limit value corresponding to the first category of application software from the traffic package information subscribed by the user.
[0116] The total amount of data traffic usage is compared with the data traffic limit value. When the total amount of data traffic usage is less than or equal to the data traffic limit value, the total amount of data traffic usage is multiplied by the first charging price corresponding to the first category of the application software in the traffic package information to obtain the data traffic usage fee. The first charging price is the charging price in the package corresponding to the first category of the application software.
[0117] When the total amount of data traffic usage is greater than the data traffic limit value, the part of the total amount of data traffic usage that exceeds the data traffic limit value will be calculated according to the billing price outside the package corresponding to the first category of application software (traffic basic fee), that is, the second billing price, and the data traffic package fee corresponding to the first category of application software in the traffic package information, to obtain the data traffic usage fee.
[0118] It should be noted that the first charging price and the second charging price corresponding to each application type can be obtained by appropriately increasing or decreasing the preset price based on the charging price of ordinary traffic according to actual needs. In this way, the charging prices corresponding to the first categories of different application software can be quickly generated to form different traffic packages.
[0119] Among them, ordinary traffic refers to application software that fails the traffic type identification contract verification.
[0120] This embodiment charges the data traffic used by the application software according to the first category of the application software using the data traffic billing method corresponding to the first category of the application software. Differentiated billing of data traffic through the first category of the application software can meet the differentiated needs of users.
[0121] On the basis of the above embodiments, this embodiment further includes, after calculating the data traffic usage fee of the application software: if the total data traffic usage is greater than the data traffic alarm value corresponding to the first category of the application software in the traffic package information, sending an alarm message to the terminal; wherein the first category of the application software is pre-associated with the data traffic alarm value.
[0122] Specifically, while charging for traffic data, the user communication billing system can also monitor whether the total amount of data traffic used by the application software exceeds the data traffic alarm value corresponding to the first category of the application software in the traffic package information.
[0123] like Figure 4 As shown in the figure, when the total amount of data traffic usage exceeds the data traffic alarm value, an alarm request is initiated to the monitoring system, and the alarm information is reported to the monitoring system. After receiving the alarm information, the monitoring system sends the alarm information of the application software to the terminal via SMS according to the traffic package information subscribed by the user, and reminds the user in time.
[0124] The alarm information may include the total amount of data traffic usage, data traffic usage fees, and the situation where the total amount of data traffic usage exceeds the data traffic alarm value, etc. This embodiment does not specifically limit this.
[0125] Users can make corresponding adjustments to the frequency or time of using the application software based on the reminder information.
[0126] The data flow alarm value is a preset ratio of the data flow limit value, and the preset ratio can be set according to actual needs, such as 90%, 100%, and 120%.
[0127] This embodiment can effectively prevent users from becoming addicted to a certain application software and prevent users (especially children) from using a certain application software for a long time by giving timely reminders to users while ensuring that the users use the application software normally.
[0128] On the basis of the above embodiments, in this embodiment, if the total data traffic usage is greater than the data traffic alarm value corresponding to the first category of the application software in the traffic package information, an alarm message is sent to the terminal, including: if the total data traffic usage is greater than the data traffic alarm value, the alarm message is verified; if the alarm message verification passes, it is determined whether the sending frequency of the alarm message is less than a preset threshold, and if so, the alarm message is sent to the terminal.
[0129] Specifically, in order to improve the user experience, when the application software exceeds the data traffic alarm value, the user is notified in a timely manner, while avoiding alarm information errors and repeated sending of alarm information.
[0130] Optionally, when the total amount of data traffic usage is greater than the data traffic alarm value, the billing system sends an alarm request to the monitoring system and reports the alarm information. The monitoring system verifies the alarm information.
[0131] The verification method may be to verify whether the total data traffic usage is greater than the data traffic alarm value, whether the content and type of the alarm information comply with regulations, etc. This embodiment does not specifically limit this.
[0132] When the alarm information verification is passed, it is determined whether the sending frequency of the alarm information is less than a preset threshold. If it is less than the preset threshold, the alarm information is sent to the terminal, and the sending frequency of the alarm information is recorded.
[0133] In addition, it is also possible to determine whether the alarm information is repeated. If it is repeated, the alarm information is not sent to the terminal.
[0134] This embodiment sends alarm information to the terminal when the alarm information passes verification and the alarm information sending frequency meets the requirements, thereby reducing erroneous, repeated or high-frequency sending of alarm information, thereby improving the user experience while ensuring timely notification of users.
[0135] The data flow billing system of a terminal provided by the present invention is described below. The data flow billing system of a terminal described below and the data flow billing method of a terminal described above can be referred to each other.
[0136] like Figure 5 As shown, this embodiment provides a data traffic billing system for a terminal, the system includes an acquisition module 501 and a billing module 502, wherein:
[0137] The acquisition module 501 is used to acquire a network request initiated by a user through an application software of a terminal, parse the network request, and acquire a first category of the application software according to the parsed network request;
[0138] The terminal may be a mobile phone, a personal computer, or a tablet computer, etc., and this example does not specifically limit this.
[0139] The application software may be TikTok, WeChat, or iQiyi, etc., and this example does not specifically limit this.
[0140] When a user uses a terminal to surf the Internet, he needs to open the application software of the terminal. Then, the application software of the terminal initiates a network request to the base station. When the base station receives the network request initiated by the application software, it can parse the communication message protocol of the network request and obtain the first category of the application software according to the parsed communication message protocol of the network request.
[0141] The parsing method may be based on a DPI algorithm.
[0142] Optionally, the first category of the application software can be set according to actual needs, such as learning type, game type, entertainment type or work type, etc. For example, the TikTok software and the iQiyi software are entertainment types.
[0143] The billing module 502 is used to calculate the data traffic usage fee of the application software according to the first category and the total amount of data traffic usage of the application software, and the traffic package information subscribed by the user.
[0144] Specifically, in order to meet the needs of different types of users, there are multiple traffic packages in this embodiment for users to selectively subscribe according to actual needs.
[0145] like Figure 2 As shown, users can order different traffic packages through the package setting interface.
[0146] The billing prices, data traffic limits, data traffic alarm values, etc. for each application type in different traffic packages are different.
[0147] Compared with the traditional single data traffic billing method, in this embodiment, the user can select the corresponding traffic package according to actual needs. Accordingly, the method for billing the data traffic generated by the application software can be determined according to the traffic package information subscribed by the user, the first category of the application software and the total data traffic usage.
[0148] like Figure 3 As shown, after the base station acquires the first category of the application software, the first category of the application software is synchronized to the user communication billing system.
[0149] The user communication billing system can search for the correlation between the total data traffic used by the application software and the billing price in the traffic package information subscribed by the user according to the first category of the application software and the total data traffic usage, and obtain the billing price of the total data traffic usage of the application software.
[0150] Then, the traffic usage fee of the application software is calculated based on the billing price and the total amount of data traffic used.
[0151] The total amount of data traffic used is the sum of the data traffic used by the application software during the preset time period.
[0152] The preset time period can be set according to actual needs, such as from 0:00 to 24:00 of a day, or from the first day to the last day of a month, etc. This embodiment does not make specific limitations on this.
[0153] This embodiment can obtain the first category of the application software in real time by performing real-time analysis on the network request initiated by the application software, and determine the billing method of the total data traffic usage of the application software based on the first category of the application software and the total data traffic usage, as well as the traffic package information ordered by the user, and then accurately calculate the data traffic usage fee of the application software. Through the first category of the application software, the corresponding billing method is adaptively selected, making the billing method of traffic data more flexible and able to meet the differentiated needs of different users.
[0154] On the basis of the above embodiment, the network request in this embodiment includes a traffic type identification contract; the traffic type identification contract includes a header, the second category and identification information of the application software, and a verification string.
[0155] Based on the above embodiment, the acquisition module in this embodiment is specifically used for: verifying the traffic type identification contract according to the header and the verification string, and if the verification passes, parsing the second category and the identification information from the traffic type identification contract; if the second category is a preset category, obtaining the first category of the application software corresponding to the identification information; wherein the identification information is pre-associated with the first category.
[0156] On the basis of the above embodiment, the present embodiment also includes a verification module which is specifically used for: if the header is the same as a preset string, dividing the string composed of the header, the second category and the identification information into multiple strings according to preset intervals, performing an XOR operation on the multiple strings, and obtaining an XOR operation result; comparing the XOR operation result with the verification string, and determining whether the traffic type identification contract has passed the verification based on the comparison result.
[0157] On the basis of the above embodiments, the billing module in this embodiment is specifically used to: obtain the data traffic limit value corresponding to the first category of the application software from the traffic package information; if the total data traffic usage is less than or equal to the data traffic limit value, multiply the total data traffic usage by the first billing price corresponding to the first category of the application software in the traffic package information to obtain the data traffic usage fee; if the total data traffic usage is greater than the data traffic limit value, multiply the part of the total data traffic usage greater than the data traffic limit value by the second billing price corresponding to the first category of the application software in the traffic package information, and add the data traffic package fee corresponding to the first category of the application software in the traffic package information to obtain the data traffic usage fee; wherein, the first category of the application software is pre-associated with the data traffic limit value, the first billing price, the second billing price and the data traffic package fee.
[0158] Based on the above embodiment, this embodiment also includes a monitoring module specifically used to: if the total data traffic usage is greater than the data traffic alarm value corresponding to the first category of the application software in the traffic package information, then send an alarm message to the terminal; wherein the first category of the application software is pre-associated with the data traffic alarm value.
[0159] Based on the above embodiment, the monitoring module in this embodiment is also used for: if the total data traffic usage is greater than the data traffic alarm value, verifying the alarm information; if the alarm information verification is passed, determining whether the sending frequency of the alarm information is less than a preset threshold, and if so, sending the alarm information to the terminal.
[0160] 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 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 communicate with each other through the communication bus 604. The processor 601 may call the logic instructions in the memory 603 to execute the data traffic billing method of the terminal, the method comprising: obtaining a network request initiated by a user through an application software of the terminal, parsing the network request, and obtaining the first category of the application software according to the parsed network request; and calculating the data traffic usage fee of the application software according to the first category of the application software and the total amount of data traffic usage, as well as the traffic package information subscribed by the user.
[0161] In addition, the logic instructions in the above-mentioned memory 603 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 such an understanding, the technical solution of the present invention 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 invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0162] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the data traffic billing method for the terminal provided by the above methods, and the method includes: obtaining a network request initiated by a user through an application software of the terminal, parsing the network request, and obtaining a first category of the application software based on the parsed network request; calculating the data traffic usage fee of the application software based on the first category of the application software and the total data traffic usage, as well as the traffic package information subscribed by the user.
[0163] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the data traffic billing method for the above-mentioned terminals, the method comprising: obtaining a network request initiated by a user through an application software of the terminal, parsing the network request, and obtaining a first category of the application software based on the parsed network request; calculating the data traffic usage fee of the application software based on the first category of the application software and the total data traffic usage, as well as the traffic package information subscribed by the user.
[0164] The system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown 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 solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0165] 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, it 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.
[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 invention.
Claims
1. A terminal data flow billing method, characterized in that: include: Acquire a network request initiated by a user through an application software of a terminal, parse the network request, and acquire a first category of the application software according to the parsed network request; Calculate the data traffic usage fee of the application software according to the first category and the total amount of data traffic usage of the application software, and the traffic package information subscribed by the user; The network request includes the traffic type identification contract; The traffic type identification contract includes a header, the second category and identification information of the application software, and a verification string; The parsing the network request and obtaining the first category of the application software according to the parsed network request includes: Verifying the traffic type identification contract according to the header and the verification string, and if the verification passes, parsing the second category and the identification information from the traffic type identification contract; If the second category is a preset category, then the first category of the application software corresponding to the identification information is obtained; wherein the identification information is pre-associated with the first category.
2. The terminal data flow billing method according to claim 1, characterized in that: The verifying the traffic type identification contract according to the header and the verification string includes: If the header is the same as a preset character string, dividing the character string composed of the header, the second category and the identification information into multiple character strings according to preset intervals, performing an XOR operation on the multiple character strings, and obtaining an XOR operation result; The XOR operation result is compared with the verification string, and whether the traffic type identification contract passes the verification is determined according to the comparison result.
3. The terminal data flow billing method according to any one of claims 1-2, characterized in that: The calculating the data traffic usage fee of the application software according to the first category and the total amount of data traffic usage of the application software and the traffic package information subscribed by the user includes: Acquire the data traffic limit value corresponding to the first category of the application software from the traffic package information; If the total amount of data traffic usage is less than or equal to the data traffic limit value, multiplying the total amount of data traffic usage by the first charging price corresponding to the first category of the application software in the traffic package information to obtain the data traffic usage fee; If the total amount of data traffic usage is greater than the data traffic limit value, multiplying the portion of the total amount of data traffic usage that is greater than the data traffic limit value by the second charging price corresponding to the first category of the application software in the traffic package information, and adding the data traffic package fee corresponding to the first category of the application software in the traffic package information to obtain the data traffic usage fee; The first category of the application software is pre-associated with the data traffic limit value, the first billing price, the second billing price and the data traffic package fee.
4. The terminal data flow billing method according to any one of claims 1-2, characterized in that: After calculating the data traffic usage fee of the application software, the method further includes: If the total data traffic usage is greater than the data traffic alarm value corresponding to the first category of the application software in the traffic package information, an alarm message is sent to the terminal; wherein the first category of the application software is pre-associated with the data traffic alarm value.
5. The terminal data flow billing method according to claim 4, characterized in that: If the total amount of data traffic usage is greater than the data traffic alarm value corresponding to the first category of the application software in the traffic package information, sending an alarm message to the terminal includes: If the total amount of data traffic usage is greater than the data traffic alarm value, verifying the alarm information; If the alarm information verification passes, it is determined whether the sending frequency of the alarm information is less than a preset threshold. If so, the alarm information is sent to the terminal.
6. A terminal data user communication billing system, characterized in that: include: An acquisition module, configured to acquire a network request initiated by a user through an application software of a terminal, parse the network request, and acquire a first category of the application software according to the parsed network request; A billing module, used to calculate the data traffic usage fee of the application software according to the first category and the total amount of data traffic usage of the application software, and the traffic package information subscribed by the user; The network request includes the traffic type identification contract; The traffic type identification contract includes a header, the second category and identification information of the application software, and a verification string; The acquisition module is further used for: Verifying the traffic type identification contract according to the header and the verification string, and if the verification passes, parsing the second category and the identification information from the traffic type identification contract; If the second category is a preset category, then the first category of the application software corresponding to the identification information is obtained; wherein the identification information is pre-associated with the first category.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the data traffic billing method for the terminal as claimed in any one of claims 1 to 5 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data traffic billing method for a terminal as claimed in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Traffic counting method and device of network requests
CN109547222A