CN109428731B - Online data flow charging method, device, equipment and computer storage medium - Google Patents

Online data flow charging method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN109428731B
CN109428731B CN201710719295.1A CN201710719295A CN109428731B CN 109428731 B CN109428731 B CN 109428731B CN 201710719295 A CN201710719295 A CN 201710719295A CN 109428731 B CN109428731 B CN 109428731B
Authority
CN
China
Prior art keywords
time
message
ccr
charging
flow
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
CN201710719295.1A
Other languages
Chinese (zh)
Other versions
CN109428731A (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 Group Anhui Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Anhui Co Ltd
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 Group Anhui Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710719295.1A priority Critical patent/CN109428731B/en
Publication of CN109428731A publication Critical patent/CN109428731A/en
Application granted granted Critical
Publication of CN109428731B publication Critical patent/CN109428731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1439Metric aspects time-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/141Indication of costs
    • H04L12/1414Indication of costs in real-time

Abstract

The invention discloses an online data flow charging method, device, equipment and computer storage medium. The method comprises the following steps: analyzing a credit control request CCR message to determine an internet access key field of the CCR message and the reporting time of the CCR message; searching the reporting time of the previous message of the CCR message cached in the time caching unit according to the Internet access key field to serve as the starting time of the flow value in the CCR message; and generating a flow ticket for charging according to the starting moment of the flow value. By adopting the embodiment of the invention, the accurate starting time of the network element equipment using the data flow is obtained by respectively processing the time data of the reported message without upgrading and transforming the network element equipment, and the accurate charging of the flow bill based on the time dimension is realized.

Description

Online data flow charging method, device, equipment and computer storage medium
Technical Field
The present invention belongs to the field of communication technology, and in particular, to an online data traffic charging method, apparatus, device, and computer storage medium.
Background
An Offline Charging System (OFCS) is adopted for normal traffic Charging, processed Offline ticket files are generated by network element devices according to a uniform rule, and traffic ticket segmentation can only be performed according to a uniform time point, for example, 23:00 hours and 7:00 hours per day, but at present, traffic is sold more and more frequently according to time dimension classification, for example, a holiday traffic packet, a busy and idle traffic packet, an hour packet and the like, and the OFCS cannot perform personalized traffic ticket segmentation for users who subscribe to different traffic packets.
With the continuous development of mobile communication technology, the speed of mobile internet access of users is faster and faster, and the processing speed of a traffic Charging System is required to be faster and faster, so that an Online data traffic Charging System (OCS) is established. The network element equipment reports related flow data generated in the user internet surfing process to the OCS in real time, and the OCS generates a flow bill according to the related flow data and then carries out real-time charging and reminding according to the flow bill. Usually, only the message reporting time in the message processed by the OCS is the same message, and the same message lacks clear traffic starting time data, the OCS interacts with the network element device according to the traffic slice, so that personalized traffic ticket segmentation can be performed for users who subscribe different traffic packets, but the same message lacks clear starting time data of two segments of traffic after segmentation.
The preferential flow charging based on the time package needs to carry out differentiated charging according to the starting time of the flow value, the OCS and the network element equipment interact according to the flow sheet, and the interacted message does not have the flow starting time and does not have duration data. The network element equipment requests an online charging system for surfing the Internet through a Diameter protocol message CCR, wherein the CCR messages have three types and respectively correspond to a first Internet surfing application (a Credit Control Request-Initial, CCR-I), a quota use-up continuing application (a Credit Control Update-Initial, CCR-U) and a logoff application (a Credit Control Termination-Initial, CCR-T). The CCR-I message comprises the reporting time but no flow value, and the CCR-U message and the CCR-T message comprise both the reporting time and the flow value.
In the user internet access process, the CCR-I message is a first internet access request, has no flow value and cannot generate a flow ticket for charging, the CCR-T message can only appear when the user is off the internet or the network is interrupted, the CCR-T message cannot appear in the user internet access process, the user internet access duration is very long, and therefore the CCR-I message is not suitable for serving as a charging basis. Therefore, the online data flow meter takes time and takes the CCR-U message as a charging basis and a ticket landing basis, but cannot take the CCR-I message or the CCR-T message as the charging basis and the ticket landing basis, and takes the Event-Timestamp value in the current CCR-U message as the starting time of the flow value in the internet surfing process, and the charging is carried out according to the Event-Timestamp value. Actually, the Event-Timestamp value in the CCR-U message is the end time of the online data traffic, and therefore the preference for the time-based package is inaccurate and cannot meet the requirement for accurate traffic charging. The Event-Timestamp value is in seconds, is universal time and is not provided with a time zone, the Event-Timestamp value is session starting time when the request is first made, the Event-Timestamp value is reporting time of CCR when the request is made again, and the Event-Timestamp value is session ending time when the request is ended.
Disclosure of Invention
Embodiments of the present invention provide an online data traffic charging method, apparatus, device, and computer storage medium, which can obtain an accurate start time of online data traffic, and implement a requirement for accurate charging of a traffic ticket based on a time dimension.
In one aspect, an embodiment of the present invention provides an online data traffic charging method, where the method includes:
analyzing a credit control request CCR message to determine an internet access key field of the CCR message and the reporting time of the CCR message;
searching the reporting time of the previous message of the CCR message cached in the time caching unit according to the Internet access key field to serve as the starting time of the flow value in the CCR message;
and generating a flow ticket for charging according to the starting moment of the flow value.
On the other hand, an embodiment of the present invention provides an online data traffic charging device, where the device includes:
the analysis unit is used for analyzing the credit control request CCR message to determine the internet access key field of the CCR message and the reporting time of the CCR message;
the time caching unit is used for searching the reporting time of the previous message of the CCR message cached in the time caching unit according to the Internet access key field and taking the reporting time as the starting time of the flow value in the CCR message;
and the ticket generating unit is used for generating a flow ticket for charging according to the starting moment of the flow value.
Meanwhile, there should be an important operation content to explain: and updating the corresponding time data in the time cache unit by using the reporting time in the CCR message for the next call ticket generation.
In another aspect, an embodiment of the present invention provides an online data traffic charging device, where the device includes: a processor and a memory storing computer program instructions;
when the processor executes the computer program instructions, the online data traffic charging method provided by the embodiment of the invention is realized.
In yet another aspect, embodiments of the present invention provide a computer storage medium having computer program instructions stored thereon;
when executed by a processor, the computer program instructions implement the online data traffic charging method provided by the embodiment of the invention.
According to the online data flow charging method, the online data flow charging device, the online data flow charging equipment and the computer storage medium, the starting time of the online data flow value can be obtained according to the reporting time cached in the time caching unit, the network element equipment keeps the existing processing logic and the message format unchanged, the requirement of accurate charging of a flow bill based on the time dimension is met, and the flow service based on the time charging can be accurately popularized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating an online data traffic charging method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a processing flow of a CCR-I packet provided in an embodiment of the present invention;
fig. 3 is a signaling flow diagram of online data traffic charging according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an online data traffic charging apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an online data traffic charging device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In order to solve the problem of the prior art, embodiments of the present invention provide an online data traffic charging method, apparatus, device, and computer storage medium. First, the online data traffic charging method provided in the embodiment of the present invention is described below.
Fig. 1 is a flowchart illustrating an online data traffic charging method according to an embodiment of the present invention. As shown in fig. 1, the method may include:
step S110, the credit control request CCR message is analyzed to determine the internet access key field of the CCR message and the reporting time of the CCR message.
And step S120, searching the reporting time of the previous message of the CCR message cached in the time caching unit according to the Internet access key field, and taking the reporting time as the starting time of the flow value in the CCR message.
Step S130, generating a flow bill for charging according to the starting moment of the flow value.
In an embodiment of the invention, the Event-Timestamp values in the CCR-I message, the CCR-U message and the CCR-T message can be processed respectively, and the relevant flow data in the CCR-U message and the CCR-T message can be processed respectively to generate a flow ticket for charging.
In an embodiment of the invention, the credit control request CCR message is analyzed to determine the internet access key field of the CCR message and the reporting time of the CCR message. The CCR message may be a CCR-U message or a CCR-T message, the key field may include, for example, a charging number and a charging identifier of a Packet Data Protocol (PDP) context, and an internet access process may be uniquely identified according to the internet access key field.
For example, in the user internet surfing process, when a traffic piece pre-allocated by an online charging user runs out or the internet surfing time length exceeds a threshold value, an OCS receives a CCR-U message reported by a network element device, where the message carries data such as a charging number, a charging identifier of a PDP context, a reporting time, and a traffic value, and the CCR-U message is analyzed to determine an internet surfing key field and a reporting time in the current CCR-U message.
In an embodiment of the present invention, a reporting time of a last message of a cached CCR message is searched in a time caching unit according to an internet access key field, and the reporting time is used as a starting time of a flow value in the CCR message, where the CCR message may be a CCR-U message or a CCR-T message.
It should be noted that: the time caching unit of the embodiment of the invention caches the reporting time data corresponding to each message, because the one-time complete internet access process of the user comprises the following steps: one CCR-I message starts, a plurality of CCR-U messages circulate and one CCR-T message ends. Therefore, the previous message of the CCR-U message can be a CCR-I message or a CCR-U message, and the previous message of the CCR-T message can be a CCR-U message.
In an embodiment of the present invention, if the CCR packet includes a flow value, a reporting time of a previous packet of the CCR packet cached in the time caching unit is used as a starting time of a flow value in the CCR packet.
For example, taking a CCR-U message as an example, assuming that the CCR-U message includes a traffic Value F1, it indicates that the traffic Value F1 of the CCR-U message is in the same rate period, and the reporting time of the previous message of the CCR-U message cached in the time caching unit is used as the starting time of the traffic Value F1 of the CCR-U message, for example, a charging number obtained after parsing the CCR-U message and a charging identifier of a PDP context may be used as Key values, a corresponding Value is searched in the time caching unit, and the searched Value T1 is used as the starting time of the traffic Value F1.
In an embodiment of the present invention, if a previous Credit Control Answer (CCA) in the CCR message includes a specified division time, the flow value is divided into a flow value before the specified division time and a flow value after the specified division time; and taking the reporting time of the previous message of the CCR message cached in the time caching unit as the starting time of the first flow value in the CCR message, and taking the appointed segmentation time as the starting time of the flow value after the appointed segmentation time.
In an embodiment of the present invention, if the internet access process spans different rate periods, the online charging system has a personalized traffic split ticket function, and the CCA message for allocating the traffic ticket to the network element device further includes a specified split Time of a rate-Time-Change (TTF) field, and notifies the network element device to split the user traffic at the specified Time, and the network element device may split the traffic value into a traffic value before the specified split Time and a traffic value after the specified split Time.
For example, taking a CCR-U message as an example, assuming that a previous CCA-I or CCA-U message of the CCR-U message includes a designated segmentation time T2 of a TTF field, it indicates that the traffic value of the CCR-U message is in a time period with different rates. The network element equipment divides the flow value into a flow value F1 before a division time T2 and a flow value F2 after the division time T2, wherein the flow value F1 and the flow value F2 have different rates; taking the reporting time of the last message of the CCR-U message cached in the time cache unit as the starting time of a first flow value F1 of the CCR-U message; the division time T2 is set as the start time of the divided flow rate value F2. For example, the charging number obtained after CCR-U message analysis and the charging identifier of the PDP context may be used as Key values, a corresponding Value is searched in the time cache unit, the searched Value T1 is used as the starting time of the flow Value F1, and the division time T2 is used as the starting time of the flow Value F2.
In one embodiment of the invention, a flow ticket for charging is generated according to the starting time of the flow value. The method specifically comprises the following steps: according to the start time of the flow value obtained by searching, in combination with other necessary data in the CCR message, for example, the data may be: the method comprises the steps of respectively generating a charging number, a PDP context charging identifier, a flow value, an IMEI, an IMSI, an APN and package data ordered by a user, wherein the flow ticket is used for charging in different time periods.
In an embodiment of the present invention, the online data traffic charging method may further include: and updating the reporting time of the last message of the CCR-U message cached in the time caching unit to the reporting time of the CCR-U message. The reporting time of the current CCR-U message can be used for replacing the time data in the time cache unit, and the updated reporting time is used as the starting time of the flow value of the next message.
For example, assuming that a reported CCR-U message includes a traffic Value F1 and a reporting time T3, for example, reporting time T1 corresponding to an internet access Key field may be searched in a time cache unit in a Key-Value manner, the searched reporting time T1 is used as a starting time of the traffic Value F1, reporting time T3 obtained by analysis in the time cache unit is used as a starting time of a traffic Value in a next CCR message, and T3 is updated to a corresponding record in the time cache unit.
In an embodiment of the invention, if the user switches from online to offline because of the data traffic signal, the charging ticket includes an online charging ticket and an offline charging ticket, because the offline traffic ticket includes the start time and duration data of the traffic value, the end time of the offline traffic value can be obtained by adding the start time and duration in the file. Comparing the ending time of the offline ticket with the reporting time of the CCR-U message cached in the time cache unit; when the end time of the offline flow ticket is greater than the reporting time of the CCR-U message cached in the time cache unit, updating the reporting time of the CCR-U message cached in the time cache unit to the end time of the offline flow ticket; and when the ending time of the offline flow call ticket is not more than the reporting time of the CCR-U message cached in the time caching unit, not updating the reporting time of the CCR-U message cached in the time caching unit. If the reporting time of the last message of the CCR-U message cached in the time caching unit is assumed to be updated to be the reporting time T3 of the current CCR-U message, the ending time of the offline ticket is T4, if T3 is less than T4, the time data T3 cached in the time caching unit is updated by T4, otherwise, the updating is not needed.
In an embodiment of the present invention, the online data traffic charging method may further include: and deleting the reporting time of the last message of the CCR-T message cached in the time caching unit and the corresponding internet access key field.
It should be noted that, in an internet access process, the OCS receives a CCR-T packet reported by the network element device, because CCR-T indicates that this internet access is finished, if a user needs to access the internet again, the user may reinitiate a CCR-I packet, and the network element device may reallocate a charging identifier of a different PDP context, so that the reporting time and a corresponding internet access key field in a previous packet of the CCR-T packet cached in the time caching unit need to be deleted.
For example, assuming that the reported CCR-T packet includes a traffic Value F1 and a reporting time T3, for example, reporting time T1 corresponding to an internet access Key field may be searched in a time cache unit in a Key-Value manner, the searched Value T1 is used as the starting time of the traffic Value F1, time cache data T1 corresponding to a charging number and a PDP context charging identifier cached in the time cache unit is deleted, and the charging number and the PDP context charging identifier are deleted at the same time.
In an embodiment of the present invention, if the reporting time and the corresponding key field of the internet access cached in the time caching unit are not cleared within a longer time range, the reporting time and the corresponding key field of the internet access are processed by an automatic clearing mechanism, so that data in the time caching mechanism is prevented from being cleared due to abnormal network interaction.
According to the online data flow charging method provided by the embodiment of the invention, the start time of the online data flow can be obtained by searching the reporting time data corresponding to the internet access key field, and meanwhile, the charging system and the network element equipment interact in real time through a DCC protocol, so that the requirement of accurate charging of the flow bill based on the time dimension can be realized.
Fig. 2 shows a schematic processing flow diagram of a CCR-I packet provided in the embodiment of the present invention, and as shown in fig. 2, the method includes:
s210: analyzing the CCR-I message to determine an internet access key field of the CCR-I message and the reporting time of the CCR-I message;
s220: and correspondingly caching the internet access key field of the CCR-I message and the reporting time of the CCR-I message in a time caching unit.
Specifically, when the online charging user mobile phone terminal accesses the internet for the first time, the network element device applies for accessing the internet through a CCR-I message, and unlike a CCR-U message and a CCR-T message, the CCR-I message does not contain a flow value, but records an accurate internet access start time, and also records other data required by the charging system, such as a charging number, a charging identifier of a PDP context, an IMEI, an IMSI, an APN, and the like.
In an embodiment of the present invention, the CCR-I packet is analyzed to determine an internet access Key field and a reporting time of the CCR-I packet, the internet access Key field of the CCR-I packet and the reporting time of the CCR-I packet are cached in the time caching unit, for example, a charging number and a charging identifier of a PDP context obtained after the analysis may be used as a Key Value, reporting time data obtained after the CCR-I packet is analyzed may be used as a Value, and the internet access Key field and the reporting time are stored in the time caching unit correspondingly. The cached reporting time can provide the accurate starting time of the data flow value for the next message, so as to achieve the aim of accurate charging of the data flow.
For clarity, fig. 3 shows a signaling flow diagram of an online data traffic charging method provided by an embodiment of the present invention.
According to the online data traffic charging method provided by the embodiment of the invention, the existing network element equipment does not need to be upgraded and modified, the existing logic and message format of the network element equipment are kept unchanged, and the problem of inaccurate traffic starting time can be solved with very low cost only by arranging the time cache unit in the OCS, so that the goal of accurate traffic charging is achieved.
The signaling flow is explained in detail below.
In an embodiment of the present invention, the network element device is an important network element in a mobile communication network, and the network element device is mainly responsible for interaction between the OCS and the charging system, and transfers CCR and CCA messages in a user internet access process. The charging control unit is a core unit of the OCS and is used for analyzing the DCC messages and triggering different charging processing flows according to different types of messages. The time buffer unit may buffer the reporting time of each packet, and may perform operations such as storing, searching, inserting, updating, deleting, and the like on the buffered time data according to different packet types. The bill charging unit is used for charging by combining package data ordered by a user according to a key field in the flow bill, such as the starting time of a flow value, and can be accurately divided into a plurality of bills when different rate periods are crossed.
When an online charging user mobile phone terminal accesses the internet, network element equipment initiates a CCR-I message to a charging control unit of an OCS, wherein the CCR-I message applies for data such as a charging number, a charging identifier of a PDP context, an internet access starting time and the like, but the CCR-I message does not contain a flow value (1.CCR-I message);
the charging control unit receives the CCR-I message uploaded by the network element equipment, for example, the charging number, the charging identifier of the PDP context and the internet surfing starting moment can be analyzed, and a call ticket initialization request (2. call ticket initialization request) is initiated to the time cache unit;
after receiving the initialization request, the time cache unit stores the charging number, the charging identifier of the PDP context and the internet access starting time in the time cache unit, and returns a success identifier (3. success identifier).
The charging Control unit receives the successful identification returned by the Time caching unit, and simultaneously returns A first Credit Control Answer (CCA-I) message to the network element equipment in combination with other service rules, wherein the message packet comprises A pre-allocated flow sheet, if the condition of spanning different rate Time periods is met, the CCA-I also comprises A corresponding numerical value of A rate switching point (Tariff Time Change, TTF) field, and the network element equipment is informed to divide the user internet flow value at the TTF specified Time (4.CCR-A message);
after receiving the CCA-I message fed back by the charging control unit, the network element equipment allows the user terminal to surf the internet, and after the user terminal is allowed to surf the internet, the user terminal feeds back the generated data traffic to the network element equipment in real time according to the internet surfing requirement of the user terminal;
the network element equipment accumulates the internet flow of the user mobile phone terminal in real time, when the pre-allocated flow sheet of the user runs out or the internet time exceeds a threshold value, a CCR-U message is triggered, the network element equipment initiates the CCR-U message to a charging control unit, the application carries a charging number, a charging identifier of a PDP context and a reporting time, and simultaneously also comprises flow values, if different rate periods are crossed, two flow values exist in the message, but only one Event-Timestamp reporting time exists (5.CCR-U message);
after receiving the CCR-U message of the network element equipment, the charging control unit analyzes a charging number, a charging identifier of a PDP context, a reporting time and a flow value from the request, and then initiates a ticket starting time updating request (6. the ticket starting time updating request) to the time cache unit;
after the time buffer unit receives the ticket start time updating request, firstly, using the combination of the charging number and the charging mark of the PDP context as the key field of network access, searching the time data stored last time from the time buffer unit, secondly, if the request does not span time period, using the searched time data as the flow start time, and charging, if the request spans different rate time period, splitting the ticket into two pieces, wherein the start time of the first flow ticket is the last reporting time of the same session found from the time buffer unit, the start time of the second flow ticket is the dividing time, then updating the reporting time to the time buffer unit, and finally submitting the two processed tickets to the charging control unit for scheduling (7. generating the flow ticket);
the charging control unit gives the call ticket data submitted by the time caching unit to a call ticket charging unit for processing, so that the starting time of a single flow value is accurate, and the starting times of a plurality of flow values are also accurate when different rate periods cross (8. call ticket charging);
the bill charging unit carries out rating charging according to the accurate internet surfing starting moment in the flow bill and by combining the package data ordered by the user, and charges the flow in different time periods respectively, so that the problem of accurate charging of the flow related to time such as busy and free flow bill, holiday days, hour packets, monthly and monthly account-crossing periods can be solved (9. a success mark is returned);
the charging Control unit receives a successful identifier returned by the ticket charging, and simultaneously feeds back a quota use-up continued response (CCA-U) message to the network element equipment in combination with other service rules, wherein the CCA-U message comprises a pre-allocated flow sheet, and if the condition of spanning different rate periods is reached, the CCA-U also comprises a corresponding numerical value of a TTF field, and informs the network element equipment to divide user flow at a specified time (10.CCA-U message);
if the user is actively offline or passively offline, the network element equipment initiates a CCR-T message to a charging control unit, wherein the CCR-T message carries a charging number, a charging identifier of a PDP context, and reporting time, and also comprises flow values, if different rate periods are crossed, the message packet has two flow values, but the Event-Timestamp reporting time is only one (11.CCR-T message);
after receiving a CCR-T message of network element equipment, a charging control unit analyzes a charging number, a charging identifier of a PDP context, reporting time and a flow value from the CCR-T message, and then initiates a call ticket ending request (12. call ticket ending request) to a time cache unit;
after the time buffer unit receives the request for ending the call ticket, firstly, using the combination of the charging number and the charging mark of the PDP context as the key field, searching the time data stored last time from the time buffer unit, secondly, if the request does not span the time period, using the searched time data as the flow starting time, charging, if the request spans the time periods with different rates, splitting the call ticket into two pieces, the starting time of the first flow call ticket is the last reporting time of the same time of the internet access found from the time buffer unit, the starting time of the second flow call ticket is the dividing time, then updating the reporting time to the time buffer unit, finally submitting the two pieces of processed call tickets to the charging control scheduling, then deleting the corresponding data such as the reporting time and the key field of the internet access of the same session buffer from the time buffer unit according to the key field of the internet access, finally, submitting the two corrected call tickets to a charging control dispatching (13. generating a flow call ticket);
the charging control unit gives the call ticket data submitted by the time caching unit to the call ticket charging unit for processing, so that the starting time of a single flow value is accurate, and the starting times of a plurality of flow values are also accurate under the scene of different rate period spans (14. call ticket charging);
the bill charging unit carries out rating charging according to the accurate internet surfing starting time in the flow bill and by combining package data ordered by the user, and charges the flow in different time periods respectively, so that the problem of accurate charging of the flow related to time such as busy and free flow bill, holiday days, hour packets, monthly and monthly account-crossing periods and the like can be solved (15. a success mark is returned);
the charging Control unit receives the successful identifier returned by the ticket charging unit, and simultaneously feeds back a Credit Control Answer-Termination (CCA-T) message to the network element device in combination with other service rules, so that the whole user internet access process is finished (16.CCA-T message).
According to the online data flow charging method provided by the embodiment of the invention, the structure of the existing online charging system is not required to be modified, the time data of the message is respectively processed by setting the time cache unit, the accurate start time of the flow value is obtained, and the flow charging, reminding and displaying are accurate on the basis.
Corresponding to the above method embodiment, the embodiment of the present invention further provides an online data traffic charging device. Fig. 4 is a schematic structural diagram illustrating an online data traffic charging apparatus according to an embodiment of the present invention. As shown in fig. 4, the apparatus includes: the system comprises a parsing module 410, a searching module 420 and a ticket generating module 430.
The analysis module 410 is used for analyzing the credit control request CCR message to determine the internet access key field of the CCR message and the reporting time of the CCR message;
the searching module 420 is configured to search, according to the internet access key field, a reporting time of a previous message of the CCR message cached in the time caching unit as a starting time of a flow value in the CCR message;
a ticket generating unit 430, configured to generate a traffic ticket for charging according to the starting time of the traffic value.
In an embodiment of the present invention, the parsing module 410 may specifically be configured to: in the user internet access process, analyzing a CCR-U message or a CCR-T message to determine an internet access key field in the message and the reporting time in the message, wherein the key field comprises a charging number and a charging identifier of a PDP context, and one internet access process can be uniquely identified according to the internet access key field.
Illustratively, the parsing module 410 may also be configured to: and analyzing the CCR-I message to determine an internet access key field in the CCR-I message and the reporting time in the CCR-I message.
In one embodiment of the invention, the lookup module 420 may be configured to: and searching the reporting time in the previous message cached in the time caching unit according to the internet access key field obtained after the analysis in the CCR message, and taking the reporting time as the starting time of the flow value in the CCR message.
The lookup module 420 may be specifically configured to: and taking the charging number and the charging identifier of the PDP context obtained after the analysis of the CCR-U message or the CCR-T message as Key fields, searching the corresponding reporting time as the starting time of the flow Value, for example, taking the charging number and the charging identifier of the PDP context as Key values, searching the corresponding time record Value in a time cache unit, and taking the searched Value as the starting time of the flow Value in the CCR-U message or the CCR-T message.
Exemplarily, assuming that the CCR-U packet or the CCR-T packet further includes a segmentation time, a charging number obtained after analyzing the CCR-U packet or the CCR-T packet and a charging identifier of a PDP context are used as Key values, a Value found in a time cache is used as a start time of a first traffic Value in the CCR-U packet or the CCR-T packet, and the segmentation time is used as a start time of a traffic Value after segmentation.
In an embodiment of the present invention, the ticket generating unit 430 may be specifically configured to: and generating a flow ticket for charging according to the starting time of the flow value and other necessary data in the message, such as a charging number, an Internet access ID, a reporting time, an IMEI, an IMSI, an APN and package data ordered by a user.
In an embodiment of the present invention, the online data traffic charging apparatus may further include a storage module (not shown in the figure): the time caching unit is used for correspondingly caching the internet access key field of the CCR-I message and the reporting time of the CCR-I message in the time caching unit.
In an embodiment of the present invention, the online data traffic charging apparatus may further include an update module (not shown in the figure): and the method is used for updating the reporting time of the last message of the CCR-U message cached in the time caching unit to the reporting time of the CCR-U message.
In an embodiment of the present invention, the online data traffic charging apparatus may further include a deletion module (not shown in the figure): and the method is used for deleting the reporting time of the last message of the cached CCR-T message and the corresponding internet access key field.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In addition, the online data traffic charging method and device combined with the embodiment of the invention can be realized by online data traffic charging equipment. Fig. 5 is a schematic diagram illustrating a hardware structure of an online data traffic charging device according to an embodiment of the present invention.
The online data traffic charging device 500 in this embodiment includes: the system comprises a processor 501, a memory 502, a communication interface 503 and a bus 510, wherein the processor 501, the memory 502 and the communication interface 503 are connected through the bus 510 and complete mutual communication.
In particular, the processor 501 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present invention.
Memory 502 may include mass storage for data or instructions. By way of example, and not limitation, memory 502 may include an HDD, a floppy disk drive, flash memory, an optical disk, a magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive or a combination of two or more of these. Memory 502 may include removable or non-removable (or fixed) media, where appropriate. Memory 502 may be internal or external to online data traffic billing device 500, where appropriate. In a particular embodiment, the memory 502 is non-volatile solid-state memory. In a particular embodiment, the memory 502 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The communication interface 503 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
Bus 510 includes hardware, software, or both to couple the components of online data traffic billing device 500 to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 510 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
That is, the online data traffic charging apparatus 500 shown in fig. 5 may be implemented to include: a processor 501, a memory 502, a communication interface 503, and a bus 510. The processor 501, the memory 502, and the communication interface 503 are connected by a bus 510 and communicate with each other. The memory 502 is used to store program code; the processor 501 runs a program corresponding to an executable program code stored in the memory 502 by reading the executable program code, so as to perform an online data traffic charging method, wherein the online data traffic charging method comprises:
the online data traffic charging apparatus 500 may perform the online data traffic charging method in the embodiment of the present invention based on the related information from the service call chain system and the CMDB configuration management database system, thereby implementing the online data traffic charging method and apparatus described in conjunction with fig. 1 to 4.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (13)

1. An online data traffic charging method is characterized by comprising the following steps:
analyzing a credit control request CCR message to determine an internet access key field of the CCR message and the reporting time of the CCR message;
searching the reporting time of the previous message of the CCR message cached in a time caching unit according to the Internet access key field to serve as the starting time of the flow value in the CCR message;
and generating a flow ticket for charging according to the starting moment of the flow value.
2. The charging method according to claim 1, wherein the internet access key field comprises: a charging number and a charging identity of a packet data protocol PDP context.
3. The charging method according to claim 1, further comprising:
analyzing a first Internet surfing request CCR-I message to determine an Internet surfing key field of the CCR-I message and the reporting time of the CCR-I message;
and correspondingly caching the internet access key field of the CCR-I message and the reporting time of the CCR-I message in the time caching unit.
4. The charging method according to claim 1, wherein the CCR packet is a connection request CCR-U packet when a quota is used up or a network connection request CCR-T packet.
5. The charging method according to claim 1, further comprising:
if the CCR message includes a flow value, the reporting time of the last message of the CCR message cached in the time caching unit is used as the starting time of the flow value in the CCR message.
6. The charging method according to claim 1, further comprising:
if the last credit control response CCA message of the CCR message comprises the appointed segmentation time, segmenting the flow value into the flow value before the appointed segmentation time and the flow value after the appointed segmentation time;
and taking the reporting time of the last message of the CCR message cached in the time caching unit as the starting time of the first flow value in the CCR message, and taking the specified segmentation time as the starting time of the flow value after the specified segmentation time.
7. The charging method according to claim 1, further comprising:
and if the CCR message is a quota used-up continuation request CCR-U message, updating the reporting time of the last message of the CCR-U message cached in a time cache unit to the reporting time of the CCR-U message.
8. The charging method according to claim 7, further comprising:
if the charging flow ticket also comprises an offline flow ticket, comparing the ending time of the offline flow ticket with the reporting time of the CCR-U message cached in the time cache unit;
when the ending time of the offline flow call ticket is greater than the reporting time of the CCR-U message cached in the time caching unit, updating the reporting time of the CCR-U message cached in the time caching unit to the ending time of the offline flow call ticket;
and when the ending time of the offline flow call ticket is not more than the reporting time of the CCR-U message cached in the time caching unit, not updating the reporting time of the CCR-U message cached in the time caching unit.
9. The charging method according to claim 1, further comprising:
and if the CCR message is a downloading request CCR-T message, deleting the reporting time of the last message of the CCR-T message cached in the time caching unit and the corresponding Internet access key field.
10. The charging method according to claim 9, further comprising:
if the reporting time of the last message of the CCR-T message cached in the time caching unit and the corresponding network access key field are not deleted after time out, the reporting time of the last message of the CCR-T message cached in the time caching unit and the corresponding network access key field are automatically cleared.
11. An online data traffic charging apparatus, the apparatus comprising:
the system comprises an analysis module, a reporting module and a control module, wherein the analysis module is used for analyzing a credit control request CCR message to determine an internet access key field of the CCR message and the reporting time of the CCR message;
the searching module is used for searching the reporting time of the last message of the cached CCR message in the time caching unit according to the Internet access key field and taking the reporting time as the starting time of the flow value in the CCR message;
and the ticket generating module is used for generating a flow ticket for charging according to the starting moment of the flow value.
12. An online data traffic charging apparatus, characterized in that the apparatus comprises: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the online data traffic charging method of any of claims 1-10.
13. A computer storage medium having computer program instructions stored thereon, which when executed by a processor implement the online data traffic charging method of any of claims 1-10.
CN201710719295.1A 2017-08-21 2017-08-21 Online data flow charging method, device, equipment and computer storage medium Active CN109428731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710719295.1A CN109428731B (en) 2017-08-21 2017-08-21 Online data flow charging method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710719295.1A CN109428731B (en) 2017-08-21 2017-08-21 Online data flow charging method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN109428731A CN109428731A (en) 2019-03-05
CN109428731B true CN109428731B (en) 2021-12-21

Family

ID=65497892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710719295.1A Active CN109428731B (en) 2017-08-21 2017-08-21 Online data flow charging method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN109428731B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291704A (en) * 2011-07-28 2011-12-21 华为软件技术有限公司 Charging method, charging device, exchange device and charging system
CN102860051A (en) * 2011-05-09 2013-01-02 华为技术有限公司 Method and related device for controlling service charging
EP2953333A1 (en) * 2014-06-02 2015-12-09 Alcatel Lucent Multiple validity time management
CN105848127A (en) * 2015-01-16 2016-08-10 中国移动通信集团河北有限公司 Accurate ticket supplementing method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102860051A (en) * 2011-05-09 2013-01-02 华为技术有限公司 Method and related device for controlling service charging
CN102291704A (en) * 2011-07-28 2011-12-21 华为软件技术有限公司 Charging method, charging device, exchange device and charging system
EP2953333A1 (en) * 2014-06-02 2015-12-09 Alcatel Lucent Multiple validity time management
CN105848127A (en) * 2015-01-16 2016-08-10 中国移动通信集团河北有限公司 Accurate ticket supplementing method and apparatus

Also Published As

Publication number Publication date
CN109428731A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
US9930188B2 (en) System and method for dynamically allocating quota for shared balances in distributed telecommunications networks
US8605874B2 (en) Per-session dynamic charging caps in communication networks
CN111639138B (en) Data processing method, device, equipment and storage medium
US20150024709A1 (en) Method and server for sharing data traffic
CN110381455B (en) Flow monitoring processing method and related device and system
CN108900316B (en) Internet of vehicles flow management platform and server
CN101345632A (en) Method and system for charging data presentation business, and data business management equipment
US9137649B2 (en) Short code management for messaging campaigns
CN102387172A (en) Method and device for providing or obtaining contents of network resources for mobile equipment
CN111371672A (en) Message pushing method and device
CN101729709B (en) Method and device for processing branch ticket
CN111259241A (en) Information processing method and device and storage medium
CN111132132A (en) Traffic management method and device and terminal equipment
CN109428731B (en) Online data flow charging method, device, equipment and computer storage medium
CN115525237A (en) Information processing method, device, equipment and storage medium
CN110972091B (en) Communication charging method, device, equipment, medium and terminal
CN113973273A (en) Charging method and device for network slicing service
CN111182485A (en) Single ticket total traffic control system and method
CN101141267B (en) Wireless communication system timing and accounting system and its implementing method
CN108964932B (en) Charging method, device and computer readable storage medium
US20120284208A1 (en) Systems and/or Methods For Delivering Notifications On A Communications Network
CN111542005B (en) Charging method, device, equipment and storage medium
US11108914B2 (en) Method and system for revenue maximization in a communication network
CN114239510A (en) Service information processing method and device, storage medium and electronic equipment
CN113452553A (en) Content distribution network flow limiting method and system

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