CN109309907A - Method, apparatus and its relevant device for charge on traffic - Google Patents

Method, apparatus and its relevant device for charge on traffic Download PDF

Info

Publication number
CN109309907A
CN109309907A CN201710626238.9A CN201710626238A CN109309907A CN 109309907 A CN109309907 A CN 109309907A CN 201710626238 A CN201710626238 A CN 201710626238A CN 109309907 A CN109309907 A CN 109309907A
Authority
CN
China
Prior art keywords
charge
network session
traffic
information
identity
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
CN201710626238.9A
Other languages
Chinese (zh)
Other versions
CN109309907B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710626238.9A priority Critical patent/CN109309907B/en
Publication of CN109309907A publication Critical patent/CN109309907A/en
Application granted granted Critical
Publication of CN109309907B publication Critical patent/CN109309907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • 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

Abstract

The present invention relates to network communication technology field, the method, apparatus and its relevant device for charge on traffic are provided, which includes: that the five-tuple information of the network session is collected when establishing network session;The identity of the five-tuple information and the terminal device for creating the network session is sent to information collecting server, the identity is used to indicate the information collecting server and obtains the charge on traffic rule bound with the identity;The data interaction of the network session is carried out by gateway, above-mentioned five-tuple information is used to indicate the gateway and carries out charging to the flow generated in the network session according to the charge on traffic rule.The invention enables the step of charge on traffic dispose it is more balanced rationally, excessive load will not be generated to some equipment therein.

Description

