CN102083046A - Content charging method and device - Google Patents

Content charging method and device Download PDF

Info

Publication number
CN102083046A
CN102083046A CN2009102501598A CN200910250159A CN102083046A CN 102083046 A CN102083046 A CN 102083046A CN 2009102501598 A CN2009102501598 A CN 2009102501598A CN 200910250159 A CN200910250159 A CN 200910250159A CN 102083046 A CN102083046 A CN 102083046A
Authority
CN
China
Prior art keywords
content charging
packet
strategy
charging strategy
content
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
CN2009102501598A
Other languages
Chinese (zh)
Other versions
CN102083046B (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 Group Ningxia Co Ltd
Original Assignee
China Mobile Group Ningxia 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 Group Ningxia Co Ltd filed Critical China Mobile Group Ningxia Co Ltd
Priority to CN2009102501598A priority Critical patent/CN102083046B/en
Publication of CN102083046A publication Critical patent/CN102083046A/en
Application granted granted Critical
Publication of CN102083046B publication Critical patent/CN102083046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a content charging method and a content charging device. The content charging method comprises the following steps of: matching uniform resource locator address-based content charging strategies of all data packets in packet data protocol contexts respectively; judging whether the content charging strategies of the data packets with the content charging strategies are the same after the content charging strategies are matched; and charging according to the judgment result. According to the embodiment of the invention, the content charging operation quantity can be reduced, and the content charging efficiency can be improved.

Description

A kind of content charging method and device
Technical field
The present invention relates to data business content billing technology in the communications field, particularly, relate to a kind of content charging method and device.
Background technology
" content charging " function is meant that telecom operators can carry out packet filtering and analysis by the up-downgoing packet to the user, distinguish the content type that user's up-downgoing data transmit with identification, and relevant information is sent to the prepayment and the post-paid billing system of operator, make operator make chargeing to the user and handle by these content charging information.
As the different URL(uniform resource locator) of user capture (Uniform Resource Locator, hereinafter to be referred as URL) during the address, its charging rate can be different, because the user can produce a lot of packets when certain URL of visit, but not that each packet the inside all includes the URL address, for the accuracy of chargeing, be with user packet data protocol (Package Data Protocol each time now based on the content charging strategy of URL, hereinafter to be referred as PDP) to do session synthetic for last network process in the activation, is that the content charging function based on URL is realized on the basis with the user conversation.
Figure 1 shows that the workflow of existing " based on the content charging method of URL ": at first at gateway general packet radio service technical support node (Gateway General Packet Radio Service Support Node, hereinafter to be referred as GGSN) in open up one section buffering area, the context message that the each PDP of user is activated is input in this buffering area, each PDP activates and sets up a PDP Context (hereinafter to be referred as PDP Context), stores all packets after this time PDP activates; In the packet in buffering area input GPRS session synthesis module, the packet in PDP activation is merged into a plurality of conversation procedures, a conversation procedure is exactly that a user goes up network process; Synthetic session is input in the content charging policy engine, does content charging according to the URL of user capture, each conversation procedure all obtains a content charging strategy; The session traffic of same policy done add up, finally obtain the ticket of content charging.Be merged into conversation procedure 1, conversation procedure 2 and conversation procedure 3 such as the packet in PDP activation, conversation procedure 1 has identical content charging strategy 1 with conversation procedure 2, conversation procedure 3 has content charging strategy 2, with the flow of session process 1 and conversation procedure 2 mutually adduction charge according to content charging strategy 1, flow and content charging strategy 2 according to conversation procedure 3 charges simultaneously, finally obtains the ticket of content charging.
In realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art: synthesize because each content charging all needs to do session, cause consuming in a large number cpu resource, the inefficiency that makes content charging.
Summary of the invention
First purpose of the present invention is to propose a kind of content charging method, to realize improving the efficient of content charging.
Second purpose of the present invention is to propose a kind of content charging device, to realize improving the efficient of content charging.
For realizing above-mentioned first purpose, according to an aspect of the present invention, provide a kind of content charging method, comprising: all packets in the block data protocol context are done coupling based on the content charging strategy of URL(uniform resource locator) address respectively; Whether the content charging strategy of judging the packet that respectively has the content charging strategy after the content charging strategy matching is identical; Charge according to judged result.
Further, the coupling that all packets in the block data protocol context are done respectively based on the content charging strategy of URL(uniform resource locator) address can comprise: to allocation of packets that comprises URL(uniform resource locator) and the corresponding content charging strategy of URL(uniform resource locator) that is comprised; The packet that does not comprise URL(uniform resource locator) is labeled as the packet of unknown strategy.
Further, charge and can comprise according to judged result: the content charging strategy as if the packet with content charging strategy is all identical, and all data packet flow in the block data protocol context are added up; According to above-mentioned identical content charging strategy and the data packet flow after adding up generate the content charging ticket.
Further, charge and can comprise according to judged result: the content charging strategy as if the packet with content charging strategy is not all identical, and the packet in the block data protocol context is merged into an above conversation procedure; For each conversation procedure distributes corresponding content charging strategy; The conversation procedure flow that will have the identical content charging policy adds up, and generates the content charging ticket according to the conversation procedure of each the content charging strategy correspondence flow that adds up.
For realizing above-mentioned second purpose, according to another aspect of the present invention, a kind of content charging device is provided, has comprised: the content charging policy module is used for all packets of block data protocol context are done coupling based on the content charging strategy of URL(uniform resource locator) address respectively; Strategy analysis module is used to judge whether the content charging strategy of the packet that respectively has the content charging strategy after the content charging strategy matching is identical; Accounting module is used for chargeing according to the judged result that described strategy analysis module obtains.
Further, the content charging policy module can comprise: first distribution sub module is used for allocation of packets that comprises URL(uniform resource locator) and the corresponding content charging strategy of URL(uniform resource locator) that is comprised; The mark submodule, the packet that is used for not comprising URL(uniform resource locator) is labeled as unknown tactful packet.
Further, accounting module can comprise: first submodule that adds up, be used for if having a content charging strategy of packet of content charging strategy all identically, and all data packet flow in the block data protocol context are added up; The first charging submodule is used for according to above-mentioned identical content charging strategy and the described data packet flow after adding up generates the content charging ticket.
Further, accounting module can comprise: session synthon module, be used for if having a content charging strategy of packet of content charging strategy not all identically, and the packet in the block data protocol context is merged into an above conversation procedure; Second distribution sub module is used to each conversation procedure to distribute corresponding content charging strategy; Second submodule that adds up, the conversation procedure flow that is used for having the identical content charging policy adds up; The second charging submodule is used for conversation procedure according to each the content charging strategy correspondence flow that adds up and generates the content charging ticket.
The content charging method and the device of various embodiments of the present invention, when the content charging of doing based on URL, earlier all packets in the block data protocol context are done the coupling of content charging strategy respectively, whether the content charging strategy of judging the packet after the content charging strategy matching is identical, and charges according to judged result.The embodiment of the invention do not need at first to the user each time the packet in the PDP process all to do session synthetic, reduced the operand of content charging, improved the efficient of content charging method.
Other embodiment of the present invention are when the content charging strategy of packet is all identical, it is synthetic packet not to be done session, when having only content charging strategy when packet not all identical, just can do the session synthetic operation, thereby reduced the operand of content charging, improved the efficient of content charging method.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of being write, claims and accompanying drawing.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of specification, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is according to the content charging method flow schematic diagram based on URL of the prior art;
Fig. 2 is the embodiment one flow process schematic diagram of the content charging method according to the present invention;
Fig. 3 is the structural representation of the content charging device embodiment according to the present invention;
Fig. 4 is the embodiment two flow process schematic diagrames of the content charging method according to the present invention;
Fig. 5 is the scene schematic diagram of the embodiment two of the content charging method according to the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Fig. 2 is the embodiment one flow process schematic diagram of the content charging method according to the present invention, and as shown in Figure 2, present embodiment comprises:
Step S202: all packets in the block data protocol context are done coupling based on the content charging strategy of URL(uniform resource locator) address respectively;
Step S204: judge whether packet after the content charging strategy matching respectively has a content charging strategy of content charging strategy identical;
Step S206: charge according to judged result.
The content charging method of present embodiment, when the content charging of doing based on URL, earlier all packets in the block data protocol context are done the coupling of content charging strategy respectively, whether the content charging strategy of judging the packet after the content charging strategy matching is identical, and charges according to judged result.Present embodiment do not need at first to the user each time the packet in the PDP process all to do session synthetic, reduced the operand of content charging, improved the efficient of content charging method.
Fig. 3 is the structural representation of the content charging device embodiment according to the present invention, and as shown in Figure 3, present embodiment comprises:
Content charging policy module 30 is used for all packets of block data protocol context are done coupling based on the content charging strategy of URL(uniform resource locator) address respectively;
Strategy analysis module 32 is used to judge whether the content charging strategy of the packet that respectively has the content charging strategy after the content charging strategy matching is identical;
Accounting module 34 is used for chargeing according to the judged result that strategy analysis module 32 obtains.
Wherein, content charging policy module 30 comprises: first distribution sub module 31 is used for allocation of packets that comprises URL(uniform resource locator) and the corresponding content charging strategy of URL(uniform resource locator) that is comprised; Mark submodule 33, the packet that is used for not comprising URL(uniform resource locator) is labeled as unknown tactful packet.
Wherein, accounting module 34 can comprise: first submodule 35 that adds up, be used for if having a content charging strategy of packet of content charging strategy all identically, and all data packet flow in the block data protocol context are added up; The first charging submodule 37, all data packet flow that are used for according to this identical content charging strategy and after adding up generate the content charging ticket.
Further, accounting module 34 also comprises: session synthon module 41, be used for if having a content charging strategy of packet of content charging strategy not all identically, and the packet in the block data protocol context is merged into an above conversation procedure; Second distribution sub module 43 is used to each conversation procedure to distribute corresponding content charging strategy; Second submodule 45 that adds up, the conversation procedure flow that is used for having the identical content charging policy adds up; The second charging submodule 47 is used for conversation procedure according to each the content charging strategy correspondence flow that adds up and generates the content charging ticket.
This content charging device also comprises: memory module 36 is used for setting up block data protocol context, all packets of store packet data protocol activating behind packet data protocol activation.
The content charging device of present embodiment, earlier all packets in the block data protocol context are done the coupling of content charging strategy respectively, whether the content charging strategy of judging the packet after the content charging strategy matching is identical, when the content charging strategy of packet is all identical, it is synthetic packet not to be done session, when having only content charging strategy when packet not all identical, just can do the session synthetic operation, thereby reduced the operand of content charging, improved the efficient of content charging method.
Below content charging method of the present invention is described in detail, Fig. 4 is the embodiment two flow process schematic diagrames of the content charging method according to the present invention, and as shown in Figure 4, present embodiment comprises:
Step S401: set up block data protocol context, all packets of store packet data protocol activating;
Open up one section buffering area in GGSN, the context message after the each PDP of user is activated is input in this buffering area, and each PDP activates and sets up a PDP Context, stores all packets that this time PDP activates;
Step S402: the coupling of all packets in this block data protocol context being done the content charging strategy respectively;
Each packet among the PDP Context is done the coupling of content charging strategy.Owing to be not all content needed URL addresses of chargeing of each packet, to allocation of packets that comprises the URL address and the corresponding content charging strategy in URL address that is comprised, for the packet that does not comprise the URL address, Direct Mark is unknown strategy, identifies unknown strategy with " tactful * " below;
Step S403: whether the content charging strategy of judging the packet in this block data protocol context is identical, if identical, turn to step S404, otherwise turns to step S406;
This moment, all packets were all stamped content charging strategy label, the packet that wherein comprises the URL address, content charging strategy label is represented with tactful N, the packet that does not comprise the URL address, belong to unknown strategy, content charging strategy label divides two kinds of scenes to come step S403 is described with representing with tactful * below.
As shown in Figure 5, in the packet of the PDP Context of scene 1, except tactful *, have only a kind of tactfully 1, the content charging strategy of this expression user URL that visits in PDP activation is identical.The packet that does not comprise the URL address information, its content charging strategy also must be a strategy 1, this be because the packet of the packet of tactful * and strategy 1 do GPRS session synthetic after, its content charging strategy must be a strategy 1, so it is synthetic to there is no need to do the GPRS session that expends cpu resource again, turns to step S404;
In the packet of the PDP of scene 2 Context, except tactful *, multiple charging policy is arranged, such as strategy 1 and strategy 2 are arranged, the content charging strategy difference of this expression user URL that visit in PDP activation, the content charging strategy that so just can't know the packet of tactful * are tactful 1 or tactful 2 on earth, just must do session to all packets among this PDP Context and synthesize, carry out the content charging analysis of strategies again, turn to step S406;
Step S404: all data packet flow in this block data protocol context are added up;
Step S405: generate the content charging ticket according to this identical content charging strategy and the flow that adds up that obtains.
This moment, the content charging strategy of all packets was all identical, just can generate the content charging ticket according to the flow that adds up of this identical content charging strategy and all packets.In scene 1, just can generate the content charging ticket according to the strategy 1 and the flow that adds up of packet 1~7;
Step S406: the packet in this block data protocol context is merged into an above conversation procedure;
Step S407: for each conversation procedure distributes corresponding content charging strategy;
Step S408: the conversation procedure flow that will have the identical content charging policy adds up, and generates the content charging ticket according to the conversation procedure of each the content charging strategy correspondence flow that adds up.
Wherein, step S406~S408 is identical with the technical scheme of prior art, does not repeat them here.
Because most of user is in PDP activation, content charging is not done in the URL address of visit, the URL address of visit all is identical content charging strategy, have only and seldom count the user visits the plurality of kinds of contents charging policy in a PDP activation URL address, the present invention proposes a kind of content charging method according to this situation, judge whether that at first all packets all have identical content charging strategy, packet for the identical content charging policy, show in this PDP activation, the content charging strategy of the URL address of user capture is identical, it is synthetic just no longer to do GPRS session, directly the flow with all packets adds up, and generates the content charging ticket; For the packet of different content charging policy, then same as the prior art, carry out the synthetic back of session regeneration content charging ticket.Present embodiment can reduce the workload of session synthetic operation, reduces the operand of the content charging in most of PDP activation, improves the efficient of content charging.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: the above only is the preferred embodiments of the present invention, be not limited to the present invention, although the present invention is had been described in detail with reference to previous embodiment, for a person skilled in the art, it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a content charging method is characterized in that, comprising:
All packets in the block data protocol context are done coupling based on the content charging strategy of URL(uniform resource locator) address respectively;
Whether the content charging strategy of judging the packet that respectively has the content charging strategy after the content charging strategy matching is identical;
Charge according to judged result.
2. content charging method according to claim 1 is characterized in that, the described coupling that all packets in the block data protocol context are done respectively based on the content charging strategy of URL(uniform resource locator) address comprises:
To allocation of packets that comprises URL(uniform resource locator) and the corresponding content charging strategy of URL(uniform resource locator) that is comprised;
The packet that does not comprise URL(uniform resource locator) is labeled as the packet of unknown strategy.
3. content charging method according to claim 1 and 2 is characterized in that, the described charging according to judged result comprises:
If the content charging strategy of described packet with content charging strategy is all identical, all data packet flow in the described block data protocol context are added up;
According to described identical content charging strategy and the described data packet flow after adding up generate the content charging ticket.
4. content charging method according to claim 1 and 2 is characterized in that, the described charging according to judged result comprises:
If the content charging strategy of described packet with content charging strategy is not all identical, the packet in the described block data protocol context is merged into an above conversation procedure;
For each conversation procedure distributes corresponding content charging strategy;
The conversation procedure flow that will have the identical content charging policy adds up, and generates the content charging ticket according to the conversation procedure of each the content charging strategy correspondence flow that adds up.
5. content charging method according to claim 1 and 2 is characterized in that, describedly also comprises before all packets in the block data protocol context are done the coupling of content charging strategy respectively:
Behind packet data protocol activation, set up described block data protocol context, all packets of store packet data protocol activating.
6. a content charging device is characterized in that, comprising:
The content charging policy module is used for all packets of block data protocol context are done coupling based on the content charging strategy of URL(uniform resource locator) address respectively;
Strategy analysis module is used to judge whether the content charging strategy of the packet that respectively has the content charging strategy after the content charging strategy matching is identical;
Accounting module is used for chargeing according to the judged result that described strategy analysis module obtains.
7. content charging device according to claim 6 is characterized in that, described content charging policy module comprises:
First distribution sub module is used for allocation of packets that comprises URL(uniform resource locator) and the corresponding content charging strategy of URL(uniform resource locator) that is comprised;
The mark submodule, the packet that is used for not comprising URL(uniform resource locator) is labeled as unknown tactful packet.
8. according to claim 6 or 7 described content charging devices, it is characterized in that described accounting module comprises:
First submodule that adds up is used for if the content charging strategy of described packet with content charging strategy is all identical all data packet flow in the described block data protocol context being added up;
The first charging submodule is used for according to described identical content charging strategy and the described data packet flow after adding up generates the content charging ticket.
9. according to claim 6 or 7 described content charging devices, it is characterized in that described accounting module comprises:
Session synthon module is used for if the content charging strategy of described packet with content charging strategy is not all identical packet in the described block data protocol context being merged into an above conversation procedure;
Second distribution sub module is used to each conversation procedure to distribute corresponding content charging strategy;
Second submodule that adds up, the conversation procedure flow that is used for having the identical content charging policy adds up;
The second charging submodule is used for conversation procedure according to each the content charging strategy correspondence flow that adds up and generates the content charging ticket.
10. according to claim 6 or 7 described content charging devices, it is characterized in that described device also comprises:
Memory module is used for setting up described block data protocol context behind packet data protocol activation, all packets of store packet data protocol activating.
CN2009102501598A 2009-11-30 2009-11-30 Content charging method and device Active CN102083046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102501598A CN102083046B (en) 2009-11-30 2009-11-30 Content charging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102501598A CN102083046B (en) 2009-11-30 2009-11-30 Content charging method and device

Publications (2)

Publication Number Publication Date
CN102083046A true CN102083046A (en) 2011-06-01
CN102083046B CN102083046B (en) 2013-09-18

Family

ID=44088761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102501598A Active CN102083046B (en) 2009-11-30 2009-11-30 Content charging method and device

Country Status (1)

Country Link
CN (1) CN102083046B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725697A (en) * 2004-07-22 2006-01-25 华为技术有限公司 Service charging method for GPRS network
CN101075884A (en) * 2007-06-29 2007-11-21 中国移动通信集团公司 Method for charging service content
CN101188505A (en) * 2007-12-11 2008-05-28 华为技术有限公司 Content type recognition method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725697A (en) * 2004-07-22 2006-01-25 华为技术有限公司 Service charging method for GPRS network
CN101075884A (en) * 2007-06-29 2007-11-21 中国移动通信集团公司 Method for charging service content
CN101188505A (en) * 2007-12-11 2008-05-28 华为技术有限公司 Content type recognition method and device

Also Published As

Publication number Publication date
CN102083046B (en) 2013-09-18

Similar Documents

Publication Publication Date Title
CN102857491B (en) Management schemes for filter sets
CN103024008B (en) The method, apparatus and system of transfer of data in Internet of Things
CN102202281B (en) Ticket processing method and system
CN104486091A (en) Charging method and device
US20130176907A1 (en) Offline charging of m2m interactions
CN101272258A (en) Method, system and device for implementing combined charging service
CN102137450A (en) Strategy control method and device as well as gateway
CN101075884A (en) Method for charging service content
CN102790810B (en) IP (internet protocol) address allocation method and device
CN104168553A (en) Sending and charging method and device for service messages
CN113840249B (en) Method, charging gateway and system for distinguishing charging ticket
EP2237545B1 (en) Method and device for user information cutover
CN101582884B (en) System and method for 3G data packet reorganization based on FPGA
CN101616143A (en) Policy control method, system, data gateway and policy decision entity
CN105208598A (en) Network access method and apparatus
CN101877845B (en) WLAN (Wireless Local Area Network) access gateway as well as billing system and method by scenes
CN101360097B (en) Method, network and network element for forwarding packet
CN102083046B (en) Content charging method and device
CN101795478A (en) Method for data bypass, network side equipment and access gateway
CN102395117B (en) Method and device for identifying content type
CN103458438A (en) Method and device for processing service wireless side behavioral analysis
CN101217385B (en) A method and system for the temporary storage and treatment of charging bill
CN101771987B (en) Billing method, system and device in packet switched domain
CN103686654A (en) PCC conversation relating method, PCEF unit and PA unit
US20070156547A1 (en) Method, System, Device and Function for Generating and Transferring a Bill

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant