Abstract:
The present invention discloses a method for content charging, including: sending, by a Portal Server, a service activation request to a Policy Server based on a service request from a user; responding to the service activation request, determining the service policy corresponding to the service request, and delivering a service policy activation message to a content control gateway by the Policy Server; executing the service policy and reporting user service consumption information to the Policy Server by the content control gateway; performing charging, by the Policy Server, according to the user service consumption information. By using the technical solution of the invention, accurate and low-cost charging on content service may be realized, and the requirements of dynamic adjustment on content service QoS may be met.

Description:
[0001]     The present application is a continuation of PCT application PCT/CN2006/001156, filed on May 30, 2006, entitled “METHOD AND SYSTEM FOR CONTENT CHARGING”, which is incorporated by reference herein in its entirety. 
     
    
     FIELD OF THE INVENTION  
       [0002]     The present invention relates to the technical field of network communications, in particular, to a method and a system for content charging.  
       BACKGROUND OF THE INVENTION  
       [0003]     With the rapid development of the Internet, content services become more and more abundant. Correspondingly, Internet Content Providers (ICPs) for getting profit by providing contents come on the scene. By cooperating with the ICP, service providers may increase the income of the access service by expanding the scale of network users on one hand, and earn the profit sharing of content income of the ICP on the other hand. At the same time, the ICP may obtain a low-cost channel for selling its content service rapidly.  
         [0004]     The content platform of the service provider is developed on such background. The general mode of the content platform is as follows: The service provider provides a technical platform, and the ICP issues its content service via this platform. The service provider performs advertising, authentication, charging for the use of the content service via the platform. The user uses the content service provided by each ICP via the platform. The content platform records various fees caused by the user, and all of the fees will be recorded on a content account provided to the user by the service provider. With this content platform, the user does not need to settle accounts with each ICP; instead, the user only needs to settle accounts with the service provider.  
         [0005]     The existing content charging solution for this content platform is usually implemented as follows:  
         [0006]     A user connects to the network, logs in a portal website Portal Server, and connects to a Content Server of an ICP via a content channel. If the user is interested in a content provided by the ICP, then he/she clicks the button “OK”, and the ICP Content Server will send an authentication request to the content platform of the service provider. If the authentication is passed, the right to use the content is assigned to the user and a charging start message is sent to the content platform.  
         [0007]     To ensure the accuracy of the charging, the Content Server of the ICP sends an intermediate charging message to the content platform at a certain time interval during the usage of the content. When the user logs out the Content Server, the Content Server of the ICP sends a charging completion message to the content platform.  
         [0008]     The content platform processes the charging message in real time, and performs rating and accounting on the content consumption of the user according to the information in the charging message such as service number, time length, traffic flow, etc., together with the charging policy of the service.  
         [0009]     In the prior art, strict requirements are laid on the interconnection technology between the content platform and the ICP. The ICP has to carry out customized development according to the content platform authentication and charging interface provided by the service provider, and joint debugging and testing should be performed after the development. Services may only be formally issued after the testing is passed. Thus, the cost is very high.  
         [0010]     Some small-scale ICPs are weak in technical strength and they are not able to carry out customized development according to the charging interface. Some other ICPs purchase their service contents, such as multiplayer-fighting games, from other software company, so they have no source code for interface development, and are not able to implement content charging for such services.  
         [0011]     Quality of Service (QoS) is required for some content services. For example, Video On Demand (VOD) service requires a broad bandwidth. However, in the mode aforementioned, the bandwidth may not be dynamically adjusted according to the service, and it is disadvantageous for operation and management.  
         [0012]     In the actual operation of the ICP, it is difficult for the service provider to control the correctness of the service number, traffic flow and time length in the charging message, thus accurate charging may not be performed.  
       SUMMARY OF THE INVENTION  
       [0013]     The present invention provides a method and a system for implementing content charging at low cost, so that the service charging may be more accurate and reasonable, and the bandwidth may be adjusted dynamically according to the service.  
         [0014]     The present invention provides a method for content charging, including:  
         [0015]     sending, by a Portal Server, a service activation request to a Policy Server, based on a service request from a user;  
         [0016]     responding to the service activation request, determining a service policy corresponding to the service request, and delivering a service policy activation message to a content control gateway, by the Policy Server;  
         [0017]     executing the service policy and reporting user service consumption information to the Policy Server by the content control gateway; and permitting the user to use the service, and charging according to the user service consumption information reported by the content control gateway, by the Policy Server.  
         [0018]     The method further includes:  
         [0019]     sending, by the Portal Server, a service deactivation request to the Policy Server, when a request for stopping the service from the user is received; and  
         [0020]     responding to the service deactivation request, delivering a service policy cancellation message, performing rating and accounting according to the consumption information, by the Policy Server.  
         [0021]     The content control gateway reports the user service consumption information to the Policy Server periodically during the service;  
         [0022]     The Policy Server performs rating according to the user service consumption information, and settles accounts on the service consumption of the user according to each rating information after the user stops using the service.  
         [0023]     After responding to the service activation request, the Policy Server queries a preset correlation table between the service and the service policy according to the service activation request, determines the service policy corresponding to the service, and extracts the parameters needed for executing the service policy, then fills the parameters in the service policy activation message and delivers the service policy activation message to the content control gateway.  
         [0024]     Wherein, the service policy message includes the information of the source IP address, destination IP address, destination port, destination service resource and traffic flow information of the network packet.  
         [0025]     The content control gateway grants the right to the source IP address of the user network packet to access the destination IP address, destination port and destination service resource, and controls the network flow according to the traffic flow information in the policy message.  
         [0026]     The content control gateway distinguishes between the content data flows according to the Content Server or the service port of the content, controls the content data flow and collects the consumption information.  
         [0027]     In another aspect of the invention, there is provided a system for content charging, which includes a Portal Server and a Content Server, wherein  
         [0028]     the system further includes a Policy Server and a content control gateway, the Policy Server is connected with the Portal Server and the content control gateway and is adapted to deliver a service policy activation message and a service policy cancellation message, perform rating and charging according to user service consumption information reported by the content control gateway;  
         [0029]     the content control gateway is connected with the Content Server and is adapted to control access to the Content Server of the user according to the access right, count the service consumption information and report the user service consumption information to the Policy Server for charging.  
         [0030]     The Policy Server includes a central control module, a charging engine module, a portal interface module and a device interface module.  
         [0031]     The central control module is connected with the charging engine module, portal interface module and device interface module, and is adapted to respond to a service activation request sent by the portal interface module, convert the service activation request into a service policy message corresponding to the service, deliver a service policy activation message via the device interface module, receive user service consumption information reported by the device interface module, and invoke the charging engine module for rating.  
         [0032]     The portal interface module is adapted to receive a service request from the user, send a service activation request or a service deactivation request to the central control module, and return the execution result of the service request.  
         [0033]     The device interface module is adapted to forward the policy information delivered by the central control module, and report policy execution information and service consumption information to the central control module.  
         [0034]     The charging engine module is adapted to receive an invoking instruction from the central control module and perform rating and charging according to the user service consumption information.  
         [0035]     The content control gateway includes a central control module, a flow classification module, a content filtration module, a charging collection module and an interface module.  
         [0036]     The central control module is adapted to receive a policy sent by the Policy Server, and interact with the flow classification module, content filtration module and charging collection module for interpreting and executing the policy.  
         [0037]     The flow classification module is adapted to check, classify, control a source IP address, a destination IP address and destination port information of a network packet on the IP layer, and permit a network flow that conforms to the policy to pass.  
         [0038]     The content filtration module is adapted to check, classify, control resources to be accessed by the network packet on the application layer, and permit the network flow that conforms to the policy to pass.  
         [0039]     The charging collection module is adapted to collect the time length and the traffic flow information of the network flow, and report the original charging data to the central control module.  
         [0040]     The interface module is adapted to provide an interface between the central control module and the Policy Server.  
         [0041]     In still another aspect of the invention, there is provided a Policy Server for implementing content charging, which includes a central control module, a charging engine module, a portal interface module and a device interface module.  
         [0042]     The central control module is connected with the charging engine module, portal interface module and device interface module, and is adapted to receive a service activation request sent by the portal interface module, convert the service activation request into a service policy message corresponding to the service, deliver the service policy activation message via the device interface, receive user service consumption information reported by the device interface module, and invoke the charging engine module for rating.  
         [0043]     The portal interface module is adapted to receive a service request from the user, send a service activation request or a service deactivation request to the central control module, and return the execution result of the service request.  
         [0044]     The device interface module is adapted to forward the policy information delivered by the central control module, and report policy execution information and service consumption information to the central control module.  
         [0045]     The charging engine module is adapted to receive an invoking instruction from the central control module and perform rating and charging according to the user service consumption information.  
         [0046]     The server further includes a database interface and a memory database, Through the database interface, an external database and the memory database may be accessed. The memory database is adapted to store policy data, charging data, configuration data and user session data, and receive an instruction from the central control module for updating the data.  
         [0047]     The invention further provides a content control gateway for implementing the charging method according to claim  1 , which includes a central control module, a flow classification module, a content filtration module, a charging collection module and an interface module.  
         [0048]     The central control module is adapted to receive a policy sent by the Policy Server, and interact with the flow classification module, content filtration module and charging collection module for interpreting and executing the policy.  
         [0049]     The flow classification module is adapted to check, classify and control a source IP address, a destination IP address and destination port information of a network packet on the IP layer, and only permit a network flow that conforms to the policy to pass.  
         [0050]     The content filtration module is adapted to check, classify and control resources to be accessed by the network packet on the application layer, and only permit the network flow that conforms to the policy to pass.  
         [0051]     The charging collection module is adapted to collect the time length and the traffic flow information of the network flow, and report the original charging data to the central control module.  
         [0052]     The interface module is adapted to provide an interface between the central control module and the Policy Server.  
         [0053]     In summary, in the method and system for content charging according to the embodiments of the invention, by determining the service policy corresponding to the service information and executing the service policy, the user is controlled to use the service, the content data flows are distinguished according to the Content Server or the service port of the content, and the content data flow is controlled and the consumption information is collected. So that charging may be performed according to the user service consumption information reported. As a result, the interconnection difficulty and interconnection cost between the ICP Content Server and the content platform of the service provider may be lowered greatly, and a non-coding interconnection operation solution may be provided. Thus, the service provider may rapidly dispose a content service, the ICP may be effectively prevented from falsifying data, and accurate charging data may be provided. At the same time, the corresponding network QoS may be ensured according to the requirements of a certain content service, thus an overall QoS may be provided, and the market competitive power may be improved. 
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0054]      FIG. 1  is a schematic diagram showing an exemplary system structure according to an embodiment of the invention;  
         [0055]      FIG. 2  is a schematic diagram showing the structure of the Policy Server according to an embodiment of the invention;  
         [0056]      FIG. 3  is a schematic diagram showing the structure of the content control gateway according to an embodiment of the invention; and  
         [0057]      FIG. 4  is a flow chart of the method according to an embodiment of the invention. 
     
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS  
       [0058]     To make the principle, characteristics and advantages of the invention clearer, the invention will now be described in detail hereinafter in conjunction with the embodiments and the drawings of the invention.  
         [0059]     As shown in  FIG. 1 , the system for content charging according to an embodiment of the invention includes a Portal Server, a Policy Server, a Content Control Gateway (CCG) and a Content Server. Wherein, the Policy Server is connected with the Portal Server and the content control gateway, for delivering or canceling a service policy message, and performing rating and charging according to the service usage information reported by the CCG, such as traffic flow and time length. The CCG is connected with the Content Server, for controlling the access to the Content Server of the user, counting the service consumption information, and periodically reporting the related data to the Policy Server for charging. The Portal Server provides a portal for user access, and provides the user with functions such as login, service channel, service selection, self-help service. The Content Server is a server through which the ICP provides contents. There may be a plurality of Content Servers connected with a CCG, and various contents may also be issued on a Content Server. The servers on which the contents exist may be different, and the service ports of the contents, i.e. Transmission Control Protocol/User Data Protocol (TCP/UDP) ports may be different. The CCG distinguishes between the content data flows according to the server on which the contents exist or the service port of the content, and controls the content data flows and collects data respectively for executing the policy.  
         [0060]     The service policy message may be regarded as an indication message for the service data flow rules, which comprises parameters such as the source IP address, destination IP address, destination port, service resource information and traffic flow information of a network packet. For example, when a Content Server provides a game service, if a user wants to access the game server, the content of the corresponding service policy message may include the following information: the source IP address (which may be the IP address of the user), the IP address of the game server, the port of the game server (which may refer to the TCP/UDP port), the upstream bandwidth, the downstream bandwidth, the Universal Resource Locator (URL), etc. Thus, if the Policy Server delivers the policy and notifies the CCG, the CCG grants the user the right to access the game server after applying the policy. If the Policy Server instructs the CCG to remove the policy, the current user will lose the right to access the game server.  
         [0061]     If the user wants to access a streaming server, the content of the corresponding service policy message may include the following information: the source IP address, the IP address of the streaming server, the port of the streaming server, the upstream bandwidth, the downstream bandwidth and the URL. The Policy Server delivers a policy and notifies the CCG, and the CCG grants the user the right to access the streaming server after applying the policy and reserves a designated bandwidth for the video/audio stream. If the Policy Server instructs the CCG to remove the policy, then the current user will lose the right to access the streaming server.  
         [0062]     Similarly, if the user wants to access a download server, the content of the corresponding service policy message may include the following information: the source IP address, the IP address of the download server, the port of the download server, the upstream bandwidth, the downstream bandwidth, and the path of the download file. The Policy Server delivers a policy and notifies the CCG, and the CCG grants the user the right to access the download server after applying the policy and reserves a designated download bandwidth. If the Policy Server instructs the CCG to delete the policy, then the current user will lose the right to access the download server.  
         [0063]     Each service and its corresponding service policy are stored in the form of a correlation table between the service and the service policy.  
         [0064]     The internal structure of the Policy Server is as shown in  FIG. 2 , which may include a central control module, a charging engine, a portal interface module, a device interface module, a database interface module and a local memory database (Built-in-Memory).  
         [0065]     The central control module is the core module of the Policy Server, and is mainly responsible for scheduling and controlling other modules in the system. The central control module receives a service activation request sent from the portal interface module, converts it into a service policy message corresponding to the service, and sends the service policy message to the CCG via the device interface. If the policy is executed successfully, the CCG will periodically report the user service consumption information (mainly including time length and traffic flow information), and the central control module invokes the charging engine module for performing rating after receiving the original charging information from the device interface module.  
         [0066]     The portal interface is responsible for interconnecting with the Portal Server, sending the service activation request or the service deactivation request to the central control module, and returning the service request execution result to the Portal Server.  
         [0067]     The device interface module is responsible for interconnecting with the CCG, forwarding the policy information delivered by the central control module to the CCG, and reporting the policy execution information and service usage information to the central control module.  
         [0068]     The charging engine is the charging component of the Policy Server. The central control module invokes the charging engine for performing rating and accounting according to the user service consumption record.  
         [0069]     The database interface enables other subsystems to access the database and the memory database.  
         [0070]     The memory database is an optional component, which may be regarded as a buffer for the external database. The memory database is mainly adapted to store policy data, charging data, configuration data and user session data. By using the memory database, the performance of the system may be improved greatly. The central control module periodically sends an instruction to the memory database for reading the policy data, charging data, configuration data from the external database and refreshing the local memory data.  
         [0071]     The CCG is adapted to control the access to the Content Server of the user, count the service consumption information, and periodically report related data to the Policy Server for performing charging. As shown in  FIG. 3 , the internal structure of the CCG includes a central control module, a flow classification module, a content filtration module, a charging collection module and an interface module.  
         [0072]     The central control module is responsible for receiving the policy sent from the Policy Server and interpreting and executing the policy. During the execution of the policy, the central control module needs to interact with and control the flow classification module, the content filtration module and the charging collection module.  
         [0073]     The flow classification module checks, classifies and controls the information such as the source IP, the destination IP, the destination port of the network packet, on the IP layer. The network flow that conforms to the policy may pass.  
         [0074]     The content filtration module checks, classifies and controls the resources to be accessed by the network packet, such as the URL address applied by the HTTP, the file path applied by the FTP (File Transfer Protocol) and the RTICP (Real-Time Streaming Protocol) path applied by the stream media, on the application layer. The network flow that conforms to the policy may pass.  
         [0075]     The charging collection module collects the time length and the traffic flow information of the network flow, and reports the original charging data to the central control module. The central control module reports the original charging data to the Policy Server.  
         [0076]     In the method according to an embodiment of the invention, Portal Server receives a service request from a user, and sends a service activation request to Policy Server. The Policy Server determines the corresponding service policy message according to the service after receiving the service activation request, and delivers the service policy message to CCG. The CCG executes the policy message, permits the user to use the service, and periodically reports the user service consumption information to the Policy Server. The Policy Server performs rating and charging according to the consumption information.  
         [0077]     Specifically, as shown in  FIG. 4 , the method includes following steps.  
         [0078]     (1) A user sends a login request to the Portal Server, and the Portal Server authenticates the identity of the user.  
         [0079]     (2) If the authentication is passed, the Portal Server receives the service selection data input by the user.  
         [0080]     (3) The Portal Server sends a service activation request, which carries information such as the user IP, destination IP, service resources, to the Policy Server.  
         [0081]     (4) The Policy Server determines the corresponding service policy message according to the service after receiving the service activation request, and delivers the service policy message to the CCG. Each service and its corresponding service policy are stored in the form of a correlation table between the service and the service policy. This table may be stored on the Policy Server or on a third party device. The Policy Server determines the policy corresponding to the service by querying the correlation table according to the activation request, extracts the parameters needed by the policy according to the activation request and the service policy, fills the parameters in the policy message and delivers the policy message. For example, for a game service, the content of the corresponding service policy message may include the following information: the source IP address (which may be the IP address of the user), the IP address of the game server, the port of the game server (which may refer to the TCP/UDP port), the upstream bandwidth, the downstream bandwidth and the URL.  
         [0082]     (5) The CCG receives the service policy message, executes the service policy according to the instruction of the message, releases the access right from the user IP (which may be a source IP) to the destination IP, destination port or destination URL, and controls the network flow according to the bandwidth parameters in the policy. The CCG sends the policy execution result to the Policy Server after executing the policy.  
         [0083]     (6) The Policy server informs the Portal Server of the service activation result.  
         [0084]     (7) The Portal Server displays the service activation result to the user.  
         [0085]     (8) If the service is activated, the user starts an application client end and performs content consumption, after knowing from the Portal Server that the service is available.  
         [0086]     (9) The CCG periodically reports the service consumption information to the Policy Server during the content service used by the user.  
         [0087]     (10) The Policy Server processes the service consumption information reported by the CCG in real time, and performs rating for the user content consumption.  
         [0088]     (11) The Portal Server receives a request for stopping the service from the user when the user wants to logout the Content Server.  
         [0089]     (12) The Portal Server sends a service deactivation request to the Policy Server.  
         [0090]     (13) The Policy Server delivers a policy cancellation request to the CCG.  
         [0091]     (14) The CCG cancels the policy and returns the policy cancellation result to the Policy server.  
         [0092]     (15) The Policy server informs the Portal Server of the service cancellation result.  
         [0093]     (16) The Portal Server displays the service cancellation result to the user.  
         [0094]     (17) The CCG reports the last service consumption information of the user to the Policy Server.  
         [0095]     (18) The Policy Server processes the service consumption information, performs rating, and settles accounts on the current content consumption according to each rating information.  
         [0096]     In another embodiment of the invention, the content control gateway does not need to periodically report the user service consumption information to the Policy Server. Instead, the content control gateway reports the total service consumption information of the user to the Policy Server at a time after receiving the policy cancellation request delivered by the Policy Server. The Policy Server performs rating and accounting according to the consumption information.  
         [0097]     The invention provides a novel content charging solution, by means of which the interconnection difficulty and the interconnection cost between the ICP Content Server and the content platform of the service provider may be lowered greatly, and the ICP may be effectively prevented from falsifying data, and accurate charging data may be provided. In the meanwhile, the corresponding network QoS may be ensured according to the requirements of a certain content service.