Method, apparatus and its relevant device for charge on traffic
Technical field
The present invention relates to network communication technology fields, more particularly to the method, apparatus and its correlation for charge on traffic Equipment.
Background technique
In PS (Packet Switching Domain: domain refers to packet-switched domain) field of mobile communication core net, depth Packet check (DPI:Deep Packet Inspection) is a kind of common technology, and operator by disposing DPI product in advance Charging and control based on content are carried out to user data traffic, i.e., the charge on traffic rule of user is known in advance, then When user carries out data on flows interaction, charging is carried out to the flow used.
The system for carrying out charge on traffic, which is detected, by deep message generally comprises the rule for obtaining charge on traffic, deep message (DPI:Deep Packet Inspection) processing subsystems such as engine and relevant Service control strategy composition is detected, In, the regular subsystem of charge on traffic includes the processes such as regulation management, regular conversion process, taking effect rules.DPI handles engine root According to rule detection data traffic, correlative flow is classified.Service control strategy subsystem handles engine output according to DPI Service identification carries out the control and charging of data traffic in conjunction with control strategy.
Under DPI regulation management is generally configured by local user interface, peripheral script file imports, third-party server is long-range The means such as hair.In network deployment, third-party server is generally the synthesis business platform of operator.These in existing wet end administration DPI rule be it is of overall importance, be related to the relevant rule of certain customers, current processing method is real using policy control functions Body (PCRF:Policy and Charging Rules Function) does user's differentiation, based on the reasons such as user base number is big, PCRF does not have the ability by magnanimity rule control to single user's rank.Simultaneously as DPI rule be belong to it is pre-defined , i.e., rule just needs clear before business occurs.
With universal, the user data service flow of content distributing network (CDN:Content Delivery Network) Correlated characteristic (such as the information such as server address and port, application layer URL) is the expansion and contraction dynamic change with CDN , since video film source dynamic manages, in the data service of user, destination server address and application layer URL letter Breath will all change, while the corresponding application layer message of same business of different user also can be different, this gives based on preparatory The DPI system of the rule of overall importance of definition generates challenge, because many business rules are can not be pre-determined.
It is general at present in order to adapt to by rule use of overall importance predetermined in the method for the charge on traffic of single user Time solution be the information such as address and URL by data service server real-time collecting local terminal and opposite end, these are believed The problem of ceasing and carry out charge on traffic by the synthesis business platform that open interface is sent to operator, but bringing is to limited clothes Business device increases load, traffic affecting rapid deployment.
Summary of the invention
Based on this, it is necessary to for the excessive problem of above-mentioned service deployment a certain server load caused by unreasonable, mention For a kind of method, apparatus and its relevant device for charge on traffic, to disperse the pressure of the charge on traffic of a large number of users.
A method of for charge on traffic, this method comprises:
When establishing network session, the five-tuple information of the network session is collected;
The identity of the five-tuple information and the terminal device for creating the network session is sent to information collecting service Device, the identity are used to indicate the information collecting server and obtain the charge on traffic rule bound with the identity;
The data interaction of the network session is carried out by gateway, the five-tuple information is used to indicate the gateway according to institute It states charge on traffic rule and charging is carried out to the flow generated in the network session.
A method of for charge on traffic, this method comprises:
It receives the five-tuple information of network session and creates the identity of the terminal device of network session;
Obtain the charge on traffic rule that the identity with the terminal device is bound;
The five-tuple information and the charge on traffic rule of inquiry are sent to gateway, indicate the gateway according to the five-tuple Information determines corresponding network session, and is counted according to the charge on traffic rule to the flow generated in the network session Take.
A kind of first device for charge on traffic, the device include:
Information collection module, for collecting the five-tuple information of the network session;
Information sending module, for sending out the identity of the five-tuple information and the terminal device for creating the network session Information collecting server is given, the identity is used to indicate the information collecting server and obtains and identity binding Charge on traffic rule;
Data interaction module, for carrying out the data interaction of the network session by gateway, the five-tuple information is used for Indicate that the gateway carries out charging to the flow generated in the network session according to the charge on traffic rule.
A kind of second device for charge on traffic, the device include:
Information receiving module, for receiving the body of the five-tuple information of network session and the terminal device of creation network session Part mark;
Rule acquisition module, for obtaining the charge on traffic rule with the identity of terminal device binding;
Regular sending module is indicated for the five-tuple information and the charge on traffic rule of inquiry to be sent to gateway The gateway determines corresponding network session according to the five-tuple information, and according to the charge on traffic rule in the network session The flow of generation carries out charging.
A kind of terminal device including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, the processor realize the above-mentioned method for charge on traffic when executing the program.
A kind of information collecting server, including memory, processor and storage can transport on a memory and on a processor Capable computer program, the processor realize the above-mentioned method for charge on traffic when executing the program.
A kind of storage medium, the storage medium are arranged to store each in the above-mentioned method for charge on traffic for executing The program code of a step.
The present invention is by being deployed in terminal device and information collecting service for the primary operational process of charge on traffic
Device, by the five-tuple information of terminal device collection network session, for gateway according to determining pair of the five-tuple information The network session answered is made by the way that the identity for creating the terminal device of the network session is sent to information collecting server The charge on traffic rule bound with the identity can be obtained according to the identity of the terminal device by obtaining information collecting server Then, by the way that charge on traffic rule and five-tuple information are sent to gateway, gateway is advised according to the charge on traffic The network session then determined with the five-tuple information carries out charging to the flow generated in the network session, through the invention The more balanced conjunction that the step of method, apparatus and its relevant device for charge on traffic provided makes charge on traffic is disposed Reason, will not generate excessive load to some equipment therein.
Detailed description of the invention
Fig. 1 is the method flow diagram for charge on traffic according to one embodiment of the present of invention;
Fig. 2 is the method flow diagram for charge on traffic according to another embodiment of the present invention;
Fig. 3 is the data flow figure according to one embodiment of the present of invention;
Fig. 4 is the structural block diagram according to the first device for charge on traffic of one embodiment of the present of invention;
Fig. 5 is the structural block diagram according to the second device for charge on traffic of one embodiment of the present of invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is the method flow diagram for charge on traffic according to one embodiment of the present of invention, is come below with reference to Fig. 1 detailed Thin description is applied to the method for charge on traffic of terminal device according to one embodiment of present invention, as shown in Figure 1, the party Method includes the following steps S101~S103.
S101, when establishing network session, collect the five-tuple information of the network session.
In this step, five-tuple is the technical term in the communications field.Typically refer to source IP address, source port, purpose IP address, destination port and transport layer protocol.
Wherein, the one of this five amount compositions of source IP address, source port, purpose IP address, destination port and transport layer protocol A set becomes five-tuple, such as: 192.168.1.1,10000, TCP, 121.14.88.76,80 may be constructed one five yuan Group, meaning are that the terminal that an IP address is 192.168.1.1 is using Transmission Control Protocol and IP address by port 10000 121.14.88.76, the terminal that port is 80 is connected to the network.
Further, which can distinguish different network sessions, and five-tuple information can be corresponded to uniquely One network session.
S102, the identity of the five-tuple information and the terminal device for creating the network session is sent to information collection Server, the identity are used to indicate the information collecting server and obtain the charge on traffic rule bound with the identity Then.
According to the present embodiment example, the identity of the terminal device be can be used in the terminal device SIM phonecard.Further, which is the service with information gathering capability and permission of operator's configuration Device.
S103, the data interaction that the network session is carried out by gateway, above-mentioned five-tuple information are used to indicate the gateway Charging is carried out to the flow generated in the network session according to the charge on traffic rule.
It include but is not limited to pass through browsing by the data interaction that network session carries out according to the present embodiment example Webpage sees the data interaction that video generates, and carries out the data interaction that chat or file transmission generate by instant messenger, leads to Cross the data interaction that this kind of application of mobile phone Taobao carries out generation when goods browse, the data interaction etc. generated by online game Deng.
Further, the step of five-tuple information of the network session is collected in above-mentioned steps S101 further comprises: obtaining Take the web page interlinkage in network session;The web page interlinkage is sent to domain name resolution server, indicates the domain name resolution service Device is parsed;When receiving the parsing result that the name server postbacks, which is determined according to the parsing result.
It is every when establishing primary new network session further in above-mentioned steps S101, just collect the network session Then the identity of the five-tuple information and the terminal device for creating the network session is sent to information and received by five-tuple information Collect server, which is used to indicate the information collecting server and obtains the charge on traffic bound with the identity Rule, then the data interaction of the network session is carried out by gateway, above-mentioned five-tuple information is used to indicate the gateway according to institute It states charge on traffic rule and charging is carried out to the flow generated in the network session.
The present embodiment by it is every establish a network session when, all collect the corresponding five-tuple information of the network session, And the identity of the five-tuple information and terminal device is sent to information collecting server, so that information collecting server can To obtain the rule with the charge on traffic of identity binding, or perhaps flow package in real time, so that working as the identity mark Know corresponding terminal device table more flow package in other words the rule of charge on traffic when, the gateway of operator can timely root Charging is carried out according to the charge on traffic rule after change, and current fee collecting system is due to can not be in real time to the flow of user Charging regulation is counted, generally all can only be until the beginning of each month, could be to the flow that user uses according to the flow after change Charging regulation carry out charging, embodiment through the invention may be implemented when user change charge on traffic rule after, can to The flow that family uses in real time according to table more after charging regulation carry out charging.
The method for charge on traffic provided according to another embodiment of the present invention, this method are including above-mentioned steps (1) further comprising the steps of on the basis of S101~S103 and step (2):
(1), the mark for creating the application of the network session is obtained.
According to the present embodiment example, above-mentioned creation network session application can be it is all can be by network pair Outer to send data and receive the applications of data, including but not limited to network game APP application, browser, instant messenger are (QQ, micro- Letter etc.) etc..
Further, for the different application on same terminal device, the name of the application can be referred to as the application Mark, for the same application on different terminal equipment, can will be used for the end for the terminal device that the application carries out data transmission Therefore the mark of slogan or IP address as the application on the terminal device can externally be added by the port numbers of terminal device The IP address of Apply Names or terminal device adds Apply Names to carry out unique identification to the application on terminal device.
(2), the mark of the application is sent to the information collecting server, instruction information collecting server marks the application Know and be compared with the application identities authenticated prestored, judges whether corresponding application is the application authenticated, which receives Integrate the server that permission is collected with information that server configures as operator.
The present embodiment, which passes through, is sent to information collecting server for the mark for the application for creating the network session, so that service Device can judge whether corresponding application is registered application according to the mark of the application, when the application is registered application When, allow for data interaction of the method for charge on traffic to generating in the registered application in through this embodiment Carry out charging.
Wherein, the method for charge on traffic applied to terminal device of the embodiment can be by designing in a use In the APP application of charge on traffic, user realizes the side for charge on traffic by installing the APP in terminal device Method.
Fig. 2 is the method flow diagram for charge on traffic according to another embodiment of the present invention, and root is described below in detail According to the method for charge on traffic applied to information collecting server end of one embodiment of the present of invention, as shown in Fig. 2, should Method includes the following steps S201, S202 and S203.
The identity of S201, the five-tuple information for receiving network session and the terminal device for creating network session.
According to the present embodiment example, the in this step identity of received five-tuple information and terminal device It is only used for carrying out information collection and charging, received five-tuple information and terminal to the data traffic generated in this network session The identity of equipment only in current network session effectively, when receiving the five-tuple information and end that same terminal equipment is sent When the identity of end equipment, it is desired nonetheless to which the identity obtained again in step S202 below with the terminal device is bound Charge on traffic rule.
S202, the charge on traffic rule that the identity with the terminal device is bound is obtained.
According to the present embodiment example, the rule of the charge on traffic in the step can be user and operator negotiation Charge on traffic rule, such as the set meal etc. for charge on traffic that user opens.
Further, step S202 further include: the identity of the terminal device is sent to service server, is indicated The charge on traffic that service server inquires corresponding with identity binding is regular, reception service server inquire with the terminal The charge on traffic rule of the identity binding of equipment.
Wherein, above-mentioned service server can be operator's configuration for storing User Identity to should bind Charge on traffic rule server.
S203, the five-tuple information and the charge on traffic rule of inquiry are sent to gateway, indicate the gateway according to this Five-tuple information determines corresponding network session, and according to the charge on traffic rule to the flow generated in the network session into Row charging.Wherein, which is operator's configuration for carrying out charging according to the size and charge on traffic rule of data traffic Gateway.
In another embodiment, this method is further comprising the steps of: receiving the mark for creating the application of the network session; When the application is when being identified as the application identities authenticated prestored, receives the five-tuple information of the network session and create the net The identity of the terminal device of network session.
It in other embodiments, should be applied to the method for charge on traffic of information collecting server further include: when this At the end of network session, the five-tuple information and the identity of the terminal device of the network session are deleted.
Fig. 3 is the data flow figure according to one embodiment of the present of invention, is described below with reference to Fig. 3 according to the present embodiment A usage scenario, as shown in figure 3, the present embodiment can be applied to comprising in the system of lower module:
Terminal APP: being installed in terminal, provides the software of business access for family;
DPI system: Business Stream is detected according to business rule in the parts such as service detection system, including rule, detecting and alarm, Classification results are provided for charging and control;
Synthesis business platform: the signing informations such as charging, the set meal of user are safeguarded;
Business Stream information collection module: being built in terminal APP, for collecting business stream information and being reported to regular collection Node;
Regular collector node: the business stream information and synthesis business platform intercommunication that convergence APP is sent obtain user's charging letter Breath, and generate business rule and be handed down to DPI system.
Traditional DPI regulation management and detection system, issue remote layout, generally by synthesis business platform, rule Management node and DPI system composition.The source that its rule issues is artificial on synthesis business platform or regulation management node Allocation window, and the regular source of synthesis business platform is then human configuration or the transmission of third-party background server.
Wherein, DPI (Deep Packet Inspection, deep message detection) is a kind of depth inspection based on data packet Survey technology carries out depth detection for different network application layer load, determines its conjunction by the payload detection to message Method.
Deep packet detection device is tested and analyzed by flow at the key point to network and message content, can be with Control is filtered to detection flows according to the strategy of predefined, the business fining identification of link where capable of completing, business Flux and flow direction analysis, service traffics accounting statistics, the shaping of business accounting and application layer Denial of Service attack, to virus, wooden horse It is filtered and abuses the functions such as the control of P2P.
In one of them usage scenario, referring to shown in attached drawing 3, this usage scenario is related to four entities: being built in end Hold the Rule Information collection module, regular collector node, the synthesis business platform (business service in corresponding above-mentioned steps of APP Device), DPI detection system (corresponding gateway in above-mentioned steps), in which:
Rule Information collection module: for collecting the IP address negotiated or URL (UniformResourceLocator, system One Resource Locator) etc. data traffic features information, deployment at the terminal, as a submodule or function point of APP, obtain The media data information that terminal APP and server S erver negotiates, and regular collector node is issued by fixed format.Rule Information collection module entity and its process are the newly-increased entities of the technical program, are the passes that this programme is different from conventional solution Key section.
Rule is collected and on the one hand switching node obtains the letters such as authentication, signing and the charging of user from synthesis business platform Breath, is on the other hand converted into the supported format of DPI detection system for the Rule Information being collected into from terminal APP and is handed down to DPI detection system.Existing regulation management node (such as remote layout adapter nodes) can also be transformed to realize in this system.It is comprehensive Business platform needs support the legitimacy authentication of user, or regular collector node itself will configure the authentication information of user.
Meanwhile synthesis business platform will have the ability of distributing bill information.
In actual deployment, considered based on meeting to share etc., terminal APP and regular collector node are multi-to-multi or many-one Relationship, regular collector node and DPI system are generally many-one relationship.The same terminal can only send out registration and Rule Information It is sent to a regular collector node, corresponding DPI system is associated with by regular collector node and (is generally deployed in Media Gateway, uses Family is registered in the Media Gateway, the data of terminal APP flow through the Media Gateway forwarding, and in Media Gateway carry out charging with Control).
Further combined with shown in Fig. 3, the processing step of flow elements is as follows.
Step 1: terminal APP carries out data service access and destination server information is negotiated in server interaction, such as through CDN Video is accessed, destination server is negotiated.
After terminal access system, from the Business Stream information collection module built in terminal APP actively to regular collector node Prefabricated domain name or address can be used to initiate to request in registration, APP, carry registration information (including station address, APP mark, Type of business etc.), registration can be realized based on general-purpose interfaces such as restful.The rule bleeding point is the rule of operator's setting Then collect server, can with DPI system intercommunication, while with synthesis business platform intercommunication.
Step 2: terminal APP carries out data service, services addresses negotiation (this distribution server is carried out with the distribution server Refer to have and guide user data service to the network entity of destination server, such as dns server or CDN distribution node or tool The server etc. of standby transmission service URI information), negotiating content includes that server ip address information or (with) are served by URI (Uniform Resource Identifier, uniform resource identifier) information.
The destination server information being built in the Rule Information collection module obtaining step one in terminal APP, is organized into Set message format, the also user name including user, APP type identification, data traffic types, IP address of terminal in the message Etc. information;By preset regular collector node address or domain name, regular collector node is sent a message to.
Step 3: the Business Stream information collection module built in terminal APP will walk before initiating actual data traffic access The information negotiated in rapid one is sent to regular collector node.The rule collector node, authenticating users verify content packet It includes but is not limited to the following contents and (check that APP mark and type of business whether there is in synthesis business platform;To Service Gateway, Such as Media Gateway service node, whether Service Gateway and the address for inquiring terminal address ownership are legal;It is extracted from Service Gateway Subscriber Number, such as MSISDN (Mobile Subscriber International ISDN/PSTN number, integrated service number Word net), check whether the user has contracted the type of business of related APP);Backward synthesis business platform inquire the control of the user The control of the user or charge information and terminal are negotiated content after successful inquiring and are sent to DPI system by system or charge information.
After regular collector node receives the message in step 2, according to IP address of terminal, user name and APP type identification etc. Information initiates authentication to synthesis business platform and obtains charge information inquiry;User information after authenticating successfully can be buffered in It is local, to reduce authentication/inquiry number.If failed authentication, ignore the message that terminal APP is sent.
Step 4: coming into force after DPI system receives the rule of regular collector node to designated user.
After authenticating successfully, the Rule Information tissue that terminal APP is sent is that DPI system can identify by regular collector node Rule schemata, and be issued to DPI system, which, which clearly indicates, belongs to specific user, which corresponds to above-mentioned " when the application When being identified as the application identities authenticated prestored, receive the five-tuple information of the network session and create the network session The step of identity of terminal device ".
Step 5: the data service of the DPI system detection user, uses the above-mentioned DPI rule to come into force, i.e. DPI system energy Detection accurately goes out the data service in time, and passes to associated control modules and controlled the business (if executed specific Payment type, rate, business redirection etc.).DPI system has certain buffer capacity, is sent with adapting to regular collector node The hysteresis quality of rule;The part possible cause of hysteresis quality includes the processing logic of terminal APP and the place of time delay, regular collector node Reason time delay, DPI system may have received this before DPI taking effect rules under above-mentioned case propagation delays to the processing delay of rule The data service message of APP;Customer flow can be cached a period of time by DPI system, to support billing accuracy.It simultaneously can be with The user policy more than certain time is set to cease to be in force automatically, because server ip address and URL information that terminal is negotiated have timeliness Property (only during business access effectively).
DPI system is detected according to specific user's rule.In the technical program, DPI system will have the long-range rule of reception Ability then is provided simultaneously with detection single user rule, i.e., specified rule comes into force just for specific user, that is, a DPI rule can only come into force to a part of user, not come into force to other users, rather than global user is come into force, and is paid attention to herein simultaneously The differentiation of user is not realized by the policy selections such as PCRF network element instead of, DPI detection system itself can be to different user Use different DPI detected rules.DPI system has caching capabilities, that is, supports when being detected according to specific user's rule Normal identification of the rule in certain time-delay error is issued, to solve the hysteresis quality of terminal APP transmission rule under certain scenes.Together When support specific user's rule timing out mechanism.
According to the present embodiment example, above-mentioned steps S101~S203 label is not used to limit each in the present embodiment The sequencing of a step, the number of each step, which is intended merely to allow, general when describing each step quotes the step Label is easily referred to, as long as the sequence that each step executes does not influence the logical relation of the present embodiment.
The usage scenario of the present embodiment is solved by using the method for being used for charge on traffic when carrying out charge on traffic DPI rule (rule of wandering charging in other words) needs pre-defined problem, can obtain DPI business rule in real time, and Charging is carried out to the flow that user uses according to the newest DPI rule obtained in real time, this method only needs fixed in terminal The terminal APP of a method using this for charge on traffic of system, then information collecting server and relevant device are made corresponding Configuration, does not need CDN service end and makes an amendment, while can disperse the unified pressure collected of a large number of users business rule, for HTTPS Deng encryption flow, the terminal APP of customization can be collected into the accurate five-tuple information such as terminal address, server address, port, DPI engine is set to encrypt flow by five-tuple infomation detection, to support accurately identifying for encrypting traffic.
Fig. 4 is to be tied below according to the structural block diagram of the first device for charge on traffic of one embodiment of the present of invention Fig. 4 is closed the first device according to an embodiment of the invention for charge on traffic is described in detail, as shown in figure 4, the use Include: in the first device 10 of charge on traffic
Information collection module 11, for collecting the five-tuple information of the network session, which can be distinguished not Same network session, and five-tuple information can uniquely correspond to a network session;
Information sending module 12, for by the identity of the five-tuple information and the terminal device for creating the network session It is sent to information collecting server, the identity is used to indicate the information collecting server and obtains and the identity The charge on traffic rule of binding, wherein the identity of the terminal device can be SIM phone used in the terminal device Card.Further, which is the server with information gathering capability and permission of operator's configuration;
Data interaction module 13, for carrying out the data interaction of the network session by gateway, the five-tuple information is used Charging is carried out to the flow generated in the network session according to the charge on traffic rule in the instruction gateway.
Wherein, above- mentioned information collection module is specifically used for every when establishing primary new network session, just collects the network meeting Then the identity of the five-tuple information and the terminal device for creating the network session is sent to letter by the five-tuple information of words Breath collects server, and the identity is used to indicate the information collecting server and obtains the stream bound with the identity Charging regulation is measured, then carries out the data interaction of the network session by gateway, the five-tuple information is used to indicate the gateway Charging is carried out to the flow generated in the network session according to the charge on traffic rule.
It is further used as optionally, which includes:
Web page interlinkage acquiring unit, for obtaining the web page interlinkage for being used for network session;
Web page interlinkage transmission unit, for the web page interlinkage to be sent to domain name resolution server;
Information determination unit, it is true according to the parsing result when for receiving parsing result that the name server postbacks The fixed five-tuple information.
Further, the first device 10 for being used for charge on traffic further include:
Application identities obtain module, for obtaining the mark for creating the application of the network session;
Application identities sending module, for the mark of the application to be sent to the information collecting server, which is collected Server is the server that permission is collected with information of operator's configuration.
According to the present embodiment example provide a kind of terminal device, the terminal device for example mobile phone, personal PC machine, Tablet computer etc., the terminal device include processor, the non-volatile memory medium, interior storage connected by system bus Device, input unit, display screen and network interface.Wherein, the non-volatile memory medium of the terminal device can storage program area And computer-readable instruction, the computer-readable instruction are performed, and processor may make to execute in each embodiment of the application Applied to the method for charge on traffic of terminal device, the specific implementation process of this method can refer to the tool of each embodiment of Fig. 1 Hold in vivo, details are not described herein.The processor of the terminal device supports entire terminal device for providing calculating and control ability Operation.Computer-readable instruction can be stored in the built-in storage, when which is executed by processor, can be made It obtains processor and executes the method for charge on traffic for being applied to terminal device.The input unit of terminal device is used for parameters Input, the display screen of terminal device is for being shown, the network interface of terminal device is for carrying out network communication.Specifically Terminal device may include perhaps combining certain components or with different portions than more or fewer components as shown in the figure Part arrangement.
Fig. 5 is to be tied below according to the structural block diagram of the second device for charge on traffic of one embodiment of the present of invention Fig. 5 is closed the second device according to an embodiment of the invention for charge on traffic is described in detail, as shown in figure 5, the use Include: in the second device 20 of charge on traffic
Information receiving module 21, for receiving the five-tuple information of network session and creating the terminal device of network session Identity, wherein the identity of the terminal device can be SIM phonecard used in the terminal device.Further, The local terminal information collecting server is the server with information gathering capability and permission of operator's configuration;
Rule acquisition module 22, for obtaining the charge on traffic rule with the identity of terminal device binding;
Regular sending module 23 refers to for the five-tuple information and the charge on traffic rule of inquiry to be sent to gateway Show that the gateway determines corresponding network session according to the five-tuple information, and according to the charge on traffic rule in the network session The flow of middle generation carries out charging.
Further, above-mentioned rule acquisition module 22 further include:
Identity receiving unit, for the identity of the terminal device to be sent to service server;
Identity transmission unit, what the identity with the terminal device for receiving service server inquiry was bound Charge on traffic rule.
It is further used as optionally, this is used for the second device 20 of charge on traffic further include:
Application identities receiving unit, for receiving the mark for creating the application of the network session;
Authentication unit, for receiving the network session when the application is when being identified as the application identities authenticated prestored Five-tuple information and create the network session terminal device identity.
Optionally, the second device 20 for being used for charge on traffic further include:
Removing module, at the end of the network session, the five-tuple information and the terminal for deleting the network session to be set Standby identity.
The present embodiment separately provides a kind of terminal device, which includes memory, processor and be stored in storage On device and the computer program that can run on a processor, which realizes above-mentioned for charge on traffic when executing the program Method.
The present embodiment additionally provides a kind of information collecting server, including memory, processor and storage are on a memory And the computer program that can be run on a processor, the processor realize the above-mentioned side for charge on traffic when executing the program Method.
A kind of storage medium provided according to one embodiment of present invention, the storage medium are arranged to storage for holding The program code of each step in the above-mentioned method for charge on traffic of row.
The wherein above-mentioned first device for charge on traffic and " first " in the second device for charge on traffic and " Two " meaning, which is only that, is distinguish two charge on traffic devices, is not used to limit the preferential of which charge on traffic device Grade is higher or other limiting meanings.
According to a kind of information collecting server that the present embodiment example provides, which includes logical Cross processor, non-volatile memory medium, built-in storage, input unit and the network interface of system bus connection.Wherein, the letter Breath collect server non-volatile memory medium can storage program area and computer-readable instruction, the computer-readable instruction It is performed, may make processor executes in each embodiment of the application to be used for charge on traffic applied to information collecting server Method, the specific implementation process of this method can refer to the particular content of embodiment in Fig. 2, and details are not described herein.The information is received Collect the processor of server for providing calculating and control ability, supports the operation of entire information collecting server.The interior storage Computer-readable instruction can be stored in device, when which is executed by processor, processor execution may make to answer The method for charge on traffic for information collecting server.The input unit of information collecting server is for parameters Input, the display screen of information collecting server is for being shown, the network interface of information collecting server is for carrying out network Communication.Specific information collecting server may include than more or fewer components as shown in the figure, or the certain components of combination, Or with different component layouts.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, described program can be stored in a computer-readable storage medium In, in the embodiment of the present invention, which be can be stored in the storage medium of computer system, and by the computer system At least one processor executes, and includes the process such as the embodiment of above-mentioned each method with realization.Wherein, the storage medium can be Magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The present embodiment is led to by the way that the primary operational process of charge on traffic is deployed in terminal device and information collecting server The five-tuple information for crossing terminal device collection network session determines corresponding network session according to the five-tuple information for gateway, By the way that the identity for creating the terminal device of the network session is sent to information collecting server, so that information collecting service Device can obtain the charge on traffic rule with identity binding according to the identity of the terminal device, by by the flow Charging regulation and five-tuple information are sent to gateway, allow gateway according to the charge on traffic rule and the five-tuple information Determining network session carries out charging to the flow generated in the network session, and what is provided through the invention is used for flowmeter The step of method, apparatus and its relevant device of expense make charge on traffic dispose it is more balanced rationally, will not to it is therein certain One equipment generates excessive load.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (12)

1. a kind of method for charge on traffic, which is characterized in that the described method includes:
When establishing network session, the five-tuple information of the network session is collected;
The identity of the five-tuple information and the terminal device of the creation network session is sent to information collecting service Device, the identity are used to indicate the information collecting server and obtain the charge on traffic rule bound with the identity Then;
The data interaction of the network session is carried out by gateway, the five-tuple information is used to indicate the gateway according to Charge on traffic rule carries out charging to the flow generated in the network session.
2. the method according to claim 1, wherein the step of the five-tuple information for collecting the network session Suddenly include:
Obtain the web page interlinkage for being used for network session;
The web page interlinkage is sent to domain name resolution server;
When receiving the parsing result that domain name server postbacks, the five-tuple information is determined according to the parsing result.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
Obtain the mark for creating the application of the network session;
The mark of the application is sent to the information collecting server, the information collecting server is operator's configuration The server of permission is collected with information.
4. a kind of method for charge on traffic, which is characterized in that the described method includes:
It receives the five-tuple information of network session and creates the identity of the terminal device of network session;
Obtain the charge on traffic rule that the identity with the terminal device is bound;
The five-tuple information and the charge on traffic rule of inquiry are sent to gateway, indicate the gateway according to described five Tuple information determines corresponding network session, and according to the charge on traffic rule to the flow generated in the network session Carry out charging.
5. according to the method described in claim 4, it is characterized in that, the acquisition and the identity of the terminal device are bound The step of charge on traffic rule include:
The identity of the terminal device is sent to service server;
Receive the charge on traffic rule of the identity binding with the terminal device of service server inquiry.
6. according to the method described in claim 4, it is characterized in that, the method also includes:
Receive the mark for creating the application of the network session;
When the application is when being identified as the application identities authenticated prestored, receive the network session five-tuple information and Create the identity of the terminal device of the network session.
7. according to the described in any item methods of claim 4 to 6, which is characterized in that the method also includes:
At the end of the network session, the five-tuple information of the network session and the identity mark of the terminal device are deleted Know.
8. a kind of first device for charge on traffic, which is characterized in that described device includes:
Information collection module, for collecting the five-tuple information of the network session;
Information sending module, for sending out the identity of the five-tuple information and the terminal device of the creation network session Information collecting server is given, the identity is used to indicate the information collecting server acquisition and ties up with the identity Fixed charge on traffic rule;
Data interaction module, for carrying out the data interaction of the network session by gateway, the five-tuple information is for referring to Show that the gateway carries out charging to the flow generated in the network session according to the charge on traffic rule.
9. a kind of second device for charge on traffic, which is characterized in that described device includes:
Information receiving module, for receiving the identity mark of the five-tuple information of network session and the terminal device of creation network session Know;
Rule acquisition module, for obtaining the charge on traffic rule with the identity of terminal device binding;
Regular sending module is indicated for the five-tuple information and the charge on traffic rule of inquiry to be sent to gateway The gateway determines corresponding network session according to the five-tuple information, and according to the charge on traffic rule in the net The flow generated in network session carries out charging.
10. a kind of terminal device including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that realized when the processor executes described program if any one of claims 1 to 3 is for flowing The method that meter takes.
11. a kind of information collecting server, including memory, processor and storage can be run on a memory and on a processor Computer program, which is characterized in that the processor is realized when executing described program such as any one of claim 4 to 7 Method for charge on traffic.
12. a kind of storage medium, which is characterized in that the storage medium is arranged to storage for executing the claims 1 To the program code for being used for each step in the method for charge on traffic described in any one of 7.
CN201710626238.9A 2017-07-27 2017-07-27 Method and device for charging flow and related equipment Active CN109309907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710626238.9A CN109309907B (en) 2017-07-27 2017-07-27 Method and device for charging flow and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710626238.9A CN109309907B (en) 2017-07-27 2017-07-27 Method and device for charging flow and related equipment

Publications (2)

Publication Number Publication Date
CN109309907A true CN109309907A (en) 2019-02-05
CN109309907B CN109309907B (en) 2021-08-06

Family

ID=65202828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710626238.9A Active CN109309907B (en) 2017-07-27 2017-07-27 Method and device for charging flow and related equipment

Country Status (1)

Country Link
CN (1) CN109309907B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698099A (en) * 2019-03-15 2020-09-22 阿里巴巴集团控股有限公司 Flow management method, and device, server and system for implementing same
WO2020224341A1 (en) * 2019-05-09 2020-11-12 中兴通讯股份有限公司 Method and apparatus for identifying tls encrypted traffic
WO2021018021A1 (en) * 2019-07-31 2021-02-04 华为技术有限公司 Charging method, charging system, and communication device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747391A (en) * 2004-09-10 2006-03-15 华为技术有限公司 Signalling bearing accounting method in multi-media subsystem
CN102209310A (en) * 2010-03-31 2011-10-05 华为技术有限公司 Method and device for controlling data stream of user service
CN103686658A (en) * 2012-09-14 2014-03-26 中国移动通信集团公司 Method and system for realizing application content charging
CN104717184A (en) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 Acquisition method and device for terminal application session quintuple
CN105790960A (en) * 2014-12-24 2016-07-20 中国电信股份有限公司 Traffic identification method and system and traffic gateway
US20160359947A1 (en) * 2015-06-04 2016-12-08 Juniper Networks, Inc. Reducing application detection notification traffic
CN106332183A (en) * 2015-07-03 2017-01-11 中兴通讯股份有限公司 Traffic control method, traffic control processing method, traffic control device, traffic control processing device and terminal
CN106712972A (en) * 2015-07-28 2017-05-24 中国移动通信集团公司 Charging rule updating method, device and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747391A (en) * 2004-09-10 2006-03-15 华为技术有限公司 Signalling bearing accounting method in multi-media subsystem
CN102209310A (en) * 2010-03-31 2011-10-05 华为技术有限公司 Method and device for controlling data stream of user service
CN103686658A (en) * 2012-09-14 2014-03-26 中国移动通信集团公司 Method and system for realizing application content charging
CN104717184A (en) * 2013-12-13 2015-06-17 中兴通讯股份有限公司 Acquisition method and device for terminal application session quintuple
CN105790960A (en) * 2014-12-24 2016-07-20 中国电信股份有限公司 Traffic identification method and system and traffic gateway
US20160359947A1 (en) * 2015-06-04 2016-12-08 Juniper Networks, Inc. Reducing application detection notification traffic
CN106332183A (en) * 2015-07-03 2017-01-11 中兴通讯股份有限公司 Traffic control method, traffic control processing method, traffic control device, traffic control processing device and terminal
CN106712972A (en) * 2015-07-28 2017-05-24 中国移动通信集团公司 Charging rule updating method, device and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698099A (en) * 2019-03-15 2020-09-22 阿里巴巴集团控股有限公司 Flow management method, and device, server and system for implementing same
WO2020224341A1 (en) * 2019-05-09 2020-11-12 中兴通讯股份有限公司 Method and apparatus for identifying tls encrypted traffic
WO2021018021A1 (en) * 2019-07-31 2021-02-04 华为技术有限公司 Charging method, charging system, and communication device

Also Published As

Publication number Publication date
CN109309907B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN104023092B (en) A kind of method and system for realizing orientation flow bag
EP1887732B1 (en) A method and system for content charging
CN101990183B (en) Method, device and system for protecting user information
US7924854B2 (en) System and method for billing end users in a peer-to-peer transaction in a network environment
CN103269479B (en) A kind of call bill processing method, device and system
US9923728B2 (en) System and method for associating an end user for billing in a network environment
US9209983B2 (en) Generating a single advice of charge request for multiple sessions in a network environment
CN101083539B (en) Switch gateway based real-time stream media content counting method and system
CN109309907A (en) Method, apparatus and its relevant device for charge on traffic
US9202237B2 (en) Generating a single billing record for multiple sessions in a network environment
US9806940B1 (en) Device metering
US20070147357A1 (en) Method and apparatus for generating IP traffic in an internet protocol (IP) based network
Zseby et al. Policy-based accounting
KR20030046761A (en) Method for Generation of Charging Data per List in Mobile Communication System
KR20020018991A (en) System and method for imposing a differential rate according to utilization a wireless network
US20060171382A1 (en) Method and arrangement for externally controlling and managing at least one wlan subscriber who is assigned to a local radio network
CN110120960A (en) A kind of webpage redirects jump method and its system
US20050049887A1 (en) Methods, systems, and computer program products for allocating costs in using a broadband communication network
CN102904916B (en) Set up the method for point-to-point communication, index server and system
CN102868539A (en) Method and system for managing nationwide billing identification gateways
KR102436888B1 (en) Methods to enable flexible charging at the M2M IOT service layer
US20070036311A1 (en) Flow control in a communications network using a service cluster solution
WO2013040901A1 (en) Server, and network data provision method and device
CN104144417B (en) Mobile Internet access Subscriber Number inverse-checking method, device and system
CN103139695A (en) Telecommunication ability call method and network equipment facing client side

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