WO2014101663A1 - Method, apparatus, and system for adjusting user service access - Google Patents

Method, apparatus, and system for adjusting user service access Download PDF

Info

Publication number
WO2014101663A1
WO2014101663A1 PCT/CN2013/089210 CN2013089210W WO2014101663A1 WO 2014101663 A1 WO2014101663 A1 WO 2014101663A1 CN 2013089210 W CN2013089210 W CN 2013089210W WO 2014101663 A1 WO2014101663 A1 WO 2014101663A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
internet service
charging
address
response message
Prior art date
Application number
PCT/CN2013/089210
Other languages
French (fr)
Chinese (zh)
Inventor
阳赞锋
段海峰
刘旭日
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014101663A1 publication Critical patent/WO2014101663A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/81Dynamic pricing, e.g. change of tariff during call
    • 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/1453Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network
    • H04L12/1467Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network involving prepayment
    • 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/1485Tariff-related aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • H04M15/852Low balance or limit reached
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/83Notification aspects
    • H04M15/85Notification aspects characterised by the type of condition triggering a notification
    • H04M15/854Available credit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M17/00Prepayment of wireline communication systems, wireless communication systems or telephone systems
    • H04M17/02Coin-freed or check-freed systems, e.g. mobile- or card-operated phones, public telephones or booths

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, device, and system for adjusting user access services. Background technique
  • Mobile data communication is a combination of two kinds of telecommunication technologies: mobile communication and data communication.
  • mobile communication In today's rapid development of cellular mobile phones in the world, the transmission of data information from simple paging to multimedia information services, the way of data transmission is also coming.
  • mobile data communication Compared with mobile communication services based on voice, mobile data communication has two advantages: support for large bandwidth and support for high-speed download.
  • the data service accounts for a higher proportion of the operator's operating income.
  • the operator timely monitors the usage of the user's data service charges, and correspondingly It is necessary to adjust the user-initiated access service.
  • the charging protocol used between the control execution system and the control management system does not support a mechanism for adjusting the user-initiated access service according to the user's service tariff.
  • the embodiment of the invention provides a method, a device and a system for adjusting a user to access a service, and is configured to adjust a user-initiated access service according to a service tariff of the user, so as to improve the operation security of the service tariff. user experience.
  • the embodiment of the present invention provides a method for adjusting a user to access a service, including: receiving a request message that is sent by a control execution system to perform charging on a terminal device, where the request message carries a charging identifier of the terminal device And an internet for determining access by the terminal device Whether the service requires billing information;
  • a charging response message is returned to the control execution system based on the determined result of the need for redirection, such that the control execution system processes the access request of the terminal device according to the charging response message.
  • Processing the access request of the terminal device including:
  • the control execution system redirects the access request of the terminal device to an internet service pointed to by the address of the free internet service according to the address of the free internet service.
  • the method further includes:
  • the embodiment of the present invention further provides a method for adjusting a user access service, including: sending a request message for charging a terminal device to a control management system, where the request message carries a charging identifier of the terminal device And determining information about whether the Internet service accessed by the terminal device needs to be charged, so that the control management system determines user balance information of the terminal device according to the charging identifier, and is a user of the terminal device
  • the balance information is arrears or the balance is insufficient
  • the receiving, by the control management system, a charging response message returned according to the determined result of requiring redirection; and the charging response message according to the charging response message to the terminal device Access requests for processing including:
  • the terminal device the address of the free internet service, so that the terminal device according to the address of the free internet service and the address pointed by the address of the internet service Establish a connection.
  • the address of the free Internet service is an address of a free recharge webpage
  • the method further includes:
  • an embodiment of the present invention further provides a control management apparatus, including:
  • a receiving module configured to receive, by the control execution system, a request message for charging the terminal device, where the request message carries a charging identifier of the terminal device, and is used to determine whether the Internet service accessed by the terminal device needs to be calculated. Fee information;
  • a balance determining module configured to determine user balance information of the terminal device according to the charging identifier of the terminal device received by the receiving module
  • a billing determining module configured to: when the balance determining module determines that the user balance information of the terminal device is arrears or the balance is insufficient, the internet service for determining the access of the terminal device according to the receiving module Whether the information required for charging determines whether the Internet service accessed by the terminal device needs to be charged;
  • a redirection determining module configured to: when the charging determining module determines that the Internet service accessed by the terminal device requires charging, determining that the access request to the terminal device needs to be redirected; Redirecting determines the result of the module that needs to be redirected, The control execution system returns an accounting response message, so that the control execution system processes the access request of the terminal device according to the charging response message.
  • the sending module is specifically configured to: return, according to a result of the redirection determined by the redirection determining module, an accounting response message to the control execution system, where The charging response message carries the redirected address, and the redirected address is an address of the free Internet service, so that the control execution system resets the access request of the terminal device according to the address of the free Internet service. Directed to the Internet business of the address of the free internet service.
  • the redirection determining module is further configured to: when the Internet service accessed by the terminal device does not need to be charged, determining that the access request to the terminal device does not need to be heavy Orientation
  • the sending module is further configured to: return a charging response message to the control execution system according to the result that the redirection determining module determines that the redirection is not required, so that the control execution system requests the terminal device to access Send to the server corresponding to the access request.
  • control execution apparatus including:
  • a sending module configured to send, to the control management system, a request message for charging the terminal device, where the request message carries the charging identifier of the terminal device and determines whether the Internet service accessed by the terminal device needs to be charged.
  • the information so that the control management system determines the user balance information of the terminal device according to the charging identifier, and when the user balance information of the terminal device is arrears or the balance is insufficient, according to the determining Whether the Internet service accessed by the terminal device requires charging information determines whether the Internet service accessed by the terminal device needs to be charged, and when the Internet service accessed by the terminal device needs to be charged, determining an access request to the terminal device
  • the receiving module is configured to receive a charging response message returned by the control management system according to the determined result of the required redirection; and an executing module, configured to: according to the charging response message received by the receiving module The access request of the terminal device is processed.
  • the receiving module is specifically configured to receive, by the control management system, a charging response message that is returned according to the determined result of the required redirection, where the charging response message is carried
  • the redirected address is an address of the free internet service
  • the execution module is specifically configured to return the address of the free internet service to the terminal device, so that the terminal device is configured according to the The address of the free internet service establishes a connection with the server pointed to by the address of the internet service.
  • the embodiment of the present invention further provides a system for adjusting a user access service, comprising: the control management device according to any one of the above aspects, and the control execution device according to any of the above fourth aspects.
  • the method, device, and system for adjusting user access service provided by the embodiment of the present invention determine that the user balance information of the terminal device is arrears or the balance is insufficient, and the Internet service accessed by the terminal device needs to be charged. It is determined that the access request to the terminal device needs to be redirected, and the user-initiated access service is adjusted according to the user's service tariff, thereby ensuring the operation security of the service tariff and improving the user experience.
  • FIG. 2 is a schematic flow chart of an embodiment of a method for adjusting a user access service according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another embodiment of a method for adjusting a user accessing a service according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of another embodiment of a method for adjusting a user accessing a service according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of another embodiment of a method for adjusting a user accessing a service according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of another embodiment of a method for adjusting a user access service according to an embodiment of the present invention, where
  • FIG. 7 is a schematic flowchart of another embodiment of a method for adjusting a user accessing a service according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of another embodiment of a method for adjusting a user accessing a service according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a control management apparatus according to an embodiment of the present invention.
  • FIG. 10 is another schematic structural diagram of a control management apparatus according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a control execution device according to an embodiment of the present invention.
  • FIG. 12 is another schematic structural diagram of a control execution apparatus according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a system for adjusting user access services according to an embodiment of the present invention. detailed description
  • FIG. 1 is a structural diagram of an application environment of the present invention. As shown in FIG.
  • the method includes: a terminal device, where the terminal device communicates with a service provider (SP) server through a control execution system, where the terminal device can be any type that can be used with a user through a keyboard, a mouse, a remote controller, Electronic products for human-computer interaction of touch screens, voice control devices or image recognition devices, including but not limited to computers, mobile phones, tablets, and the like.
  • SP service provider
  • the control execution system controls the execution system to perform various control on the access request of the terminal device based on the information exchange with the control management system based on various charging and control policies issued by the control management system.
  • the control execution system may receive a billing bill output request sent by the control management system, and generate a bill file of different format according to different services requested by the terminal device according to the billing policy, and the control management system performs accounting processing and query.
  • the control execution system can also control the access request or the use bandwidth of the terminal device according to the control access command issued by the control management system.
  • the control execution system may be located in a Gateway GPRS Supper t Node (GGSN) in a Genera Packet Radio Serve (GPRS) communication system; in an Evolved Packet Core network (Evolved Packet Core network) , EPC) Packet Gateway (P-GW) that can be located in the communication system; can be located in the packet data service in the Code Divided Access System (CDMA) communication system Node (Packet Data Serving Node, PDSN), etc.
  • GGSN Gateway GPRS Supper t Node
  • GPRS Genera Packet Radio Serve
  • EPC Evolved Packet Core network
  • P-GW Packet Gateway
  • the control management system can participate in the billing process control, and solve problems such as real-time credit control of users, prepaid data services, and real-time billing of value-added services.
  • the control management system may be an On-line Charging System (OCS) or the like or other systems that implement similar functions.
  • OCS On-line Charging System
  • the control management system can be deployed independently or as part of a control execution system.
  • SP Service Provider
  • AS Application Server
  • Web server a Web server.
  • the technical solution of the present invention can be applied to various communication systems, such as a communication system such as a CDMA system, a Wideband Code Division Multiple Access (WCDMA) system, or a GPRS.
  • a communication system such as a CDMA system, a Wideband Code Division Multiple Access (WCDMA) system, or a GPRS.
  • WCDMA Wideband Code Division Multiple Access
  • FIG. 2 is a schematic flowchart of an embodiment of a method for adjusting a user's access to a service according to an embodiment of the present invention.
  • the method for performing the method may be a control management system. As shown in FIG. 2, the method includes:
  • Step 101 Receive, by the control execution system, a request message for charging the terminal device, where the request message carries the charging identifier of the terminal device and determines whether the Internet service accessed by the terminal device needs to be charged.
  • control execution system after the control execution system receives the access request sent by the terminal device, the control execution system sends a request message for charging the terminal device to the control management system.
  • the access request sent by the terminal device may be a domain name system (DNS) query request, or may be a hypertext transfer protocol (HTTP) access request.
  • DNS domain name system
  • HTTP hypertext transfer protocol
  • the information for determining whether the Internet service accessed by the terminal device needs to be charged may be that the control execution system accesses the terminal device after determining whether the Internet service accessed by the terminal device needs to be charged.
  • the information about whether the Internet service needs to be charged is reported to the control management system; or the control execution system sends the information of the Internet service accessed by the terminal device to the control management system, and the control management system obtains information about the Internet service accessed by the terminal device.
  • the request message for charging the terminal device is used by the control management system to implement service pricing, credit control, and charging, etc. for the Internet service accessed by the terminal device according to the request message.
  • the charging identifier of the terminal device is used by the control management system to determine user balance information of the terminal device according to the charging identifier.
  • the charging identifier may be a telephone number.
  • Step 102 Determine user balance information of the terminal device according to the charging identifier.
  • the control management system may query the user fee database according to the charging identifier to obtain user balance information of the terminal device.
  • Step 103 When the user balance information of the terminal device is arrears or the balance is insufficient, determining whether the Internet service accessed by the terminal device is determined according to the information for determining whether the Internet service accessed by the terminal device needs to be charged Need to charge;
  • the user balance information is arrears including: the balance is less than zero or the balance is zero;
  • the user balance information is insufficient balance including:
  • the balance is greater than zero but less than the set threshold. For example, you can set the user's balance to be less than 5 yuan and greater than zero for insufficient balance.
  • Step 104 When the Internet service accessed by the terminal device needs to be charged, determining that the access request to the terminal device needs to be redirected;
  • Step 105 Return a charging response message to the control execution system according to the determined result of the required redirection, so that the control execution system processes the access request of the terminal device according to the charging response message.
  • the standby access request is processed, which can be:
  • the control execution system redirects the access request of the terminal device to an internet service pointed to by the address of the free internet service according to the address of the free internet service.
  • the method further includes:
  • the address of the free Internet service may be the address of the free recharge webpage; or the address of the free navigation web server.
  • the control management system determines that the user balance information of the terminal device is arrears or the balance is insufficient, and when the Internet service accessed by the terminal device needs to be charged, determining that the access request to the terminal device needs to be redirected According to the user's service tariff, the user-initiated access service is adjusted accordingly, which ensures the operation security of the service tariff and improves the user experience.
  • FIG. 3 is a schematic flowchart of another embodiment of a method for adjusting a user to access a service according to an embodiment of the present invention.
  • the execution body of the method in this embodiment may be a control execution system. As shown in FIG. 3, the method includes:
  • Step 201 Send a request message for charging the terminal device to the control management system, where
  • the request message carries the charging identifier of the terminal device and information for determining whether the Internet service accessed by the terminal device needs to be charged, so that the control management system determines the terminal device according to the charging identifier.
  • User balance information and when the user balance information of the terminal device is arrears or the balance is insufficient, determining, according to the information for determining whether the Internet service accessed by the terminal device requires charging, determining the Internet accessed by the terminal device Whether the service needs to be charged, and when the Internet service accessed by the terminal device needs to be charged, it is determined that the access request to the terminal device needs to be redirected;
  • step 101 The information for determining whether the Internet service accessed by the terminal device needs to be charged, the charging identifier of the terminal device, and the request message for charging the terminal device are described in step 101, and details are not described herein. .
  • the user balance information is arrears including: the balance is less than zero or the balance is zero;
  • the user balance information is insufficient balance including:
  • the balance is greater than zero but less than the set threshold. For example, you can set the user's balance to be less than 5 yuan and greater than zero for insufficient balance.
  • the control execution system after the control execution system receives the access request sent by the terminal device, the control execution system sends a request message for charging the terminal device to the control management system.
  • the access request sent by the terminal device may be a DNS query request or an HTTP access request.
  • Step 202 Receive, by the control management system, a charging response message returned according to the determined result of requiring redirection;
  • Step 203 Process an access request of the terminal device according to the charging response message.
  • the body can be:
  • the terminal device Receiving, by the control management system, the charging response message returned according to the determined result of the redirection, the charging response message carrying the redirected address, where the redirected address is a free Internet service address,
  • the terminal device returns an address of the free internet service, so that the terminal device establishes a connection with a server pointed to by the address of the internet service according to the address of the free internet service.
  • the address of the free internet service is the address of the free recharge webpage
  • the address of the free internet service is returned to the terminal device, so that the terminal device is according to the free internet service.
  • the method further includes:
  • the method may further include:
  • the control execution system reports the charging identifier of the terminal device and the information for determining whether the Internet service accessed by the terminal device is charged to the control management system, so that the control management system determines the user balance information of the terminal device. If the arrears or the balance is insufficient, and the Internet service accessed by the terminal device needs to be charged, it is determined that the access request to the terminal device needs to be redirected, and the control execution system according to the charging response message returned by the control management system to the terminal device The access request is processed, and the user-initiated access service is adjusted according to the user's service tariff, thereby ensuring the operational security of the service tariff and improving the user experience.
  • FIG. 4 is a schematic flowchart of another embodiment of a method for adjusting a user to access a service according to an embodiment of the present invention.
  • the access based on the i or the name is based on The Internet service of the Hypertext Transfer Protocol (HTTP) is taken as an example to describe the technical solution of the present invention.
  • HTTP Hypertext Transfer Protocol
  • Step 301 The terminal device and the control execution system complete a packet data protocol (Packet Da ta
  • IP Internet Protocol
  • the terminal device reports the charging identifier, for example, the telephone number of the terminal device.
  • Control The system execution system creates a PDP context record in the PDP context list, and associates the charging identifier with the IP address assigned to the terminal device to initiate charging.
  • Step 302 The terminal device sends a DNS query request message to the control execution system.
  • the terminal device and the control execution system complete the PDP context activation, and the user can access the Internet service provided by the SP server through the terminal device. For example, a user can access a web page provided by the SP server through a browser client on the terminal device.
  • Step 303 The control execution system determines, according to the DNS query request message, that the Internet service accessed by the terminal device belongs to a charging service.
  • the Internet service provider can provide various types of Internet services through the SP server, and the terminal device can access the Internet service, and the types of the Internet service include but are not limited to: free service and billing service.
  • the DNS query request message further carries the domain name of the Internet service accessed by the terminal device, and the control execution system may determine, according to the domain name of the Internet service, whether the Internet service accessed by the terminal device is a charging service or is free. business.
  • the domain name list of the Internet service of the free service or the domain name list of the Internet service of the charging service may be pre-configured on the control execution system, and when the control execution system receives the DNS query request message sent by the terminal device, the DNS is obtained from the DNS Querying the domain name of the Internet service accessed by the terminal device carried in the DNS query request message, and matching the domain name list of the Internet service of the free service or the domain name list of the Internet service of the charging service according to the domain name of the Internet service, Determine whether the Internet service accessed by the terminal device requires accounting.
  • the domain name list of the Internet service that controls the pre-configured free service on the execution system or the domain name list of the Internet service of the charging service may be manually pre-executed in the control execution system.
  • the system configuration may also be manually configured in the control management system, and the domain name list of the Internet service of the free service or the domain name list of the Internet service of the charging service is transmitted to the control execution system for pre-storage through the control management system.
  • the domain name list of the Internet service of the pre-configured free service Internet service or the domain name list of the Internet service of the charging service may also be configured on the control management system, and when the control execution system receives the access request sent by the terminal device, the access is performed. The request is sent to the control management system, and the control management system can determine whether the Internet service accessed by the terminal device needs to be charged according to the domain name of the Internet service accessed by the terminal device carried in the access request.
  • the foregoing domain name list can be implemented by means of a charging group, that is, the charging group matches the domain name of the Internet service accessed by the terminal device, and the matched charging group is sent to the control management system, and the control management is performed.
  • the system determines, according to the charging group, whether the Internet service accessed by the terminal device is charged.
  • Step 304 The control execution system sends a charging request message to the control management system, where the charging request message carries the charging identifier of the terminal device and the information used to determine that the Internet service accessed by the terminal device belongs to the charging service.
  • the DNS query request message sent by the terminal device also carries the IP address of the terminal device
  • the DNS query request message may be The IP address of the terminal device is obtained in the middle, and the control execution system determines the charging identifier of the terminal device according to the association between the IP address of the terminal device and the charging identifier of the terminal device, and the control execution system determines the charging identifier.
  • the bearer is sent to the control management system in the charging request message.
  • Step 305 The control management system determines, according to the charging identifier of the terminal device, The Internet service accessed by the terminal device belongs to the information of the charging service, and determines that the DNS query request of the terminal device is redirected to the free Internet service;
  • the free Internet service can be an online recharge service or other free Internet services.
  • the control management system parses the charging identifier of the user from the received charging request message, and the information that the Internet service accessed by the terminal device belongs to the charging service, and queries the user fee database according to the charging identifier of the user, and obtains
  • the user balance information of the terminal device determines, according to the user balance information of the terminal device and the information that the Internet service accessed by the terminal device belongs to the charging service, that the DNS query request of the terminal device is redirected to the free Internet service.
  • the user can access the free Internet service when the terminal device is in arrears, providing the user with a flexible service access mode, thereby improving the user experience, and at the same time avoiding the user having insufficient balance in the terminal device.
  • Accessing the billing service generates arrears and causes losses to the operator's revenue. It provides a flexible way to ensure the operator's operational security.
  • Step 306 The control management system returns an accounting response message to the control execution system, where the charging response message carries information indicating that the control execution system performs redirection of the DNS query request of the terminal device;
  • the charging response message carries information for indicating that the control execution system performs redirection of the DNS query request to the terminal device, and may be implemented in the following manner.
  • the redirected address for example, a DNS address or an IP address;
  • Manner 2 The charging response message carries the redirected identifier, so that the control execution system determines the redirected address according to the redirected identifier.
  • Step 307 The control execution system returns a DNS query response message to the terminal device, where the DNS query response message carries a redirected address, and the redirected address points to a free Internet service;
  • the redirected address may be configured in advance in the control management system, and when the control management system determines to redirect the DNS query request of the terminal device, The directional address is sent to the control execution system, and the control execution system sends the redirected address to the terminal device.
  • the redirected address that can be pre-configured in the control execution system is received, and the control execution system receives the bearer returned by the control management system for indicating the control execution system to the terminal device.
  • the queried address of the pre-configured redirected address is sent to the terminal device.
  • Step 308 The terminal device establishes a connection with a server that provides free Internet service according to the redirected address pointing to the free Internet service.
  • the control management system determines to redirect the DNS access request of the terminal device to
  • the free Internet service enables users to access free Internet services while the terminal device is in arrears, providing users with flexible service access methods, thereby improving the user experience and, in addition, avoiding users in the terminal devices.
  • the balance is insufficient, access to the billing service will result in arrears, which will cause losses to the operator's revenue, and provide a flexible way to ensure the operator's operational security.
  • the redirected address may be an address of a free navigation web server, and the navigation web server may be provided by an operator, and the navigation web server may Provides multiple free Internet service interfaces, so that users can select Internet services according to their interests.
  • the method includes:
  • Step 401 The terminal device receives, by the control execution system, a DNS query response message, where the DNS query response message carries a redirected address, where the re-addressed address is an address of the navigation web server.
  • Step 402 The terminal device sends an HTTP request message to the control execution system, where the HTTP request message carries a Uniform Universa Resource Locator (URL) of the Internet service accessed by the terminal device;
  • URL Uniform Universa Resource Locator
  • Step 403 The control execution system forwards the HTTP request message to the navigation web server.
  • Step 404 The navigation web server according to the Internet service carried in the HTTP request message
  • the URL determines whether the terminal device accesses the Internet service is a page type request service or a non-page type request service, if it is a page type request, step 405 to step 407; if it is a non-page type request, step 408 to step 409;
  • the navigation web server can determine, according to the URL of the Internet service carried in the HTTP request message, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service.
  • the URL of the page class request contains a Hypertext Marked Language (HTLM) identifier
  • the URL of the image class request may include a Joint Photographic Exper ts Group (JPG) logo or an image interchange format (Graphics) Interchange Format (GIF) identifier
  • JPG Joint Photographic Exper ts Group
  • GIF image interchange format
  • the URL of the video request will contain the FLV (f lash v ideo ) identifier; therefore, the navigation web server can determine whether the Internet service of the terminal device access is the page type request service or the above identifier in the URL.
  • Non-page class request service is a Hypertext Marked Language (HTLM) identifier
  • JPG Joint Photographic Exper ts Group
  • GIF image interchange format
  • Step 405 The navigation web server returns a 302 HTTP redirect response to the control execution system. a message, where the 302 HTTP redirect response message carries the address of the free recharge page;
  • Step 406 The control execution system forwards the 302 HTTP redirect response message to the terminal device;
  • Step 407 The terminal device establishes a connection with the server pointed to by the address of the refill page according to the address of the free recharge page carried in the 302 HTTP redirect response message.
  • the control execution system redirects the DNS access request of the terminal device to the navigation web server, when the Internet service accessed by the terminal device requests the service from the page class, the navigation web server redirects the access request of the terminal device to the free recharge page, so that the user can perform online recharge and increase the amount of the arrears or insufficient balance.
  • the control execution system redirects the DNS access request of the terminal device to the navigation web server, when When the Internet service accessed by the terminal device requests the service from the page class, the navigation web server redirects the access request of the terminal device to the free recharge page, so that the user can perform online recharge and increase the amount of the arrears or insufficient balance.
  • Step 408 The navigation web server sends an HTTP access failure response message to the control execution system, where the HTTP access failure response message carries information for prompting the user of the terminal device to recharge in time;
  • Step 409 The control execution system forwards the HTTP access failure response message to the terminal device. Specifically, after receiving the HTTP access failure response message, the terminal device parses the information for prompting the user of the terminal device to recharge in time from the HTTP access failure response message, and displays the information to the user, so as to prompt the user to promptly Recharge.
  • the control execution system redirects the DNS access request of the terminal device to the navigation web server, when the Internet service accessed by the terminal device is a non-page type request service, the navigation web server blocks the request, and returns an HTTP access failure response message to the terminal device, where the HTTP access failure response message is carried to remind the terminal device User in time
  • the recharged information enables the user to know the cause of the access failure and improve the user experience in the event of a failed access.
  • FIG. 6 is a schematic flowchart of another embodiment of a method for adjusting a user to access a service according to an embodiment of the present invention.
  • an Internet service for accessing an HTTP-based charging by using a terminal device is taken as an example, and the technology of the present invention is used.
  • the solution is as follows. As shown in FIG. 6, the method includes: Step 501: The terminal device and the control execution system complete PDP context activation.
  • step 301 The manner in which the terminal device and the control execution system complete the PDP context activation is described in step 301, and is not described in this embodiment.
  • Step 502 The terminal device sends an HTTP request message to the control execution system.
  • the user may input an IP address of the Internet service to be accessed in the browser of the terminal device to trigger the terminal device to send an HTTP request message to the control execution system.
  • the HTTP request message carries the domain name of the Internet service page to be accessed by the terminal device.
  • Step 503 The control execution system determines, according to the HTTP request message, that the Internet service accessed by the terminal device belongs to a charging service.
  • control execution system After the control execution system receives the HTTP request message sent by the terminal device, parsing the
  • the HTTP request message obtains the domain name of the Internet service to be accessed by the terminal device carried in the HTTP request message, and the control execution system can determine, according to the domain name of the Internet service, whether the Internet service accessed by the terminal device is a charging service or a free service.
  • step 303 the method for determining whether the Internet service accessed by the terminal device is a charging service or a free service according to the domain name of the Internet service is described in step 303, and details are not described herein again.
  • Step 504 The control execution system sends a charging request message to the control management system, where the charging request message carries the charging identifier of the terminal device and the interconnection used to determine the access of the terminal device.
  • the network service belongs to the information of the charging service;
  • the control execution system when the control execution system receives the HTTP request message sent by the terminal device, the IP address of the terminal device is parsed from the header field of the HTTP request message, and the control execution system is configured according to the IP address of the terminal device.
  • the association relationship between the charging identifiers of the terminal device determines the charging identifier of the terminal device, and the control execution system carries the charging identifier in the charging request message and sends the charging identifier to the control management system.
  • Step 505 The control management system determines, according to the charging identifier of the terminal device and the information used to determine that the Internet service accessed by the terminal device belongs to the charging service, that the HTTP request of the terminal device is redirected to a free Internet service.
  • the free Internet service can be an online recharge service or other free Internet services.
  • the control management system parses the charging identifier of the user from the received charging request message, and the information that the Internet service accessed by the terminal device belongs to the charging service, and queries the user fee database according to the charging identifier of the user, and obtains
  • the user balance information of the terminal device determines, according to the user balance information of the terminal device and the information for determining that the Internet service accessed by the terminal device belongs to the charging service, redirecting the HTTP request of the terminal device to the free Internet service, The user can access the free Internet service when the terminal device is in arrears, and provides the user with flexible service access mode, thereby improving the user experience, and at the same time, preventing the user's balance information of the terminal device from being insufficient.
  • arrears are incurred, which causes losses to the operator's revenue, and provides a flexible way to ensure the operator's operational security.
  • Step 506 The control management system returns an accounting response message to the control execution system, where the charging response message carries an HTTP request for instructing the control execution system to the terminal device. Perform the redirected information;
  • step 306 the manner in which the charging response message carries information indicating that the control execution system performs redirection of the HTTP request to the terminal device is described in step 306, and the steps are described herein.
  • Step 507 The control execution system determines, according to the URL of the Internet service page that the terminal device is to be accessed in the HTTP request message, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service, if it is a page class. If the service is requested, then step 508 and step 509 are performed; if it is a non-page type request service, step 510 is performed;
  • the control execution system After the control execution system receives the response message returned by the control management system, according to the information carried in the response message for instructing the control execution system to perform the redirection of the HTTP request to the terminal device, it is known that the terminal device needs to be When the HTTP request performs the redirection, the control execution system determines, according to the URL of the Internet service page that the terminal device is to be accessed in the HTTP request message sent by the terminal device, whether the Internet service accessed by the terminal device is a page type request service or Non-page class request service.
  • control execution system may determine, according to the URL of the Internet service carried in the HTTP request message, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service.
  • the URL of the page class request contains the HTLM identifier
  • the URL of the picture class request may include the JPG or GIF identifier
  • the URL of the video class request may include the FLV identifier; therefore, the control execution system may determine the access of the terminal device by using the above identifier in the URL. Whether the Internet service is a page type request service or a non-page type request service.
  • Step 508 The control execution system returns a 302 HTTP redirect response message to the terminal device, where the 302 HTTP redirect response message carries the address of the free web page.
  • the address of the free web page can be the address of the free recharge page, or the address of other free pages.
  • the control execution system controls the terminal device. HTTP requests are redirected to a free recharge page, allowing users to recharge online with insufficient balance or arrears, improving the user experience.
  • Step 509 The terminal device establishes a connection with a server pointed to by the address of the free web page according to the address of the free web page.
  • the Internet service that the control execution system accesses according to the terminal device is The page class requests the service, and determines that the HTTP request of the terminal device is redirected to the free web page, so that the user can access the free Internet service when the terminal device is in arrears, and provides the user with flexible service access mode.
  • the user experience is improved, and at the same time, the user is prevented from accessing the charging service when the user balance information of the terminal device is insufficient, resulting in arrears, causing loss to the operator's revenue, and providing security for the operator's operation.
  • Flexible way is provided, and the Internet service that the control execution system accesses according to the terminal device is The page class requests the service, and determines that the HTTP request of the terminal device is redirected to the free web page, so that the user can access the free Internet service when the terminal device is in arrears, and provides the user with flexible service access mode.
  • the HTTP request of the terminal device is redirected to the free web page, so as to prevent the Internet service accessed by the terminal device from being a non-page type request service, The device returns to the web page, and the terminal device cannot recognize the problem of the web page.
  • Step 51 The control execution system returns an HTTP access failure response message to the terminal device, where the HTTP access failure response message carries information for prompting the user of the terminal device to recharge in time. Specifically, after receiving the HTTP access failure response message, the terminal device parses the information for prompting the user of the terminal device to recharge in time from the HTTP access failure response message, and displays the information to the user, so as to prompt the user to promptly Recharge.
  • the HTTP request of the terminal device is blocked, and an HTTP access failure response message is returned to the terminal device, where the HTTP access failure response message is carried in the terminal device for reminding the terminal device
  • the user recharges the information in time, so that when the access fails, the user can know the reason for the access failure and improve the user experience.
  • FIG. 7 is a schematic flowchart of another embodiment of a method for adjusting a user access service according to an embodiment of the present invention.
  • the domain name is accessed based on HTTP.
  • the free Internet service is taken as an example to describe the technical solution of the present invention. As shown in FIG. 7, the method includes:
  • Step 601 The terminal device and the control execution system complete the packet data protocol PDP context activation.
  • the manner in which the terminal device and the control execution system complete the PDP context activation is described in step 301, and is not described in this embodiment.
  • Step 602 The terminal device sends a DNS query request message to the control execution system.
  • Step 603 The control execution system determines, according to the DNS query request message, that the Internet service accessed by the terminal device belongs to a free service.
  • the control execution system determines, according to the DNS query request message, a manner in which the Internet service accessed by the terminal device belongs to a free service or a charging service, and has been described in step 303.
  • Step 604 The control execution system sends a charging request message to the control management system, where the charging request message carries the charging identifier of the terminal device and the interconnection used to determine the access of the terminal device.
  • the network service belongs to the free service information;
  • Step 605 The control management system determines, according to the charging identifier of the terminal device and the information that the Internet service accessed by the terminal device belongs to the free service, that the DNS query request for the terminal device is not redirected to the free Internet service;
  • the terminal device accesses the free Internet service, no matter the situation of the user balance information of the terminal device, no fee is generated. Therefore, the DNS query request of the terminal device does not need to be redirected to Free internet business.
  • Step 606 The control management system returns an accounting response message to the control execution system, where the charging response message carries user balance information of the terminal device.
  • Step 607 The control execution system forwards the DNS query request message of the terminal device to the DNS server.
  • the control execution system forwards the DNS query request message sent by the terminal device to the corresponding DNS server when the control response system does not carry the redirected information in the charging response message returned by the control management system.
  • Step 608 The DNS server returns a DNS query response message to the control execution system.
  • the DNS server performs DNS resolution according to the domain name of the Internet service accessed by the terminal device carried in the DNS query response message, and obtains the domain name corresponding to the Internet service.
  • the IP address which is carried in the DNS query response message, is returned to the control execution system.
  • Step 609 The control execution system returns a DNS query response message to the terminal device.
  • Step 610 The terminal device sends an HTTP request message to the control execution system according to the IP address carried in the DNS query response message.
  • Step 611 The control execution system forwards the HTTP request message to the web corresponding to the IP address. server;
  • the web server provides internet service information for access by the terminal device.
  • Step 612 The web server returns an HTTP response message to the control execution system.
  • control execution system determines, according to the URL of the Internet service accessed by the terminal device that is carried in the HTTP response message, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service. It has already been explained and will not be described here.
  • Step 614 The control execution system carries, in the HTTP response message, information for prompting the user of the terminal device to recharge in time;
  • Step 615 The control execution system returns an HTTP response message to the terminal device.
  • the terminal device parses the information for prompting the user of the terminal device to recharge in time from the HTTP access failure response message, and displays the information on the screen, so as to remind the user. Recharge in time.
  • Step 616 The control execution system returns an access failure response message to the terminal device, where the access failure response message carries information for prompting the user of the terminal device to recharge in time, so that the terminal device recharges the time in time.
  • the information is displayed on the screen.
  • the DNS query request sent by the terminal device is not performed. Redirecting, but the control execution system carries information for prompting the user of the terminal device to recharge in time in the HTTP response message, prompting the user to perform recharging in time, avoiding the use of the Internet service that affects the user accessing the billing, and improving the user experience. .
  • FIG. 8 is a schematic flowchart of another embodiment of a method for adjusting a user to access a service according to an embodiment of the present invention.
  • the HTTP access is performed through IP.
  • the free Internet service is taken as an example to describe the technical solution of the present invention. As shown in FIG. 8, the method includes:
  • Step 701 The terminal device and the control execution system complete the packet data protocol PDP context activation.
  • the manner in which the terminal device and the control execution system complete the PDP context activation is described in step 301, and is not described in this embodiment.
  • Step 702 The terminal device sends an HTTP request message to the control execution system.
  • step 502 The manner in which the terminal device sends an HTTP request message to the control execution system is described in step 502, and is not described in this embodiment.
  • Step 703 The control execution system determines, according to the HTTP request message, that the Internet service accessed by the terminal device belongs to a free service.
  • the control execution system determines, according to the HTTP request message, the manner in which the Internet service accessed by the terminal device belongs to the free service or the charging service, which has been described in step 503, and is not described in detail in this embodiment.
  • Step 704 The control execution system sends a charging request message to the control management system, where the charging request message carries the charging identifier of the terminal device and information for determining that the Internet service accessed by the terminal device belongs to the free service.
  • Step 705 The control management system performs charging according to the terminal device carried in the charging request message. Identifying user balance information of the terminal device;
  • control management system determines the user balance information of the terminal device according to the charging identifier of the terminal device carried in the charging request message is described in step 605, and is not described in this embodiment.
  • Step 706 The control management system determines that the HTTP request of the terminal device is not redirected according to the information that is used by the charging request message to determine that the Internet service accessed by the terminal device belongs to the free service.
  • the terminal device accesses the free Internet service, no matter the situation of the user balance information of the terminal device, no fee is generated. Therefore, the HTTP request of the terminal device does not need to be redirected to the free service. Internet business.
  • Step 707 The control management system returns an accounting response message to the control execution system, where the charging response message carries user balance information of the terminal device.
  • Step 708 The control execution system forwards the HTTP request message to the corresponding web server.
  • the web server provides Internet service information for accessing the terminal device.
  • control execution system When the control management system does not carry the redirected information in the charging response message returned by the control execution system, the control execution system forwards the HTTP request message sent by the terminal device to the web server.
  • Step 709 The web server returns an HTTP response message to the control execution system.
  • Step 71 The control execution system determines, according to the URL of the Internet service accessed by the terminal device that is carried by the terminal device, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service, and if the page type requests the service, Then perform step 71 1 and step 71 2 ; If the page is a non-page request service, step 71 3 is performed;
  • control execution system determines, according to the URL of the Internet service accessed by the terminal device that is carried in the HTTP response message, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service. It has already been explained and will not be described here.
  • Step 71 The control execution system carries information for prompting the user of the terminal device to recharge in time in the HTTP response message;
  • Step 712 The control execution system returns the HTTP response message to the terminal device.
  • the terminal device parses the timely refilling information from the HTTP access failure response message, and displays the information on the screen to remind the user to perform recharging in time.
  • Step 71 The control execution system returns an access failure response message to the terminal device, where the access failure response message carries information for prompting the user of the terminal device to recharge in time, so that the terminal device will timely The recharged information is displayed on the screen.
  • the HTTP request sent by the terminal device is not redirected, if the terminal device accesses
  • the control execution system carries information for prompting the user of the terminal device to perform timely recharge in the HTTP response message, so that the user can perform recharge in time, thereby avoiding affecting the user's use, and improving the user experience.
  • the charging control server may directly block the access request and return the access to the terminal device.
  • the response message wherein, when the user balance information of the terminal device is insufficient or arrears, the response message may be carried to remind the terminal to set The user's timely recharge information.
  • FIG. 9 is a schematic structural diagram of a control management apparatus according to an embodiment of the present invention.
  • the control management apparatus 90 includes: a receiving module 901, a balance determining module 902, a charging determining module 903, a redirection determining module 904, and a sending Module 905.
  • the receiving module 901 is configured to receive, by the control execution system, a request message for charging the terminal device, where the request message carries the charging identifier of the terminal device and determines whether the Internet service accessed by the terminal device needs to be calculated. Fee information;
  • the balance determining module 902 is configured to determine user balance information of the terminal device according to the charging identifier of the terminal device received by the receiving module 901;
  • the charging determining module 903 is configured to: when the balance determining module 902 determines that the user balance information of the terminal device is arrears or the balance is insufficient, according to the receiving, by the receiving module 901, determining the terminal device access Whether the Internet service requires charging information determines whether the Internet service accessed by the terminal device needs to be charged;
  • the redirection determining module 904 is configured to: when the charging determining module 903 determines that the Internet service accessed by the terminal device requires charging, determine that the access request to the terminal device needs to be redirected;
  • the sending module 905 is configured to return an accounting response message to the control execution system according to the result of the redirection determined by the redirection determining module 904, so that the control execution system performs the charging response message according to the The access request of the terminal device is processed.
  • control management device determines that the user balance information of the terminal device is arrears or the balance is insufficient, and when the Internet service accessed by the terminal device needs to be charged, determining that the access request to the terminal device needs to be heavy Orientation, realized according to the user's business tariffs, The user-initiated access service is adjusted accordingly, and the user experience is improved while ensuring the operational security of the data service tariff.
  • the sending module 905 is specifically configured to: according to the result of the redirection determined by the redirection determining module 904, return an accounting response message to the control execution system, where the charging response message carries the redirected address.
  • the redirected address is an address of the free internet service, so that the control execution system redirects the access request of the terminal device to the address of the free internet service according to the address of the free internet service. Pointing to the internet business.
  • the Internet service accessed by the terminal device is a charging service, determining to redirect the access request of the terminal device to a free Internet service, so that When the terminal device is in arrears, the user can access the free webpage, providing the user with flexible access to the service, thereby improving the user experience.
  • redirection determining module 904 is further configured to: when the Internet service accessed by the terminal device does not need to be charged, determining that the access request to the terminal device does not need to be redirected;
  • the sending module 905 is further configured to: return, according to the result that the redirection determining module 904 determines that the redirection is not required, an accounting response message to the control execution system, so that the control execution system is to use the terminal device
  • the access request is sent to the server corresponding to the access request.
  • FIG. 10 is another schematic structural diagram of a control management apparatus according to an embodiment of the present invention.
  • processor 1001 for example, a CPU
  • network interface 1002 or other communication interface for example, a memory 1003, and at least one communication
  • Bus 1004 is used to implement connection communication between these devices.
  • the processor 1 001 is configured to execute an executable module, such as a computer program, stored in the memory 1003.
  • the memory 1003 may include a high-speed random access memory (RAM: Random Acces s Memory), and may also include a non-vo la tile memory, for example: 3 ⁇ 4 port At least one disk storage.
  • the communication connection between the system gateway and at least one other network element is implemented by at least one network interface 1 002 (which may be wired or wireless), and may use an Internet, a wide area network, a local network, a metropolitan area network, or the like.
  • the memory 1003 stores program instructions, which may be executed by the processor 1001, wherein the program instructions include a receiving module 901, a balance determining module 902, a charging determining module 903, a redirect determining module 904, and a transmitting module.
  • the specific implementation of each module refers to the corresponding module disclosed in FIG. 9, and details are not described herein again.
  • FIG. 11 is a schematic structural diagram of a control execution apparatus according to an embodiment of the present invention.
  • the control execution apparatus 110 includes: a sending module 1101, a receiving module 1102, and an executing module 1103.
  • the sending module 11 01 is configured to send, to the control management system, a request message for charging the terminal device, where the request message carries the charging identifier of the terminal device and whether the Internet service used for determining the terminal device needs to be determined.
  • Charging information so that the control management system determines user balance information of the terminal device according to the charging identifier, and when the user balance information of the terminal device is arrears or the balance is insufficient, according to the use Determining whether the Internet service accessed by the terminal device needs to be charged, determining whether the Internet service accessed by the terminal device needs to be charged, and determining that the Internet service accessed by the terminal device needs to be charged, determining the terminal device Access requests need to be redirected;
  • the receiving module 11 02 is configured to receive a charging response message returned by the control management system according to the determined result of the required redirection;
  • the executing module 11 03 is configured to process an access request of the terminal device according to the charging response message received by the receiving module.
  • the control execution device uses the charging identifier of the terminal device and determines the final The information about whether the Internet service accessed by the terminal device is billed to the control management system, so that the control management system determines that the user balance information of the terminal device is arrears or the balance is insufficient, and when the Internet service accessed by the terminal device needs to be charged, Determining the access request to the terminal device needs to be redirected, and the control execution system processes the access request of the terminal device according to the charging response message returned by the control management system, and implements the access service initiated by the user according to the service tariff of the user. Corresponding adjustments will improve the user experience while ensuring the operational security of the business tariffs.
  • the receiving module 1102 is specifically configured to receive an accounting response message returned by the control management system according to the determined result of the redirection, where the charging response message carries a redirected address, and the redirected address The address of the free internet service;
  • the execution module 1103 is specifically configured to return an address of the free Internet service to the terminal device, so that the terminal device establishes a connection with a server pointed to by an address of the Internet service according to the address of the free Internet service. .
  • the Internet service accessed by the terminal device is a charging service, determining to redirect the access request of the terminal device to a free Internet service, so that When the terminal device is in arrears, the user can access the free webpage, providing the user with flexible access to the service, thereby improving the user experience.
  • the address of the free internet service is the address of the free navigation web server
  • the receiving module 1102 is further configured to receive a redirected access request message sent by the terminal device, where the redirected access request message carries a uniform resource locator of an Internet service accessed by the terminal device;
  • the sending module 1101 is further configured to forward the redirected access request message to the navigation a web server, so that the navigation web server determines, according to the uniform resource locator of the Internet service, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service;
  • the receiving module 1102 is further configured to receive a redirected access response message returned by the navigation web server, where the redirected access response message carries an address of a free web page;
  • the sending module 1101 is further configured to return the redirected access response message to the terminal device, so that the terminal device establishes a connection with a server pointed to by the address of the web page according to the address of the free web page.
  • the execution module 1103 is further configured to: unify the Internet service accessed by the terminal device carried in the access request of the terminal device.
  • the resource locator determines that the Internet service accessed by the terminal device is a page type request service.
  • the navigation web server determines whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service, and returns a free web page address in the case of the page class request service, thereby preventing the terminal device from requesting the non-page type request service. When requested, the address of the web page that is free to the terminal device is returned, and the terminal device cannot recognize the problem of the web page.
  • FIG. 12 is another schematic structural diagram of a control execution apparatus according to an embodiment of the present invention.
  • at least one processor 1201 for example, a CPU
  • at least one network interface 1202 or other communication interface for example, a memory 1203, and at least one communication are included.
  • Bus 1204 is used to implement connection communication between these devices.
  • the processor 1201 is configured to execute an executable module, such as a computer program, stored in the memory 1203.
  • the memory 1203 may include a high speed random access memory (RAM: Random Access) Memory ), may also include a non-volati le memory, for example: 3 ⁇ 4 port at least one disk storage.
  • the system gateway is implemented by at least one network interface 1202 (which may be wired or wireless)
  • the communication connection with at least one other network element may use the Internet, a wide area network, a local network, a metropolitan area network, and the like.
  • the memory 1203 stores program instructions, which may be executed by the processor 1201.
  • the program instructions include a sending module 1101, a receiving module 1102, and an executing module 1103.
  • the modules refer to FIG. The corresponding module will not be described here.
  • FIG. 13 is a schematic structural diagram of a system for adjusting user access services according to an embodiment of the present invention. As shown in FIG. 13, the system for adjusting user access services includes a control execution device 1300 and a control management device 1400;
  • control executing means 1300 can realize the functions of the control executing means shown in Figs. 9 and 10; the control managing means 1400 can realize the functions of the control managing means shown in Figs. 11 and 12.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or modules may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device, module or unit, or an electrical, mechanical or other form of connection.
  • modules or units described as separate components may or may not be physically separated, and the components displayed as modules or units may or may not be physical modules or units, that is, may be located in one place, or may be distributed to On multiple network modules or units. Some or all of the modules or units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional module or unit in each embodiment of the present invention may be integrated into one processing module or unit, or each module or unit may exist physically separately, or may be two or more modules or units. Integrated in one module or unit.
  • the above integrated modules or units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated modules or units if implemented in the form of software functional modules or units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • Including a number of instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention All or part of the steps.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, and a read only memory.

