CN109996202B - Flow charging method and device - Google Patents

Flow charging method and device Download PDF

Info

Publication number
CN109996202B
CN109996202B CN201810002573.6A CN201810002573A CN109996202B CN 109996202 B CN109996202 B CN 109996202B CN 201810002573 A CN201810002573 A CN 201810002573A CN 109996202 B CN109996202 B CN 109996202B
Authority
CN
China
Prior art keywords
service
service flow
charging
priority
pts
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810002573.6A
Other languages
Chinese (zh)
Other versions
CN109996202A (en
Inventor
马静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810002573.6A priority Critical patent/CN109996202B/en
Publication of CN109996202A publication Critical patent/CN109996202A/en
Application granted granted Critical
Publication of CN109996202B publication Critical patent/CN109996202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/70Administration or customization aspects; Counter-checking correct charges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Abstract

The invention discloses a flow charging method, which comprises the following steps: acquiring service flow charging information and service flow state information of an object; converting the service flow state information into a priority type string PTS capable of representing a service state; carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array; dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix; calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result; and dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result. The invention also discloses a device for charging the flow and a computer readable storage medium.

Description

Flow charging method and device
Technical Field
The present invention relates to communication service support technologies, and in particular, to a method and an apparatus for charging traffic, and a computer-readable storage medium.
Background
With the development of the 4G service and the internet service, operators and internet companies can provide a variety of value-added services and packages to users, and many of the value-added services and packages are time-related, for example, the internet companies can provide traffic products with different time lengths to users, and the operators can provide time-related packages such as package hours, package months, package days and the like to the users. The same user may order a plurality of different products or packages, while the different products or packages may have an overlapping relationship, and the ticket division may be required to be accurately performed according to the time specified by the products or packages during charging, and such a requirement brings a serious challenge to the traditional charging mode. For example: an operator has introduced an hourly package a: the package contains 500M flow, the user is effective within 1 hour after successful ordering, and the priority of the package is the highest. A user has ordered package a at 21:05, and according to the business rules, the user at 21: the traffic generated between 05-22:05 should be preferential over package a. Because the traffic ticket and the service duration are in a nonlinear relationship, in order to realize accurate traffic ticket charging, the network device must be required to perform accurate ticket segmentation at two time points of 21:05 and 22:05, and 21: the charging system can only charge the accurate package under the use conditions of at least three sections of user flow between 05 and 22:05 and after 22: 05. At present, the call ticket is implemented according to the relevant static parameter configuration, and the configured static parameter configuration is irrelevant to the service information of the user at the charging side, under the condition, the network equipment cannot implement the call ticket segmentation of the accurate time point required by the charging, so that an error occurs when the charging system processes the call ticket of the cross-critical time point. As shown in fig. 1, the network device performs a ticket segmentation standard for 20 minutes, and the user segments 4 tickets in total between 21:00 and 22: 20; the user usage flow in ticket 1 includes both the flow of [ t1, x1 ] and the flow of [ x1, t2], and according to the service rules, the hourly package subscribed by the user can only be preferential 21: the call ticket traffic after 05 (i.e., [ x1, t2 ]), so that a charging error occurs here; similarly, the user usage traffic in ticket 4 includes traffic of [ t4, x 2] and traffic of [ x2, t5], and according to the service rules, the hourly package subscribed by the user can only be discounted by 22: before 05, a single flow, i.e., [ t4, x 2], and thus, the related art may have a billing error in the above case. While for the online flow meter billing mode, a fixed time cut point is set by the online billing system, for example: the time cut point was also set to 23: 00, the network device will address all online users 23: in the first CCR message after 00, dividing traffic usage of the user into 23: 00 before and 23: and (5) in the two sections after 00, the related package preferential calculation is carried out by the charging system.
Through the above analysis, the limitations of the prior art schemes are obvious, and on one hand, the method for implementing ticket segmentation and then implementing accurate charging only by means of relevant static parameter configuration in the prior art schemes cannot meet diversified service scenarios, for example: a traffic small packet service scene, a service requirement for the segmentation of the call bill at the dynamic time point; on the other hand, in the face of more and more complex business modes, a scene of multiple superposition of package preferential validity periods appears, for example: the user simultaneously orders the service scenes of the flow hour packet and the flow idle time packet, and the prior art cannot realize accurate charging under the multiple time superposition scene.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a flow charging method, a flow charging device, and a computer-readable storage medium, which implement a personalized flow charging manner, and flexibly charge packages ordered by users according to the priority and the time period of the packages ordered by each user, for different flow packages ordered by the users.
The embodiment of the invention provides a method for charging flow, which comprises the following steps:
acquiring service flow charging information and service flow state information of an object;
converting the service flow state information into a priority type string PTS capable of representing a service state;
carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array;
dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix;
calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result;
and dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result.
After receiving change information of a service flow state of an object, converting the service flow state information into a priority type string PTS capable of representing the service state, wherein the method comprises the following steps:
replacing the received change information of the service flow state of the object with the service flow state information of the acquired object;
and converting the change information of the service flow state of the object into a priority type string PTS capable of representing the service state.
The converting the service traffic status information into a priority type string PTS that can represent a service status includes:
distributing corresponding digital characters for different service states in advance to generate a corresponding relation;
analyzing the service flow state information to obtain a service state contained in the service flow state information;
distributing corresponding digital characters for the analyzed service state according to the corresponding relation to generate a priority type string PTS; and the sequence of the generated PTS is the analysis sequence when the service state contained in the service flow state information is analyzed.
Wherein, the above dynamically allocating priority parameters for all the groups in the cross-combination array to form a traffic charging priority policy matrix includes:
generating a flow charging priority strategy matrix according to the following formula:
Pij=[X1,X2......Xi]T·[Y1,Y2......Yj];
wherein, PijString representing a characterizable traffic state, XiIndicating service flow charging information, YjPTS is shown and T is the transpose of the matrix.
The dividing the service traffic charging period of the object according to the calculation result to generate a division result includes:
generating a binary charging tree according to the service flow charging priority sequence of the object in the calculation result;
and dividing the service flow charging period of the object according to the service flow charging priority sequence of the binary charging tree to generate a division result.
The embodiment of the invention provides a flow charging device, which comprises: the device comprises an acquisition module, a conversion module, a combination module, a distribution module, a calculation module, a division module and an output module; wherein the content of the first and second substances,
the acquisition module is used for acquiring the service flow charging information and the service flow state information of the object;
a conversion module, configured to convert the service traffic status information into a priority type string PTS that can represent a service status;
the combination module is used for carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array;
the distribution module is used for dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix;
the calculation module is used for calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result;
the dividing module is used for dividing the service flow charging period of the object according to the calculation result to generate a dividing result;
and the output module is used for outputting the division result.
Wherein, after receiving the change information of the service flow state of the object, the conversion module is further configured to:
replacing the received change information of the service flow state of the object with the service flow state information of the acquired object;
and converting the change information of the service flow state of the object into a priority type string PTS capable of representing the service state.
Wherein, the conversion module is used for:
distributing corresponding digital characters for different service states in advance to generate a corresponding relation;
analyzing the service flow state information to obtain a service state contained in the service flow state information;
distributing corresponding digital characters for the analyzed service state according to the corresponding relation to generate a priority type string PTS; and the sequence of the generated PTS is the analysis sequence when the service state contained in the service flow state information is analyzed.
Wherein, the distribution module is used for:
generating a flow charging priority strategy matrix according to the following formula:
Pij=[X1,X2......Xi]T·[Y1,Y2......Yj];
wherein, PijString representing a characterizable traffic state, XiIndicating service flow charging information, YjPTS is shown and T is the transpose of the matrix.
Wherein, the dividing module is used for:
generating a binary charging tree according to the service flow charging priority sequence of the object in the calculation result;
and dividing the service flow charging period of the object according to the service flow charging priority sequence of the binary charging tree to generate a division result.
An embodiment provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute, when running the computer program:
acquiring service flow charging information and service flow state information of an object;
converting the service flow state information into a priority type string PTS capable of representing a service state;
carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array;
dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix;
calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result;
and dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements:
acquiring service flow charging information and service flow state information of an object;
converting the service flow state information into a priority type string PTS capable of representing a service state;
carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array;
dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix;
calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result;
and dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result.
The method, the device and the computer readable storage medium for charging the flow, provided by the embodiment of the invention, are used for acquiring the service flow charging information and the service flow state information of an object; converting the service flow state information into a priority type string PTS capable of representing a service state; carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array; dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix; calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result; dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result; therefore, by constructing a service scene synchronization module, a priority policy configuration matrix and a package priority dynamic calculation center and providing concepts such as static priority, dynamic priority, a service type set, a priority type string (PTS code) and the like, an individualized flow charging mode is realized, charging is carried out according to the priority and the time period of the package ordered by each user aiming at different flow packages ordered by the users, and the problem that accurate flow individualized charging cannot be realized in the prior art is solved.
Drawings
In the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. Like reference numerals having different letter suffixes may represent different examples of similar components. The drawings illustrate generally, by way of example, but not by way of limitation, various embodiments discussed herein.
FIG. 1 is a schematic diagram of a charging error of a traffic ticket;
fig. 2 is a flowchart illustrating a flow charging method for traffic according to a first embodiment of the present invention;
fig. 3 is a schematic structural diagram of a flow charging device according to a second embodiment of the present invention;
fig. 4 is a schematic data flow diagram of a charging apparatus based on duration according to a third embodiment of the present invention;
fig. 5 is a flowchart illustrating a procedure of performing accurate charging by using a flow charging device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Example one
Fig. 2 is a schematic flow chart of a traffic charging method according to an embodiment of the present invention, and as shown in fig. 2, the flow of the traffic charging method according to the embodiment of the present invention includes:
step 201: acquiring service flow charging information and service flow state information of an object;
in practical application, after a user orders a data traffic product or package based on a duration, the user often needs to use the ordered data traffic product or package immediately, so that in the charging process for the user, the traffic charging method provided by the embodiment of the present invention needs to obtain information of the data traffic product or package ordered by the user, that is, obtain charging information of the service traffic of an object, and also needs to obtain current service traffic state information of the user, for example: the change scene of the user data flow package comprises the following steps: set meal does not have scenes such as change, set meal unsubscribe, set meal inefficacy, user state scene includes: the scenes that the state is unchanged, the state of a user is in a user passing state, the user is in a halt state, the user is in a pre-sale state and the like, and the scene of network speed and bandwidth change comprises the following steps: no bandwidth change, bandwidth increase, bandwidth decrease and the like.
Step 202: converting the service flow state information into a Priority Type String (PTS, Priority Type String) capable of representing a service state;
when receiving change information of a service flow state of an object, replacing the received change information of the service flow state of the object with the service flow state information of the acquired object;
converting the change information of the service flow state of the object into a PTS capable of representing the service state;
wherein, the corresponding digital characters are allocated to different service states in advance to generate corresponding relations;
analyzing the service flow state information to obtain a service state contained in the service flow state information;
distributing corresponding digital characters for the analyzed service state according to the corresponding relation to generate PTS; and the sequence of the generated PTS is the analysis sequence when the service state contained in the service flow state information is analyzed.
In practical application, when a user needs to perform online charging control, the service traffic state information is converted into a PTS that can represent a service state, as shown in table 1 below, where the PTS may be represented as a combination of a series of PTS characteristic values:
set meal change scene User status scenario Network speed bandwidth change scenario ……
0-no change 0-no change 0-no change ……
1-Change 1-passing home 1-wire speed up ……
2-unsubscribe 2-shutdown 2-reduction of net speed ……
3-failure of 3-preliminary pinning …… ……
…… …… …… ……
TABLE 1
For example: when the PTS is 000, the user is indicated that no relevant service is changed currently; when PTS is 020, the user is in a shutdown state; and when the PTS is 330, the user is indicated that the ordered package is invalid and is in a pre-sale state, and so on, various complex service scene sets can be expressed through different combinations of the PTS.
Step 203: carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array;
step 204: dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix;
the method comprises the following steps of generating a flow charging priority strategy matrix according to the following formula:
Figure BDA0001537560440000081
wherein, PijString representing a characterizable traffic state, XiIndicating service flow charging information, YjPTS is shown and T is the transpose of the matrix.
In practical application, the priority parameters of the data traffic packages subscribed by various users under different service scene sets can be obtained through the above formula (1), as shown in the following table 2:
service set Y1 Service set Y2 Service set Y3
Set meal type X1 Priority parameter P11 Priority parameter P12 Priority parameter P13
Set meal type X2 Priority parameter P21 Priority parameter P22 Priority parameter P23
Set meal type X3 Priority parameter P31 Priority parameter P32 Priority parameter P33
TABLE 2
Wherein, XiThe traffic demand can be expressed as a traffic hour packet, a traffic oil-in-oil packet, a traffic idle time packet and the like; y isjCan be represented as a series of PTS characteristic value combinations according to service requirements, and the specific combination mode can refer to the phase of Table 1And (7) a description is given.
Step 205: calculating the priority of the service flow charging of the object according to the flow charging priority policy matrix and a preset initial service flow charging priority to obtain a calculation result;
in practical application, when a service scene of a user changes, user service scene change data needs to be converted into a PTS corresponding to the service scene change data, dynamic priority calculation is performed on a data traffic package ordered by the user, and priority P for charging different service traffic of the user is obtainedij
Step 206: and dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result.
Generating a binary charging tree according to the service traffic charging priority sequence of the object in the calculation result;
and dividing the service flow charging period of the object according to the service flow charging priority sequence of the binary charging tree to generate a division result.
In practical application, a binary tree is established according to calculation results of charging priorities of different data traffic products or packages ordered by a user, when cost calculation is needed, a dividing instruction of a user service traffic charging period is sent according to the calculation results, and accurate charging is achieved according to the dividing instruction.
As described above, in the embodiments of the present invention, the service traffic charging information and the service traffic status information of the object are obtained; converting the service flow state information into a priority type string PTS capable of representing a service state; carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array; dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix; calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result; dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result; therefore, by constructing a service scene synchronization module, a priority policy configuration matrix and a package priority dynamic calculation center and providing concepts such as static priority, dynamic priority, a service type set, a priority type string (PTS code) and the like, an individualized flow charging mode is realized, charging is carried out according to the priority and the time period of the package ordered by each user aiming at different flow packages ordered by the users, and the problem that accurate flow individualized charging cannot be realized in the prior art is solved.
Example two
Fig. 3 is a schematic structural diagram of a traffic charging device according to an embodiment of the present invention, and as shown in fig. 3, the structure of the traffic charging device according to the embodiment of the present invention includes: an acquisition module 301, a conversion module 302, a combination module 303, a distribution module 304, a calculation module 305, a division module 306 and an output module 307; wherein the content of the first and second substances,
an obtaining module 301, configured to obtain service traffic charging information and service traffic state information of an object;
a conversion module 302, configured to convert the service traffic status information into a priority type string PTS that can represent a service status;
the combining module 303 is configured to perform cross-combining on the service traffic charging information and the PTS sequentially one by one to obtain a cross-combined array;
an allocating module 304, configured to dynamically allocate priority parameters to all the groups in the cross-combined array, respectively, to form a traffic charging priority policy matrix;
a calculating module 305, configured to calculate a service traffic charging priority of the object according to the traffic charging priority policy matrix and a preset initial service traffic charging priority, so as to obtain a calculation result;
a dividing module 306, configured to divide the service traffic charging period of the object according to the calculation result, and generate a dividing result;
an output module 307, configured to output the division result.
After receiving the change information of the service traffic status of the object, the conversion module 302 is further configured to:
replacing the received change information of the service flow state of the object with the service flow state information of the acquired object;
and converting the change information of the service flow state of the object into a priority type string PTS capable of representing the service state.
Wherein, the converting module 302 is configured to:
distributing corresponding digital characters for different service states in advance to generate a corresponding relation;
analyzing the service flow state information to obtain a service state contained in the service flow state information;
distributing corresponding digital characters for the analyzed service state according to the corresponding relation to generate a priority type string PTS; and the sequence of the generated PTS is the analysis sequence when the service state contained in the service flow state information is analyzed.
Wherein the allocating module 304 is configured to:
generating a flow charging priority strategy matrix according to the following formula:
Figure BDA0001537560440000111
wherein, Pij represents a character string capable of representing service state, Xi represents service flow charging information, Yj represents PTS, and T represents the transposition of matrix.
Wherein the dividing module 306 is configured to:
generating a binary charging tree according to the service flow charging priority sequence of the object in the calculation result;
and dividing the service flow charging period of the object according to the service flow charging priority sequence of the binary charging tree to generate a division result.
An embodiment of the present invention provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute, when running the computer program:
acquiring service flow charging information and service flow state information of an object;
converting the service flow state information into a priority type string PTS capable of representing a service state;
carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array;
dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix;
calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result;
and dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements:
acquiring service flow charging information and service flow state information of an object;
converting the service flow state information into a priority type string PTS capable of representing a service state;
carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array;
dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix;
calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result;
and dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result.
It should be noted that, the implementation of the functions of the obtaining module 301, the converting module 302, the combining module 303, the allocating module 304, the calculating module 305, the dividing module 306, and the outputting module 307 according to the embodiment of the present invention can be specifically understood according to the description related to the traffic charging method according to the embodiment of the present invention, and details are not described here again.
The above-described acquisition module 301, conversion module 302, combination module 303, assignment module 304, calculation module 305, division module 306, and output module 307 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof. The nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The acquisition module 301, conversion module 302, combination module 303, assignment module 304, calculation module 305, division module 306, and output module 307 of the embodiments described herein are intended to comprise, without being limited to, these and any other suitable types of memory.
In an exemplary embodiment, the obtaining module 301, the converting module 302, the combining module 303, the allocating module 304, the calculating module 305, the dividing module 306, and the outputting module 307 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
The accurate charging based on the duration of the embodiment of the present invention is described in detail below based on the operation module of the traffic charging proposed by the present invention in practical application.
EXAMPLE III
Fig. 4 is a schematic data flow diagram of a time-based precision charging apparatus according to an embodiment of the present invention, and as shown in fig. 4, the schematic data flow diagram of the time-based precision charging apparatus according to the embodiment of the present invention includes:
the service scene synchronization module 401: the module records package information ordered by a user, such as value-added products, monthly packages, hourly packages and other information ordered by the user, and service scene data which may relate to the change of the bill charging rule, such as: user change package records, user shutdown records, user startup records, and the like.
Priority static configuration module 402: the module records the priority parameter configured by the flow packages ordered by the user and specifies the priority sequence of each package when no service scene is triggered. For example: the user simultaneously orders a flow hour packet, a flow idle time packet and a common flow package, and the priority order under the promotion of a no-service scene is as follows: flow hourly packet > flow idle packet > normal flow package.
The priority policy configuration matrix module 403: the service scenario and the package type are combined in a cross manner to obtain the priority strategies of different packages under different service scenarios, wherein the service scenario is a set of a series of scenario descriptions, the service traffic state information is converted into a PTS capable of representing a service state, and the PTS can be represented as a combination of a series of PTS characteristic values, for example: when the PTS is 000, the user is indicated that no relevant service is changed currently; when PTS is 020, the user is in a shutdown state; and when the PTS is 330, the user is indicated that the ordered package is invalid and is in a pre-sale state, and so on, various complex service scene sets can be expressed through different combinations of the PTS. And by the formula
Figure BDA0001537560440000141
The priority parameters of the data flow packages ordered by various users under different service scene sets can be obtained, wherein P isijString representing a characterizable traffic state, XiIndicating service flow charging information, YjRepresenting PTS, T represents the transpose of the matrix, and in practical applications, X representsiThe traffic demand can be expressed as a traffic hour packet, a traffic oil-in-oil packet, a traffic idle time packet and the like; y isjCan be represented as a series of combinations of PTS characteristic values according to service requirements, and the specific combination manner can refer to the relevant description of table 1.
Dynamic compute farm module 404: converting the service change data of the service scene synchronization module into different Priority Type Strings (PTS), judging the flow package ordered by the user to carry out dynamic priority calculation, and obtaining the dynamic priority P of the packageij
Binary tree building block 405: and when the charge calculation module calculates the charge, sending an instruction to the ticket generation module to perform personalized ticket segmentation according to the calculation result of the accurate duration charging device.
As described above, by constructing the service scene synchronization module 401, the priority policy configuration matrix module 403, and the package priority dynamic calculation center module 404, and providing methods such as a static priority, a dynamic priority, a service type set, and a priority type string (PTS code), a personalized traffic charging method is implemented, and for different traffic packages ordered by a user, charging is performed according to the priority and the time period of the package ordered by each user, so as to solve the problem that accurate traffic personalized charging cannot be implemented in the prior art.
Example four
Fig. 5 is a schematic flow chart illustrating a process of performing accurate charging by using a charging device for traffic according to an embodiment of the present invention, where as shown in fig. 5, the process of performing accurate charging by using the charging device for traffic according to the embodiment of the present invention includes:
step 501: a user orders a product or package based on duration, and uses the product or package to generate data service flow;
step 502: the call ticket generating module sends a message to the expense calculating module and applies for configuration information to the expense calculating module;
step 503: the cost calculation module sends package ordered by the user and service flow state information of the user to the accurate duration charging device, and the accurate duration charging device calculates configuration information;
step 504: the accurate time length charging device judges the product ordered by the user or the priority of the use of the package, the available time length and other information according to the package ordered by the user and the service state of the user;
the method comprises the steps of obtaining service flow charging information and service flow state information of a user; converting the service flow state information into a priority type string PTS capable of representing a service state; carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array; dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix; calculating the service flow charging priority of the user according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result; dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result; the output content can be the priority of the product or package ordered by the user, and can also be the information such as the time length of the use.
It should be noted that, the charging method described in step 504 in the embodiment of the present invention may be understood by referring to the description related to the charging method for traffic flow described in the first embodiment of the present invention, and details are not described here again.
Step 505: and the charge calculation module informs the ticket generation module of providing data service for the user according to the information fed back by the accurate duration charging device, and carries out operations such as fee deduction and the like.
And calculating the cost required to be paid by the user according to the bill and the subscription information dialogue list of the user, generating a user bill and providing the user bill for payment, or deducting the pre-stored cost previously paid by the user. In practical application, the processing logic of the expense calculation module is complex, a set of general processing logic is provided, the modification amount of the processing logic for modifying the expense calculation module is large, and unknown influence on other functions of the expense calculation module can be caused. Therefore, in order to realize personalized control according to the duration, the embodiment of the invention adds the accurate duration charging device as a supplement of the charge calculation module, and the main function is to calculate the priority and the usable duration of the different duration type superposed products ordered by the user according to the personalized ordering information of the user.
EXAMPLE five
The following describes in detail the process of implementing accurate charging for the traffic charging method proposed in the embodiment of the present invention with specific application in practice:
in the embodiment of the invention, a user subscribes to a common traffic package A, and subscribes to a package B traffic for half an hour at 21:05 (21:05-21:35), wherein the priority of the package of hours is higher than that of the common traffic package. The static priority of packages is configured preferentially, e.g. the priority of a normal traffic package is 20 and the priority of an hour packet package is 30. When the user 21:20 uses the data service, the user's status is not normal, the PTS is assumed to be [000], when the user 21:40 uses the data service, the hour packet is in a failure status, the PTS is assumed to be [100], and a priority policy configuration matrix of two packages of PTS codes and A, B is constructed again, so that an exemplary matrix shown in the following table 3 can be obtained:
general flow package Small meal ……
PTS=[000] 0 0
PTS=[100] 15 0
……
TABLE 3
Specifically, when the user 21:05 uses the data traffic by a given time, the static priorities of packages are Astatic (20) and Bstatic (30), and the PTS of the user is 000, so the dynamic priorities of packages are Adynamic (0) and Bdynamic (0), and the real-time priorities of packages of users are: the priority + Adynamic is 20, the bppriority + Bstatic + Bdynamic is 30, and the user charges for a fee in the order of a and B.
When the user 21:40 uses the data traffic, the static priority of the package is Astatic (20) and Bstatic (30), and the PTS of the user is 100, so the dynamic priority of the package is Adynamic (15) and Bdynamic (0), so the real-time priority of the package of the user is: the priority + Adynamic is 35, the bppriority + Bstatic + Bdynamic is 30, and the user charges in the order of B first and a second for charging preference.
In summary, the traffic charging method, the traffic charging device, and the computer-readable storage medium according to the embodiments of the present invention obtain the service traffic charging information and the service traffic status information of the object; converting the service flow state information into a priority type string PTS capable of representing a service state; carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array; dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix; calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result; dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result; therefore, by constructing a service scene synchronization module, a priority policy configuration matrix and a package priority dynamic calculation center and providing concepts such as static priority, dynamic priority, a service type set, a priority type string (PTS code) and the like, an individualized flow charging mode is realized, charging is carried out according to the priority and the time period of the package ordered by each user aiming at different flow packages ordered by the users, and the problem that accurate flow individualized charging cannot be realized in the prior art is solved.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A method for charging traffic, the method comprising:
acquiring service flow charging information and service flow state information of an object;
converting the service flow state information into a priority type string PTS capable of representing a service state;
carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array;
dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix;
calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result;
dividing the service flow charging period of the object according to the calculation result to generate a division result, and outputting the division result;
wherein, the converting the service flow state information into a priority type string PTS capable of representing a service state includes:
distributing corresponding digital characters for different service states in advance to generate a corresponding relation;
analyzing the service flow state information to obtain a service state contained in the service flow state information;
distributing corresponding digital characters for the analyzed service state according to the corresponding relation to generate a priority type string PTS; and the sequence of the generated PTS is the analysis sequence when the service state contained in the service flow state information is analyzed.
2. The method according to claim 1, wherein after receiving the change information of the traffic flow status of the object, the method converts the traffic flow status information into a priority type string PTS that can characterize the traffic status, and the method comprises:
replacing the received change information of the service flow state of the object with the service flow state information of the acquired object;
and converting the change information of the service flow state of the object into a priority type string PTS capable of representing the service state.
3. The method according to claim 1, wherein dynamically allocating priority parameters to all groups in the cross-combined array to form a traffic charging priority policy matrix comprises:
generating a flow charging priority strategy matrix according to the following formula:
Figure FDA0002848245990000021
wherein, PijString representing a characterizable traffic state, XiIndicating service flow charging information, YjPTS is shown and T is the transpose of the matrix.
4. The method according to claim 1, wherein the dividing the service traffic charging period of the object according to the calculation result to generate a division result comprises:
generating a binary charging tree according to the service flow charging priority sequence of the object in the calculation result;
and dividing the service flow charging period of the object according to the service flow charging priority sequence of the binary charging tree to generate a division result.
5. A traffic charging apparatus, characterized in that the apparatus comprises: the device comprises an acquisition module, a conversion module, a combination module, a distribution module, a calculation module, a division module and an output module; wherein the content of the first and second substances,
the acquisition module is used for acquiring the service flow charging information and the service flow state information of the object;
a conversion module, configured to convert the service traffic status information into a priority type string PTS that can represent a service status;
the combination module is used for carrying out cross combination on the service flow charging information and the PTS in sequence item by item to obtain a cross combination array;
the distribution module is used for dynamically distributing priority parameters for all the groups in the cross combination array respectively to form a flow charging priority strategy matrix;
the calculation module is used for calculating the service flow charging priority of the object according to the flow charging priority strategy matrix and a preset initial service flow charging priority to obtain a calculation result;
the dividing module is used for dividing the service flow charging period of the object according to the calculation result to generate a dividing result;
the output module is used for outputting the division result;
the conversion module is used for:
distributing corresponding digital characters for different service states in advance to generate a corresponding relation;
analyzing the service flow state information to obtain a service state contained in the service flow state information;
distributing corresponding digital characters for the analyzed service state according to the corresponding relation to generate a priority type string PTS; and the sequence of the generated PTS is the analysis sequence when the service state contained in the service flow state information is analyzed.
6. The apparatus of claim 5, wherein after receiving the change information of the traffic flow status of the object, the conversion module is further configured to:
replacing the received change information of the service flow state of the object with the service flow state information of the acquired object;
and converting the change information of the service flow state of the object into a priority type string PTS capable of representing the service state.
7. The apparatus of claim 5, wherein the assignment module is configured to:
generating a flow charging priority strategy matrix according to the following formula:
Figure FDA0002848245990000031
wherein, PijString representing a characterizable traffic state, XiIndicating service flow charging information, YjPTS is shown and T is the transpose of the matrix.
8. The apparatus of claim 5, wherein the partitioning module is configured to:
generating a binary charging tree according to the service flow charging priority sequence of the object in the calculation result;
and dividing the service flow charging period of the object according to the service flow charging priority sequence of the binary charging tree to generate a division result.
9. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 4 when running the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN201810002573.6A 2018-01-02 2018-01-02 Flow charging method and device Active CN109996202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810002573.6A CN109996202B (en) 2018-01-02 2018-01-02 Flow charging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810002573.6A CN109996202B (en) 2018-01-02 2018-01-02 Flow charging method and device

Publications (2)

Publication Number Publication Date
CN109996202A CN109996202A (en) 2019-07-09
CN109996202B true CN109996202B (en) 2021-04-13

Family

ID=67128268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810002573.6A Active CN109996202B (en) 2018-01-02 2018-01-02 Flow charging method and device

Country Status (1)

Country Link
CN (1) CN109996202B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751688B (en) * 2019-10-30 2023-08-01 中兴通讯股份有限公司 Flow control processing method of OTN (optical transport network) equipment, electronic equipment and storage medium
CN113139802B (en) * 2020-01-16 2022-12-09 中国移动通信集团山东有限公司 Content charging rule scheduling method, device, storage medium and computer equipment
CN111432360B (en) * 2020-05-19 2021-03-26 北京思特奇信息技术股份有限公司 Method for dynamically adjusting charging priority and method for loading tariff syntax tree
CN112073202B (en) * 2020-08-17 2023-03-24 中化信息技术有限公司 Information generation method and device, electronic equipment and computer readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815965A (en) * 2006-02-22 2006-08-09 北京邮电大学 Service quality charging method of internet business based on service grade protcol
CN103490909A (en) * 2012-06-13 2014-01-01 中兴通讯股份有限公司 Charging processing method and device
CN106330745A (en) * 2016-08-24 2017-01-11 重庆大学 Traffic policy selection method and traffic policy selection device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3007400B1 (en) * 2014-10-08 2020-09-23 Vodafone GmbH Network resource prioritization for mobile terminating services

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815965A (en) * 2006-02-22 2006-08-09 北京邮电大学 Service quality charging method of internet business based on service grade protcol
CN103490909A (en) * 2012-06-13 2014-01-01 中兴通讯股份有限公司 Charging processing method and device
CN106330745A (en) * 2016-08-24 2017-01-11 重庆大学 Traffic policy selection method and traffic policy selection device

Also Published As

Publication number Publication date
CN109996202A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN109996202B (en) Flow charging method and device
CN110233741B (en) Service charging method, device, equipment and storage medium
CN105809323A (en) Task allocation method and system
CN106897206A (en) A kind of service test method and device
US9619827B1 (en) Flexible resource commitments for computing resources
CN110599148B (en) Cluster data processing method and device, computer cluster and readable storage medium
CN110458611A (en) Method, apparatus and calculating equipment for processing of fixing a price
CN109461053B (en) Dynamic distribution method of multiple recommendation channels, electronic device and storage medium
CN109669995A (en) Data storage, quality calculation method, device, storage medium and server
CN110852559A (en) Resource allocation method and device, storage medium and electronic device
CN107276970A (en) One kind is unbinded, binding method and device
CN102222285A (en) Multi-dimensional data linkage computing device and multi-dimensional data linkage computing method
CN107147610B (en) Resource processing method and device
CN113037510A (en) Charging method, charging device and computer readable storage medium
CN111861525A (en) Task execution method and device, electronic equipment and computer readable storage medium
CN109299875A (en) Data tracking processing method, device, computer equipment and storage medium
CN107395663A (en) Data capture method and device
CN107767010A (en) Range value data statistical method, electronic installation and computer-readable recording medium
CN111768174A (en) Activity management method, apparatus, device and medium
CN106951225B (en) Data processing method and device based on service configuration template
CN104735134A (en) Method and device for providing computing service
CN104700291A (en) Express cloud quotation system
CN110662188B (en) Charging method and system
CN110300000B (en) Charging mode changing method and device, electronic equipment and readable storage medium
CN114493756A (en) Resource management method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant