CN109309907B - Method and device for charging flow and related equipment - Google Patents

Method and device for charging flow and related equipment Download PDF

Info

Publication number
CN109309907B
CN109309907B CN201710626238.9A CN201710626238A CN109309907B CN 109309907 B CN109309907 B CN 109309907B CN 201710626238 A CN201710626238 A CN 201710626238A CN 109309907 B CN109309907 B CN 109309907B
Authority
CN
China
Prior art keywords
network session
information
charging
identity
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710626238.9A
Other languages
Chinese (zh)
Other versions
CN109309907A (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of network communication, and provides a method, a device and related equipment for flow charging, wherein the method for flow charging comprises the following steps: collecting five-tuple information of the network session when the network session is established; sending the quintuple information and an identity of a terminal device for creating the network session to an information collection server, wherein the identity is used for indicating the information collection server to obtain a flow charging rule bound with the identity; and performing data interaction of the network session through a gateway, wherein the quintuple information is used for indicating the gateway to charge the flow generated in the network session according to the flow charging rule. The invention ensures that the step deployment of the flow charging is more balanced and reasonable, and can not generate excessive load on one of the devices.

Description

Method and device for charging flow and related equipment
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for charging traffic and related devices.
Background
In the PS (Packet Switching Domain: Domain refers to Packet switched Domain) field of a mobile communication core network, Deep Packet Inspection (DPI) is a common technology, and an operator performs content-based charging and control on user data traffic by deploying a DPI product in advance, that is, knowing a traffic charging rule of a user in advance, and then charging the used traffic when the user performs traffic data interaction.
The system for performing traffic charging through Deep Packet Inspection generally includes subsystems such as rules for acquiring traffic charging, a Deep Packet Inspection (DPI) processing engine, and related service control policies, wherein the rule subsystem for traffic charging includes processes such as rule management, rule conversion processing, and rule validation. And the DPI processing engine detects the data traffic according to the rule and classifies the related traffic. And the service control strategy subsystem controls and charges the data flow by combining the control strategy according to the service identifier output by the DPI processing engine.
DPI rule management is generally implemented by means of local user interface configuration, peripheral script file import, remote delivery from a third-party server, and the like. In network deployment, the third party server is typically an integrated service platform of an operator. In the current network deployment, the DPI Rules are global and relate to partial user-related Rules, the current processing method is to use Policy and Charging Rules Function (PCRF) to distinguish users, and the PCRF does not have the capability of controlling massive Rules to a single user level based on the reasons of large user base and the like. Meanwhile, as the DPI rule is predefined, the rule needs to be clear before the service occurs.
With the popularization of Content Delivery Networks (CDNs), the characteristics related to the traffic flow of user data services (such as information of server addresses and ports, application layer URLs, and the like) dynamically change with the expansion and contraction of CDNs, and due to dynamic management of video sources, in a data service of a user, the target server address and the application layer URL information of the user will change, and at the same time, the application layer information corresponding to the same service of different users will also be different, which creates a challenge for a DPI system based on predefined global rules, because many service rules cannot be determined in advance.
In order to adapt to the application of predefined global rules to a method for charging traffic of a single user, a common solution at present is to collect information such as addresses and URLs of a home terminal and an opposite terminal in real time through a data service server, and send the information to a comprehensive service platform of an operator through an open interface for charging traffic, but the problem brought by the method is that load is added to a limited server, and rapid deployment of the service is influenced.
Disclosure of Invention
Based on this, it is necessary to provide a method and an apparatus for traffic charging and related devices thereof to distribute the pressure of traffic charging for a large number of users, in order to solve the problem of overload of a certain server caused by unreasonable service deployment.
A method for traffic charging, the method comprising:
collecting five-tuple information of the network session when the network session is established;
sending the quintuple information and an identity of a terminal device for creating the network session to an information collection server, wherein the identity is used for indicating the information collection server to obtain a flow charging rule bound with the identity;
and performing data interaction of the network session through a gateway, wherein the quintuple information is used for indicating the gateway to charge the flow generated in the network session according to the flow charging rule.
A method for traffic charging, the method comprising:
receiving quintuple information of the network session and an identity of a terminal device for creating the network session;
acquiring a flow charging rule bound with the identity of the terminal equipment;
and sending the quintuple information and the inquired flow charging rule to a gateway, indicating the gateway to determine a corresponding network session according to the quintuple information, and charging the flow generated in the network session according to the flow charging rule.
A first apparatus for traffic charging, the apparatus comprising:
the information collection module is used for collecting quintuple information of the network session;
the information sending module is used for sending the quintuple information and the identity of the terminal equipment for creating the network session to an information collecting server, and the identity is used for indicating the information collecting server to obtain the flow charging rule bound with the identity;
and the five-tuple information is used for indicating the gateway to charge the flow generated in the network session according to the flow charging rule.
A second apparatus for traffic charging, the apparatus comprising:
the information receiving module is used for receiving quintuple information of the network session and an identity identifier of the terminal equipment for creating the network session;
the rule obtaining module is used for obtaining a flow charging rule bound with the identity of the terminal equipment;
and the rule sending module is used for sending the quintuple information and the inquired flow charging rule to the gateway, indicating the gateway to determine a corresponding network session according to the quintuple information and charging the flow generated in the network session according to the flow charging rule.
A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing the above method for traffic charging.
An information collecting server comprises a memory, a processor and a computer program stored on the memory and operable on the processor, the processor implementing the above method for traffic charging when executing the program.
A storage medium configured to store program codes for performing the respective steps in the above-described method for traffic charging.
The invention deploys the main operation flow of the flow charging in the terminal equipment and the information collection service
The gateway sends the flow charging rule and the quintuple information to the gateway, so that the gateway can charge the flow generated in the network session according to the flow charging rule and the network session determined by the quintuple information.
Drawings
Fig. 1 is a flow diagram of a method for traffic charging according to one embodiment of the invention;
fig. 2 is a flow chart of a method for traffic charging according to another embodiment of the present invention;
FIG. 3 is a data flow diagram according to one embodiment of the invention;
fig. 4 is a block diagram of a first apparatus for traffic charging according to an embodiment of the present invention;
fig. 5 is a block diagram of a second apparatus for traffic charging according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a flowchart of a method for charging traffic according to an embodiment of the present invention, and the method for charging traffic, which is applied to a terminal device according to an embodiment of the present invention, is described in detail below with reference to fig. 1, and as shown in fig. 1, the method includes the following steps S101 to S103.
S101, collecting quintuple information of the network session when the network session is established.
In this step, the quintuple is a technical term in the field of communications. Typically a source IP address, a source port, a destination IP address, a destination port, and a transport layer protocol.
Wherein, a set composed of five quantities of source IP address, source port, destination IP address, destination port and transport layer protocol is a five-tuple, for example: 192.168.1.1, 10000 TCP, 121.14.88.76, 80 may form a quintuple, meaning that a terminal with an IP address of 192.168.1.1 is connected to the network via port 10000 using the TCP protocol and a terminal with an IP address of 121.14.88.76 and a port of 80.
Further, the five-tuple information can distinguish different network sessions, and the five-tuple information can uniquely correspond to one network session.
S102, sending the quintuple information and the identity of the terminal equipment creating the network session to an information collection server, wherein the identity is used for indicating the information collection server to obtain the flow charging rule bound with the identity.
According to an example of this embodiment, the identity of the terminal device may be a SIM phone card used by the terminal device. Further, the information collection server is a server with information collection capability and authority configured by an operator.
And S103, performing data interaction of the network session through a gateway, wherein the quintuple information is used for indicating the gateway to charge the traffic generated in the network session according to the traffic charging rule.
According to an example of the embodiment, the data interaction through the network session includes, but is not limited to, data interaction generated by viewing a video through browsing a webpage, data interaction generated by chatting or file transfer through an instant chatting tool, data interaction generated when browsing a commodity through an application such as mobile phone panning, data interaction generated through a network game, and the like.
Further, the step of collecting the five-tuple information of the network session in step S101 further includes: acquiring a webpage link for a network session; sending the webpage link to a domain name resolution server, and indicating the domain name resolution server to perform resolution; and when receiving the resolution result sent back by the domain name server, determining the quintuple information according to the resolution result.
Further, in step S101, when a new network session is established, five-tuple information of the network session is collected, and then the five-tuple information and an identifier of a terminal device that creates the network session are sent to an information collection server, where the identifier is used to instruct the information collection server to obtain a traffic charging rule bound to the identifier, and then perform data interaction of the network session through a gateway, and the five-tuple information is used to instruct the gateway to charge traffic generated in the network session according to the traffic charging rule.
In this embodiment, when each network session is established, quintuple information corresponding to the network session is collected, and the quintuple information and the identifier of the terminal device are sent to the information collecting server, so that the information collecting server can obtain the flow charging rule or flow package bound to the identifier in real time, when the terminal device table corresponding to the identifier updates the flow package or the flow charging rule, the gateway of the operator can charge in time according to the changed flow charging rule, but the current flow charging system cannot count the flow charging rule of the user in real time, and generally can only wait for the first month, charge the flow used by the user according to the changed flow charging rule, and the embodiment of the present invention can realize that when the user changes the flow charging rule, the flow used by the user can be charged in real time according to the charging rule after the table.
According to another embodiment of the present invention, the method for charging traffic further includes the following steps (1) and (2) on the basis of the steps S101 to S103:
(1) and obtaining the identification of the application creating the network session.
According to an example of the embodiment, the application creating the network session may be all applications capable of sending and receiving data to and from the outside through the network, including but not limited to a webgame APP application, a browser, an instant chat tool (QQ, wechat, etc.), and the like.
Further, for different applications on the same terminal device, the name of the application may be used as the identifier of the application, and for the same application on different terminal devices, the port number or the IP address of the terminal device used for the application to perform data transmission may be used as the identifier of the application on the terminal device, so that the application on the terminal device may be uniquely identified by adding the application name to the port number of the terminal device or adding the application name to the IP address of the terminal device.
(2) And sending the application identifier to the information collection server, instructing the information collection server to compare the application identifier with a prestored authenticated application identifier, and judging whether the corresponding application is an authenticated application or not, wherein the information collection server is a server which is configured by an operator and has information collection permission.
In this embodiment, the identifier of the application that creates the network session is sent to the information collecting server, so that the server can determine whether the corresponding application is a registered application according to the identifier of the application, and when the application is the registered application, the data interaction generated in the registered application is allowed to be charged by the method for charging traffic in this embodiment.
The method for charging traffic applied to the terminal device of this embodiment may be designed in an APP application for charging traffic, and the user implements the method for charging traffic by installing the APP in the terminal device.
Fig. 2 is a flowchart of a method for traffic charging according to another embodiment of the present invention, and the method for traffic charging applied to an information collection server side according to one embodiment of the present invention is described in detail below, and as shown in fig. 2, the method includes the following steps S201, S202, and S203.
S201, receiving quintuple information of the network session and an identity of a terminal device for creating the network session.
According to an example of this embodiment, the quintuple information and the id of the terminal device received in this step are only used to collect and charge the data traffic generated in the current network session, and the received quintuple information and the id of the terminal device are only valid in the current network session, and when the quintuple information and the id of the terminal device sent by the same terminal device are received, it is still necessary to obtain the traffic charging rule bound to the id of the terminal device in the following step S202.
S202, obtaining the flow charging rule bound with the identity of the terminal equipment.
According to an example of this embodiment, the rule of the traffic charging in this step may be a rule of the traffic charging negotiated by the user and the operator, such as a package opened by the user for the traffic charging.
Further, the step S202 further includes: and sending the identity of the terminal equipment to a service server, indicating the service server to inquire the flow charging rule correspondingly bound with the identity, and receiving the flow charging rule which is inquired by the service server and bound with the identity of the terminal equipment.
The service server may be a server configured by an operator and used for storing the flow charging rule corresponding to the user identity identifier.
S203, the quintuple information and the inquired flow charging rule are sent to a gateway, the gateway is indicated to determine a corresponding network session according to the quintuple information, and the flow generated in the network session is charged according to the flow charging rule. The gateway is configured by an operator and used for charging according to the size of the data traffic and the traffic charging rule.
In another embodiment, the method further comprises the steps of: receiving an identification of an application that created the web session; and when the application identifier is a pre-stored authenticated application identifier, receiving quintuple information of the network session and an identity identifier of the terminal equipment creating the network session.
In other embodiments, the method for charging for traffic applied to the information collecting server further includes: and when the network session is ended, deleting the five-tuple information of the network session and the identity of the terminal equipment.
Fig. 3 is a data flow diagram according to an embodiment of the present invention, and a usage scenario according to the embodiment is described below with reference to fig. 3, as shown in fig. 3, the embodiment may be applied to a system including the following modules:
terminal APP: software which is installed on the terminal and provides service access for users;
a DPI system: the service detection system comprises a rule, a detection engine and the like, detects service flow according to the service rule, and provides classification results for charging and control;
the integrated service platform comprises: maintaining the subscription information of the user such as charging, package and the like;
a service flow information collection module: the system is internally arranged in a terminal APP and used for collecting service flow information and reporting the service flow information to a rule collecting node;
and a rule collection node: and converging the service flow information sent by the APP, communicating with the comprehensive service platform to obtain user charging information, generating a service rule and issuing the service rule to the DPI system.
The traditional DPI rule management and detection system generally comprises an integrated service platform, a rule management node and a DPI system for remote rule issuing. The source of the rule issuing is manual configuration window on the integrated service platform or the rule management node, and the source of the rule of the integrated service platform is manual configuration or transmission of a third-party background server.
The DPI (Deep Packet Inspection ) is a Packet-based Deep Inspection technology, and performs Deep Inspection on different network application layer loads, and determines the validity of the Packet by detecting the payload of the Packet.
The deep packet inspection equipment can filter and control the inspection flow according to the policy defined in advance by inspecting and analyzing the flow and the packet content at the key point of the network, and can complete the functions of fine service identification of the link where the equipment is located, service flow direction analysis, service flow proportion statistics, service proportion shaping, application layer denial of service attack, filtering viruses and trojans, and controlling abuse of P2P.
In one of the usage scenarios, as shown with reference to fig. 3, the usage scenario involves four entities: the rule information collection module, the rule collection node, the integrated service platform (corresponding to the service server in the above steps), the DPI detection system (corresponding to the gateway in the above steps) built in the terminal APP, wherein:
a rule information collection module: the device is used for collecting data service characteristic information such as negotiated IP address or URL (uniform resource locator), deploying the data service characteristic information on the terminal as a sub-module or a function point of the APP, acquiring media data information negotiated by the terminal APP and the Server, and sending the media data information to the rule collection node through a fixed format. The rule information collection module entity and the process thereof are newly added entities of the technical scheme and are a key part of the scheme different from the traditional technical scheme.
The rule collecting and converting node obtains the information of authentication, signing, charging and the like of the user from the comprehensive service platform on one hand, and converts the rule information collected from the terminal APP into a format which can be supported by the DPI detection system on the other hand and sends the format to the DPI detection system. The system can also be implemented by modifying the existing rule management node (such as a remote rule adaptation node). The integrated service platform needs to support the validity authentication of the user, or the rule collection node itself needs to configure the authentication information of the user.
Meanwhile, the integrated service platform needs to have the capability of issuing the charging information.
In actual deployment, based on considerations such as sharing, the terminal APP and the rule collection node are in a many-to-many or many-to-one relationship, and the rule collection node and the DPI system are generally in a one-to-many relationship. The same terminal only sends the registration and rule information to a rule collecting node, and the rule collecting node associates with a corresponding DPI system (generally, the DPI system is deployed in a media gateway, a user registers on the media gateway, and a data stream of a terminal APP is forwarded through the media gateway and is charged and controlled on the media gateway).
Further as shown in fig. 3, the processing steps of the flow section are as follows.
Step one, a terminal APP accesses data service, and interacts with a server to negotiate target server information, for example, a CDN accesses a video, and negotiates a target server.
After the terminal accesses the system, a service flow information collection module built in the terminal APP actively registers with the rule collection node, the APP can use a preset domain name or address to initiate a request and carry registration information (including a user address, an APP identifier, a service type and the like), and the registration can be realized based on common interfaces such as restful and the like. The rule collection point is a rule collection server set by an operator, can be communicated with a DPI system and is communicated with a comprehensive service platform.
And step two, the terminal APP performs data service, and performs service address negotiation with a distribution server (the distribution server refers to a network entity which guides user data service to a target server, such as a DNS server or a CDN distribution node or a server with push service URI information), and the negotiation content includes server IP address information or (and) service application URI (Uniform Resource Identifier) information.
A rule information collection module built in a terminal APP acquires the target server information in the step one, and the target server information is organized into a set message format, and the message also comprises information of a user name, an APP type identifier, a data service type, a terminal IP address and the like; and sending the message to the rule collection node through a preset rule collection node address or domain name.
And step three, before the built-in service flow information collection module of the terminal APP initiates actual data service access, the information negotiated in the step one is sent to a rule collection node. The rule collecting node verifies the validity of the user, and the verification content includes but is not limited to the following content (checking whether APP identification and service type exist in the integrated service platform or not; inquiring whether the service gateway and the address belonging to the terminal address are legal or not from the service gateway, for example, a media gateway service node; extracting the user number, for example, MSISDN (Mobile Subscriber ISDN/PSTN number, integrated service digital network) from the service gateway; checking whether the user signs the service type of the related APP or not); and then, inquiring the control or charging information of the user for the comprehensive service platform, and sending the control or charging information of the user and the terminal negotiation content to the DPI system after the inquiry is successful.
After receiving the message in the second step, the rule collection node initiates authentication and charging information acquisition inquiry to the integrated service platform according to information such as a terminal IP address, a user name, an APP type identifier and the like; the user information after successful authentication can be cached locally to reduce the times of authentication/inquiry. And if the authentication fails, ignoring the message sent by the terminal APP.
And step four, the DPI system takes effect on the appointed user after receiving the rule of the rule collection node.
After the authentication is successful, the rule collecting node organizes the rule information sent by the terminal APP into a rule format which can be identified by the DPI system, and sends the rule format to the DPI system, the rule explicitly indicates that the rule belongs to a specific user, and the authentication corresponds to the step of receiving the quintuple information of the network session and the identity of the terminal equipment creating the network session when the application identifier is a pre-stored authenticated application identifier.
And step five, the DPI system detects the data service of the user, and the effective DPI rule is used, namely the DPI system can detect and accurately detect the data service in time and transmit the data service to a related control module to control the service (if a specific payment type, a specific rate, a specific service redirection and the like are executed). The DPI system has certain buffering capacity to adapt to the hysteresis of the rule sending of the rule collecting node; some possible reasons of the hysteresis include processing logic and delay of the terminal APP, processing delay of the rule collection node, and processing delay of the DPI system to the rule, and under the condition of the delay, the data service message of the APP may be received before the DPI rule takes effect; DPI systems may buffer user traffic for a period of time to support billing accuracy. Meanwhile, the user rule exceeding a certain time can be automatically disabled, because the server IP address and URL information negotiated by the terminal have timeliness (only effective in the service access process).
The DPI system performs the inspection according to the user-specific rules. In the technical scheme, the DPI system has the capability of receiving the remote rule and simultaneously detects the single-user rule, namely, the specified rule only takes effect for a specific user, namely, one DPI rule can only take effect for a part of users and does not take effect for other users, but not take effect for the global user. When the DPI system detects according to a specific user rule, the DPI system has a caching capability, namely, the DPI system supports normal identification of a issued rule within a certain delay error so as to solve the problem of the hysteresis of a terminal APP transmission rule under certain scenes. While supporting a timing invalidation mechanism for a particular user rule.
According to an example of this embodiment, the reference numerals of steps S101 to S203 are not used to limit the sequence of each step in this embodiment, and the number of each step is only to make the reference numeral that refers to each step in common when describing each step conveniently, as long as the order of executing each step does not affect the logical relationship in this embodiment.
The usage scenario of the embodiment solves the problem that DPI rules (or rules for billing traffic) are predefined when the flow meter is running, the DPI service rule can be acquired in real time, the flow used by a user is charged according to the latest DPI rule acquired in real time, the method only needs to customize a terminal APP applying the method for charging the flow at the terminal equipment end, then correspondingly configures the information collecting server and the related equipment, does not need to modify a CDN service end, and can disperse the pressure of uniformly collecting a large amount of user service rules, for encrypted traffic such as HTTPS, the customized terminal APP can collect accurate quintuple information such as a terminal address, a server address and a port, so that the DPI engine can detect the encrypted traffic through the quintuple information, and accurate identification of the encrypted data flow is supported.
Fig. 4 is a block diagram illustrating a first apparatus for charging for traffic according to an embodiment of the present invention, and the first apparatus for charging for traffic according to an embodiment of the present invention is described in detail below with reference to fig. 4, where as shown in fig. 4, the first apparatus 10 for charging for traffic includes:
the information collection module 11 is configured to collect quintuple information of the network session, where the quintuple information can distinguish different network sessions, and the quintuple information may uniquely correspond to one network session;
an information sending module 12, configured to send the quintuple information and an identifier of a terminal device that creates the network session to an information collection server, where the identifier is used to instruct the information collection server to obtain a flow charging rule bound to the identifier, and the identifier of the terminal device may be an SIM phone card used by the terminal device. Further, the information collection server is a server with information collection capability and authority configured by an operator;
and the data interaction module 13 is configured to perform data interaction of the network session through a gateway, and the quintuple information is used to instruct the gateway to charge the traffic generated in the network session according to the traffic charging rule.
The information collection module is specifically configured to collect quintuple information of a network session each time a new network session is established, and then send the quintuple information and an identity of a terminal device that creates the network session to an information collection server, where the identity is used to instruct the information collection server to obtain a traffic charging rule bound to the identity, and then perform data interaction of the network session through a gateway, and the quintuple information is used to instruct the gateway to charge traffic generated in the network session according to the traffic charging rule.
Further optionally, the information collection module comprises:
a web page link acquisition unit for acquiring a web page link for the web session;
a webpage link sending unit, which is used for sending the webpage link to a domain name resolution server;
and the information determining unit is used for determining the quintuple information according to the analysis result when receiving the analysis result sent back by the domain name server.
Further, the first apparatus 10 for charging traffic further includes:
an application identifier obtaining module, configured to obtain an identifier of an application that creates the network session;
and the application identifier sending module is used for sending the identifier of the application to the information collection server, and the information collection server is a server which is configured by an operator and has information collection permission.
According to an example of the present embodiment, there is provided a terminal device, such as a mobile phone, a personal PC, a tablet PC, or the like, including a processor, a nonvolatile storage medium, an internal memory, an input device, a display screen, and a network interface, which are connected by a system bus. The non-volatile storage medium of the terminal device may store an operating system and computer readable instructions, and when the computer readable instructions are executed, the processor may execute the method for charging for traffic applied to the terminal device in the embodiments of the present application, and a specific implementation process of the method may refer to specific contents of the embodiments in fig. 1, which is not described herein again. The processor of the terminal equipment is used for providing calculation and control capability and supporting the operation of the whole terminal equipment. The internal memory may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to perform a method for traffic charging as applied to a terminal device. The input device of the terminal equipment is used for inputting various parameters, the display screen of the terminal equipment is used for displaying, and the network interface of the terminal equipment is used for network communication. A particular terminal device may include more or fewer components than shown, or some components may be combined, or have a different arrangement of components.
Fig. 5 is a block diagram illustrating a second apparatus for charging for traffic according to an embodiment of the present invention, and the second apparatus for charging for traffic according to an embodiment of the present invention is described in detail below with reference to fig. 5, and as shown in fig. 5, the second apparatus 20 for charging for traffic includes:
the information receiving module 21 is configured to receive quintuple information of a network session and an identity of a terminal device that creates the network session, where the identity of the terminal device may be a SIM phone card used by the terminal device. Further, the home terminal information collection server is a server which is configured by an operator and has information collection capacity and authority;
a rule obtaining module 22, configured to obtain a traffic charging rule bound to the identity of the terminal device;
and a rule sending module 23, configured to send the quintuple information and the queried traffic charging rule to a gateway, instruct the gateway to determine a corresponding network session according to the quintuple information, and charge traffic generated in the network session according to the traffic charging rule.
Further, the rule obtaining module 22 further includes:
the identity receiving unit is used for sending the identity of the terminal equipment to the service server;
and the identity transmitting unit is used for receiving the flow charging rule which is inquired by the service server and bound with the identity of the terminal equipment.
Further optionally, the second apparatus 20 for charging for traffic further includes:
an application identifier receiving unit, configured to receive an identifier of an application that creates the network session;
and the authentication unit is used for receiving the quintuple information of the network session and the identity of the terminal equipment creating the network session when the application identifier is a prestored authenticated application identifier.
Optionally, the second apparatus 20 for charging for traffic further includes:
and the deleting module is used for deleting the five-tuple information of the network session and the identity of the terminal equipment when the network session is ended.
The present embodiment further provides a terminal device, where the terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the method for charging traffic.
The embodiment also provides an information collecting server, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the method for charging the flow rate.
According to an embodiment of the present invention, a storage medium is provided, which is configured to store program codes for performing the steps of the above method for charging traffic.
The meaning of "first" and "second" in the above-mentioned first device for traffic charging and second device for traffic charging is only to distinguish two traffic charging devices, and is not used to define which traffic charging device has higher priority or other defined meanings.
An information collection server provided according to an example of the present embodiment includes a processor, a nonvolatile storage medium, an internal memory, an input device, and a network interface, which are connected by a system bus. The non-volatile storage medium of the information collection server may store an operating system and computer readable instructions, and when the computer readable instructions are executed, the processor may execute the method for charging for traffic, which is applied to the information collection server in the embodiments of the present application, and a specific implementation process of the method may refer to specific contents of the embodiment in fig. 2, which is not described herein again. The processor of the information collection server is used to provide computing and control capabilities to support the operation of the entire information collection server. The internal memory may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to perform a method for traffic charging as applied to an information collection server. The input device of the information collection server is used for inputting various parameters, the display screen of the information collection server is used for displaying, and the network interface of the information collection server is used for network communication. A particular information collection server may include more or fewer components than shown, or some components may be combined, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by hardware related to instructions of a computer program, which may be stored in a computer readable storage medium, for example, in the storage medium of a computer system, and executed by at least one processor in the computer system, so as to implement the processes of the embodiments including the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
In this embodiment, the main operation flow of the traffic charging is deployed in the terminal device and the information collection server, the quintuple information of the network session is collected by the terminal device, the gateway determines the corresponding network session according to the quintuple information, the information collection server can obtain the traffic charging rule bound with the identity according to the identity of the terminal device by sending the identity of the terminal device creating the network session to the information collection server, the gateway can charge the traffic generated in the network session according to the network session determined by the traffic charging rule and the quintuple information by sending the traffic charging rule and the quintuple information to the gateway, and the deployment of the traffic charging step is more balanced and reasonable by the method, the apparatus and the related devices for traffic charging provided by the present invention, without placing an excessive load on one of the devices.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A method for charging traffic, which is applied to a terminal device, the method comprises:
collecting quintuple information of a network session when the network session is established;
sending the quintuple information and an identity of a terminal device for creating the network session to an information collection server, wherein the identity is used for indicating the information collection server to obtain a flow charging rule bound with the identity;
and performing data interaction of the network session through a gateway, wherein the quintuple information is used for indicating the gateway to charge the flow generated in the network session according to the flow charging rule.
2. The method of claim 1, wherein the step of collecting five tuple information of the network session comprises:
acquiring a webpage link for a network session;
sending the webpage link to a domain name resolution server;
and when receiving the resolution result sent back by the domain name server, determining the quintuple information according to the resolution result.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring an identifier of an application creating the network session;
and sending the identifier of the application to the information collection server, wherein the information collection server is a server which is configured by an operator and has information collection permission.
4. A method for charging for traffic, applied to an information collection server, the method comprising:
receiving quintuple information of a network session and an identity of a terminal device from the terminal device for creating the network session;
acquiring a flow charging rule bound with the identity of the terminal equipment;
and sending the quintuple information and the inquired flow charging rule to a gateway, indicating the gateway to determine a corresponding network session according to the quintuple information, and charging the flow generated in the network session according to the flow charging rule.
5. The method of claim 4, wherein the step of obtaining the traffic charging rule bound with the identity of the terminal device comprises:
sending the identity of the terminal equipment to a service server;
and receiving a flow charging rule which is inquired by the service server and bound with the identity of the terminal equipment.
6. The method of claim 4, further comprising:
receiving an identification of an application that created the web session;
and when the application identifier is a pre-stored authenticated application identifier, receiving quintuple information of the network session and an identity identifier of the terminal equipment for creating the network session.
7. The method according to any one of claims 4 to 6, further comprising:
and when the network session is ended, deleting the quintuple information of the network session and the identity of the terminal equipment.
8. A terminal for charging for traffic, the terminal comprising:
the information collection module is used for collecting quintuple information of the network session;
an information sending module, configured to send the quintuple information and an identity of a terminal device that creates the network session to an information collection server, where the identity is used to instruct the information collection server to obtain a traffic charging rule bound to the identity;
and the quintuple information is used for indicating the gateway to charge the flow generated in the network session according to the flow charging rule.
9. An information collection server for traffic charging, the server comprising:
the information receiving module is used for receiving quintuple information of the network session and the identity of the terminal equipment from the terminal equipment for creating the network session;
the rule obtaining module is used for obtaining a flow charging rule bound with the identity of the terminal equipment;
and the rule sending module is used for sending the quintuple information and the inquired flow charging rule to a gateway, indicating the gateway to determine a corresponding network session according to the quintuple information and charging the flow generated in the network session according to the flow charging rule.
10. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method for traffic charging according to any of claims 1 to 3 when executing the program.
11. An information collecting server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor when executing the program implements a method for traffic charging according to any of claims 4 to 7.
12. A storage medium, characterized in that the storage medium is configured to store program codes for performing the steps of the method for charging traffic according to any of the preceding claims 1 to 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 CN109309907A (en) 2019-02-05
CN109309907B true 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)

Families Citing this family (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
CN111917694B (en) * 2019-05-09 2023-02-28 中兴通讯股份有限公司 TLS encrypted traffic identification method and device
CN112312339B (en) * 2019-07-31 2021-11-19 华为技术有限公司 Charging method, charging system and communication device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106712972A (en) * 2015-07-28 2017-05-24 中国移动通信集团公司 Charging rule updating method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100499467C (en) * 2004-09-10 2009-06-10 华为技术有限公司 Signalling loading billing method in multi-media subsystem
US10244032B2 (en) * 2015-06-04 2019-03-26 Juniper Networks, Inc. Reducing application detection notification traffic
CN106332183B (en) * 2015-07-03 2020-12-29 中兴通讯股份有限公司 Flow control method, flow control processing device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106712972A (en) * 2015-07-28 2017-05-24 中国移动通信集团公司 Charging rule updating method, device and system

Also Published As

Publication number Publication date
CN109309907A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US9401962B2 (en) Traffic steering system
CN105934960B (en) Mobile device traffic management
JP5947403B2 (en) Method and apparatus for performing billing control on application layer data
CA2789495C (en) Seamless mobile subscriber identification
SG178429A1 (en) Network selection method based on multi-link and apparatus thereof
US9071505B2 (en) Method and system for dynamically allocating services for subscribers data traffic
CN109309907B (en) Method and device for charging flow and related equipment
CN108781169B (en) Dynamic provisioning of sponsored data connections related to applications
WO2016078090A1 (en) Charging control device, method and system
US10129320B2 (en) QoS improvement method, apparatus, and system
JP6828818B2 (en) Traffic optimizer, communication system, traffic optimization method and program
CN106572453B (en) Content charging method, charging network element, SP server and charging system
CN109120583A (en) A method of the buffer encrypted data based on action boundary operation
WO2017133293A1 (en) Method and network entity for control of charging for value added service (vas)
CN110830935B (en) Policy control method, system and related equipment
KR20160100060A (en) Method for accounting of cpi advertisement and system for providing advertisement
US20160248862A1 (en) Data processing method, device, and system
EP3200420A1 (en) Providing communications security to an end-to-end communication connection
US9615256B2 (en) Method and apparatus for providing an access to a tethering service via an endpoint device
WO2021034241A1 (en) Method and packet core system for common charging of network connectivity and cloud resource utilization
KR20200116785A (en) Charging system on the network
JP2019149688A (en) Communication system and communication history storage method
JP2019029910A (en) System and method for communication control
CN103684934A (en) Session setup method, system and equipment under convergence network architecture

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