Abstract

A method, an apparatus, and a system for adjusting user service access. When it is determined by using a control management system that user balance information of a terminal device is overdue or an insufficient balance, if an Internet service accessed by a user needs charging, it is determined that an access request of the terminal device needs to be redirected, thereby implementing corresponding adjustment on service access initiated by the user according to a data service tariff condition of the user, so as to ensure operational safety of a data service tariff and at the same time improve user experience.

Description

调整用户访问业务的方法、 装置及系统  Method, device and system for adjusting user access service
技术领域 Technical field
本发明涉及通信技术领域, 尤其涉及一种调整用户访问业务的方法、 装 置及系统。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a method, device, and system for adjusting user access services. Background technique
移动数据通信是移动通信与数据通信两种电信技术的结合物, 在全球 蜂房移动电话迅速发展的今天,数据信息的传递从简单的寻呼进入到多媒体 的信息业务, 数据传输的方式也越来越多, 高速、 有效、 可靠的无线数据传 输技术的成熟,便携式计算机和各种数据终端处理能力与通信功能的日益完 善, 使移动数据通信的发展具备了更加有利的条件。  Mobile data communication is a combination of two kinds of telecommunication technologies: mobile communication and data communication. In today's rapid development of cellular mobile phones in the world, the transmission of data information from simple paging to multimedia information services, the way of data transmission is also coming. The more mature, high-speed, efficient and reliable wireless data transmission technology, the increasingly sophisticated processing capabilities and communication functions of portable computers and various data terminals, the development of mobile data communication has more favorable conditions.
其与以语音为核心的移动通信业务相比, 移动数据通信存在支持大带 宽和支持高速下载两点区别。 随着移动互联网的发展, 数据业务在运营商的 运营收入中占的比重越来越高, 进而, 为了保障运营安全, 运营商对用户的 数据业务资费的使用情况进行及时监测, 并相应的对用户发起的访问业务进 行调整就显得十分必要。  Compared with mobile communication services based on voice, mobile data communication has two advantages: support for large bandwidth and support for high-speed download. With the development of the mobile Internet, the data service accounts for a higher proportion of the operator's operating income. Further, in order to ensure operational security, the operator timely monitors the usage of the user's data service charges, and correspondingly It is necessary to adjust the user-initiated access service.
目前,控制执行系统和控制管理系统之间使用的计费协议不支持根据 用户的业务资费情况, 对用户发起的访问业务进行相应调整的机制。 发明内容  At present, the charging protocol used between the control execution system and the control management system does not support a mechanism for adjusting the user-initiated access service according to the user's service tariff. Summary of the invention
本发明实施例提供一种调整用户访问业务的方法、 装置及系统, 用于根 据用户的业务资费情况, 对用户发起的访问业务进行相应调整, 以便于在保 证业务资费的运营安全的同时, 提高用户体验。 第一方面, 本发明实施例提供一种调整用户访问业务的方法, 包括: 接收控制执行系统发送的对终端设备进行计费的请求消息, 所述请求消 息中携带所述终端设备的计费标识和用于确定所述终端设备访问的互联网 业务是否需要计费的信息; The embodiment of the invention provides a method, a device and a system for adjusting a user to access a service, and is configured to adjust a user-initiated access service according to a service tariff of the user, so as to improve the operation security of the service tariff. user experience. In a first aspect, the embodiment of the present invention provides a method for adjusting a user to access a service, including: receiving a request message that is sent by a control execution system to perform charging on a terminal device, where the request message carries a charging identifier of the terminal device And an internet for determining access by the terminal device Whether the service requires billing information;
根据所述计费标识确定所述终端设备的用户余额信息;  Determining user balance information of the terminal device according to the charging identifier;
当所述终端设备的用户余额信息为欠费或余额不足时,根据所述用于确 定所述终端设备访问的互联网业务是否需要计费的信息确定所述终端设备 访问的互联网业务是否需要计费;  When the user balance information of the terminal device is arrears or the balance is insufficient, determining whether the Internet service accessed by the terminal device needs to be charged according to the information for determining whether the Internet service accessed by the terminal device needs to be charged ;
当所述终端设备访问的互联网业务需要计费, 确定对所述终端设备的访 问请求需要进行重定向;  When the Internet service accessed by the terminal device needs to be charged, it is determined that the access request to the terminal device needs to be redirected;
根据确定的需要重定向的结果,向所述控制执行系统返回计费响应消 息, 以使得所述控制执行系统根据所述计费响应消息对所述终端设备的访问 请求进行处理。  A charging response message is returned to the control execution system based on the determined result of the need for redirection, such that the control execution system processes the access request of the terminal device according to the charging response message.
在第一方面的第一种可能的实现方式中, 所述根据确定的重定向的结果, 向所述控制执行系统返回计费响应消息, 以使得所述控制执行系统根据所述 计费响应消息对所述终端设备的访问请求进行处理, 包括:  In a first possible implementation manner of the first aspect, the determining, according to the determined redirection, returning a charging response message to the control execution system, so that the control execution system is configured according to the charging response message. Processing the access request of the terminal device, including:
根据确定的需要重定向的结果,向所述控制执行系统返回计费响应消 息, 所述计费响应消息中携带重定向的地址, 所述重定向的地址为免费的互 联网业务的地址, 以使得所述控制执行系统根据所述免费的互联网业务的地 址将所述终端设备的访问请求重定向到所述免费的互联网业务的地址指向 的互联网业务。  And returning, according to the determined result of the redirection, a charging response message to the control execution system, where the charging response message carries a redirected address, where the redirected address is an address of a free Internet service, so that The control execution system redirects the access request of the terminal device to an internet service pointed to by the address of the free internet service according to the address of the free internet service.
在第一方面的第二种可能的实现方式中, 所述方法还包括:  In a second possible implementation manner of the first aspect, the method further includes:
当所述终端设备访问的互联网业务不需要计费, 确定对所述终端设备的 访问请求不需要进行重定向;  When the Internet service accessed by the terminal device does not need to be charged, determining that the access request to the terminal device does not need to be redirected;
根据确定的不需要重定向的结果,向所述控制执行系统返回计费响应消 息, 以使得所述控制执行系统将所述终端设备的访问请求发送到所述访问请 求对应的服务器。 Returning a charging response to the control execution system based on the determined result of no redirection required And causing the control execution system to send an access request of the terminal device to a server corresponding to the access request.
第二方面, 本发明实施例还提供一种调整用户访问业务的方法, 包括: 向控制管理系统发送对终端设备进行计费的请求消息, 所述请求消息中 携带所述终端设备的计费标识和用于确定所述终端设备访问的互联网业务 是否需要计费的信息 , 以使得所述控制管理系统根据所述计费标识确定所述 终端设备的用户余额信息, 并当所述终端设备的用户余额信息为欠费或余额 不足时,根据所述用于确定所述终端设备访问的互联网业务是否需要计费的 信息确定所述终端设备访问的互联网业务是否需要计费, 当所述终端设备访 问的互联网业务需要计费, 确定对所述终端设备的访问请求需要进行重定 向;  In a second aspect, the embodiment of the present invention further provides a method for adjusting a user access service, including: sending a request message for charging a terminal device to a control management system, where the request message carries a charging identifier of the terminal device And determining information about whether the Internet service accessed by the terminal device needs to be charged, so that the control management system determines user balance information of the terminal device according to the charging identifier, and is a user of the terminal device When the balance information is arrears or the balance is insufficient, determining whether the Internet service accessed by the terminal device needs to be charged according to the information for determining whether the Internet service accessed by the terminal device needs to be charged, when the terminal device accesses The Internet service needs to be charged, and it is determined that the access request to the terminal device needs to be redirected;
接收所述控制管理系统根据确定的需要重定向的结果返回的计费响应 消息;  Receiving a charging response message returned by the control management system according to the determined result of the need for redirection;
根据所述计费响应消息对所述终端设备的访问请求进行处理。  And processing an access request of the terminal device according to the charging response message.
在第二方面的第一种可能的实现方式中, 所述接收所述控制管理系统根 据确定的需要重定向的结果返回的计费响应消息; 根据所述计费响应消息对 所述终端设备的访问请求进行处理, 包括:  In a first possible implementation manner of the second aspect, the receiving, by the control management system, a charging response message returned according to the determined result of requiring redirection; and the charging response message according to the charging response message to the terminal device Access requests for processing, including:
接收所述控制管理系统根据确定的需要重定向的结果返回的计费响应 消息, 所述计费响应消息中携带重定向的地址, 所述重定向的地址为免费的 互联网业务的地址;  And receiving, by the control management system, a charging response message that is returned according to the determined result of the redirection, where the charging response message carries a redirected address, where the redirected address is an address of a free Internet service;
向所述终端设备返回所述免费的互联网业务的地址, 以使得所述终端设 备根据所述免费的互联网业务的地址与所述互联网业务的地址指向的服务 器建立连接。 Returning, to the terminal device, the address of the free internet service, so that the terminal device according to the address of the free internet service and the address pointed by the address of the internet service Establish a connection.
结合第二方面的第一种可能的实现方式, 在第三种可能的实现方式中, 所述免费的互联网业务的地址为免费的充值网页的地址;  With reference to the first possible implementation manner of the second aspect, in a third possible implementation, the address of the free Internet service is an address of a free recharge webpage;
在向所述终端设备返回所述免费的互联网业务的地址, 以使得所述终端 设备根据所述免费的互联网业务的地址与所述互联网业务的地址指向的服 务器建立连接之前, 还包括:  And before returning the address of the free Internet service to the terminal device, before the terminal device establishes a connection according to the address of the free Internet service and the server pointed to by the address of the Internet service, the method further includes:
根据所述终端设备的的访问请求中携带的所述终端设备访问的互联网 业务的统一资源定位符确定所述终端设备访问的互联网业务是页面类请求 业务。  Determining, by the uniform resource locator of the Internet service accessed by the terminal device that is carried in the access request of the terminal device, that the Internet service accessed by the terminal device is a page type request service.
第三方面, 本发明实施例还提供一种控制管理装置, 包括:  In a third aspect, an embodiment of the present invention further provides a control management apparatus, including:
接收模块, 用于接收控制执行系统发送的对终端设备进行计费的请求消 息 , 所述请求消息中携带所述终端设备的计费标识和用于确定所述终端设备 访问的互联网业务是否需要计费的信息;  a receiving module, configured to receive, by the control execution system, a request message for charging the terminal device, where the request message carries a charging identifier of the terminal device, and is used to determine whether the Internet service accessed by the terminal device needs to be calculated. Fee information;
余额确定模块, 用于根据所述接收模块接收的所述终端设备的计费标识 确定所述终端设备的用户余额信息;  a balance determining module, configured to determine user balance information of the terminal device according to the charging identifier of the terminal device received by the receiving module;
计费确定模块, 用于当所述余额确定模块确定所述终端设备的用户余额 信息为欠费或余额不足时,根据所述接收模块接收的所述用于确定所述终端 设备访问的互联网业务是否需要计费的信息确定所述终端设备访问的互联 网业务是否需要计费;  a billing determining module, configured to: when the balance determining module determines that the user balance information of the terminal device is arrears or the balance is insufficient, the internet service for determining the access of the terminal device according to the receiving module Whether the information required for charging determines whether the Internet service accessed by the terminal device needs to be charged;
重定向确定模块, 用于当所述计费确定模块确定所述终端设备访问的互 联网业务需要计费时, 确定对所述终端设备的访问请求需要进行重定向; 发送模块, 用于根据所述重定向确定模块确定的需要重定向的结果,向 所述控制执行系统返回计费响应消息, 以使得所述控制执行系统根据所述计 费响应消息对所述终端设备的访问请求进行处理。 a redirection determining module, configured to: when the charging determining module determines that the Internet service accessed by the terminal device requires charging, determining that the access request to the terminal device needs to be redirected; Redirecting determines the result of the module that needs to be redirected, The control execution system returns an accounting response message, so that the control execution system processes the access request of the terminal device according to the charging response message.
在第三方面的第一种可能的实现方式中, 所述发送模块具体用于根据所 述重定向确定模块确定的需要重定向的结果, 向所述控制执行系统返回计 费响应消息, 所述计费响应消息中携带重定向的地址, 所述重定向的地址为 免费的互联网业务的地址, 以使得所述控制执行系统根据所述免费的互联网 业务的地址将所述终端设备的访问请求重定向到所述免费的互联网业务的 地址指向的互联网业务。  In a first possible implementation manner of the third aspect, the sending module is specifically configured to: return, according to a result of the redirection determined by the redirection determining module, an accounting response message to the control execution system, where The charging response message carries the redirected address, and the redirected address is an address of the free Internet service, so that the control execution system resets the access request of the terminal device according to the address of the free Internet service. Directed to the Internet business of the address of the free internet service.
在第三方面的第二种可能的实现方式中, 所述重定向确定模块还用于当 所述终端设备访问的互联网业务不需要计费, 确定对所述终端设备的访问请 求不需要进行重定向;  In a second possible implementation manner of the third aspect, the redirection determining module is further configured to: when the Internet service accessed by the terminal device does not need to be charged, determining that the access request to the terminal device does not need to be heavy Orientation
所述发送模块还用于根据所述重定向确定模块确定的不需要重定向的 结果, 向所述控制执行系统返回计费响应消息, 以使得所述控制执行系统将 所述终端设备的访问请求发送到所述访问请求对应的服务器。  The sending module is further configured to: return a charging response message to the control execution system according to the result that the redirection determining module determines that the redirection is not required, so that the control execution system requests the terminal device to access Send to the server corresponding to the access request.
第四方面, 本发明实施例还提供一种控制执行装置, 包括:  In a fourth aspect, the embodiment of the present invention further provides a control execution apparatus, including:
发送模块, 用于向控制管理系统发送对终端设备进行计费的请求消息, 所述请求消息中携带所述终端设备的计费标识和用于确定所述终端设备访 问的互联网业务是否需要计费的信息, 以使得所述控制管理系统根据所述计 费标识确定所述终端设备的用户余额信息, 并当所述终端设备的用户余额信 息为欠费或余额不足时,根据所述用于确定所述终端设备访问的互联网业务 是否需要计费的信息确定所述终端设备访问的互联网业务是否需要计费, 当 所述终端设备访问的互联网业务需要计费, 确定对所述终端设备的访问请求 需要进行重定向; 接收模块, 用于接收所述控制管理系统根据确定的需要重定向的结果返 回的计费响应消息; 执行模块, 用于根据所述接收模块接收的计费响应消息对所述终端设备 的访问请求进行处理。 在第四方面的第一种可能的实现方式中, 所述接收模块具体用于接收所 述控制管理系统根据确定的需要重定向的结果返回的计费响应消息, 所述计 费响应消息中携带重定向的地址, 所述重定向的地址为免费的互联网业务的 地址; 所述执行模块具体用于向所述终端设备返回所述免费的互联网业务的 地址, 以使得所述终端设备根据所述免费的互联网业务的地址与所述互联网 业务的地址指向的服务器建立连接。 第五方面, 本发明实施例还提供一种调整用户访问业务的系统, 包括: 上述第三方面任一所述的控制管理装置,和上述第四方面任一所述的控 制执行装置。 在本发明实施例提供的调整用户访问业务的方法、 装置及系统,通过控 制管理系统确定终端设备的用户余额信息为欠费或余额不足时,且当该终端 设备访问的互联网业务需要计费, 确定对该终端设备的访问请求需要进行重 定向,实现了根据用户的业务资费情况, 对用户发起的访问业务进行相应调 整, 保证了业务资费的运营安全, 同时, 提高了用户体验。 附图说明 a sending module, configured to send, to the control management system, a request message for charging the terminal device, where the request message carries the charging identifier of the terminal device and determines whether the Internet service accessed by the terminal device needs to be charged. The information, so that the control management system determines the user balance information of the terminal device according to the charging identifier, and when the user balance information of the terminal device is arrears or the balance is insufficient, according to the determining Whether the Internet service accessed by the terminal device requires charging information determines whether the Internet service accessed by the terminal device needs to be charged, and when the Internet service accessed by the terminal device needs to be charged, determining an access request to the terminal device The receiving module is configured to receive a charging response message returned by the control management system according to the determined result of the required redirection; and an executing module, configured to: according to the charging response message received by the receiving module The access request of the terminal device is processed. In a first possible implementation manner of the fourth aspect, the receiving module is specifically configured to receive, by the control management system, a charging response message that is returned according to the determined result of the required redirection, where the charging response message is carried The redirected address, the redirected address is an address of the free internet service; the execution module is specifically configured to return the address of the free internet service to the terminal device, so that the terminal device is configured according to the The address of the free internet service establishes a connection with the server pointed to by the address of the internet service. The fifth aspect, the embodiment of the present invention further provides a system for adjusting a user access service, comprising: the control management device according to any one of the above aspects, and the control execution device according to any of the above fourth aspects. The method, device, and system for adjusting user access service provided by the embodiment of the present invention determine that the user balance information of the terminal device is arrears or the balance is insufficient, and the Internet service accessed by the terminal device needs to be charged. It is determined that the access request to the terminal device needs to be redirected, and the user-initiated access service is adjusted according to the user's service tariff, thereby ensuring the operation security of the service tariff and improving the user experience. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 图 1为本发明的应用环境构架图; In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is some embodiments of the present invention, and those of ordinary skill in the art, Other drawings may also be obtained from these drawings without the inventive labor. 1 is a structural diagram of an application environment of the present invention;
图 2为本发明实施例调整用户访问业务的方法的一个实施例的流程示意 图;  2 is a schematic flow chart of an embodiment of a method for adjusting a user access service according to an embodiment of the present invention;
图 3为本发明实施例调整用户访问业务的方法的另一个实施例的流程示 意图;  3 is a schematic flowchart of another embodiment of a method for adjusting a user accessing a service according to an embodiment of the present invention;
图 4为本发明实施例调整用户访问业务的方法的另一个实施例的流程示 意图;  4 is a schematic flowchart of another embodiment of a method for adjusting a user accessing a service according to an embodiment of the present invention;
图 5为本发明实施例调整用户访问业务的方法的另一个实施例的流程示 意图;  FIG. 5 is a schematic flowchart of another embodiment of a method for adjusting a user accessing a service according to an embodiment of the present invention;
图 6为本发明实施例调整用户访问业务的方法的另一个实施例的流程示 意图,  6 is a schematic flowchart of another embodiment of a method for adjusting a user access service according to an embodiment of the present invention, where
图 7为本发明实施例调整用户访问业务的方法的另一个实施例的流程示 意图;  FIG. 7 is a schematic flowchart of another embodiment of a method for adjusting a user accessing a service according to an embodiment of the present invention;
图 8为本发明实施例调整用户访问业务的方法的另一个实施例的流程示 意图;  FIG. 8 is a schematic flowchart of another embodiment of a method for adjusting a user accessing a service according to an embodiment of the present invention; FIG.
图 9为本发明实施例控制管理装置的一个结构示意图;  9 is a schematic structural diagram of a control management apparatus according to an embodiment of the present invention;
图 10为本发明实施例控制管理装置的另一个结构示意图;  FIG. 10 is another schematic structural diagram of a control management apparatus according to an embodiment of the present invention; FIG.
图 11为本发明实施例控制执行装置的一个结构示意图;  11 is a schematic structural diagram of a control execution device according to an embodiment of the present invention;
图 12为本发明实施例控制执行装置的另一个结构示意图;  FIG. 12 is another schematic structural diagram of a control execution apparatus according to an embodiment of the present invention; FIG.
图 13为本发明实施例调整用户访问业务的系统的一个结构示意图。 具体实施方式  FIG. 13 is a schematic structural diagram of a system for adjusting user access services according to an embodiment of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。 图 1为本发明的应用环境构架图。 如图 1所示, 包括: 终端设备, 终端设 备通过控制执行系统与业务提供(Serv ice Prov ider, SP )服务器通信, 该 终端设备可以是任何一种可与用户通过键盘、 鼠标、 遥控器、 触摸屏、 声控 设备或图像识别设备进行人机交互的电子产品,包括但不限于计算机、手机、 平板电脑等。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention. FIG. 1 is a structural diagram of an application environment of the present invention. As shown in FIG. 1 , the method includes: a terminal device, where the terminal device communicates with a service provider (SP) server through a control execution system, where the terminal device can be any type that can be used with a user through a keyboard, a mouse, a remote controller, Electronic products for human-computer interaction of touch screens, voice control devices or image recognition devices, including but not limited to computers, mobile phones, tablets, and the like.
控制执行系统, 控制执行系统通过和控制管理系统的信息交互, 基于控 制管理系统下发的各种计费与控制策略对终端设备的访问请求进行各种控 制。 例如, 控制执行系统可以接收控制管理系统下发的计费话单输出请求, 根据计费策略, 按照终端设备请求的不同的业务生成不同格式的话单文件, 供控制管理系统做帐务处理、 查询和统计使用; 此外, 控制执行系统还可以 根据控制管理系统下发的控制接入命令, 对终端设备的接入请求或使用带宽 进行控制。 其中, 该控制执行系统在通用分组无线业务(Genera l Packet Radio Servi ce, GPRS )通信系统中可以位于网关 GPRS支持节点(Gateway GPRS Suppor t Node, GGSN); 在演进分组核心网 ( Evolved Packet Core network, EPC )通信系统中可以位于的分组数据网关 (Packet Gateway, P-GW ) ; 在 码分多址接入系统 ( Code Divi s ion Mul t iple Acces s , CDMA )通信系统中 可以位于分组数据服务节点 (Packet Data Serv ing Node , PDSN )等。  The control execution system controls the execution system to perform various control on the access request of the terminal device based on the information exchange with the control management system based on various charging and control policies issued by the control management system. For example, the control execution system may receive a billing bill output request sent by the control management system, and generate a bill file of different format according to different services requested by the terminal device according to the billing policy, and the control management system performs accounting processing and query. And the statistical use; in addition, the control execution system can also control the access request or the use bandwidth of the terminal device according to the control access command issued by the control management system. The control execution system may be located in a Gateway GPRS Supper t Node (GGSN) in a Genera Packet Radio Serve (GPRS) communication system; in an Evolved Packet Core network (Evolved Packet Core network) , EPC) Packet Gateway (P-GW) that can be located in the communication system; can be located in the packet data service in the Code Divided Access System (CDMA) communication system Node (Packet Data Serving Node, PDSN), etc.
控制管理系统, 控制管理系统可以参与计费过程控制, 解决用户实时信 用控制、 预付费使用数据业务和增值业务实时计费等问题。 控制管理系统可 以是在线计费系统(Onl ine Charg ing Sys tem, OCS )等或者其它实现类似 功能的系统。 在通信网络中, 控制管理系统可以独立部署, 也可以作为控制 执行系统的一部分部署。 业务提供 (Service Provider, SP )服务器用于为用户提供访问资源, 例如, 应用服务器(Application Server, AS)或网络 Web服务器等。 The control management system, the control management system can participate in the billing process control, and solve problems such as real-time credit control of users, prepaid data services, and real-time billing of value-added services. The control management system may be an On-line Charging System (OCS) or the like or other systems that implement similar functions. In a communication network, the control management system can be deployed independently or as part of a control execution system. A Service Provider (SP) server is used to provide access resources for users, such as an Application Server (AS) or a Web server.
本发明的技术方案可以用于多种通信系统, 如可以用于 CDMA 系统、 宽 带码分多址接入 (Wideband Code Division Multiple Access , WCDMA ) 系 统或 GPRS等通信系统。  The technical solution of the present invention can be applied to various communication systems, such as a communication system such as a CDMA system, a Wideband Code Division Multiple Access (WCDMA) system, or a GPRS.
图 2为本发明实施例调整用户访问业务的方法的一个实施例的流程示意 图,该实施例的方法的执行主体可以为控制管理系统, 如图 2所示, 该方法 包括:  FIG. 2 is a schematic flowchart of an embodiment of a method for adjusting a user's access to a service according to an embodiment of the present invention. The method for performing the method may be a control management system. As shown in FIG. 2, the method includes:
步骤 101、 接收控制执行系统发送的对终端设备进行计费的请求消息, 所述请求消息中携带所述终端设备的计费标识和用于确定所述终端设备访 问的互联网业务是否需要计费的信息;  Step 101: Receive, by the control execution system, a request message for charging the terminal device, where the request message carries the charging identifier of the terminal device and determines whether the Internet service accessed by the terminal device needs to be charged. Information
在本发明实施例中, 当控制执行系统接收到终端设备发送的访问请求 后, 该控制执行系统向控制管理系统发送对终端设备进行计费的请求消息。  In the embodiment of the present invention, after the control execution system receives the access request sent by the terminal device, the control execution system sends a request message for charging the terminal device to the control management system.
其中, 终端设备发送的访问请求可以是域名系统(Domain Name System, DNS)查询请求, 也可以是超文本传输协议(Hypertext transfer protocol, HTTP)访问请求。  The access request sent by the terminal device may be a domain name system (DNS) query request, or may be a hypertext transfer protocol (HTTP) access request.
其中, 所述用于确定所述终端设备访问的互联网业务是否需要计费的 信息, 可以是控制执行系统在确定该终端设备访问的互联网业务是否需要计 费的信息后,将该终端设备访问的互联网业务是否需要计费的信息上报给控 制管理系统; 也可以是该控制执行系统将终端设备访问的互联网业务的信息 发送给控制管理系统, 该控制管理系统根据该终端设备访问的互联网业务的 信息确定该终端设备访问的互联网业务是否需要计费。 需要说明的是, 对终端设备进行计费的请求消息用于控制管理系统根 据该请求消息对该终端设备访问的互联网业务实现业务批价,信用控制和计 费等。 The information for determining whether the Internet service accessed by the terminal device needs to be charged may be that the control execution system accesses the terminal device after determining whether the Internet service accessed by the terminal device needs to be charged. The information about whether the Internet service needs to be charged is reported to the control management system; or the control execution system sends the information of the Internet service accessed by the terminal device to the control management system, and the control management system obtains information about the Internet service accessed by the terminal device. Determine whether the Internet service accessed by the terminal device requires charging. It should be noted that the request message for charging the terminal device is used by the control management system to implement service pricing, credit control, and charging, etc. for the Internet service accessed by the terminal device according to the request message.
此外, 还需要说明的是, 终端设备的计费标识用于该控制管理系统根 据该计费标识确定该终端设备的用户余额信息。 其中, 该计费标识可以是电 话号码。  In addition, it should be noted that the charging identifier of the terminal device is used by the control management system to determine user balance information of the terminal device according to the charging identifier. The charging identifier may be a telephone number.
步骤 102、 根据所述计费标识确定所述终端设备的用户余额信息; 具体的, 控制管理系统可以根据该计费标识查询用户费用数据库, 得到 该终端设备的用户余额信息。  Step 102: Determine user balance information of the terminal device according to the charging identifier. Specifically, the control management system may query the user fee database according to the charging identifier to obtain user balance information of the terminal device.
步骤 103、 当所述终端设备的用户余额信息为欠费或余额不足时, 根据 所述用于确定所述终端设备访问的互联网业务是否需要计费的信息确定所 述终端设备访问的互联网业务是否需要计费;  Step 103: When the user balance information of the terminal device is arrears or the balance is insufficient, determining whether the Internet service accessed by the terminal device is determined according to the information for determining whether the Internet service accessed by the terminal device needs to be charged Need to charge;
其中, 用户余额信息为欠费包括: 余额少于零或余额为零;  Wherein, the user balance information is arrears including: the balance is less than zero or the balance is zero;
用户余额信息为余额不足包括: 余额大于零但少于设定的阀值。 例如, 可以设定用户的余额少于 5元大于零为余额不足。  The user balance information is insufficient balance including: The balance is greater than zero but less than the set threshold. For example, you can set the user's balance to be less than 5 yuan and greater than zero for insufficient balance.
步骤 104、 当所述终端设备访问的互联网业务需要计费, 确定对所述终 端设备的访问请求需要进行重定向;  Step 104: When the Internet service accessed by the terminal device needs to be charged, determining that the access request to the terminal device needs to be redirected;
步骤 105、根据确定的需要重定向的结果,向所述控制执行系统返回计费 响应消息, 以使得所述控制执行系统根据所述计费响应消息对所述终端设备 的访问请求进行处理。  Step 105: Return a charging response message to the control execution system according to the determined result of the required redirection, so that the control execution system processes the access request of the terminal device according to the charging response message.
其中, 所述根据确定的需要重定向的结果,向所述控制执行系统返回计 费响应消息, 以使得所述控制执行系统根据所述计费响应消息对所述终端设 备的访问请求进行处理, 具体可以为: Returning, to the control execution system, an account response message according to the determined result of the required redirection, so that the control execution system sets the terminal according to the charging response message. The standby access request is processed, which can be:
根据确定的需要重定向的结果,向所述控制执行系统返回计费响应消 息, 所述计费响应消息中携带重定向的地址, 所述重定向的地址为免费的互 联网业务的地址, 以使得所述控制执行系统根据所述免费的互联网业务的地 址将所述终端设备的访问请求重定向到所述免费的互联网业务的地址指向 的互联网业务。  And returning, according to the determined result of the redirection, a charging response message to the control execution system, where the charging response message carries a redirected address, where the redirected address is an address of a free Internet service, so that The control execution system redirects the access request of the terminal device to an internet service pointed to by the address of the free internet service according to the address of the free internet service.
此外, 所述方法还包括:  In addition, the method further includes:
当所述终端设备访问的互联网业务不需要计费, 确定对所述终端设备的 访问请求不需要进行重定向; 根据确定的不需要重定向的结果,向所述控制 执行系统返回计费响应消息, 以使得所述控制执行系统将所述终端设备的访 问请求发送到所述访问请求对应的服务器。  When the Internet service accessed by the terminal device does not need to be charged, determining that the access request to the terminal device does not need to be redirected; and returning the charging response message to the control execution system according to the determined result that the redirection is not required. And causing the control execution system to send an access request of the terminal device to a server corresponding to the access request.
此外, 需要说明的是, 所述免费的互联网业务的地址可以为免费的充值 网页的地址; 或者为免费的导航 Web服务器的地址。  In addition, it should be noted that the address of the free Internet service may be the address of the free recharge webpage; or the address of the free navigation web server.
在本发明实施例中,控制管理系统确定终端设备的用户余额信息为欠费 或余额不足时, 且当该终端设备访问的互联网业务需要计费, 确定对该终端 设备的访问请求需要进行重定向,实现了根据用户的业务资费情况, 对用户 发起的访问业务进行相应调整, 保证了业务资费的运营安全, 同时, 提高了 用户体验。  In the embodiment of the present invention, the control management system determines that the user balance information of the terminal device is arrears or the balance is insufficient, and when the Internet service accessed by the terminal device needs to be charged, determining that the access request to the terminal device needs to be redirected According to the user's service tariff, the user-initiated access service is adjusted accordingly, which ensures the operation security of the service tariff and improves the user experience.
图 3为本发明实施例调整用户访问业务的方法的另一个实施例的流程 示意图, 该实施例的方法的执行主体可以为控制执行系统, 如图 3所示, 该 方法包括:  FIG. 3 is a schematic flowchart of another embodiment of a method for adjusting a user to access a service according to an embodiment of the present invention. The execution body of the method in this embodiment may be a control execution system. As shown in FIG. 3, the method includes:
步骤 201、向控制管理系统发送对终端设备进行计费的请求消息,所述 请求消息中携带所述终端设备的计费标识和用于确定所述终端设备访问的 互联网业务是否需要计费的信息 , 以使得所述控制管理系统根据所述计费标 识确定所述终端设备的用户余额信息, 并当所述终端设备的用户余额信息为 欠费或余额不足时,根据所述用于确定所述终端设备访问的互联网业务是否 需要计费的信息确定所述终端设备访问的互联网业务是否需要计费, 当所述 终端设备访问的互联网业务需要计费, 确定对所述终端设备的访问请求需要 进行重定向; Step 201: Send a request message for charging the terminal device to the control management system, where The request message carries the charging identifier of the terminal device and information for determining whether the Internet service accessed by the terminal device needs to be charged, so that the control management system determines the terminal device according to the charging identifier. User balance information, and when the user balance information of the terminal device is arrears or the balance is insufficient, determining, according to the information for determining whether the Internet service accessed by the terminal device requires charging, determining the Internet accessed by the terminal device Whether the service needs to be charged, and when the Internet service accessed by the terminal device needs to be charged, it is determined that the access request to the terminal device needs to be redirected;
其中, 所述用于确定所述终端设备访问的互联网业务是否需要计费的 信息、终端设备的计费标识和对终端设备进行计费的请求消息在步骤 101中 已经说明, 此处不再贅述。  The information for determining whether the Internet service accessed by the terminal device needs to be charged, the charging identifier of the terminal device, and the request message for charging the terminal device are described in step 101, and details are not described herein. .
此外, 用户余额信息为欠费包括: 余额少于零或余额为零;  In addition, the user balance information is arrears including: the balance is less than zero or the balance is zero;
用户余额信息为余额不足包括: 余额大于零但少于设定的阀值。 例如, 可以设定用户的余额少于 5元大于零为余额不足。  The user balance information is insufficient balance including: The balance is greater than zero but less than the set threshold. For example, you can set the user's balance to be less than 5 yuan and greater than zero for insufficient balance.
在本发明实施例中, 当控制执行系统接收到终端设备发送的访问请求 后, 该控制执行系统向控制管理系统发送对终端设备进行计费的请求消息。 其中, 终端设备发送的访问请求可以是 DNS查询请求, 也可以是 HTTP访问 请求。  In the embodiment of the present invention, after the control execution system receives the access request sent by the terminal device, the control execution system sends a request message for charging the terminal device to the control management system. The access request sent by the terminal device may be a DNS query request or an HTTP access request.
步骤 202、 接收所述控制管理系统根据确定的需要重定向的结果返回的 计费响应消息;  Step 202: Receive, by the control management system, a charging response message returned according to the determined result of requiring redirection;
步骤 203、根据所述计费响应消息对所述终端设备的访问请求进行处理。 其中,接收所述控制管理系统根据确定的需要重定向的结果返回的计费 响应消息; 根据所述计费响应消息对所述终端设备的访问请求进行处理, 具 体可以为: Step 203: Process an access request of the terminal device according to the charging response message. Receiving, by the control management system, an account response message returned according to the determined result of the need for redirection; processing the access request of the terminal device according to the charging response message, The body can be:
接收所述控制管理系统根据确定的需要重定向的结果返回的计费响应 消息, 所述计费响应消息中携带重定向的地址, 所述重定向的地址为免费的 互联网业务的地址, 向所述终端设备返回所述免费的互联网业务的地址, 以 使得所述终端设备根据所述免费的互联网业务的地址与所述互联网业务的 地址指向的服务器建立连接。  Receiving, by the control management system, the charging response message returned according to the determined result of the redirection, the charging response message carrying the redirected address, where the redirected address is a free Internet service address, The terminal device returns an address of the free internet service, so that the terminal device establishes a connection with a server pointed to by the address of the internet service according to the address of the free internet service.
此外, 当所述免费的互联网业务的地址为免费的充值网页的地址时, 在 向所述终端设备返回所述免费的互联网业务的地址, 以使得所述终端设备根 据所述免费的互联网业务的地址与所述互联网业务的地址指向的服务器建 立连接之前, 还包括:  In addition, when the address of the free internet service is the address of the free recharge webpage, the address of the free internet service is returned to the terminal device, so that the terminal device is according to the free internet service. Before the address establishes a connection with the server pointed to by the address of the Internet service, the method further includes:
根据所述终端设备的的访问请求中携带的所述终端设备访问的互联网 业务的统一资源定位符确定所述终端设备访问的互联网业务是页面类请求 业务。  Determining, by the uniform resource locator of the Internet service accessed by the terminal device that is carried in the access request of the terminal device, that the Internet service accessed by the terminal device is a page type request service.
当所述免费的互联网业务的地址为免费的导航 Web服务器的地址时, 该 方法可以进一步包括:  When the address of the free internet service is the address of the free navigation web server, the method may further include:
接收所述终端设备发送的重定向访问请求消息, 所述重定向访问请求消 息中携带所述终端设备访问的互联网业务的统一资源定位符; 将所述重定向 访问请求消息转发给所述导航 Web服务器, 以使得所述导航 Web服务器根据 所述互联网业务的统一资源定位符判断所述终端设备访问的互联网业务是 页面类请求业务还是非页面类请求业务; 若是页面类请求业务, 接收所述导 航 Web服务器返回的重定向访问响应消息, 所述重定向访问响应消息中携带 免费的 Web页面的地址; 向所述终端设备返回所述重定向访问响应消息, 以 使得所述终端设备根据所述免费的 Web页面的地址与所述 Web页面的地址指 向的服务器建立连接。 Receiving a redirected access request message sent by the terminal device, where the redirected access request message carries a uniform resource locator of an Internet service accessed by the terminal device; forwarding the redirected access request message to the navigation web a server, to enable the navigation web server to determine, according to the uniform resource locator of the Internet service, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service; if the page type request service, receive the navigation a redirected access response message returned by the web server, where the redirected access response message carries an address of the free web page; and returns the redirected access response message to the terminal device, to The terminal device is caused to establish a connection with a server pointed to by the address of the web page according to the address of the free web page.
在本发明实施例中,控制执行系统将终端设备的计费标识和用于确定终 端设备访问的互联网业务是否计费的信息上报给控制管理系统, 以使得控制 管理系统确定终端设备的用户余额信息为欠费或余额不足, 且当该终端设备 访问的互联网业务需要计费时, 确定对该终端设备的访问请求需要进行重定 向,控制执行系统根据控制管理系统返回的计费响应消息对终端设备的访问 请求进行处理, 实现了根据用户的业务资费情况, 对用户发起的访问业务进 行相应调整, 保证了业务资费的运营安全, 同时, 提高了用户体验。  In the embodiment of the present invention, the control execution system reports the charging identifier of the terminal device and the information for determining whether the Internet service accessed by the terminal device is charged to the control management system, so that the control management system determines the user balance information of the terminal device. If the arrears or the balance is insufficient, and the Internet service accessed by the terminal device needs to be charged, it is determined that the access request to the terminal device needs to be redirected, and the control execution system according to the charging response message returned by the control management system to the terminal device The access request is processed, and the user-initiated access service is adjusted according to the user's service tariff, thereby ensuring the operational security of the service tariff and improving the user experience.
图 4为本发明实施例调整用户访问业务的方法的另一个实施例的流程示 意图,在本发明实施例中, 以终端设备的用户余额信息为欠费或余额不足时, 通过 i或名访问基于超文本传输十办议 (Hyper text Transfer Protocol, HTTP) 的计费的互联网业务为例, 对本发明的技术方案进行说明, 如图 4所示, 该 方法包括:  FIG. 4 is a schematic flowchart of another embodiment of a method for adjusting a user to access a service according to an embodiment of the present invention. In the embodiment of the present invention, when the user balance information of the terminal device is arrears or the balance is insufficient, the access based on the i or the name is based on The Internet service of the Hypertext Transfer Protocol (HTTP) is taken as an example to describe the technical solution of the present invention. As shown in FIG. 4, the method includes:
步骤 301、 终端设备与控制执行系统完成分组数据协议(Packet Da ta Step 301: The terminal device and the control execution system complete a packet data protocol (Packet Da ta
Protocol , PDP )上下文激活; Protocol , PDP ) context activation;
需要说明的是, 用户若需要通过终端设备访问 SP服务器提供的互联网 业务, 在该终端设备附着网络时, 该终端设备需要和该网络的控制执行系统 间建立数据链路, 该控制执行系统通过给该终端设备分配一个网际协议 ( Internet Protocol , IP )地址, 使该终端设备能够与网络通信。  It should be noted that if the user needs to access the Internet service provided by the SP server through the terminal device, when the terminal device attaches to the network, the terminal device needs to establish a data link with the control execution system of the network, and the control execution system passes the The terminal device allocates an Internet Protocol (IP) address to enable the terminal device to communicate with the network.
此外, 还需要说明的是, 在终端设备与控制执行系统完成 PDP上下文激 活的过程中, 终端设备会上报计费标识, 例如, 该终端设备的电话号码。 控 制执行系统会在 PDP上下文列表中创建一个 PDP上下文记录, 并将该计费标识 和为该终端设备分配的 IP地址关联起来, 启动计费。 In addition, it should be noted that, in the process that the terminal device and the control execution system complete the PDP context activation, the terminal device reports the charging identifier, for example, the telephone number of the terminal device. Control The system execution system creates a PDP context record in the PDP context list, and associates the charging identifier with the IP address assigned to the terminal device to initiate charging.
步骤 302、 该终端设备向控制执行系统发送 DNS查询请求消息; 需要说明的是, 在终端设备与控制执行系统完成 PDP上下文激活后, 用 户可以通过该终端设备访问 SP服务器提供的互联网业务。 例如, 用户可以通 过该终端设备上的浏览器客户端访问 SP服务器提供的网页。  Step 302: The terminal device sends a DNS query request message to the control execution system. The terminal device and the control execution system complete the PDP context activation, and the user can access the Internet service provided by the SP server through the terminal device. For example, a user can access a web page provided by the SP server through a browser client on the terminal device.
步骤 303、 该控制执行系统根据该 DNS查询请求消息, 判断该终端设备访 问的互联网业务属于计费业务;  Step 303: The control execution system determines, according to the DNS query request message, that the Internet service accessed by the terminal device belongs to a charging service.
需要说明的是, 互联网业务的提供商可以通过 SP服务器提供各种类型的 互联网业务, 终端设备可以访问该互联网业务, 该互联网业务的类型包括但 不限于: 免费业务和计费业务。  It should be noted that the Internet service provider can provide various types of Internet services through the SP server, and the terminal device can access the Internet service, and the types of the Internet service include but are not limited to: free service and billing service.
还需要说明的是, 该 DNS查询请求消息中还携带有终端设备访问的互联 网业务的域名, 该控制执行系统可以根据该互联网业务的域名判断该终端设 备访问的该互联网业务是计费业务还是免费业务。  It should be noted that the DNS query request message further carries the domain name of the Internet service accessed by the terminal device, and the control execution system may determine, according to the domain name of the Internet service, whether the Internet service accessed by the terminal device is a charging service or is free. business.
具体的, 可以在控制执行系统上预先配置一个免费业务的互联网业务的 域名列表或计费业务的互联网业务的域名列表, 当控制执行系统接收到终端 设备发送的 DNS查询请求消息时, 从该 DNS查询请求消息中解析得到该 DNS查 询请求消息中携带的终端设备访问的互联网业务的域名,根据该互联网业务 的域名, 匹配免费业务的互联网业务的域名列表或计费业务的互联网业务的 域名列表, 确定终端设备访问的互联网业务是否需要计费。  Specifically, the domain name list of the Internet service of the free service or the domain name list of the Internet service of the charging service may be pre-configured on the control execution system, and when the control execution system receives the DNS query request message sent by the terminal device, the DNS is obtained from the DNS Querying the domain name of the Internet service accessed by the terminal device carried in the DNS query request message, and matching the domain name list of the Internet service of the free service or the domain name list of the Internet service of the charging service according to the domain name of the Internet service, Determine whether the Internet service accessed by the terminal device requires accounting.
需要说明的是,控制执行系统上预先配置的免费业务的互联网业务的域 名列表或计费业务的互联网业务的域名列表, 可以是人工预先在控制执行系 统上配置, 也可以人工在控制管理系统配置, 通过控制管理系统将该免费业 务的互联网业务的域名列表或计费业务的互联网业务的域名列表传输到控 制执行系统预先储存。 It should be noted that the domain name list of the Internet service that controls the pre-configured free service on the execution system or the domain name list of the Internet service of the charging service may be manually pre-executed in the control execution system. The system configuration may also be manually configured in the control management system, and the domain name list of the Internet service of the free service or the domain name list of the Internet service of the charging service is transmitted to the control execution system for pre-storage through the control management system.
此外, 该预先配置的免费业务的互联网业务的域名列表或计费业务的互 联网业务的域名列表也可以配置在控制管理系统上, 当控制执行系统接收到 终端设备发送的访问请求时, 将该访问请求发送给控制管理系统, 该控制管 理系统可以根据该访问请求中携带的该终端设备访问的互联网业务的域名 确定终端设备访问的互联网业务是否需要计费。  In addition, the domain name list of the Internet service of the pre-configured free service Internet service or the domain name list of the Internet service of the charging service may also be configured on the control management system, and when the control execution system receives the access request sent by the terminal device, the access is performed. The request is sent to the control management system, and the control management system can determine whether the Internet service accessed by the terminal device needs to be charged according to the domain name of the Internet service accessed by the terminal device carried in the access request.
此外, 还需要说明的是, 上述域名列表可以通过计费组的方式实现, 即 通过计费组匹配终端设备访问的互联网业务的域名, 并将匹配的计费组发送 给控制管理系统,控制管理系统根据该计费组确定终端设备访问的互联网业 务是否计费。  In addition, it should be noted that the foregoing domain name list can be implemented by means of a charging group, that is, the charging group matches the domain name of the Internet service accessed by the terminal device, and the matched charging group is sent to the control management system, and the control management is performed. The system determines, according to the charging group, whether the Internet service accessed by the terminal device is charged.
步骤 304、 该控制执行系统向控制管理系统发送计费请求消息, 该计费 请求消息中携带该终端设备的计费标识和用于确定该终端设备访问的互联 网业务属于计费业务的信息;  Step 304: The control execution system sends a charging request message to the control management system, where the charging request message carries the charging identifier of the terminal device and the information used to determine that the Internet service accessed by the terminal device belongs to the charging service.
需要说明的是, 该终端设备发送的 DNS查询请求消息中还携带有该终端 设备的 IP地址, 在该控制执行系统接收到该终端设备发送的 DNS查询请求消 息时, 可以从该 DNS查询请求消息中解析得到该终端设备的 IP地址, 该控制 执行系统根据该终端设备的 I P地址和该终端设备的计费标识的关联关系, 确 定该终端设备的计费标识,控制执行系统将该计费标识携带在计费请求消息 中发送给控制管理系统。  It should be noted that the DNS query request message sent by the terminal device also carries the IP address of the terminal device, and when the control execution system receives the DNS query request message sent by the terminal device, the DNS query request message may be The IP address of the terminal device is obtained in the middle, and the control execution system determines the charging identifier of the terminal device according to the association between the IP address of the terminal device and the charging identifier of the terminal device, and the control execution system determines the charging identifier. The bearer is sent to the control management system in the charging request message.
步骤 305、 该控制管理系统根据该终端设备的计费标识和用于确定该终 端设备访问的互联网业务属于计费业务的信息, 确定对该终端设备的 DNS查 询请求重定向到免费的互联网业务; Step 305: The control management system determines, according to the charging identifier of the terminal device, The Internet service accessed by the terminal device belongs to the information of the charging service, and determines that the DNS query request of the terminal device is redirected to the free Internet service;
其中, 免费的互联网业务可以是在线充值业务, 也可以是其它免费的互 联网业务。  Among them, the free Internet service can be an online recharge service or other free Internet services.
具体的,控制管理系统从接收到的计费请求消息中解析得到用户的计费 标识和该终端设备访问的互联网业务属于计费业务的信息,根据该用户的计 费标识查询用户费用数据库, 得到该终端设备的用户余额信息, 根据该该终 端设备的用户余额信息和该终端设备访问的互联网业务属于计费业务的信 息确定对该终端设备的 DNS查询请求重定向到免费的互联网业务,  Specifically, the control management system parses the charging identifier of the user from the received charging request message, and the information that the Internet service accessed by the terminal device belongs to the charging service, and queries the user fee database according to the charging identifier of the user, and obtains The user balance information of the terminal device determines, according to the user balance information of the terminal device and the information that the Internet service accessed by the terminal device belongs to the charging service, that the DNS query request of the terminal device is redirected to the free Internet service.
使得用户在该终端设备在欠费的情况下, 可以访问免费的互联网业务, 提供给了用户灵活的业务访问方式, 进而提高了用户体验, 此外, 同时避免 用户在终端设备的余额不足的情况下访问计费业务, 产生欠费, 对运营商的 收益造成损失, 为保障运营商的运营安全提供了灵活的方式。  The user can access the free Internet service when the terminal device is in arrears, providing the user with a flexible service access mode, thereby improving the user experience, and at the same time avoiding the user having insufficient balance in the terminal device. Accessing the billing service generates arrears and causes losses to the operator's revenue. It provides a flexible way to ensure the operator's operational security.
步骤 306、 该控制管理系统向该控制执行系统返回计费响应消息, 其中, 该计费响应消息中携带用于指示该控制执行系统对该终端设备的 DNS查询请 求执行重定向的信息;  Step 306: The control management system returns an accounting response message to the control execution system, where the charging response message carries information indicating that the control execution system performs redirection of the DNS query request of the terminal device;
其中, 需要说明的是, 该计费响应消息中携带用于指示该控制执行系统 对该终端设备的 DNS查询请求执行重定向的信息可以通过下列方式实现、 方式一、 该计费响应消息中携带重定向的地址, 例如, DNS地址或 IP地 址;  It should be noted that, the charging response message carries information for indicating that the control execution system performs redirection of the DNS query request to the terminal device, and may be implemented in the following manner. The redirected address, for example, a DNS address or an IP address;
方式二、 该计费响应消息中携带重定向的标识, 使得控制执行系统根据 该重定向的标识确定重定向的地址。 步骤 307、 该控制执行系统向该终端设备返回 DNS查询响应消息, 其中, 该 DNS查询响应消息中携带重定向的地址, 该重定向的地址指向免费的互联 网业务; Manner 2: The charging response message carries the redirected identifier, so that the control execution system determines the redirected address according to the redirected identifier. Step 307: The control execution system returns a DNS query response message to the terminal device, where the DNS query response message carries a redirected address, and the redirected address points to a free Internet service;
需要说明的是, 对于步骤 306中的方式一而言, 可以预先在控制管理系 统中配置重定向的地址, 在该控制管理系统确定要对终端设备的 DNS查询请 求进行重定向时, 将该重定向的地址下发给控制执行系统, 进而该控制执行 系统将该重定向的地址下发给终端设备。  It should be noted that, for mode one in step 306, the redirected address may be configured in advance in the control management system, and when the control management system determines to redirect the DNS query request of the terminal device, The directional address is sent to the control execution system, and the control execution system sends the redirected address to the terminal device.
对于步骤 306中的方式二而言, 可以在控制执行系统中预先配置的重定 向的地址, 在该控制执行系统接收到控制管理系统返回的携带用于指示该控 制执行系统对该终端设备的 DNS查询请求执行重定向的信息的响应消息时, 将该预先配置的重定向的地址下发给终端设备。  For the second mode in step 306, the redirected address that can be pre-configured in the control execution system is received, and the control execution system receives the bearer returned by the control management system for indicating the control execution system to the terminal device. The queried address of the pre-configured redirected address is sent to the terminal device.
步骤 308、 该终端设备根据该指向免费的互联网业务的重定向的地址, 与提供免费的互联网业务的服务器建立连接。  Step 308: The terminal device establishes a connection with a server that provides free Internet service according to the redirected address pointing to the free Internet service.
在本发明实施例中,控制管理系统在终端设备的用户余额信息为欠费或 余额不足, 以及该终端设备访问的互联网业务为计费业务时, 确定将该终端 设备的 DNS访问请求重定向到免费的互联网业务, 使得用户在该终端设备在 欠费的情况下, 可以访问免费的互联网业务, 提供给了用户灵活的业务访问 方式, 进而提高了用户体验, 此外, 同时避免用户在终端设备的余额不足的 情况下访问计费业务, 产生欠费, 对运营商的收益造成损失, 为保障运营商 的运营安全提供了灵活的方式。  In the embodiment of the present invention, when the user balance information of the terminal device is arrears or insufficient balance, and the Internet service accessed by the terminal device is a charging service, the control management system determines to redirect the DNS access request of the terminal device to The free Internet service enables users to access free Internet services while the terminal device is in arrears, providing users with flexible service access methods, thereby improving the user experience and, in addition, avoiding users in the terminal devices. When the balance is insufficient, access to the billing service will result in arrears, which will cause losses to the operator's revenue, and provide a flexible way to ensure the operator's operational security.
进一步的, 基于上述实施例, 重定向的地址可以是一个免费的导航 Web 服务器的地址, 该导航 Web服务器可以由运营商提供, 该导航 Web服务器可以 提供多个免费的互联网业务的接口, 以便于用户根据兴趣选择互联网业务, 如图 5所示, 该方法包括: Further, based on the foregoing embodiment, the redirected address may be an address of a free navigation web server, and the navigation web server may be provided by an operator, and the navigation web server may Provides multiple free Internet service interfaces, so that users can select Internet services according to their interests. As shown in Figure 5, the method includes:
步骤 401、 终端设备接收到控制执行系统返回 DNS查询响应消息, 其中, 该 DNS查询响应消息中携带重定向的地址, 该重定的地址为导航 Web服务器的 地址;  Step 401: The terminal device receives, by the control execution system, a DNS query response message, where the DNS query response message carries a redirected address, where the re-addressed address is an address of the navigation web server.
步骤 402、 该终端设备向该控制执行系统发送 HTTP请求消息, 该 HTTP请 求消息中携带该终端设备访问的互联网业务的统一资源定位符 ( Uniform Universa l Resource Locator, URL ) ;  Step 402: The terminal device sends an HTTP request message to the control execution system, where the HTTP request message carries a Uniform Universa Resource Locator (URL) of the Internet service accessed by the terminal device;
步骤 403、 该控制执行系统将该 HTTP请求消息转发给该导航 Web服务器; 步骤 404、该导航 Web服务器根据该 HTTP请求消息中携带的互联网业务的 Step 403: The control execution system forwards the HTTP request message to the navigation web server. Step 404: The navigation web server according to the Internet service carried in the HTTP request message
URL判断该终端设备访问互联网业务的是页面类请求业务还是非页面类请求 业务,如果是页面类请求,则执行步骤 405至步骤 407;如果是非页面类请求, 则执行步骤 408至步骤 409; The URL determines whether the terminal device accesses the Internet service is a page type request service or a non-page type request service, if it is a page type request, step 405 to step 407; if it is a non-page type request, step 408 to step 409;
其中, 导航 Web服务器可以根据该 HTTP请求消息中携带的互联网业务的 URL判断该终端设备访问的互联网业务的是页面类请求业务还是非页面类请 求业务。 例如, 页面类请求的 URL包含超文本标记语言 (Hyper text Marked Language, HTLM ) 标识; 图片类请求的 URL会包含联合图像专家组 ( Joint Photographic Exper t s Group , JPG ) 标识或图像互换格式 (Graphics Interchange Format , GIF) 标识;视频类请求的 URL会包含 FLV( f lash v ideo ) 标识; 因此, 导航 Web服务器可以通过 URL中的上述标识确定终端设备的访问 的互联网业务的是页面类请求业务还是非页面类请求业务。  The navigation web server can determine, according to the URL of the Internet service carried in the HTTP request message, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service. For example, the URL of the page class request contains a Hypertext Marked Language (HTLM) identifier; the URL of the image class request may include a Joint Photographic Exper ts Group (JPG) logo or an image interchange format (Graphics) Interchange Format (GIF) identifier; the URL of the video request will contain the FLV (f lash v ideo ) identifier; therefore, the navigation web server can determine whether the Internet service of the terminal device access is the page type request service or the above identifier in the URL. Non-page class request service.
步骤 405、 该导航 Web服务器向该控制执行系统返回 302HTTP重定向响应 消息, 其中, 该 302HTTP重定向响应消息中携带免费充值页面的地址; 步骤 406、 该控制执行系统向该终端设备转发该 302HTTP重定向响应消 息; Step 405: The navigation web server returns a 302 HTTP redirect response to the control execution system. a message, where the 302 HTTP redirect response message carries the address of the free recharge page; Step 406: The control execution system forwards the 302 HTTP redirect response message to the terminal device;
步骤 407、该终端设备根据该 302HTTP重定向响应消息中携带的免费的充 值页面的地址, 与该充值页面的地址指向的服务器建立连接。  Step 407: The terminal device establishes a connection with the server pointed to by the address of the refill page according to the address of the free recharge page carried in the 302 HTTP redirect response message.
需要说明的是, 当终端设备的用户余额信息为欠费或余额不足, 且访问 的互联网业务为计费业务时, 控制执行系统将该终端设备的 DNS访问请求重 定向到导航 Web服务器, 当该终端设备访问的互联网业务为页面类请求业务 时, 该导航 Web服务器将该终端设备的访问请求重定向到免费的充值页面, 使得用户在欠费或余额不足的情况下,可以进行在线充值,提高了用户体验。  It should be noted that, when the user balance information of the terminal device is arrears or the balance is insufficient, and the accessed Internet service is a charging service, the control execution system redirects the DNS access request of the terminal device to the navigation web server, when When the Internet service accessed by the terminal device requests the service from the page class, the navigation web server redirects the access request of the terminal device to the free recharge page, so that the user can perform online recharge and increase the amount of the arrears or insufficient balance. The user experience.
步骤 408、该导航 Web服务器向该控制执行系统下发 HTTP访问失败响应消 息, 其中, 该 HTTP访问失败响应消息中携带了用于提醒该终端设备的用户及 时充值的信息;  Step 408: The navigation web server sends an HTTP access failure response message to the control execution system, where the HTTP access failure response message carries information for prompting the user of the terminal device to recharge in time;
步骤 409、该控制执行系统向该终端设备转发该 HTTP访问失败响应消息。 具体的, 该终端设备在接收到该 HTTP访问失败响应消息后, 从该 HTTP访 问失败响应消息中解析到用于提醒该终端设备的用户及时充值的信息, 并显 示给用户, 以便于提醒用户及时进行充值。  Step 409: The control execution system forwards the HTTP access failure response message to the terminal device. Specifically, after receiving the HTTP access failure response message, the terminal device parses the information for prompting the user of the terminal device to recharge in time from the HTTP access failure response message, and displays the information to the user, so as to prompt the user to promptly Recharge.
在本发明实施例中, 终端设备的用户余额信息为欠费或余额不足, 且访 问的互联网业务为计费业务时, 控制执行系统将该终端设备的 DNS访问请求 重定向到导航 Web服务器, 当该终端设备访问的互联网业务为非页面类请求 业务时, 该导航 Web服务器阻断该请求, 并向该终端设备返回 HTTP访问失败 响应消息, 该 HTTP访问失败响应消息中携带用于提醒该终端设备的用户及时 充值的信息, 使得用户在访问失败的情况下, 可以知道访问失败的原因, 提 高了用户体验。 In the embodiment of the present invention, when the user balance information of the terminal device is arrears or the balance is insufficient, and the accessed Internet service is a charging service, the control execution system redirects the DNS access request of the terminal device to the navigation web server, when When the Internet service accessed by the terminal device is a non-page type request service, the navigation web server blocks the request, and returns an HTTP access failure response message to the terminal device, where the HTTP access failure response message is carried to remind the terminal device User in time The recharged information enables the user to know the cause of the access failure and improve the user experience in the event of a failed access.
图 6为本发明实施例调整用户访问业务的方法的另一个实施例的流程示 意图,在本发明实施例中, 以终端设备通过 IP访问基于 HTTP的计费的互联 网业务为例, 对本发明的技术方案进行说明, 如图 6所示, 该方法包括: 步骤 501、 终端设备与控制执行系统完成 PDP上下文激活;  FIG. 6 is a schematic flowchart of another embodiment of a method for adjusting a user to access a service according to an embodiment of the present invention. In the embodiment of the present invention, an Internet service for accessing an HTTP-based charging by using a terminal device is taken as an example, and the technology of the present invention is used. The solution is as follows. As shown in FIG. 6, the method includes: Step 501: The terminal device and the control execution system complete PDP context activation.
其中, 终端设备与控制执行系统完成 PDP上下文激活的方式,在步骤 301 中已经说明, 本实施例不再贅述  The manner in which the terminal device and the control execution system complete the PDP context activation is described in step 301, and is not described in this embodiment.
步骤 502、 该终端设备向该控制执行系统发送 HTTP请求消息;  Step 502: The terminal device sends an HTTP request message to the control execution system.
其中, 用户可以在终端设备的浏览器中输入需要访问的互联网业务的 IP 地址, 以触发该终端设备向控制执行系统发送 HTTP请求消息。 其中, 该 HTTP 请求消息中携带有该终端设备要访问的互联网业务页的域名。  The user may input an IP address of the Internet service to be accessed in the browser of the terminal device to trigger the terminal device to send an HTTP request message to the control execution system. The HTTP request message carries the domain name of the Internet service page to be accessed by the terminal device.
步骤 503、 该控制执行系统根据该 HTTP请求消息, 判断该终端设备访问 的互联网业务属于计费业务;  Step 503: The control execution system determines, according to the HTTP request message, that the Internet service accessed by the terminal device belongs to a charging service.
其中, 控制执行系统接收到终端设备发送的 HTTP请求消息后, 解析该 After the control execution system receives the HTTP request message sent by the terminal device, parsing the
HTTP请求消息,得到 HTTP请求消息中携带的该终端设备要访问的互联网业务 的域名, 该控制执行系统可以根据该互联网业务的域名判断该终端设备访问 的该互联网业务是计费业务还是免费业务。 The HTTP request message obtains the domain name of the Internet service to be accessed by the terminal device carried in the HTTP request message, and the control execution system can determine, according to the domain name of the Internet service, whether the Internet service accessed by the terminal device is a charging service or a free service.
需要说明的是,根据互联网业务的域名判断该终端设备访问的该互联网 业务是计费业务还是免费业务的方式在步骤 303中已经说明, 此处不再贅述。  It should be noted that, the method for determining whether the Internet service accessed by the terminal device is a charging service or a free service according to the domain name of the Internet service is described in step 303, and details are not described herein again.
步骤 504、 该控制执行系统向控制管理系统发送计费请求消息, 该计费 请求消息中携带该终端设备的计费标识和用于确定该终端设备访问的互联 网业务属于计费业务的信息; Step 504: The control execution system sends a charging request message to the control management system, where the charging request message carries the charging identifier of the terminal device and the interconnection used to determine the access of the terminal device. The network service belongs to the information of the charging service;
需要说明的是, 在控制执行系统接收到终端设备发送的 HTTP请求消息 时, 从该 HTTP请求消息的头域中解析得到该终端设备的 IP地址, 该控制执行 系统根据该终端设备的 IP地址和该终端设备的计费标识的关联关系, 确定该 终端设备的计费标识,控制执行系统将该计费标识携带在计费请求消息中发 送给控制管理系统。  It should be noted that, when the control execution system receives the HTTP request message sent by the terminal device, the IP address of the terminal device is parsed from the header field of the HTTP request message, and the control execution system is configured according to the IP address of the terminal device. The association relationship between the charging identifiers of the terminal device determines the charging identifier of the terminal device, and the control execution system carries the charging identifier in the charging request message and sends the charging identifier to the control management system.
步骤 505、 该控制管理系统根据该终端设备的计费标识和用于确定该终 端设备访问的互联网业务属于计费业务的信息确定对该终端设备的 HTTP请 求重定向到免费的互联网业务;  Step 505: The control management system determines, according to the charging identifier of the terminal device and the information used to determine that the Internet service accessed by the terminal device belongs to the charging service, that the HTTP request of the terminal device is redirected to a free Internet service.
其中, 免费的互联网业务可以是在线充值业务, 也可以是其它免费的互 联网业务。  Among them, the free Internet service can be an online recharge service or other free Internet services.
具体的,控制管理系统从接收到的计费请求消息中解析得到用户的计费 标识和该终端设备访问的互联网业务属于计费业务的信息,根据该用户的计 费标识查询用户费用数据库, 得到该终端设备的用户余额信息, 根据该该终 端设备的用户余额信息和用于确定该终端设备访问的互联网业务属于计费 业务的信息确定对该终端设备的 HTTP请求重定向到免费的互联网业务,使得 用户在该终端设备在欠费的情况下, 可以访问免费的互联网业务, 提供给了 用户灵活的业务访问方式, 进而提高了用户体验, 同时, 避免用户在终端设 备的用户余额信息为余额不足的情况下访问计费业务, 产生欠费, 对运营商 的收益造成损失, 为保障运营商的运营安全提供了灵活的方式。  Specifically, the control management system parses the charging identifier of the user from the received charging request message, and the information that the Internet service accessed by the terminal device belongs to the charging service, and queries the user fee database according to the charging identifier of the user, and obtains The user balance information of the terminal device determines, according to the user balance information of the terminal device and the information for determining that the Internet service accessed by the terminal device belongs to the charging service, redirecting the HTTP request of the terminal device to the free Internet service, The user can access the free Internet service when the terminal device is in arrears, and provides the user with flexible service access mode, thereby improving the user experience, and at the same time, preventing the user's balance information of the terminal device from being insufficient. In the case of accessing the billing service, arrears are incurred, which causes losses to the operator's revenue, and provides a flexible way to ensure the operator's operational security.
步骤 506、 该控制管理系统向该控制执行系统返回计费响应消息, 其中, 该计费响应消息中携带用于指示该控制执行系统对该终端设备的 HTTP请求 执行重定向的信息; Step 506: The control management system returns an accounting response message to the control execution system, where the charging response message carries an HTTP request for instructing the control execution system to the terminal device. Perform the redirected information;
其中, 需要说明的是, 该计费响应消息中携带用于指示该控制执行系统 对该终端设备的 HTTP请求执行重定向的信息的方式在步骤 306中已经说明, 此处步骤贅述。  It should be noted that the manner in which the charging response message carries information indicating that the control execution system performs redirection of the HTTP request to the terminal device is described in step 306, and the steps are described herein.
步骤 507、 该控制执行系统根据该 HTTP请求消息中携带的该终端设备要 访问的互联网业务页的 URL判断该终端设备访问的互联网业务是页面类请求 业务还是非页面类请求业务, 如果是页面类请求业务, 则执行步骤 508和步 骤 509 ; 如果是非页面类请求业务, 则执行步骤 510;  Step 507: The control execution system determines, according to the URL of the Internet service page that the terminal device is to be accessed in the HTTP request message, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service, if it is a page class. If the service is requested, then step 508 and step 509 are performed; if it is a non-page type request service, step 510 is performed;
其中, 当控制执行系统接收到控制管理系统返回的响应消息后, 根据该 响应消息中携带的用于指示该控制执行系统对该终端设备的 HTTP请求执行 重定向的信息, 获知需要对该终端设备的 HTTP请求执行重定向时, 则该控制 执行系统根据该终端设备发送的 HTTP请求消息中携带的该终端设备要访问 的互联网业务页的 URL判断该终端设备访问的互联网业务是页面类请求业务 还是非页面类请求业务。  After the control execution system receives the response message returned by the control management system, according to the information carried in the response message for instructing the control execution system to perform the redirection of the HTTP request to the terminal device, it is known that the terminal device needs to be When the HTTP request performs the redirection, the control execution system determines, according to the URL of the Internet service page that the terminal device is to be accessed in the HTTP request message sent by the terminal device, whether the Internet service accessed by the terminal device is a page type request service or Non-page class request service.
需要说明的是,控制执行系统可以根据该 HTTP请求消息中携带的互联网 业务的 URL判断该终端设备访问的互联网业务的是页面类请求业务还是非页 面类请求业务。 例如, 页面类请求的 URL包含 HTLM标识; 图片类请求的 URL会 包含 JPG或 GIF标识; 视频类请求的 URL会包含 FLV标识; 因此, 控制执行系统 可以通过 URL中的上述标识确定终端设备的访问的互联网业务的是页面类请 求业务还是非页面类请求业务。  It should be noted that the control execution system may determine, according to the URL of the Internet service carried in the HTTP request message, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service. For example, the URL of the page class request contains the HTLM identifier; the URL of the picture class request may include the JPG or GIF identifier; the URL of the video class request may include the FLV identifier; therefore, the control execution system may determine the access of the terminal device by using the above identifier in the URL. Whether the Internet service is a page type request service or a non-page type request service.
步骤 508、 该控制执行系统向该终端设备返回 302HTTP重定向响应消息, 其中, 该 302HTTP重定向响应消息中携带免费的 Web页面的地址; 需要说明的是, 免费的 Web页面的地址可以是免费的充值页面的地址, 也可以是其它免费的页面的地址。 Step 508: The control execution system returns a 302 HTTP redirect response message to the terminal device, where the 302 HTTP redirect response message carries the address of the free web page. It should be noted that the address of the free web page can be the address of the free recharge page, or the address of other free pages.
若免费的 Web页面的地址是免费的充值页面的地址, 可以使得当终端设 备的用户余额信息为余额不足或欠费, 且访问的互联网业务为计费业务时, 控制执行系统将该终端设备的 HTTP请求重定向到免费的充值页面,使得用户 在余额不足或欠费的情况下, 可以进行在线充值, 提高了用户体验。  If the address of the free web page is the address of the free recharge page, when the user balance information of the terminal device is insufficient or arrears, and the accessed Internet service is a billing service, the control execution system controls the terminal device. HTTP requests are redirected to a free recharge page, allowing users to recharge online with insufficient balance or arrears, improving the user experience.
步骤 509、 该终端设备根据该免费的 Web页面的地址, 与该免费的 Web页 面的地址指向的服务器建立连接。  Step 509: The terminal device establishes a connection with a server pointed to by the address of the free web page according to the address of the free web page.
在本发明实施例中,控制管理系统在终端设备的用户余额信息为欠费或 余额不足, 以及该终端设备访问的互联网业务为计费业务时, 控制执行系统 根据该终端设备访问的互联网业务是页面类请求业务, 确定将该终端设备的 HTTP请求重定向到免费的 Web页面,使得用户在该终端设备在欠费的情况下, 可以访问免费的互联网业务, 提供给了用户灵活的业务访问方式, 进而提高 了用户体验, 同时, 避免用户在终端设备的用户余额信息为余额不足的情况 下访问计费业务, 产生欠费, 对运营商的收益造成损失, 为保障运营商的运 营安全提供了灵活的方式。 此外, 在终端设备访问的互联网业务是页面类请 求业务时, 才将该终端设备的 HTTP请求重定向到免费的 Web页面, 避免在终 端设备访问的互联网业务是非页面类请求业务时, 向该终端设备返回 Web页 面, 该终端设备不能识别该 Web页面的问题。  In the embodiment of the present invention, when the user balance information of the terminal device is arrears or the balance is insufficient, and the Internet service accessed by the terminal device is a charging service, the Internet service that the control execution system accesses according to the terminal device is The page class requests the service, and determines that the HTTP request of the terminal device is redirected to the free web page, so that the user can access the free Internet service when the terminal device is in arrears, and provides the user with flexible service access mode. In addition, the user experience is improved, and at the same time, the user is prevented from accessing the charging service when the user balance information of the terminal device is insufficient, resulting in arrears, causing loss to the operator's revenue, and providing security for the operator's operation. Flexible way. In addition, when the Internet service accessed by the terminal device is a page type request service, the HTTP request of the terminal device is redirected to the free web page, so as to prevent the Internet service accessed by the terminal device from being a non-page type request service, The device returns to the web page, and the terminal device cannot recognize the problem of the web page.
步骤 51 0、 该控制执行系统向该终端设备返回 HTTP访问失败响应消息, 其中, 该 HTTP访问失败响应消息中携带了用于提醒该终端设备的用户及时充 值的信息。 具体的, 该终端设备在接收到该 HTTP访问失败响应消息后, 从该 HTTP访 问失败响应消息中解析到用于提醒该终端设备的用户及时充值的信息, 并显 示给用户, 以便于提醒用户及时进行充值。 Step 51: The control execution system returns an HTTP access failure response message to the terminal device, where the HTTP access failure response message carries information for prompting the user of the terminal device to recharge in time. Specifically, after receiving the HTTP access failure response message, the terminal device parses the information for prompting the user of the terminal device to recharge in time from the HTTP access failure response message, and displays the information to the user, so as to prompt the user to promptly Recharge.
在终端设备访问的互联网业务是非页面类请求业务时, 将该终端设备的 HTTP请求阻断, 并向该终端设备返回 HTTP访问失败响应消息, 该 HTTP访问失 败响应消息中携带用于提醒该终端设备的用户进行及时充值的信息,使得用 户在访问失败的情况下, 可以知道访问失败的原因, 提高了用户体验。  When the Internet service accessed by the terminal device is a non-page type request service, the HTTP request of the terminal device is blocked, and an HTTP access failure response message is returned to the terminal device, where the HTTP access failure response message is carried in the terminal device for reminding the terminal device The user recharges the information in time, so that when the access fails, the user can know the reason for the access failure and improve the user experience.
图 7为本发明实施例调整用户访问业务的方法的另一个实施例的流程示 意图,在本发明实施例中, 以终端设备的用户余额信息为欠费或余额不足时, 通过域名访问基于 HTTP的免费的互联网业务为例, 对本发明的技术方案进 行说明, 如图 7所示, 该方法包括:  FIG. 7 is a schematic flowchart of another embodiment of a method for adjusting a user access service according to an embodiment of the present invention. In the embodiment of the present invention, when the user balance information of the terminal device is arrears or the balance is insufficient, the domain name is accessed based on HTTP. The free Internet service is taken as an example to describe the technical solution of the present invention. As shown in FIG. 7, the method includes:
步骤 601、终端设备与控制执行系统完成分组数据协议 PDP上下文激活; 其中, 终端设备与控制执行系统完成 PDP上下文激活的方式,在步骤 301 中已经说明, 本实施例不再贅述  Step 601: The terminal device and the control execution system complete the packet data protocol PDP context activation. The manner in which the terminal device and the control execution system complete the PDP context activation is described in step 301, and is not described in this embodiment.
步骤 602、 该终端设备向控制执行系统发送 DNS查询请求消息; 步骤 603、 该控制执行系统根据该 DNS查询请求消息, 判断该终端设备访 问的互联网业务属于免费业务;  Step 602: The terminal device sends a DNS query request message to the control execution system. Step 603: The control execution system determines, according to the DNS query request message, that the Internet service accessed by the terminal device belongs to a free service.
其中, 该控制执行系统根据该 DNS查询请求消息, 判断该终端设备访问 的互联网业务属于免费业务还是计费业务的方式,在步骤 303中已经说明, 本
Figure imgf000026_0001
The control execution system determines, according to the DNS query request message, a manner in which the Internet service accessed by the terminal device belongs to a free service or a charging service, and has been described in step 303.
Figure imgf000026_0001
步骤 604、 该控制执行系统向控制管理系统发送计费请求消息, 该计费 请求消息中携带该终端设备的计费标识和用于确定该终端设备访问的互联 网业务属于免费业务的信息; Step 604: The control execution system sends a charging request message to the control management system, where the charging request message carries the charging identifier of the terminal device and the interconnection used to determine the access of the terminal device. The network service belongs to the free service information;
步骤 605、 该控制管理系统根据该终端设备的计费标识和用于确定该终 端设备访问的互联网业务属于免费业务的信息, 确定对该终端设备的 DNS查 询请求不重定向到免费的互联网业务;  Step 605: The control management system determines, according to the charging identifier of the terminal device and the information that the Internet service accessed by the terminal device belongs to the free service, that the DNS query request for the terminal device is not redirected to the free Internet service;
需要说明的是, 由于终端设备在访问免费的互联网业务的情况下, 无论 终端设备的用户余额信息的情况如何, 都不会产生费用, 因此, 不需要将该 终端设备的 DNS查询请求重定向到免费的互联网业务。  It should be noted that, because the terminal device accesses the free Internet service, no matter the situation of the user balance information of the terminal device, no fee is generated. Therefore, the DNS query request of the terminal device does not need to be redirected to Free internet business.
步骤 606、 该控制管理系统向该控制执行系统返回计费响应消息, 其中, 该计费响应消息中携带该终端设备的用户余额信息;  Step 606: The control management system returns an accounting response message to the control execution system, where the charging response message carries user balance information of the terminal device.
步骤 607、 该控制执行系统将该终端设备的 DNS查询请求消息转发给 DNS 服务器;  Step 607: The control execution system forwards the DNS query request message of the terminal device to the DNS server.
其中, 当该控制管理系统向该控制执行系统返回的计费响应消息中没有 携带重定向的信息时, 该控制执行系统将该终端设备发送的 DNS查询请求消 息转发给对应的 DNS服务器。  The control execution system forwards the DNS query request message sent by the terminal device to the corresponding DNS server when the control response system does not carry the redirected information in the charging response message returned by the control management system.
步骤 608、 DNS服务器将向该控制执行系统返回 DNS查询响应消息; 其中, 该 DNS服务器根据该 DNS查询响应消息中携带的终端设备访问的互 联网业务的域名进行 DNS解析, 得到该互联网业务的域名对应的 IP地址, 将 该 I P地址携带在 DNS查询响应消息中返回给控制执行系统。  Step 608: The DNS server returns a DNS query response message to the control execution system. The DNS server performs DNS resolution according to the domain name of the Internet service accessed by the terminal device carried in the DNS query response message, and obtains the domain name corresponding to the Internet service. The IP address, which is carried in the DNS query response message, is returned to the control execution system.
步骤 609、 该控制执行系统向该终端设备返回 DNS查询响应消息; 步骤 610、该终端设备根据该 DNS查询响应消息中携带的 IP地址向该控制 执行系统发送 HTTP请求消息;  Step 609: The control execution system returns a DNS query response message to the terminal device. Step 610: The terminal device sends an HTTP request message to the control execution system according to the IP address carried in the DNS query response message.
步骤 611、该控制执行系统将该 HTTP请求消息转发给该 IP地址对应的 Web 服务器; Step 611: The control execution system forwards the HTTP request message to the web corresponding to the IP address. server;
在本发明实施例中, Web服务器提供用于终端设备访问的互联网业务信 息。  In an embodiment of the invention, the web server provides internet service information for access by the terminal device.
步骤 612、 该 Web服务器向该控制执行系统返回 HTTP响应消息; 步骤 61 3、 该控制执行系统根据该 HTTP响应消息中携带的该终端设备访 问的互联网业务的 URL判断该终端设备访问的互联网业务是页面类请求业务 还是非页面类请求业务; 若是页面类请求业务, 则执行步骤 614和步骤 615 ; 若是非页面类请求业务, 则执行步骤 616 ;  Step 612: The web server returns an HTTP response message to the control execution system. Step 6: The control execution system determines, according to the URL of the Internet service accessed by the terminal device that is carried in the HTTP response message, that the Internet service accessed by the terminal device is The page class request service is still a non-page class request service; if it is a page class request service, step 614 and step 615 are performed; if it is a non-page class request service, step 616 is performed;
需要说明的是,控制执行系统根据该 HTTP响应消息中携带的该终端设备 访问的互联网业务的 URL判断该终端设备访问的互联网业务是页面类请求业 务还是非页面类请求业务的方式在步骤 404中已经说明, 此处不再贅述。  It is to be noted that the control execution system determines, according to the URL of the Internet service accessed by the terminal device that is carried in the HTTP response message, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service. It has already been explained and will not be described here.
步骤 614、 该控制执行系统在该 HTTP响应消息中携带用于提醒该终端设 备的用户及时充值的信息;  Step 614: The control execution system carries, in the HTTP response message, information for prompting the user of the terminal device to recharge in time;
步骤 615、 该控制执行系统将 HTTP响应消息返回给终端设备。  Step 615: The control execution system returns an HTTP response message to the terminal device.
具体的, 该终端设备在接收到该 HTTP访问失败响应消息后, 从该 HTTP访 问失败响应消息中解析到用于提醒该终端设备的用户及时充值的信息, 并显 示在屏幕上, 以便于提醒用户及时进行充值。  Specifically, after receiving the HTTP access failure response message, the terminal device parses the information for prompting the user of the terminal device to recharge in time from the HTTP access failure response message, and displays the information on the screen, so as to remind the user. Recharge in time.
步骤 616、 该控制执行系统向所述终端设备返回访问失败响应消息, 所 述访问失败响应消息中携带用于提醒该终端设备的用户及时充值的信息, 以 使得所述终端设备将所述及时充值的信息显示在屏幕上。  Step 616: The control execution system returns an access failure response message to the terminal device, where the access failure response message carries information for prompting the user of the terminal device to recharge in time, so that the terminal device recharges the time in time. The information is displayed on the screen.
在本发明实施例中, 当终端设备的用户余额信息为余额不足或欠费, 且 访问的互联网业务为免费业务时, 对该终端设备发送的 DNS查询请求不进行 重定向,但该控制执行系统在该 HTTP响应消息中携带用于提醒该终端设备的 用户及时充值的信息, 提醒用户及时进行充值, 避免影响用户访问计费的互 联网业务的使用, 提高了用户体验。 In the embodiment of the present invention, when the user balance information of the terminal device is insufficient or arrears, and the accessed Internet service is a free service, the DNS query request sent by the terminal device is not performed. Redirecting, but the control execution system carries information for prompting the user of the terminal device to recharge in time in the HTTP response message, prompting the user to perform recharging in time, avoiding the use of the Internet service that affects the user accessing the billing, and improving the user experience. .
图 8为本发明实施例调整用户访问业务的方法的另一个实施例的流程示 意图,在本发明实施例中, 以终端设备的用户余额信息为欠费或余额不足时, 通过 IP访问基于 HTTP的免费的互联网业务为例, 对本发明的技术方案进行 说明, 如图 8所示, 该方法包括:  FIG. 8 is a schematic flowchart of another embodiment of a method for adjusting a user to access a service according to an embodiment of the present invention. In the embodiment of the present invention, when the user balance information of the terminal device is arrears or the balance is insufficient, the HTTP access is performed through IP. The free Internet service is taken as an example to describe the technical solution of the present invention. As shown in FIG. 8, the method includes:
步骤 701、终端设备与控制执行系统完成分组数据协议 PDP上下文激活; 其中, 终端设备与控制执行系统完成 PDP上下文激活的方式,在步骤 301 中已经说明, 本实施例不再贅述。  Step 701: The terminal device and the control execution system complete the packet data protocol PDP context activation. The manner in which the terminal device and the control execution system complete the PDP context activation is described in step 301, and is not described in this embodiment.
步骤 702、 该终端设备向该控制执行系统发送 HTTP请求消息;  Step 702: The terminal device sends an HTTP request message to the control execution system.
其中, 终端设备向控制执行系统发送 HTTP请求消息的方式,在步骤 502中 已经说明, 本实施例不再贅述。  The manner in which the terminal device sends an HTTP request message to the control execution system is described in step 502, and is not described in this embodiment.
步骤 703、 该控制执行系统根据该 HTTP请求消息, 判断该终端设备访问 的互联网业务属于免费业务;  Step 703: The control execution system determines, according to the HTTP request message, that the Internet service accessed by the terminal device belongs to a free service.
其中, 该该控制执行系统根据该 HTTP请求消息, 判断该终端设备访问的 互联网业务属于免费业务还是计费业务的方式,在步骤 503中已经说明, 本实 施例不再贅述。  The control execution system determines, according to the HTTP request message, the manner in which the Internet service accessed by the terminal device belongs to the free service or the charging service, which has been described in step 503, and is not described in detail in this embodiment.
步骤 704、 该控制执行系统向控制管理系统发送计费请求消息, 该计费 请求消息中携带该终端设备的计费标识和用于确定该终端设备访问的互联 网业务属于免费业务的信息;  Step 704: The control execution system sends a charging request message to the control management system, where the charging request message carries the charging identifier of the terminal device and information for determining that the Internet service accessed by the terminal device belongs to the free service.
步骤 705、 控制管理系统根据该计费请求消息中携带的终端设备的计费 标识确定该终端设备的用户余额信息; Step 705: The control management system performs charging according to the terminal device carried in the charging request message. Identifying user balance information of the terminal device;
其中,控制管理系统根据该计费请求消息中携带的终端设备的计费标识 确定该终端设备的用户余额信息的方式,在步骤 605中已经说明, 本实施例不 再赘述。  The manner in which the control management system determines the user balance information of the terminal device according to the charging identifier of the terminal device carried in the charging request message is described in step 605, and is not described in this embodiment.
步骤 706、 该控制管理系统根据该计费请求消息中携带的用于确定该终 端设备访问的互联网业务属于免费业务的信息, 确定对该终端设备的 HTTP请 求不进行重定向;  Step 706: The control management system determines that the HTTP request of the terminal device is not redirected according to the information that is used by the charging request message to determine that the Internet service accessed by the terminal device belongs to the free service.
需要说明的是, 由于终端设备在访问免费的互联网业务的情况下, 无论 终端设备的用户余额信息的情况如何, 都不会产生费用, 因此, 不需要将该 终端设备的 HTTP请求重定向到免费的互联网业务。  It should be noted that, because the terminal device accesses the free Internet service, no matter the situation of the user balance information of the terminal device, no fee is generated. Therefore, the HTTP request of the terminal device does not need to be redirected to the free service. Internet business.
步骤 707、 该控制管理系统向该控制执行系统返回计费响应消息, 其中, 该计费响应消息中携带该终端设备的用户余额信息;  Step 707: The control management system returns an accounting response message to the control execution system, where the charging response message carries user balance information of the terminal device.
步骤 708、 该控制执行系统将该 HTTP请求消息转发给对应 Web服务器; 在本发明实施例中, Web服务器提供用于终端设备访问的互联网业务信 息。  Step 708: The control execution system forwards the HTTP request message to the corresponding web server. In the embodiment of the present invention, the web server provides Internet service information for accessing the terminal device.
其中, 当该控制管理系统向该控制执行系统返回的计费响应消息中没有 携带重定向的信息时, 该控制执行系统将该终端设备发送的 HTTP请求消息转 发给 Web服务器。  When the control management system does not carry the redirected information in the charging response message returned by the control execution system, the control execution system forwards the HTTP request message sent by the terminal device to the web server.
步骤 709、 该 Web服务器向该控制执行系统返回 HTTP响应消息;  Step 709: The web server returns an HTTP response message to the control execution system.
步骤 71 0、 该控制执行系统根据该 HTTP响应消息携带的该终端设备访问 的互联网业务的 URL判断该终端设备访问的互联网业务是页面类请求业务还 是非页面类请求业务, 若是页面类请求业务, 则执行步骤 71 1和步骤 71 2 ; 若 是非页面类请求业务, 则执行步骤 71 3 ; Step 71: The control execution system determines, according to the URL of the Internet service accessed by the terminal device that is carried by the terminal device, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service, and if the page type requests the service, Then perform step 71 1 and step 71 2 ; If the page is a non-page request service, step 71 3 is performed;
需要说明的是,控制执行系统根据该 HTTP响应消息中携带的该终端设备 访问的互联网业务的 URL判断该终端设备访问的互联网业务是页面类请求业 务还是非页面类请求业务的方式在步骤 404中已经说明, 此处不再贅述。  It is to be noted that the control execution system determines, according to the URL of the Internet service accessed by the terminal device that is carried in the HTTP response message, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service. It has already been explained and will not be described here.
步骤 71 1、 该控制执行系统在该 HTTP响应消息中携带用于提醒该终端设 备的用户及时充值的信息;  Step 71: The control execution system carries information for prompting the user of the terminal device to recharge in time in the HTTP response message;
步骤 712、 该控制执行系统将该 HTTP响应消息返回给该终端设备。  Step 712: The control execution system returns the HTTP response message to the terminal device.
具体的, 该终端设备在接收到该 HTTP访问失败响应消息后, 从该 HTTP访 问失败响应消息中解析到该及时充值的信息, 并显示在屏幕上, 用于提醒用 户及时进行充值。  Specifically, after receiving the HTTP access failure response message, the terminal device parses the timely refilling information from the HTTP access failure response message, and displays the information on the screen to remind the user to perform recharging in time.
步骤 71 3、 该控制执行系统向所述终端设备返回访问失败响应消息, 所 述访问失败响应消息中携带用于提醒该终端设备的用户及时充值的信息, 以 使得所述终端设备将所述及时充值的信息显示在屏幕上。  Step 71: The control execution system returns an access failure response message to the terminal device, where the access failure response message carries information for prompting the user of the terminal device to recharge in time, so that the terminal device will timely The recharged information is displayed on the screen.
在本发明实施例中, 当终端设备的用户余额信息为余额不足或欠费, 且 访问的互联网业务为免费业务时, 对该终端设备发送的 HTTP请求不进行重定 向, 若该终端设备访问的互联网业务为页面类请求业务时, 该控制执行系统 在该 HTTP响应消息中携带用于提醒该终端设备的用户进行及时充值的信息, 使得用户能够及时的进行充值, 避免影响用户的使用, 提高了用户体验。  In the embodiment of the present invention, when the user balance information of the terminal device is insufficient or arrears, and the accessed Internet service is a free service, the HTTP request sent by the terminal device is not redirected, if the terminal device accesses When the Internet service requests a service for the page type, the control execution system carries information for prompting the user of the terminal device to perform timely recharge in the HTTP response message, so that the user can perform recharge in time, thereby avoiding affecting the user's use, and improving the user experience.
基于上述实施例, 其中, 若该计费控制服务器接收到访问请求是访问基 于非 HTTP的互联网业务的访问请求, 该计费控制服务器可以直接阻断该访问 请求, 并返回给该终端设备访问失败的响应消息, 其中, 当该终端设备的用 户余额信息为余额不足或欠费时, 该响应消息中可以携带用于提醒该终端设 备的用户及时充值的信息。 Based on the foregoing embodiment, if the charging control server receives the access request as an access request for accessing the non-HTTP based Internet service, the charging control server may directly block the access request and return the access to the terminal device. The response message, wherein, when the user balance information of the terminal device is insufficient or arrears, the response message may be carried to remind the terminal to set The user's timely recharge information.
图 9为本发明实施例控制管理装置的一个结构示意图, 如图 9所示, 该控 制管理装置 90包括: 接收模块 901 , 余额确定模块 902 , 计费确定模块 903、 重定向确定模块 904和发送模块 905。  FIG. 9 is a schematic structural diagram of a control management apparatus according to an embodiment of the present invention. As shown in FIG. 9, the control management apparatus 90 includes: a receiving module 901, a balance determining module 902, a charging determining module 903, a redirection determining module 904, and a sending Module 905.
接收模块 901用于接收控制执行系统发送的对终端设备进行计费的请 求消息, 所述请求消息中携带所述终端设备的计费标识和用于确定所述终端 设备访问的互联网业务是否需要计费的信息;  The receiving module 901 is configured to receive, by the control execution system, a request message for charging the terminal device, where the request message carries the charging identifier of the terminal device and determines whether the Internet service accessed by the terminal device needs to be calculated. Fee information;
余额确定模块 902用于根据所述接收模块 901接收的所述终端设备的计 费标识确定所述终端设备的用户余额信息;  The balance determining module 902 is configured to determine user balance information of the terminal device according to the charging identifier of the terminal device received by the receiving module 901;
计费确定模块 903用于当所述余额确定模块 902确定所述终端设备的用 户余额信息为欠费或余额不足时,根据所述接收模块 901接收的所述用于确 定所述终端设备访问的互联网业务是否需要计费的信息确定所述终端设备 访问的互联网业务是否需要计费;  The charging determining module 903 is configured to: when the balance determining module 902 determines that the user balance information of the terminal device is arrears or the balance is insufficient, according to the receiving, by the receiving module 901, determining the terminal device access Whether the Internet service requires charging information determines whether the Internet service accessed by the terminal device needs to be charged;
重定向确定模块 904用于当所述计费确定模块 903确定所述终端设备访 问的互联网业务需要计费时, 确定对所述终端设备的访问请求需要进行重定 向;  The redirection determining module 904 is configured to: when the charging determining module 903 determines that the Internet service accessed by the terminal device requires charging, determine that the access request to the terminal device needs to be redirected;
发送模块 905用于根据所述重定向确定模块 904确定的需要重定向的结 果,向所述控制执行系统返回计费响应消息, 以使得所述控制执行系统根据 所述计费响应消息对所述终端设备的访问请求进行处理。  The sending module 905 is configured to return an accounting response message to the control execution system according to the result of the redirection determined by the redirection determining module 904, so that the control execution system performs the charging response message according to the The access request of the terminal device is processed.
在本发明实施例中,控制管理装置确定终端设备的用户余额信息为欠费 或余额不足时, 且当该终端设备访问的互联网业务需要计费时, 确定对该终 端设备的访问请求需要进行重定向, 实现了根据用户的业务资费情况, 对用 户发起的访问业务进行相应调整, 在保证数据业务资费的运营安全的同时, 提高了用户体验。 In the embodiment of the present invention, when the control management device determines that the user balance information of the terminal device is arrears or the balance is insufficient, and when the Internet service accessed by the terminal device needs to be charged, determining that the access request to the terminal device needs to be heavy Orientation, realized according to the user's business tariffs, The user-initiated access service is adjusted accordingly, and the user experience is improved while ensuring the operational security of the data service tariff.
其中, 所述发送模块 905具体用于根据所述重定向确定模块 904确定的需 要重定向的结果, 向所述控制执行系统返回计费响应消息, 所述计费响应消 息中携带重定向的地址, 所述重定向的地址为免费的互联网业务的地址, 以 使得所述控制执行系统根据所述免费的互联网业务的地址将所述终端设备 的访问请求重定向到所述免费的互联网业务的地址指向的互联网业务。  The sending module 905 is specifically configured to: according to the result of the redirection determined by the redirection determining module 904, return an accounting response message to the control execution system, where the charging response message carries the redirected address. And the redirected address is an address of the free internet service, so that the control execution system redirects the access request of the terminal device to the address of the free internet service according to the address of the free internet service. Pointing to the internet business.
当所述终端设备的用户余额信息为欠费或余额不足,且所述终端设备访 问的互联网业务为计费业务时, 确定对所述终端设备的访问请求进行重定向 到免费的互联网业务, 使得用户在该终端设备欠费的情况下, 可以访问免费 网页, 提供给了用户灵活的访问业务, 进而提高了用户体验。  When the user balance information of the terminal device is arrears or the balance is insufficient, and the Internet service accessed by the terminal device is a charging service, determining to redirect the access request of the terminal device to a free Internet service, so that When the terminal device is in arrears, the user can access the free webpage, providing the user with flexible access to the service, thereby improving the user experience.
此外, 所述重定向确定模块 904还用于所述终端设备访问的互联网业务 不需要计费时, 确定对所述终端设备的访问请求不需要进行重定向;  In addition, the redirection determining module 904 is further configured to: when the Internet service accessed by the terminal device does not need to be charged, determining that the access request to the terminal device does not need to be redirected;
所述发送模块 905还用于根据所述重定向确定模块 904确定的不需要重 定向的结果, 向所述控制执行系统返回计费响应消息, 以使得所述控制执行 系统将所述终端设备的访问请求发送到所述访问请求对应的服务器。  The sending module 905 is further configured to: return, according to the result that the redirection determining module 904 determines that the redirection is not required, an accounting response message to the control execution system, so that the control execution system is to use the terminal device The access request is sent to the server corresponding to the access request.
图 10为本发明实施例控制管理装置的另一个结构示意图, 如图 10所示, 包括至少一个处理器 1001 (例如 CPU ) , 至少一个网络接口 1002或者其他通 信接口, 存储器 1003 , 和至少一个通信总线 1004 , 用于实现这些装置之间的 连接通信。 处理器 1 001用于执行存储器 1003中存储的可执行模块, 例如计算 机程序。 存储器 1003可能包含高速随机存取存储器 ( RAM: Random Acces s Memory ) , 也可能还包括非易失 '1 "生存储器 ( non-vo la t i l e memory ) , 例: ¾口 至少一个磁盘存储器。 通过至少一个网络接口 1 002 (可以是有线或者无线) 实现该系统网关与至少一个其他网元之间的通信连接, 可以使用互联网, 广 域网, 本地网, 城域网等。 FIG. 10 is another schematic structural diagram of a control management apparatus according to an embodiment of the present invention. As shown in FIG. 10, at least one processor 1001 (for example, a CPU), at least one network interface 1002 or other communication interface, a memory 1003, and at least one communication are included. Bus 1004 is used to implement connection communication between these devices. The processor 1 001 is configured to execute an executable module, such as a computer program, stored in the memory 1003. The memory 1003 may include a high-speed random access memory (RAM: Random Acces s Memory), and may also include a non-vo la tile memory, for example: 3⁄4 port At least one disk storage. The communication connection between the system gateway and at least one other network element is implemented by at least one network interface 1 002 (which may be wired or wireless), and may use an Internet, a wide area network, a local network, a metropolitan area network, or the like.
在一些实施方式中, 存储器 1003存储了程序指令, 程序指令可以被处理 器 1001执行, 其中, 程序指令包括接收模块 901 , 余额确定模块 902 , 计费确 定模块 903、 重定向确定模块 904和发送模块 905 , 各模块的具体实现参见图 9 所揭示的相应模块, 这里不再贅述。  In some embodiments, the memory 1003 stores program instructions, which may be executed by the processor 1001, wherein the program instructions include a receiving module 901, a balance determining module 902, a charging determining module 903, a redirect determining module 904, and a transmitting module. 905, the specific implementation of each module refers to the corresponding module disclosed in FIG. 9, and details are not described herein again.
图 11为本发明实施例控制执行装置的一个结构示意图, 如图 1 1所示, 该 控制执行装置 110包括: 发送模块 1101 , 接收模块 1102和执行模块 1103。  FIG. 11 is a schematic structural diagram of a control execution apparatus according to an embodiment of the present invention. As shown in FIG. 11, the control execution apparatus 110 includes: a sending module 1101, a receiving module 1102, and an executing module 1103.
发送模块 11 01 , 用于向控制管理系统发送对终端设备进行计费的请求消 息 , 所述请求消息中携带所述终端设备的计费标识和用于确定所述终端设备 访问的互联网业务是否需要计费的信息, 以使得所述控制管理系统根据所述 计费标识确定所述终端设备的用户余额信息, 并当所述终端设备的用户余额 信息为欠费或余额不足时,根据所述用于确定所述终端设备访问的互联网业 务是否需要计费的信息确定所述终端设备访问的互联网业务是否需要计费, 当所述终端设备访问的互联网业务需要计费, 确定对所述终端设备的访问请 求需要进行重定向;  The sending module 11 01 is configured to send, to the control management system, a request message for charging the terminal device, where the request message carries the charging identifier of the terminal device and whether the Internet service used for determining the terminal device needs to be determined. Charging information, so that the control management system determines user balance information of the terminal device according to the charging identifier, and when the user balance information of the terminal device is arrears or the balance is insufficient, according to the use Determining whether the Internet service accessed by the terminal device needs to be charged, determining whether the Internet service accessed by the terminal device needs to be charged, and determining that the Internet service accessed by the terminal device needs to be charged, determining the terminal device Access requests need to be redirected;
接收模块 11 02 , 用于接收所述控制管理系统根据确定的需要重定向的结 果返回的计费响应消息;  The receiving module 11 02 is configured to receive a charging response message returned by the control management system according to the determined result of the required redirection;
执行模块 11 03 , 用于根据所述接收模块接收的计费响应消息对所述终端 设备的访问请求进行处理。  The executing module 11 03 is configured to process an access request of the terminal device according to the charging response message received by the receiving module.
在本发明实施例中,控制执行装置将终端设备的计费标识和用于确定终 端设备访问的互联网业务是否计费的信息上报给控制管理系统, 以使得控制 管理系统确定终端设备的用户余额信息为欠费或余额不足时, 且当该终端设 备访问的互联网业务需要计费, 确定对该终端设备的访问请求需要进行重定 向,控制执行系统根据控制管理系统返回的计费响应消息对终端设备的访问 请求进行处理, 实现了根据用户的业务资费情况, 对用户发起的访问业务进 行相应调整, 在保证业务资费运营安全的同时, 提高了用户体验。 In the embodiment of the present invention, the control execution device uses the charging identifier of the terminal device and determines the final The information about whether the Internet service accessed by the terminal device is billed to the control management system, so that the control management system determines that the user balance information of the terminal device is arrears or the balance is insufficient, and when the Internet service accessed by the terminal device needs to be charged, Determining the access request to the terminal device needs to be redirected, and the control execution system processes the access request of the terminal device according to the charging response message returned by the control management system, and implements the access service initiated by the user according to the service tariff of the user. Corresponding adjustments will improve the user experience while ensuring the operational security of the business tariffs.
其中, 所述接收模块 1102具体用于接收所述控制管理系统根据确定的需 要重定向的结果返回的计费响应消息, 所述计费响应消息中携带重定向的地 址, 所述重定向的地址为免费的互联网业务的地址;  The receiving module 1102 is specifically configured to receive an accounting response message returned by the control management system according to the determined result of the redirection, where the charging response message carries a redirected address, and the redirected address The address of the free internet service;
所述执行模块 1103具体用于向所述终端设备返回所述免费的互联网业 务的地址, 以使得所述终端设备根据所述免费的互联网业务的地址与所述互 联网业务的地址指向的服务器建立连接。  The execution module 1103 is specifically configured to return an address of the free Internet service to the terminal device, so that the terminal device establishes a connection with a server pointed to by an address of the Internet service according to the address of the free Internet service. .
当所述终端设备的用户余额信息为欠费或余额不足,且所述终端设备访 问的互联网业务为计费业务时, 确定对所述终端设备的访问请求进行重定向 到免费的互联网业务, 使得用户在该终端设备欠费的情况下, 可以访问免费 网页, 提供给了用户灵活的访问业务, 进而提高了用户体验。  When the user balance information of the terminal device is arrears or the balance is insufficient, and the Internet service accessed by the terminal device is a charging service, determining to redirect the access request of the terminal device to a free Internet service, so that When the terminal device is in arrears, the user can access the free webpage, providing the user with flexible access to the service, thereby improving the user experience.
此外, 当所述免费的互联网业务的地址为免费的导航 Web服务器的地址 时,  In addition, when the address of the free internet service is the address of the free navigation web server,
所述接收模块 1102还用于接收所述终端设备发送的重定向访问请求消 息, 所述重定向访问请求消息中携带所述终端设备访问的互联网业务的统一 资源定位符;  The receiving module 1102 is further configured to receive a redirected access request message sent by the terminal device, where the redirected access request message carries a uniform resource locator of an Internet service accessed by the terminal device;
所述发送模块 1101还用于将所述重定向访问请求消息转发给所述导航 Web服务器, 以使得所述导航 Web服务器根据所述互联网业务的统一资源定 位符判断所述终端设备访问的互联网业务是页面类请求业务还是非页面类 请求业务; The sending module 1101 is further configured to forward the redirected access request message to the navigation a web server, so that the navigation web server determines, according to the uniform resource locator of the Internet service, whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service;
若是页面类请求业务时,  If the page class requests a service,
所述接收模块 1102还用于接收所述导航 Web服务器返回的重定向访问响 应消息, 所述重定向访问响应消息中携带免费的 Web页面的地址;  The receiving module 1102 is further configured to receive a redirected access response message returned by the navigation web server, where the redirected access response message carries an address of a free web page;
所述发送模块 1101还用于向所述终端设备返回所述重定向访问响应消 息, 以使得所述终端设备根据所述免费的 Web页面的地址与所述 Web页面的地 址指向的服务器建立连接。  The sending module 1101 is further configured to return the redirected access response message to the terminal device, so that the terminal device establishes a connection with a server pointed to by the address of the web page according to the address of the free web page.
此外, 当所述免费的互联网业务的地址为免费的充值网页的地址时, 所述执行模块 1103还用于根据所述终端设备的的访问请求中携带的所 述终端设备访问的互联网业务的统一资源定位符确定所述终端设备访问的 互联网业务是页面类请求业务。  In addition, when the address of the free Internet service is the address of the free recharge page, the execution module 1103 is further configured to: unify the Internet service accessed by the terminal device carried in the access request of the terminal device. The resource locator determines that the Internet service accessed by the terminal device is a page type request service.
通过导航 Web服务器判断终端设备访问的互联网业务是页面类请求业务 还是非页面类请求业务, 在页面类请求业务的情况下返回免费的 Web页面的 地址, 避免了终端设备在请求非页面类请求业务请求时, 返回给该终端设备 免费的 Web页面的地址, 终端设备无法识别该 Web页面的问题。  The navigation web server determines whether the Internet service accessed by the terminal device is a page type request service or a non-page type request service, and returns a free web page address in the case of the page class request service, thereby preventing the terminal device from requesting the non-page type request service. When requested, the address of the web page that is free to the terminal device is returned, and the terminal device cannot recognize the problem of the web page.
图 12为本发明实施例控制执行装置的另一个结构示意图,如图 12所示, 包括至少一个处理器 1201 (例如 CPU ), 至少一个网络接口 1202或者其他通 信接口, 存储器 1203 , 和至少一个通信总线 1204, 用于实现这些装置之间 的连接通信。 处理器 1201用于执行存储器 1203中存储的可执行模块, 例如 计算机程序。存储器 1203可能包含高速随机存取存储器( RAM: Random Access Memory ), 也可能还包括非易失 '1"生存者器 ( non-volati le memory ), 例: ¾口至 少一个磁盘存储器。 通过至少一个网络接口 1202 (可以是有线或者无线)实 现该系统网关与至少一个其他网元之间的通信连接, 可以使用互联网, 广域 网, 本地网, 城域网等。 FIG. 12 is another schematic structural diagram of a control execution apparatus according to an embodiment of the present invention. As shown in FIG. 12, at least one processor 1201 (for example, a CPU), at least one network interface 1202 or other communication interface, a memory 1203, and at least one communication are included. Bus 1204 is used to implement connection communication between these devices. The processor 1201 is configured to execute an executable module, such as a computer program, stored in the memory 1203. The memory 1203 may include a high speed random access memory (RAM: Random Access) Memory ), may also include a non-volati le memory, for example: 3⁄4 port at least one disk storage. The system gateway is implemented by at least one network interface 1202 (which may be wired or wireless) The communication connection with at least one other network element may use the Internet, a wide area network, a local network, a metropolitan area network, and the like.
在一些实施方式中, 存储器 1203存储了程序指令, 程序指令可以被处理 器 1201执行, 其中, 程序指令包括发送模块 1101 , 接收模块 1102和执行模块 1103 , 各模块的具体实现参见图 11所揭示的相应模块, 这里不再贅述。  In some embodiments, the memory 1203 stores program instructions, which may be executed by the processor 1201. The program instructions include a sending module 1101, a receiving module 1102, and an executing module 1103. For specific implementations of the modules, refer to FIG. The corresponding module will not be described here.
图 13为本发明实施例调整用户访问业务的系统的一个结构示意图,如图 13所示, 该调整用户访问业务的系统包括控制执行装置 1300和控制管理装置 1400;  FIG. 13 is a schematic structural diagram of a system for adjusting user access services according to an embodiment of the present invention. As shown in FIG. 13, the system for adjusting user access services includes a control execution device 1300 and a control management device 1400;
其中, 该控制执行装置 1300可以实现图 9和图 10所示的控制执行装置的 功能; 控制管理装置 1400可以实现图 11和图 12所示的控制管理装置的功能。  Here, the control executing means 1300 can realize the functions of the control executing means shown in Figs. 9 and 10; the control managing means 1400 can realize the functions of the control managing means shown in Figs. 11 and 12.
所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 上述 描述的系统、 装置和模块的具体工作过程, 可以参考前述方法实施例中的对 应过程, 在此不再赞述。  It will be apparent to those skilled in the art that, for the convenience and brevity of the description, the specific working processes of the systems, devices, and modules described above may be referred to the corresponding processes in the foregoing method embodiments, and are not described herein.
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的模块、 单元及步骤, 能够以电子硬件、 计算机软件或者二者的结合来 实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能 一般性地描述了各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来 执行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每 个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为 超出本发明的范围。 在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述模块或单元的划分, 仅仅为一种逻辑功能划分, 实际实 现时可以有另外的划分方式, 例如多个单元或模块可以结合或者可以集成到 另一个系统, 或一些特征可以忽略, 或不执行。 另外, 所显示或讨论的相互 之间的耦合或直接耦合或通信连接可以是通过一些接口、 装置、 模块或单元 的间接耦合或通信连接, 也可以是电的, 机械的或其它的形式连接。 Those skilled in the art will appreciate that the modules, units and steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention. In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or modules may be used. Combined or can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device, module or unit, or an electrical, mechanical or other form of connection.
所述作为分离部件说明的模块或单元可以是或者也可以不是物理上分 开的, 作为模块或单元显示的部件可以是或者也可以不是物理模块或单元, 即可以位于一个地方, 或者也可以分布到多个网络模块或单元上。 可以根据 实际的需要选择其中的部分或者全部模块或单元来实现本发明实施例方案 的目的。  The modules or units described as separate components may or may not be physically separated, and the components displayed as modules or units may or may not be physical modules or units, that is, may be located in one place, or may be distributed to On multiple network modules or units. Some or all of the modules or units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另夕卜,在本发明各个实施例中的各功能模块或单元可以集成在一个处理 模块或单元中, 也可以是各个模块或单元单独物理存在, 也可以是两个或两 个以上模块或单元集成在一个模块或单元中。 上述集成的模块或单元既可以 采用硬件的形式实现, 也可以采用软件功能单元的形式实现。  In addition, each functional module or unit in each embodiment of the present invention may be integrated into one processing module or unit, or each module or unit may exist physically separately, or may be two or more modules or units. Integrated in one module or unit. The above integrated modules or units can be implemented in the form of hardware or in the form of software functional units.
所述集成的模块或单元如果以软件功能模块或单元的形式实现并作为 独立的产品销售或使用时, 可以存储在一个计算机可读取存储介质中。 基于 这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分, 或者该技术方案的全部或部分可以软件产品的形式体现出来, 该计算机软件 产品存储在一个存储介质中, 包括若干指令用以使得一台计算机设备 (可以 是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法 的全部或部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 The integrated modules or units, if implemented in the form of software functional modules or units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. Including a number of instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention All or part of the steps. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, and a read only memory.
( ROM, Read-On ly Memory )、随机存取存储器( RAM, Random Acces s Memory )、 磁碟或者光盘等各种可以存储程序代码的介质。 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到各种等效的修改或替换, 这些修改或替换都应涵盖在本发明的保护范围 之内。 因此, 本发明的保护范围应以权利要求的保护范围为准。 (ROM, Read-Only ly Memory), random access memory (RAM, Random Acces s Memory), disk or optical disk, and other media that can store program code. The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 Rights request
1、 一种调整用户访问业务的方法, 其特征在于, 包括: 1. A method for adjusting user access services, which is characterized by including:
接收控制执行系统发送的对终端设备进行计费的请求消息, 所述请求 消息中携带所述终端设备的计费标识和用于确定所述终端设备访问的互联 网业务是否需要计费的信息; Receive a request message for charging the terminal device sent by the control execution system, where the request message carries the charging identification of the terminal device and information used to determine whether the Internet service accessed by the terminal device requires charging;
根据所述计费标识确定所述终端设备的用户余额信息; Determine the user balance information of the terminal device according to the charging identification;
当所述终端设备的用户余额信息为欠费或余额不足时,根据所述用于确 定所述终端设备访问的互联网业务是否需要计费的信息确定所述终端设备 访问的互联网业务是否需要计费; When the user balance information of the terminal device is in arrears or insufficient balance, determine whether the Internet service accessed by the terminal device requires charging according to the information used to determine whether the Internet service accessed by the terminal device requires charging. ;
当所述终端设备访问的互联网业务需要计费,确定对所述终端设备的访 问请求需要进行重定向; When the Internet service accessed by the terminal device requires charging, it is determined that the access request to the terminal device needs to be redirected;
根据确定的需要重定向的结果,向所述控制执行系统返回计费响应消 息, 以使得所述控制执行系统根据所述计费响应消息对所述终端设备的访问 请求进行处理。 According to the determined result that redirection is required, a charging response message is returned to the control execution system, so that the control execution system processes the access request of the terminal device according to the charging response message.
2、 根据权利要求 1 所述的方法, 其特征在于, 所述根据确定的需要重 定向的结果,向所述控制执行系统返回计费响应消息, 以使得所述控制执行 系统根据所述计费响应消息对所述终端设备的访问请求进行处理, 包括: 根据确定的需要重定向的结果,向所述控制执行系统返回计费响应消 息, 所述计费响应消息中携带重定向的地址, 所述重定向的地址为免费的互 联网业务的地址, 以使得所述控制执行系统根据所述免费的互联网业务的地 址将所述终端设备的访问请求重定向到所述免费的互联网业务的地址指向 的互联网业务。 2. The method according to claim 1, characterized in that, the result of redirection according to the determined need is to return a charging response message to the control execution system, so that the control execution system can perform the charging according to the determined need. The response message processes the access request of the terminal device, including: returning a charging response message to the control execution system according to the determined result of redirection, where the charging response message carries the redirected address, so The redirected address is an address of a free Internet service, so that the control execution system redirects the access request of the terminal device to the address pointed to by the free Internet service according to the address of the free Internet service. Internet business.
3、 根据权利要求 2所述的方法, 其特征在于, 所述免费的互联网业务的 地址为免费的充值网页的地址; 或者 3. The method according to claim 2, characterized in that the address of the free Internet service is the address of a free recharge web page; or
为免费的导航 Web服务器的地址。 The address of the free navigation web server.
4、 根据权利要求 1至 3任一所述的方法, 其特征在于, 所述方法还包 括: 4. The method according to any one of claims 1 to 3, characterized in that the method further includes:
当所述终端设备访问的互联网业务不需要计费, 确定对所述终端设备的 访问请求不需要进行重定向; When the Internet service accessed by the terminal device does not require charging, it is determined that the access request to the terminal device does not need to be redirected;
根据确定的不需要重定向的结果,向所述控制执行系统返回计费响应消 息, 以使得所述控制执行系统将所述终端设备的访问请求发送到所述访问请 求对应的服务器。 According to the determined result that redirection is not required, an accounting response message is returned to the control execution system, so that the control execution system sends the access request of the terminal device to the server corresponding to the access request.
5、 根据权利要求 4所述的方法, 其特征在于, 所述计费响应消息中携带 所述终端设备的用户余额信息, 以使得所述控制执行系统根据所述用户余额 信息确定用于提醒所述终端设备的用户及时充值的信息, 并将所述及时充值 的信息发送给所述终端设备用于显示在屏幕上。 5. The method according to claim 4, characterized in that the charging response message carries the user balance information of the terminal device, so that the control execution system determines the user balance information for reminding the user according to the user balance information. The user of the terminal device receives timely recharge information, and sends the timely recharge information to the terminal device for display on the screen.
6、 一种调整用户访问业务的方法, 其特征在于, 包括: 6. A method for adjusting user access services, which is characterized by including:
向控制管理系统发送对终端设备进行计费的请求消息, 所述请求消息中 携带所述终端设备的计费标识和用于确定所述终端设备访问的互联网业务 是否需要计费的信息 , 以使得所述控制管理系统根据所述计费标识确定所述 终端设备的用户余额信息, 并当所述终端设备的用户余额信息为欠费或余额 不足时,根据所述用于确定所述终端设备访问的互联网业务是否需要计费的 信息确定所述终端设备访问的互联网业务是否需要计费, 当所述终端设备访 问的互联网业务需要计费, 确定对所述终端设备的访问请求需要进行重定 向; Send a request message for charging the terminal device to the control management system, where the request message carries the charging identifier of the terminal device and information used to determine whether the Internet service accessed by the terminal device requires charging, so that The control and management system determines the user balance information of the terminal device according to the charging identification, and when the user balance information of the terminal device is in arrears or has insufficient balance, determines the access of the terminal device according to the The information on whether the Internet service needs to be billed determines whether the Internet service accessed by the terminal device needs to be billed. When the Internet service accessed by the terminal device requires billing, it is determined that the access request to the terminal device needs to be redirected. Towards;
接收所述控制管理系统根据确定的需要重定向的结果返回的计费响应 消息; Receive the charging response message returned by the control management system according to the determined required redirection result;
根据所述计费响应消息对所述终端设备的访问请求进行处理。 Process the access request of the terminal device according to the charging response message.
7、 根据权利要求 6所述的方法, 其特征在于, 所述接收所述控制管理 系统根据确定的需要重定向的结果返回的计费响应消息; 根据所述计费响应 消息对所述终端设备的访问请求进行处理, 包括: 7. The method according to claim 6, characterized in that: receiving a charging response message returned by the control management system according to a determined result that requires redirection; and processing the terminal device according to the charging response message. Access requests are processed, including:
接收所述控制管理系统根据确定的需要重定向的结果返回的计费响应 消息, 所述计费响应消息中携带重定向的地址, 所述重定向的地址为免费的 互联网业务的地址; Receive the charging response message returned by the control management system according to the determined result of redirection, the charging response message carries the redirected address, and the redirected address is the address of the free Internet service;
向所述终端设备返回所述免费的互联网业务的地址, 以使得所述终端设 备根据所述免费的互联网业务的地址与所述互联网业务的地址指向的服务 器建立连接。 Return the address of the free Internet service to the terminal device, so that the terminal device establishes a connection with the server pointed to by the address of the Internet service according to the address of the free Internet service.
8、 根据权利要求 7所述的方法, 其特征在于, 所述免费的互联网业务的 地址为免费的充值网页的地址。 8. The method according to claim 7, characterized in that the address of the free Internet service is the address of a free recharge web page.
9、 根据权利要求 8所述的方法, 其特征在于, 在向所述终端设备返回所 述免费的互联网业务的地址, 以使得所述终端设备根据所述免费的互联网业 务的地址与所述互联网业务的地址指向的服务器建立连接之前, 还包括: 根据所述终端设备的的访问请求中携带的所述终端设备访问的互联网 业务的统一资源定位符确定所述终端设备访问的互联网业务是页面类请求 业务。 9. The method according to claim 8, characterized in that, before returning the address of the free Internet service to the terminal device, so that the terminal device matches the address of the Internet service according to the address of the free Internet service. Before establishing a connection with the server pointed to by the service address, it further includes: determining that the Internet service accessed by the terminal device is a page type based on the uniform resource locator of the Internet service accessed by the terminal device carried in the access request of the terminal device. Request business.
10、 根据权利要求 7所述的方法, 其特征在于, 所述免费的互联网业务 的地址为免费的导航 Web服务器的地址。 10. The method according to claim 7, characterized in that: the free Internet service The address is the address of the free navigation web server.
11、 根据权利要求 1 0所述的方法, 其特征在于, 所述方法进一步包括: 接收所述终端设备发送的重定向访问请求消息, 所述重定向访问请求消 息中携带所述终端设备访问的互联网业务的统一资源定位符; 11. The method according to claim 10, characterized in that, the method further includes: receiving a redirection access request message sent by the terminal device, the redirection access request message carrying the information accessed by the terminal device. Uniform Resource Locators for Internet businesses;
将所述重定向访问请求消息转发给所述导航 Web服务器, 以使得所述导 航 Web服务器根据所述互联网业务的统一资源定位符判断所述终端设备访问 的互联网业务是页面类请求业务还是非页面类请求业务; Forward the redirect access request message to the navigation Web server, so that the navigation Web server determines whether the Internet service accessed by the terminal device is a page request service or a non-page request service according to the uniform resource locator of the Internet service. Class request business;
若是页面类请求业务, 接收所述导航 Web服务器返回的重定向访问响应 消息, 所述重定向访问响应消息中携带免费的 Web页面的地址; If it is a page request service, receive the redirection access response message returned by the navigation Web server, and the redirection access response message carries the address of the free Web page;
向所述终端设备返回所述重定向访问响应消息, 以使得所述终端设备根 据所述免费的 Web页面的地址与所述 Web页面的地址指向的服务器建立连接。 The redirection access response message is returned to the terminal device, so that the terminal device establishes a connection with the server pointed to by the address of the Web page according to the address of the free Web page.
12、 一种控制管理装置, 其特征在于, 包括: 12. A control and management device, characterized in that it includes:
接收模块, 用于接收控制执行系统发送的对终端设备进行计费的请求消 息 , 所述请求消息中携带所述终端设备的计费标识和用于确定所述终端设备 访问的互联网业务是否需要计费的信息; The receiving module is configured to receive a request message for charging the terminal device sent by the control execution system. The request message carries the charging identification of the terminal device and is used to determine whether the Internet service accessed by the terminal device needs to be charged. fee information;
余额确定模块, 用于根据所述接收模块接收的所述终端设备的计费标识 确定所述终端设备的用户余额信息; A balance determination module, configured to determine the user balance information of the terminal device according to the charging identification of the terminal device received by the receiving module;
计费确定模块, 用于当所述余额确定模块确定所述终端设备的用户余额 信息为欠费或余额不足时,根据所述接收模块接收的所述用于确定所述终端 设备访问的互联网业务是否需要计费的信息确定所述终端设备访问的互联 网业务是否需要计费; A charging determination module, configured to determine the Internet service accessed by the terminal device based on the information received by the receiving module when the balance determination module determines that the user balance information of the terminal device is in arrears or has insufficient balance. Information about whether charging is required determines whether the Internet services accessed by the terminal device require charging;
重定向确定模块, 用于当所述计费确定模块确定所述终端设备访问的互 联网业务需要计费时, 确定对所述终端设备的访问请求需要进行重定向; 发送模块, 用于根据所述重定向确定模块确定的需要重定向的结果,向 所述控制执行系统返回计费响应消息, 以使得所述控制执行系统根据所述计 费响应消息对所述终端设备的访问请求进行处理。 A redirection determination module, configured to determine when the charging determination module determines the interaction accessed by the terminal device. When the networking service needs to be billed, it is determined that the access request to the terminal device needs to be redirected; a sending module, configured to return billing to the control execution system according to the result that redirection is determined by the redirection determination module. response message, so that the control execution system processes the access request of the terminal device according to the charging response message.
1 3、 根据权利要求 12所述的控制管理装置, 其特征在于, 13. The control and management device according to claim 12, characterized in that,
所述发送模块具体用于根据所述重定向确定模块确定的需要重定向的 结果, 向所述控制执行系统返回计费响应消息, 所述计费响应消息中携带重 定向的地址, 所述重定向的地址为免费的互联网业务的地址, 以使得所述控 制执行系统根据所述免费的互联网业务的地址将所述终端设备的访问请求 重定向到所述免费的互联网业务的地址指向的互联网业务。 The sending module is specifically configured to return a charging response message to the control execution system according to the result that redirection is determined by the redirection determination module, where the charging response message carries the redirected address, and the redirection The directed address is an address of a free Internet service, so that the control execution system redirects the access request of the terminal device to the Internet service pointed to by the address of the free Internet service according to the address of the free Internet service. .
14、 根据权利要求 12所述的控制管理装置, 其特征在于, 14. The control and management device according to claim 12, characterized in that,
所述重定向确定模块还用于当所述终端设备访问的互联网业务不需要 计费时, 确定对所述终端设备的访问请求不需要进行重定向; The redirection determination module is also configured to determine that the access request to the terminal device does not need to be redirected when the Internet service accessed by the terminal device does not require charging;
所述发送模块还用于根据所述重定向确定模块确定的不需要重定向的 结果, 向所述控制执行系统返回计费响应消息, 以使得所述控制执行系统将 所述终端设备的访问请求发送到所述访问请求对应的服务器。 The sending module is also configured to return a charging response message to the control execution system according to the result determined by the redirection determination module that redirection is not required, so that the control execution system transmits the access request of the terminal device to Sent to the server corresponding to the access request.
15、 一种控制执行装置, 其特征在于, 包括: 15. A control execution device, characterized in that it includes:
发送模块, 用于向控制管理系统发送对终端设备进行计费的请求消息, 所述请求消息中携带所述终端设备的计费标识和用于确定所述终端设备访 问的互联网业务是否需要计费的信息, 以使得所述控制管理系统根据所述计 费标识确定所述终端设备的用户余额信息, 并当所述终端设备的用户余额信 息为欠费或余额不足时,根据所述用于确定所述终端设备访问的互联网业务 是否需要计费的信息确定所述终端设备访问的互联网业务是否需要计费, 当 所述终端设备访问的互联网业务需要计费, 确定对所述终端设备的访问请求 需要进行重定向; A sending module, configured to send a request message for charging the terminal device to the control management system. The request message carries the charging identification of the terminal device and is used to determine whether the Internet services accessed by the terminal device require charging. information, so that the control management system determines the user balance information of the terminal device according to the charging identification, and when the user balance information of the terminal device is in arrears or insufficient balance, based on the method used to determine Internet services accessed by the terminal device The information on whether charging is required determines whether the Internet service accessed by the terminal device requires charging. When the Internet service accessed by the terminal device requires charging, it is determined that the access request to the terminal device needs to be redirected;
接收模块, 用于接收所述控制管理系统根据确定的需要重定向的结果返 回的计费响应消息; A receiving module, configured to receive a charging response message returned by the control management system according to the determined redirection result;
执行模块, 用于根据所述接收模块接收的计费响应消息对所述终端设备 的访问请求进行处理。 An execution module, configured to process the access request of the terminal device according to the charging response message received by the receiving module.
16、 根据权利要求 15所述的控制执行装置, 其特征在于, 16. The control execution device according to claim 15, characterized in that,
所述接收模块具体用于接收所述控制管理系统根据确定的需要重定向 的结果返回的计费响应消息, 所述计费响应消息中携带重定向的地址, 所述 重定向的地址为免费的互联网业务的地址; The receiving module is specifically configured to receive a charging response message returned by the control management system according to the determined redirection result. The charging response message carries a redirected address, and the redirected address is free. The address of the Internet business;
所述执行模块具体用于向所述终端设备返回所述免费的互联网业务的 地址, 以使得所述终端设备根据所述免费的互联网业务的地址与所述互联网 业务的地址指向的服务器建立连接。 The execution module is specifically configured to return the address of the free Internet service to the terminal device, so that the terminal device establishes a connection with the server pointed to by the address of the Internet service according to the address of the free Internet service.
17、 根据权利要求 16所述的控制执行装置, 其特征在于, 当所述免费的 互联网业务的地址为免费的导航 Web服务器的地址时, 17. The control execution device according to claim 16, characterized in that when the address of the free Internet service is the address of a free navigation Web server,
所述接收模块还用于接收所述终端设备发送的重定向访问请求消息, 所 述重定向访问请求消息中携带所述终端设备访问的互联网业务的统一资源 定位符; The receiving module is also configured to receive a redirection access request message sent by the terminal device, where the redirection access request message carries a uniform resource locator of the Internet service accessed by the terminal device;
所述发送模块还用于将所述重定向访问请求消息转发给所述导航 Web服 务器, 以使得所述导航 Web服务器根据所述互联网业务的统一资源定位符判 断所述终端设备访问的互联网业务是页面类请求业务还是非页面类请求业 务; 若是页面类请求业务时, 所述接收模块还用于接收所述导航 Web服务器返回的重定向访问响应消 息, 所述重定向访问响应消息中携带免费的 Web页面的地址; 所述发送模块还用于向所述终端设备返回所述重定向访问响应消息, 以 使得所述终端设备根据所述免费的 Web页面的地址与所述 Web页面的地址指 向的服务器建立连接。 The sending module is also configured to forward the redirect access request message to the navigation Web server, so that the navigation Web server determines whether the Internet service accessed by the terminal device is based on the uniform resource locator of the Internet service. Page request business or non-page request business? Service; If the page class requests the service, the receiving module is also used to receive the redirection access response message returned by the navigation Web server, and the redirection access response message carries the address of the free Web page; the sending module It is also configured to return the redirection access response message to the terminal device, so that the terminal device establishes a connection with the server pointed to by the address of the Web page according to the address of the free Web page.
18、 根据权利要求 16所述的控制执行装置, 其特征在于, 当所述免费的 互联网业务的地址为免费的充值网页的地址时, 所述执行模块还用于根据所述终端设备的的访问请求中携带的所述终 端设备访问的互联网业务的统一资源定位符确定所述终端设备访问的互联 网业务是页面类请求业务。 18. The control execution device according to claim 16, characterized in that when the address of the free Internet service is the address of a free recharge web page, the execution module is also used to access the terminal device according to the The uniform resource locator of the Internet service accessed by the terminal device carried in the request determines that the Internet service accessed by the terminal device is a page request service.
19、 一种调整用户访问业务的系统, 其特征在于, 包括如权利要求 12 至 14任一所述的控制管理装置,和如权利要求 15至 18任一所述的控制执行 19. A system for adjusting user access services, characterized by comprising a control management device as described in any one of claims 12 to 14, and a control execution device as described in any one of claims 15 to 18
PCT/CN2013/089210 2012-12-31 2013-12-12 Method, apparatus, and system for adjusting user service access WO2014101663A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210591998.8A CN103052049B (en) 2012-12-31 2012-12-31 Adjust the method for user's access service, Apparatus and system
CN201210591998.8 2012-12-31

Publications (1)

Publication Number Publication Date
WO2014101663A1 true WO2014101663A1 (en) 2014-07-03

Family

ID=48064522

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/089210 WO2014101663A1 (en) 2012-12-31 2013-12-12 Method, apparatus, and system for adjusting user service access

Country Status (2)

Country Link
CN (1) CN103052049B (en)
WO (1) WO2014101663A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052049B (en) * 2012-12-31 2016-08-24 华为技术有限公司 Adjust the method for user's access service, Apparatus and system
CN104363572A (en) * 2014-11-07 2015-02-18 华为技术有限公司 Redirecting method, charging device, access device and redirecting system
CN104954490B (en) * 2015-06-30 2019-02-19 北京奇虎科技有限公司 A kind of method and mobile terminal carrying out network access under defaulting subscriber state
CN104954495B (en) * 2015-06-30 2018-12-25 北京奇虎科技有限公司 Method, the distribution server and the system of network access are carried out under defaulting subscriber state
CN106330470A (en) * 2016-08-18 2017-01-11 中国联合网络通信集团有限公司 Fixed network payment prompting method and device
CN108923940B (en) * 2018-07-02 2021-07-09 中国联合网络通信集团有限公司 Network bandwidth adjusting method and system
CN111372207B (en) * 2018-12-25 2022-04-12 华为技术有限公司 Processing method for arrearage user and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923533A (en) * 2009-06-11 2010-12-22 华为技术有限公司 Method, device and system for processing prepaid service access
WO2011101066A1 (en) * 2010-02-16 2011-08-25 Telefonaktiebolaget Lm Ericsson Nodes for improved credit validation
CN102215471A (en) * 2011-06-15 2011-10-12 中兴通讯股份有限公司 Value added service subscription and charging method, system and value added service management platform
CN103052049A (en) * 2012-12-31 2013-04-17 华为技术有限公司 Method, device and system for adjusting user access business

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1438769A (en) * 2003-01-28 2003-08-27 张�杰 Special network system and information service based on same and electronic business method
CN101217705B (en) * 2008-01-09 2012-11-21 华为技术有限公司 A realization method, system and device of USSD service
CN101783846A (en) * 2009-01-15 2010-07-21 中兴通讯股份有限公司 Charging service processing method and charging gateway
CN102811130A (en) * 2011-06-03 2012-12-05 华为软件技术有限公司 Redirect method and redirect device under PCC (Policy and Charging Control)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923533A (en) * 2009-06-11 2010-12-22 华为技术有限公司 Method, device and system for processing prepaid service access
WO2011101066A1 (en) * 2010-02-16 2011-08-25 Telefonaktiebolaget Lm Ericsson Nodes for improved credit validation
CN102215471A (en) * 2011-06-15 2011-10-12 中兴通讯股份有限公司 Value added service subscription and charging method, system and value added service management platform
CN103052049A (en) * 2012-12-31 2013-04-17 华为技术有限公司 Method, device and system for adjusting user access business

Also Published As

Publication number Publication date
CN103052049B (en) 2016-08-24
CN103052049A (en) 2013-04-17

Similar Documents

Publication Publication Date Title
WO2014101663A1 (en) Method, apparatus, and system for adjusting user service access
KR101439534B1 (en) Web Redirect Authentication Method and Apparatus of WiFi Roaming Based on AC-AP Association
EP1880538B1 (en) Services in a communication system
US8131256B2 (en) Generating and providing access and content charges for different services to a user device in a communication system
US9923728B2 (en) System and method for associating an end user for billing in a network environment
FI112426B (en) Content server mediation server
RU2407182C2 (en) Wap-gateway and method of billing control for prepaid subscribers
CN1867024A (en) Charging information transmitting method
US20100191590A1 (en) Method for establishing a controlled data transfer connection between two systems
WO2008039036A1 (en) Apparatus and method for interfacing in a communication system
US9295070B2 (en) Quality of service level adaptation for visual services in mobile communication networks
US20150003299A1 (en) Method and apparatus for performing charging control to a sponsored data application
KR100706989B1 (en) Method and system for managing cap of pre-payment of wibro service subscriber
CN103905968A (en) Method and system for traffic reminding
CN104995962A (en) Network access selection method and terminal
JP2002152259A (en) Communication terminal and charging processing unit
CN1794638A (en) Method of cut-in charge system for OMA service application and charge angine
WO2012088995A1 (en) Service control method and device
CN103139306B (en) Towards the method that the forwarding and business tie-up information interaction of browsing intercept page information obtain
KR101111898B1 (en) Server system for reducing use of packet data use for smart phone
JP2003258841A (en) System and method for returning charge, and gateway device
KR20150042942A (en) Charging method for distributing a content, apparatus thereof
CN103619005A (en) Method and system for obtaining cell phone number of 3G network user
WO2015062036A1 (en) Data processing method, device and system
KR20140039513A (en) Charging method, apparatus and system for contents delivery network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13867051

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13867051

Country of ref document: EP

Kind code of ref document: A1