CN109428731A - Online data charge on traffic method, apparatus, equipment and computer storage medium - Google Patents

Online data charge on traffic method, apparatus, equipment and computer storage medium Download PDF

Info

Publication number
CN109428731A
CN109428731A CN201710719295.1A CN201710719295A CN109428731A CN 109428731 A CN109428731 A CN 109428731A CN 201710719295 A CN201710719295 A CN 201710719295A CN 109428731 A CN109428731 A CN 109428731A
Authority
CN
China
Prior art keywords
message
ccr
moment
time
online
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.)
Granted
Application number
CN201710719295.1A
Other languages
Chinese (zh)
Other versions
CN109428731B (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

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 a kind of online data charge on traffic method, apparatus, equipment and computer storage mediums.This method comprises: parsing credit control request CCR message reports the moment with the online critical field and CCR message that determine CCR message;Reporting for a upper message for the CCR message being buffered in time cache unit is searched according to online critical field to be used as constantly in CCR message at the beginning of flow value;The flow ticket for being used for charging is generated at the beginning of according to flow value.After the embodiment of the present invention, it is not necessary that network element device upgrading is obtained accurate network element device using at the beginning of data traffic, is realized based on the accurate charging of flow ticket in moment dimension by being respectively processed to the time data for reporting message.

Description

Online data charge on traffic method, apparatus, equipment and computer storage medium
Technical field
The invention belongs to field of communication technology more particularly to a kind of online data charge on traffic method, apparatus, equipment and meter Calculation machine storage medium.
Background technique
Usual charge on traffic uses off-line accounting system (Offline Charging System, OFCS), it is handled from Line CDR file is to be generated by network element device according to uniform rules, can only carry out the segmentation of flow ticket, example by unified moment point When such as daily 23:00 and when 7:00, but flow sells increasingly common, such as festivals or holidays stream according to time dimension classification now Amount packet, busy period flow packet, hour packet etc., and OFCS can not do personalized flow ticket for the user for ordering different flow packet Segmentation.
With the continuous development of mobile communication technology, the speed of user's mobile Internet access is getting faster, it is desirable that charge on traffic system System processing speed be getting faster, then built data traffic online charging system (Online Charging System, OCS).Network element device is in real time to generated correlative flow data during the online of OCS report of user, and OCS is according to correlative flow Data generate flow ticket, and then carry out real time billing and prompting according to flow ticket.In message handled by usual OCS only Message reports the moment, lacks specific flow time started data in same message, OCS and network element device be according to flow piece into Row interaction can do the segmentation of personalized flow ticket for the user for ordering different flow packet, but lack in same message point Data at the beginning of two sections of flows are clear after cutting.
It needs to carry out differentiated charging at the beginning of according to flow value based on the preferential charge on traffic of time set meal, and OCS with network element device is interacted according to flow piece, does not have flow start time in the message interacted, long number when also not having According to.Network element device requests to surf the Internet by Diameter message CCR to online charging system, and there are three types of types for CCR message, divides It Dui Ying surf the Internet for the first time and apply for that (Credit Control Request-Initial, CCR-I), quota are finished connecting application (Credit Control Update-Initial, CCR-U) and off line application (Credit Control Termination- Initial, CCR-T), during user once completely surfs the Internet, from a CCR-I start of heading, then OCS charging is first Several CCR-U message cycles are finally a CCR-T the message ends.It include reporting the moment, but do not flow in CCR-I message Both include reporting the moment in magnitude, CCR-U message and CCR-T message, also includes flow value.
During user's online, CCR-I message is online request for the first time, without flow value, cannot be generated for charging Flow ticket, CCR-T message just will appear when user is off line or network cause is interrupted, and user will not during surfing the Internet Occur, user's online duration is very long, so being not suitable for doing rates ground.Therefore with CCR- when online data charge on traffic U message lands foundation as rates ground and ticket, and cannot using CCR-I message or CCR-T message as rates ground with Ticket lands foundation, using the opening as this online flow in process value of the Event-Timestamp value in current CCR-U message Begin the moment, and carries out charging accordingly.Event-Timestamp value actually in CCR-U message is online data flow Finish time, be for preferential based on time set meal accordingly it is inaccurate, be unable to satisfy the demand of flow accurate billing.Wherein Event-Timestamp value is zebra time, and without time zone in seconds, Event-Timestamp when requesting for the first time Value is the session start moment, the moment that reports that Event-Timestamp value is CCR when requesting again, Event- when terminating request Timestamp value is the session termination moment.
Summary of the invention
The embodiment of the present invention provides a kind of online data charge on traffic method, apparatus, equipment and computer storage medium, energy Access online data flow it is accurate at the beginning of, realize the demand based on the accurate charging of flow ticket in moment dimension.
On the one hand, the embodiment of the present invention provides a kind of online data charge on traffic method, comprising:
Parsing credit control request CCR message with determine CCR message online critical field and CCR message on give the correct time It carves;
It gives the correct time on a upper message for the CCR message being buffered in time cache unit according to online critical field lookup At the beginning of carving as flow value in CCR message;
The flow ticket for being used for charging is generated at the beginning of according to flow value.
According to an aspect of an embodiment of the present invention, further includes: online critical field includes charge number and packet data The charging identifier of protocol PDP context.
According to an aspect of an embodiment of the present invention, further includes:
Parsing for the first time online request CCR-I message to determine the online critical field and CCR-I message of CCR-I message Report the moment;
Reporting for the online critical field of CCR-I message and CCR-I message constantly corresponding is buffered in time cache unit In.
According to an aspect of an embodiment of the present invention, further includes: CCR message is that quota is finished subsequent request CCR-U message Or log off request CCR-T message.
According to an aspect of an embodiment of the present invention, further includes:, will caching if in CCR message including a flow value The beginning as a flow value in CCR message constantly is reported in a upper message for the CCR message in time cache unit Moment.
According to an aspect of an embodiment of the present invention, further includes:
If the upper Credit Control Answer CCA message of CCR message includes the specified segmentation moment, flow value is divided into Flow value before the specified segmentation moment and the flow value after the specified segmentation moment;
By reporting constantly as in CCR message for the upper one article of message for the CCR message being buffered in time cache unit At the beginning of one flow value, and using the specified segmentation moment as the specified flow value divided after the moment at the beginning of.
According to an aspect of an embodiment of the present invention, further includes: if CCR message is that quota is finished subsequent request CCR-U report Upper the reporting for a message for the CCR-U message being buffered in time cache unit is then updated to CCR-U message by text constantly Report the moment.
According to an aspect of an embodiment of the present invention, further includes:
If in charging flow ticket further including offline flow ticket, by the finish time of offline flow ticket and it is buffered in Reporting for CCR-U message in time cache unit is compared constantly;
The moment is reported greater than the CCR-U message being buffered in time cache unit when the finish time of offline flow ticket When, reporting for the CCR-U message being buffered in time cache unit is updated to finish time of offline flow ticket constantly;
When offline flow ticket finish time be not more than be buffered in time cache unit CCR-U message on give the correct time When quarter, do not update the CCR-U message being buffered in time cache unit reports the moment.
According to an aspect of an embodiment of the present invention, further includes: if CCR message is log off request CCR-T message, delete A upper message for the CCR-T message being buffered in time cache unit reports moment and corresponding online critical field.
According to an aspect of an embodiment of the present invention, further includes: if the CCR-T message being buffered in time cache unit A upper message reports moment and corresponding online critical field time-out not to be deleted, then it is single to be buffered in time caching for automatic cleaning A upper message for CCR-T message in member reports moment and corresponding online critical field.
On the other hand, the embodiment of the invention provides a kind of online data charge on traffic device, device includes:
Parsing module determines the online critical field and CCR of CCR message for parsing credit control request CCR message Message reports the moment;
Searching module, for searching upper the one of the CCR message being buffered in time cache unit according to online critical field Message report constantly as flow value in CCR message at the beginning of;
Ticket generation module, for generating the flow ticket for being used for charging at the beginning of according to flow value.
According to an aspect of an embodiment of the present invention, further includes:
Parsing module is further used for the online critical field of CCR-I message and reporting for CCR-I message is constantly corresponding It is buffered in time cache unit.
According to an aspect of an embodiment of the present invention, further includes:
Update module, a upper message for the CCR-U message for will be buffered in time cache unit report the moment Be updated to CCR-U message reports the moment.
According to an aspect of an embodiment of the present invention, further includes:
Removing module, a upper message for the CCR-T message for deleting caching report moment and corresponding online crucial Field.
In another aspect, the embodiment of the invention provides a kind of online data charge on traffic equipment, equipment include: processor with And it is stored with the memory of computer program instructions;
Processor realizes online data charge on traffic method provided in an embodiment of the present invention when executing computer program instructions.
In another aspect, being stored in computer storage medium the embodiment of the invention provides a kind of computer storage medium Computer program instructions;
Online data charge on traffic side provided in an embodiment of the present invention is realized when computer program instructions are executed by processor Method.
Online data charge on traffic method, apparatus, equipment and the computer storage medium of the embodiment of the present invention, according to caching The moment is reported in time cache unit, at the beginning of capable of obtaining online data flow value, network element device keeps existing It handles logic and message format is constant, realize the demand based on the accurate charging of flow ticket on time dimension, when so that being based on Between the flow business of charging can accurately promote.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will make below to required in the embodiment of the present invention Attached drawing is briefly described, for those of ordinary skill in the art, without creative efforts, also Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is the flow diagram of online data charge on traffic method provided in an embodiment of the present invention;
Fig. 2 is the processing flow schematic diagram of CCR-I message provided in an embodiment of the present invention;
Fig. 3 is the signaling process schematic diagram of online data charge on traffic provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of online data charge on traffic device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of online data charge on traffic equipment provided in an embodiment of the present invention.
Specific embodiment
The feature and exemplary embodiment of various aspects of the invention is described more fully below, in order to make mesh of the invention , technical solution and advantage be more clearly understood, below in conjunction with drawings and the specific embodiments, the present invention is carried out further detailed Description.It should be understood that specific embodiment described herein is only configured to explain the present invention, it is not configured as limiting this hair It is bright.To those skilled in the art, the present invention can be in the case where not needing some details in these details Implement.The description of embodiment is preferably managed just for the sake of being provided by showing example of the invention of the invention below Solution.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence " including ... ", it is not excluded that including There is also other identical elements in the process, method, article or equipment of the element.
In order to solve prior art problem, the embodiment of the invention provides a kind of online data charge on traffic method, apparatus, Equipment and computer storage medium.Online data charge on traffic method is provided for the embodiments of the invention first below to be situated between It continues.
Fig. 1 shows the flow diagram of online data charge on traffic method provided in an embodiment of the present invention.Such as Fig. 1 institute Show, this method may include:
Step S110 parses credit control request CCR message to determine the online critical field and CCR message of CCR message Report the moment.
Step S120 searches a upper report for the CCR message being buffered in time cache unit according to online critical field Reporting for text is used as in CCR message constantly at the beginning of flow value.
Step S130, according to flow value at the beginning of generate be used for charging flow ticket.
It in one embodiment of the invention, can be respectively in CCR-I message, CCR-U message and CCR-T message Event-Timestamp value is handled, and is handled respectively the correlative flow data in CCR-U message and CCR-T message Generate the flow ticket for being used for charging.
In one embodiment of the invention, parsing credit control request CCR message is crucial with the online for determining CCR message Field and CCR message report the moment.Wherein CCR message can be CCR-U message either CCR-T message, critical field example It such as may include the charging identifier of charge number and packet data protocol (Packet Data Protocol, PDP) context, root It can be with unique identification one upper network process according to online critical field.
Illustratively, it is assumed that during user's online, the flow piece of online charging user predistribution is finished or surfs the Internet When duration exceeds threshold value, OCS receives the CCR-U message of reported by network element equipment, carries charge number, PDP Context in message Charging identifier, report the data such as moment and flow value, parsing CCR-U message can determine the online in current CCR-U message Critical field and report the moment.
In one embodiment of the invention, the CCR of caching is searched in time cache unit according to online critical field Reporting for a upper message for message is used as in CCR message at the beginning of flow value constantly, and wherein CCR message can be CCR- U message or CCR-T message.
The moment is reported it should be understood that being cached corresponding to each message in the time cache unit of the embodiment of the present invention Data, because once completely upper network process includes: a CCR-I start of heading, several CCR-U message cycles and one to user A CCR-T the message ends.Therefore a upper message for CCR-U message can be CCR-I message either CCR-U message, CCR-T A upper message for message can be CCR-U message.
In one embodiment of the invention, if CCR message includes a flow value, time cache unit will be buffered in In CCR message a upper message report constantly as a flow value in CCR message at the beginning of.
Illustratively, by taking CCR-U message as an example, it is assumed that CCR-U message includes a flow value F1, then illustrates that CCR-U is reported The flow value F1 of text is in the freight all kind rate period, by a upper message for the CCR-U message being buffered in time cache unit Report constantly as the flow value F1 of CCR-U message at the beginning of, the meter obtained after CCR-U packet parsing can be used for example Take the charging identifier of number and PDP Context as Key value, search corresponding Value value in time cache unit, and by institute At the beginning of the Value value T1 found is as flow value F1.
In one embodiment of the invention, if a upper Credit Control Answer (Credit Control in CCR message Answer, CCA) it include the specified segmentation moment, then flow value is divided into flow value before the specified segmentation moment and specified point Cut the flow value after the moment;A upper message for the CCR message being buffered in time cache unit is reported into conduct constantly In CCR message at the beginning of first flow value, and using the specified segmentation moment as the flow value after the specified segmentation moment At the beginning of.
In one embodiment of the invention, if upper network process is across different tariff period, online charging system has a Property flow segmentation ticket function, to network element device distribution flow piece CCA message in further include tariff switch point The specified segmentation moment of (Tariff-Time-Change, TTF) field, notice network element device given time to customer flow into Flow value can be divided into the flow value before the specified segmentation moment and after the specified segmentation moment by row segmentation, network element device Flow value.
Illustratively, by taking CCR-U message as an example, it is assumed that include in a upper CCA-I or CCA-U message for CCR-U message The specified segmentation moment T2 of TTF field then illustrates that the flow value of CCR-U message is in different tariff period.Network element device will flow Magnitude is divided into the flow value F1 before segmentation moment T2 and the flow value F2 after segmentation moment T2, wherein flow value F1 and stream The rate of magnitude F2 is different;A upper message for the CCR-U message being buffered in time cache unit is reported into conduct constantly At the beginning of first flow value F1 of CCR-U message;At the beginning of moment T2 will be divided as the flow value F2 after segmentation It carves.The charging identifier of the charge number and PDP Context that obtain after CCR-U packet parsing can be used for example as Key value, Search corresponding Value value in time cache unit, and using the Value value T1 found as flow value F1 at the beginning of, divide At the beginning of moment T2 is cut as flow value F2.
In one embodiment of the invention, according to flow value at the beginning of generate be used for charging flow ticket.Tool Body are as follows: at the beginning of the flow value obtained according to lookup, in conjunction with other necessary data in CCR message, such as may is that meter Take number, PDP Context charging identifier, flow value, set meal data ordered by IMEI, IMSI, APN and user, gives birth to respectively At the flow ticket for charging in different periods.
In one embodiment of the invention, online data charge on traffic method can also include: and will be buffered in the time to delay What the reporting of a upper message for the CCR-U message in memory cell was updated to CCR-U message constantly reports the moment.It can be with currently CCR-U message reports the time data replaced in time cache unit constantly, reports updated constantly as next At the beginning of the flow value of message.
Illustratively, it is assumed that the CCR-U message reported includes flow value F1 and reports moment T3, such as can be with Key- The mode of Value searches that critical field is corresponding reports moment T1 with online in time cache unit, reports what is found At the beginning of moment T1 is as flow value F1, and report moment T3 as next for what parsing in time cache unit obtained In CCR message at the beginning of flow value, T3 is updated into time cache unit in corresponding record.
In one embodiment of the invention, the reason of if because of data-traffic signals, user surfs the Internet by changing into online Offline, charging bill includes online charging bill and offline charging ticket, because of opening comprising flow value in offline flow ticket Begin moment and duration data, and the finish time of the available offline flow value of duration will be added at the beginning of in this document.It will The finish time of offline bill is gentle, and there are the reporting for CCR-U message in time cache unit to be compared constantly;When offline The finish time of flow ticket is greater than when the reporting the moment of CCR-U message being buffered in time cache unit, when by being buffered in Between CCR-U message in cache unit report the finish time for being updated to offline flow ticket constantly;When offline flow ticket Finish time be not more than when the reporting the moment of CCR-U message that is buffered in time cache unit, do not update and be buffered in the time CCR-U message in cache unit reports the moment.Assuming that a upper report for the CCR-U message being buffered in time cache unit What the reporting of text was updated to current CCR-U message constantly reports moment T3, and the finish time of offline bill is T4, if T3 < T4, The time data T3 being buffered in time cache unit is updated with T4, otherwise without updating.
In one embodiment of the invention, online data charge on traffic method can also include: that deletion is buffered in the time A upper message for CCR-T message in cache unit reports moment and corresponding online critical field.
It should be noted that OCS receives the CCR-T message of reported by network element equipment during an online, because CCR-T indicates that this online terminates, and user can then re-initiate CCR-I message, network element device can weigh if necessary to surf the Internet again The newly charging identifier of one different PDP Context of distribution, so needing to delete the CCR-T being buffered in time cache unit Moment and corresponding online critical field are reported in a upper message for message.
Illustratively, it is assumed that the CCR-T message reported includes flow value F1 and reports moment T3, such as can be with Key- The mode of Value searches that critical field is corresponding reports moment T1 with online in time cache unit, the value T1 that will be found At the beginning of as flow value F1, and deletes and be buffered in charge number and PDP Context charging identifier in time cache unit Corresponding time data cached T1, while deleting charge number and PDP Context charging identifier.
In one embodiment of the invention, if being buffered in time cache unit within the scope of a longer time In report moment and corresponding online critical field not to clear up also, then handled by automatic cleaning machine system, prevent the time slow Data in mechanism are deposited to clear up because network interaction is abnormal.
Online data charge on traffic method according to an embodiment of the present invention, by searching for surfing the Internet, critical field is corresponding to be reported Time data, at the beginning of capable of obtaining online data flow, while charge system and network element device are real-time by DCC agreement Interaction, can be realized the demand based on the accurate charging of flow ticket on time dimension.
Fig. 2 shows the processing flow schematic diagrams of CCR-I message provided in an embodiment of the present invention, as shown in Fig. 2, this method Include:
S210: parsing CCR-I message determines that the online critical field of CCR-I message and CCR-I message report the moment;
S220: reporting for the online critical field of CCR-I message and CCR-I message constantly corresponding is buffered in time caching In unit.
Specifically, when online charging user mobile phone terminal is surfed the Internet for the first time, network element device carries out online Shen by CCR-I message Please, unlike CCR-T message and CCR-T message, flow value is not included in CCR-I message, but is had recorded on accurately Net start time, be also recorded other data required for charge system, for example, charge number, PDP Context charging identifier, The data such as IMEI, IMSI, APN.
In one embodiment of the invention, parsing CCR-I message is to determine the online critical field of CCR-I message and upper It gives the correct time quarter, reporting for the online critical field of CCR-I message and CCR-I message constantly corresponding is buffered in time cache unit In, the charging identifier of charge number and PDP Context obtained after parsing can be used for example as Key value, CCR-I message solution What is obtained after analysis reports time data as Value value, online critical field and will report and constantly corresponding be stored in time caching In unit.At the beginning of what is cached reports the moment that can provide accurate data flow magnitude for next message, reach data The target of flow accurate billing.
For the sake of clarity, Fig. 3 shows the signaling flow of online data charge on traffic method provided in an embodiment of the present invention Journey schematic diagram.
Online data charge on traffic method according to an embodiment of the present invention does not need to carry out upgrading to existing network element device to change It makes, network element device keeps existing logic and message format constant, it is only necessary to which time cache unit is set in OCS, so that it may Flow time started inaccuracy is solved the problems, such as with low-down cost, reaches the target of the accurate charging of flow.
Signaling process is explained in detail below.
In an embodiment of the invention, network element device is the important network element in mobile communications network, and network element device is main It is responsible for OCS to interact with charge system, CCR the and CCA message during transmitting user's online.Charging control unit is the core of OCS Heart unit, according to different types of message, triggers different charging process flows for parsing DCC message.Time cache unit The moment that reports of every message can be cached, and according to different type of messages, such as can be to the time data cached point The operation such as do not stored, searched, is inserted into, being updated, being deleted.Ticketing unit is used for according to the keyword in flow ticket Section, such as at the beginning of can be flow value, the set meal data in conjunction with ordered by user carry out charging, and can be across not With being accurately divided into a plurality of ticket when tariff period.
When online charging user mobile phone terminal is surfed the Internet, network element device initiates CCR-I message to the charging control unit of OCS, CCR-I message application carries the data such as charge number, the charging identifier of PDP Context, online start time, but CCR-I message Without flow value (1.CCR-I message);
Charging control unit receives the CCR-I message of network element device upload, parses CCR-I message, such as can parse Charge number, the charging identifier of PDP Context and online start time are obtained, ticket initialization requests (2. tickets are then initiated Initialization requests);
After unit receives initialization requests, charge number, the charging identifier of PDP Context and online start time are deposited Storage returns to success flag (3. success flag) in value cell.
Charging control unit receives the success flag that time cache unit is returned, in combination with other business rules, First time Credit Control Answer (Credit Control Answer-Initial, CCA-I) message is returned to network element device, is disappeared Include the flow piece of predistribution in breath packet, further includes rate switching in CCA-I if reaching the condition across different tariff period Point (Tariff Time Change, TTF) field respective value, notice network element device, which surfs the Internet to user in TTF given time, to flow Magnitude is split (4.CCR-A message);
After network element device receives the CCA-I message that charging control unit is fed back, user terminal is allowed to surf the Internet, user is whole End is after being allowed to online, according to the online demand of itself, by the data traffic Real-time Feedback of generation to network element device;
The real-time accumulated user mobile phone terminal surfing flow of network element device, when the flow piece of user's predistribution is finished or surfs the Internet When duration exceeds threshold value, then CCR-U message is triggered, network element device initiates CCR-U message, CCR-U message to charging control unit It is middle carry charge number, PDP Context charging identifier and report the moment, while also include flow value, if encountered across difference Tariff period, then there are two flow values in the message, but Event-Timestamp reports only one (5.CCR-U report of moment Text);
After charging control unit receives the CCR-U message of network element device, CCR-U message is parsed, such as can parse To charge number, PDP Context charging identifier, report moment and flow value, then initiate the ticket time started update request (6. ticket time starteds updated request);
Time cache unit receives after the ticket time started updates request, firstly, with charge number and PDP Context The combination of charging identifier is as online critical field, the time data that lookup last time is stored from time cache unit, secondly, If the request is not across the period, the time data that will be found, as the flow time started, and charging, if taken across different This ticket is then splitted into two by the rate period, at the beginning of first flow ticket is found from time cache unit Message reports the moment in same session, is the segmentation moment at the beginning of Article 2 flow ticket, then will be on this It gives the correct time and updates into time cache unit at quarter, finally treated that ticket submits to charging control cell scheduling (7. by this two Generate flow ticket);
Charging control unit is given the call bill data that time cache unit is submitted to ticketing unit and is handled, no It is only accurate at the beginning of single flow value, and when across different tariff period, at the beginning of multiple flow values It is accurate (8. ticketing);
Ticketing unit is accurately surfed the Internet start time according in flow ticket, the set meal data in conjunction with ordered by user Batched valuation is carried out, charging is carried out to the flow in different periods respectively, so far can solve flow ticket busy period, section vacation The problem of flow accurate billing of day, hour packet and at the end of month etc. and time correlation (9. return to success flag);
Charging control unit receives the success flag that ticketing is returned, in combination with other business rules, to net Element device feedback quota, which is finished, connects response (Credit Control Answer-Update, CCA-U) message, CCA-U message In include the flow piece of predistribution if reaching the condition across different tariff period further include that TTF field is corresponding in CCA-U Numerical value notifies network element device to be split (10.CCA-U message) to customer flow in given time;
If user is actively offline or passive offline, network element device initiates CCR-T message, CCR- to charging control unit Carried in T message charge number, PDP Context charging identifier, report the moment, while also including flow value, if encounter across Different tariff period, then in the message package there are two flow value, but Event-Timestamp report the moment only one (11.CCR-T message);
After charging control unit receives the CCR-T message of network element device, parsed from CCR-T message charge number, The charging identifier of PDP Context reports moment and flow value, then initiates ticket ending request (12. words to time cache unit Single ending request);
After time cache unit receives ticket ending request, firstly, with the charging identifier of charge number and PDP Context Combination as critical field, the time data that last time stored are searched from time cache unit, secondly, if the request not Across the period, then the time data that will be found, as the flow time started, and charging, if across different tariff period, it should Ticket splits into two, is from one in the same session found in time cache unit at the beginning of first flow ticket Message reports the moment, is the segmentation moment at the beginning of Article 2 flow ticket, then reports this and update constantly then Between in cache unit, finally by this two, treated that ticket submits to charging control scheduling, then according to online critical field, That corresponding same session cache is deleted from time cache unit reports the data such as moment and online critical field, finally will This two revised tickets submit to charging control scheduling (13. generate flow ticket);
Charging control unit is given the call bill data that time cache unit is submitted to ticketing unit and is handled, no It but is accurate at the beginning of single flow value, and under across different tariff period scenes, at the beginning of multiple flow values Between be also accurately (14. ticketing);
Ticketing unit is accurately surfed the Internet the time started according in flow ticket, the set meal data in conjunction with ordered by user Batched valuation is carried out, charging is carried out to the flow in different periods respectively, so far can solve flow ticket busy period, section vacation The problem of flow accurate billing of day, hour packet and at the end of month etc. and time correlation (15. return to success flag);
Charging control unit receives the success flag that ticketing unit is returned, in combination with other business rules, To network element device feed back off line response (Credit Control Answer-Termination, (CCA-T) message, so far entirely The upper network process of user terminates (16.CCA-T message).
Online data charge on traffic method according to an embodiment of the present invention, it is not necessary that the knot of existing online charging system is transformed Structure is respectively processed the time data of message, at the beginning of obtaining accurate flow value by the way that time cache unit is arranged Between, charge on traffic, prompting and displaying on this basis is also all accurately.
Corresponding with above-mentioned embodiment of the method, the embodiment of the present invention also provides a kind of online data charge on traffic device. Fig. 4 shows the structural schematic diagram of online data charge on traffic device provided in an embodiment of the present invention.As shown in figure 4, the device It include: parsing module 410, searching module 420 and ticket generation module 430.
Parsing module 410, for parsing credit control request CCR message with determine CCR message online critical field and CCR message reports the moment;
Searching module 420, for searching the CCR message being buffered in time cache unit according to online critical field One reporting for message is used as in CCR message constantly at the beginning of flow value;
Ticket generation module 430, for generating the flow ticket for being used for charging at the beginning of according to flow value.
In one embodiment of the invention, parsing module 410 specifically can be used for: during user's online, parsing CCR-U message or CCR-T message determine online critical field in message and report the moment in message, wherein critical field Charging identifier including charge number and PDP Context, can be with unique identification one upper network process according to online critical field.
Illustratively, parsing module 410 can be also used for: parsing CCR-I message is to determine the upper gateway in CCR-I message The moment is reported in key field and CCR-I message.
In one embodiment of the invention, searching module 420 can be used for: according to obtained after parsing in CCR message Online critical field searches reporting for the upper message being buffered in time cache unit and is used as flow value in CCR message constantly At the beginning of.
Searching module 420 specifically can be used for: the charge number that will be obtained after CCR-U message or CCR-T packet parsing Charging identifier with PDP Context searches corresponding report constantly as flow as critical field in time cache unit At the beginning of value, such as can be using the charging identifier of charge number and PDP Context as Key value, in time cache unit It is middle to search corresponding time and record Value value, and using the Value value found as being flowed in CCR-U message or CCR-T message At the beginning of magnitude.
Illustratively, it is assumed that CCR-U message perhaps CCR-T message further include the segmentation moment then by CCR-U message or The charging identifier of the charge number and PDP Context that obtain after CCR-T packet parsing is as Key value, and in the time, cache lookup is arrived Value value as first flow value in CCR-U message or CCR-T message at the beginning of, segmentation the moment as segmentation At the beginning of flow value later.
In one embodiment of the invention, ticket generation module 430 specifically can be used for: at the beginning of flow value It carves and combines other necessary data in message, such as charge number, the ID that surfs the Internet, report moment, IMEI, IMSI, APN and user Ordered set meal data generate the flow ticket for being used for charging.
In one embodiment of the invention, online data charge on traffic device can also be including memory module (in figure not Show): for the online critical field of CCR-I message and CCR-I message to be reported that constantly corresponding to be buffered in time caching single In member.
In one embodiment of the invention, online data charge on traffic device can also be including update module (in figure not Show): upper reporting for message for the CCR-U message for will be buffered in time cache unit is updated to CCR-U constantly Message reports the moment.
In one embodiment of the invention, online data charge on traffic device can also be including removing module (in figure not Show): the upper message for deleting the CCR-T message of caching reports moment and corresponding online critical field.
For device embodiment, since it is substantially similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
In addition, the online data charge on traffic method and apparatus in conjunction with the embodiment of the present invention can be by online data flowmeter Take equipment to realize.Fig. 5 shows the hardware structural diagram of online data charge on traffic equipment provided in an embodiment of the present invention.
Online data charge on traffic equipment 500 in the present embodiment includes: processor 501, memory 502, communication interface 503 and bus 510, wherein processor 501, memory 502, communication interface 503 are connected by bus 510 and completed each other Communication.
Specifically, above-mentioned processor 501 may include central processing unit (CPU) or specific integrated circuit (ASIC), or Person may be configured to implement one or more integrated circuits of the embodiment of the present invention.
Memory 502 may include the mass storage for data or instruction.For example it rather than limits, memory 502 may include HDD, floppy disk drive, flash memory, CD, magneto-optic disk, tape or universal serial bus (USB) driver or two The combination of a or more the above.In a suitable case, memory 502 may include that can be removed or non-removable (or solid Medium calmly).In a suitable case, memory 502 can be inside or outside online data charge on traffic equipment 500.? In specific embodiment, memory 502 is non-volatile solid state memory.In a particular embodiment, memory 502 includes read-only deposits Reservoir (ROM).In a suitable case, which can be the ROM of masked edit program, programming ROM (PROM), erasable PROM (EPROM), electric erasable PROM (EEPROM), electrically-alterable ROM (EAROM) or flash memory or two or more the above Combination.
Communication interface 503 is mainly used for realizing in the embodiment of the present invention between each module, device, unit and/or equipment Communication.
Bus 510 includes hardware, software or both, and the component of online data charge on traffic equipment 500 is coupled to each other Together.For example it rather than limits, bus may include accelerated graphics port (AGP) or other graphics bus, enhancing industrial standard Framework (EISA) bus, front side bus (FSB), super transmission (HT) interconnection, Industry Standard Architecture (ISA) bus, infinite bandwidth are mutual Company, low pin count (LPC) bus, memory bus, micro- channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association part (VLB) are total The combination of line or other suitable buses or two or more the above.In a suitable case, bus 510 may include One or more buses.Although specific bus has been described and illustrated in the embodiment of the present invention, the present invention considers any suitable Bus or interconnection.
That is, online data charge on traffic equipment 500 shown in fig. 5 may be implemented as include: processor 501, Memory 502, communication interface 503 and bus 510.Processor 501, memory 502 and communication interface 503 are connected by bus 510 It connects and completes mutual communication.Memory 502 is for storing program code;Processor 501 is deposited by reading in memory 502 The executable program code of storage runs program corresponding with the executable program code, for executing a kind of online data Charge on traffic method, wherein the online data charge on traffic method includes:
The online data charge on traffic equipment 500 can be based on from calling service catenary system and CMDB configuration management data The relevant information of library system executes the online data charge on traffic method in the embodiment of the present invention, to realize in conjunction with Fig. 1 to Fig. 4 The online data charge on traffic method and apparatus of description.
It should also be noted that, the exemplary embodiment referred in the present invention, is retouched based on a series of step or device State certain methods or system.But the present invention is not limited to the sequence of above-mentioned steps, that is to say, that can be according in embodiment The sequence referred to executes step, may also be distinct from that the sequence in embodiment or several steps are performed simultaneously.
The above description is merely a specific embodiment, it is apparent to those skilled in the art that, For convenience of description and succinctly, the system, module of foregoing description and the specific work process of unit can refer to preceding method Corresponding process in embodiment, details are not described herein.It should be understood that scope of protection of the present invention is not limited thereto, it is any to be familiar with Those skilled in the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or substitutions, These modifications or substitutions should be covered by the protection scope of the present invention.

Claims (13)

1. a kind of online data charge on traffic method characterized by comprising
Parsing credit control request CCR message is reported with the online critical field of the determination CCR message and the CCR message Moment;
The upper of a upper message for the CCR message being buffered in time cache unit is searched according to the online critical field At the beginning of quarter give the correct time as flow value in the CCR message;
The flow ticket for being used for charging is generated at the beginning of according to the flow value.
2. charging method according to claim 1, which is characterized in that the online critical field include: charge number and The charging identifier of packet data protocol PDP Context.
3. charging method according to claim 1, which is characterized in that further include:
Online request CCR-I message is reported for the first time with the online critical field of the determination CCR-I message and the CCR-I for parsing Text reports the moment;
Reporting for the online critical field of the CCR-I message and the CCR-I message constantly corresponding is buffered in the time In cache unit.
4. charging method according to claim 1, which is characterized in that the CCR message is that quota is finished subsequent request CCR-U message or log off request CCR-T message.
5. charging method according to claim 1, which is characterized in that further include:
If including a flow value in the CCR message, by the CCR message being buffered in time cache unit A upper message report constantly as a flow value described in the CCR message at the beginning of.
6. charging method according to claim 1, which is characterized in that further include:
If the upper Credit Control Answer CCA message of the CCR message includes the specified segmentation moment, flow value is divided into Flow value before the specified segmentation moment and the flow value after the specified segmentation moment;
By reporting constantly as the CCR for a upper message for the CCR message being buffered in time cache unit In message at the beginning of first flow value, and using the specified segmentation moment as the stream after the specified segmentation moment At the beginning of magnitude.
7. charging method according to claim 1, which is characterized in that further include:
If the CCR message be quota be finished subsequent request CCR-U message, will be buffered in time cache unit described in What the reporting of a upper message for CCR-U message was updated to the CCR-U message constantly reports the moment.
8. charging method according to claim 7, which is characterized in that further include:
If in charging flow ticket further including offline flow ticket, by the finish time of the offline flow ticket and it is buffered in The reporting for CCR-U message in time cache unit is compared constantly;
It is greater than the CCR-U message being buffered in time cache unit when the finish time of the offline flow ticket When reporting the moment, by the CCR-U message being buffered in time cache unit report be updated to constantly it is described offline The finish time of flow ticket;
When the finish time of the offline flow ticket is no more than the CCR-U message being buffered in time cache unit When reporting the moment, do not update the CCR-U message being buffered in time cache unit reports the moment.
9. charging method according to claim 1, which is characterized in that further include:
If the CCR message is log off request CCR-T message, the CCR-T report being buffered in time cache unit is deleted A upper message for text reports moment and corresponding online critical field.
10. charging method according to claim 9, which is characterized in that further include:
If a upper message for the CCR-T message being buffered in time cache unit reports moment and corresponding online Critical field time-out is not deleted, then upper one of the CCR-T message in time cache unit is buffered in described in automatic cleaning Message reports moment and corresponding online critical field.
11. a kind of online data charge on traffic device, which is characterized in that described device includes:
Parsing module, for parsing credit control request CCR message with the online critical field of the determination CCR message and described CCR message reports the moment;
Searching module, for searching the CCR message of caching in time cache unit according to the online critical field Reporting for a upper message is used as in the CCR message constantly at the beginning of flow value;
Ticket generation module, for generating the flow ticket for being used for charging at the beginning of according to the flow value.
12. a kind of online data charge on traffic equipment, which is characterized in that the equipment includes: processor and is stored with calculating The memory of machine program instruction;
Realized when the processor executes the computer program instructions as described in claim 1-10 any one in line number According to charge on traffic method.
13. a kind of computer storage medium, which is characterized in that be stored with computer program in the computer storage medium and refer to It enables, the online data stream as described in claim 1-10 any one is realized when the computer program instructions are executed by processor Meter charging method.
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 true CN109428731A (en) 2019-03-05
CN109428731B 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
CN109428731B (en) 2021-12-21

Similar Documents

Publication Publication Date Title
CN111639138B (en) Data processing method, device, equipment and storage medium
CN101488864B (en) Fee charging system and method used for communication network
CN110381455B (en) Flow monitoring processing method and related device and system
WO2020119325A1 (en) Charging processing method and device, storage medium, and electronic device
CN109992427A (en) DPI correlation rule backfills processing method, device, equipment and medium
CN101883178A (en) Method and system for automatically timing and metering during surfing Internet with cell phone on basis of cell phone terminal
CN102083042A (en) Charging method and device of mobile data services
KR102596498B1 (en) Billing methods, devices, and systems
CN101729709B (en) Method and device for processing branch ticket
CN111988749B (en) Dynamic tariff generation method and device
CN109428731A (en) Online data charge on traffic method, apparatus, equipment and computer storage medium
CN111835929A (en) Telephone charge transaction method and system based on block chain
CN110662188B (en) Charging method and system
CN105847284A (en) Communication service processing method, device and server
CN101729266B (en) Charging method and device for link building messages
CN101350727B (en) Method and apparatus for snapshot of account data, method for balancing account and real time billing system
CN1322706C (en) Method of realizing real time segmental charging
CN111489212B (en) Order billing method, device, equipment and medium based on big data
CN109783559B (en) Method and device for acquiring real estate transaction data, electronic equipment and storage medium
CN108809666B (en) Method, device and equipment for online charging of flow
US8724781B2 (en) System and method for off-net planned cost derivation, analysis, and data consolidation
CN112566054B (en) Method and system for optimizing message interaction process
CN109756637A (en) Call bill data statistical method, device, computer installation and readable storage medium storing program for executing
CN109981911A (en) A kind of calculation method and device optimizing talk business ticketing expense
CN115086092B (en) Method, device, equipment and storage medium for rating communication ticket

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