CN103200231B - Policy control method and system - Google Patents

Policy control method and system Download PDF

Info

Publication number
CN103200231B
CN103200231B CN201310068282.4A CN201310068282A CN103200231B CN 103200231 B CN103200231 B CN 103200231B CN 201310068282 A CN201310068282 A CN 201310068282A CN 103200231 B CN103200231 B CN 103200231B
Authority
CN
China
Prior art keywords
url
outer net
resource
net resource
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310068282.4A
Other languages
Chinese (zh)
Other versions
CN103200231A (en
Inventor
吴黄
张恩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310068282.4A priority Critical patent/CN103200231B/en
Publication of CN103200231A publication Critical patent/CN103200231A/en
Application granted granted Critical
Publication of CN103200231B publication Critical patent/CN103200231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses policy control method and system, described method includes: obtains the control strategy information for specific transactions, including outer net resource identification, wherein includes the identification information of specific transactions;After receiving accessing page request, obtain resource content from corresponding Web server, and obtain the URL of the accessed page;When determining the URL of the main application page that URL is described specific transactions of the described accessed page, the origin url of the outer net resource comprised in described resource content is modified, make described amended URL include described outer net resource identification, and the resource content including amended URL is returned to subscriber equipment;Determine when the URL of the described accessed page comprises described outer net resource identification, then carry out policy control according to described control strategy content.By means of the invention it is possible in the case of there is embedded outer net resource, it is also possible to carry out the policy control identical with the main application page.

Description

Policy control method and system
Technical field
The present invention relates to mobile broadband communication technical field, specific design policy control method and system.
Background technology
At MBB(Mobile Broadband, mobile broadband) epoch, operator can be with numerous service provider (Service Provider, SP) cooperation, release the control strategy for specific transactions.For example, it is possible to it is special for the execution of specific business Paying control, after user have subscribed the service package for specific SP, access this specific SP, only from corresponding business set After in meal, deduction flow, such as user have subscribed Facebook Zero set meal, user only accesses the flow of Facebook generation Deduct from Facebook Zero set meal, without deducting fees from basic account.
In order to realize the above-mentioned policy control for appointment SP, need specific transactions is identified, DPI(Deep Packet Inspection, deep-packet detection) technology just provides technical foundation for this identification.So-called " degree of depth " is and common report The literary composition level of analysis comparatively speaking, layer 4 content below of " common packet check " only analyzing IP bag, including source address, Destination address, source port, destination interface and protocol type, and DPI is in addition to step analysis above, also add should With layer analysis, identify various application and content thereof.
Prior art is using DPI technology, it is achieved during for the policy control of the business of specific SP, is usually and issues control in advance System strategy, in control strategy in addition to including concrete policy content, in addition it is also necessary to include the scope being suitable for, this scope is usually By a URL(Uniform/Universal Resource Locator, URL) collect incompatible and be given. During user accesses webpage, PCEF(Policy and Charging Enforcement Function, strategy and meter Take execution function) or TDF(Traffic Detection Function, flow monitoring function) utilize DPI technical point to separate out The URL of accessed webpage, if this URL belongs to aforementioned set of URL and closes, then uses aforementioned special strategy control to this access request System, otherwise, uses common policy control to this access request.
But, in actual applications, often there is situations below: a main application page may be embedded with the resource of outer net, Such as, may be embedded with the picture resource from Sina in a facebook page, so, user is accessing this facebook During the page, if having accessed the picture resource of this Sina, then the target that PCEF or TDF identifies access request is corresponding URL is also not belonging to the set of URL conjunction that facebook control strategy is corresponding, then can be used for common policy control.But, For certain specific transactions, either access the outer net resource that Intranet resource is also embedded into, all should use and specifically control plan Slightly.It is to say, prior art is using DPI technology, it is achieved during for the policy control of the business of specific SP, it is impossible to suitable Should above-mentioned this situation.
Summary of the invention
The invention provides policy control method and system, it is possible in the case of there is embedded outer net resource, it is also possible to Carry out the policy control identical with the main application page.
First aspect, it is provided that a kind of policy control method, including: obtain the control strategy information for specific transactions, described Control strategy information includes control strategy content, and the uniform resource position mark URL set that is suitable for of described control strategy content with And outer net resource identification, described set of URL closes the URL of each the main application page including described specific transactions, and described outer net provides Source mark includes the identification information of described specific transactions;After receiving accessing page request, from the Web that the accessed page is corresponding Server obtains resource content, and obtains the URL of the accessed page;Determine that the URL of the described accessed page is described specific industry During the URL of the main application page of business, the origin url of the outer net resource comprised in described resource content is modified so that described Amended URL includes described outer net resource identification, and the resource content including amended URL is returned to user sets Standby;Determine when the URL of the described accessed page comprises described outer net resource identification, then carry out plan according to described control strategy content Slightly control.
In the first possible implementation of first aspect, also comprise determining that the URL of the described accessed page comprises described During outer net resource identification, from the URL of the described accessed page, extract the origin url of described outer net resource, from corresponding Web Server obtains the content of described outer net resource, and the content of described outer net resource is returned to subscriber equipment.
In the implementation that the second of first aspect is possible, described outer net resource identification is by preset proxy server The URL fragment that the identification information of URL and described specific transactions combines;Described amended URL points to described agency service Device, is combined by the origin url of described URL fragment and described outer net resource.
In conjunction with the implementation that the second of first aspect is possible, in the third possible implementation of first aspect, also wrap Include: if the URL of the described accessed page comprises described URL fragment, then described accessing page request is sent to described generation Reason server, in order to described proxy server extracts the origin url of described outer net resource from the URL of the described accessed page, Obtain the content of described outer net resource from corresponding Web server, and the content of described outer net resource is returned to subscriber equipment.
In conjunction with the first implementation possible with the third of first aspect, in the 4th kind of possible implementation of first aspect In, the origin url of the described outer net resource to comprising in described resource content is modified and is included: according to the source of described outer net resource URL obtains form or the agreement of described outer net resource;Judge whether to need described outer net resource according to described form or agreement Carry out transcoding or protocol conversion;If it is, determine object format or the agreement of conversion, by described object format or the letter of agreement Breath is written in described amended URL;The described content obtaining described outer net resource from corresponding Web server, and by institute State the content of outer net resource to return to subscriber equipment and include: obtain the content of described outer net resource from corresponding Web server, will Described outer net resource is converted to described object format or agreement, and the content of the outer net resource after form or protocol conversion is returned Back to subscriber equipment.
In conjunction with the first to three kind of possible implementation of first aspect, in the 5th kind of possible implementation of first aspect, Described policy control includes that charging control, bandwidth control or location-based application controls.
Second aspect, also provides for a kind of policy controlling system, including: control strategy information acquisition unit, for obtaining for spy Determining the control strategy information of business, described control strategy information includes control strategy content, and described control strategy content is suitable for Uniform resource position mark URL set and outer net resource identification, described set of URL closes and includes that each of described specific transactions is main The URL of the application page, described outer net resource identification includes the identification information of described specific transactions;Page resource acquiring unit, After receiving accessing page request, obtain resource content from the Web server that the accessed page is corresponding, and obtain accessed The URL of the page;URL revises unit, for determining the main application page that URL is described specific transactions of the described accessed page During URL, the origin url of the outer net resource comprised in described resource content is modified so that described amended URL wraps Include described outer net resource identification, and the resource content including amended URL is returned to subscriber equipment;Strategy control unit, When URL for determining the described accessed page comprises described outer net resource identification, then carry out plan according to described control strategy content Slightly control.
In the first possible implementation of second aspect, also include: the first outer net resource acquisition unit, be used for determining institute State the URL of the accessed page when comprising described outer net resource identification, from the URL of the described accessed page, extract described outer net The origin url of resource, obtains the content of described outer net resource, and the content of described outer net resource is returned from corresponding Web server Back to subscriber equipment.
In the implementation that the second of second aspect is possible, policy controlling system also includes preset proxy server, described The URL fragment that outer net resource identification is the URL by described proxy server to be combined with the identification information of described specific transactions; Described amended URL points to described proxy server, by the origin url combination of described URL fragment and described outer net resource Become.
In conjunction with the implementation that the second of second aspect is possible, in the third possible implementation of second aspect, also wrap Include: the second outer net resource acquisition unit, if comprising described URL fragment, then by institute in the URL of the described accessed page State accessing page request and be sent to described proxy server, in order to described proxy server carries from the URL of the described accessed page Take out the origin url of described outer net resource, obtain the content of described outer net resource from corresponding Web server, and by described outer net The content of resource returns to subscriber equipment.
In conjunction with the first implementation possible with the third of second aspect, in the 4th kind of possible implementation of second aspect In, described URL amendment unit includes: format/protocol obtains subelement, obtains institute for the origin url according to described outer net resource State form or the agreement of outer net resource;Judgment sub-unit, for judging whether to need outside described according to described form or agreement Net resource carries out transcoding or protocol conversion;Amendment subelement, is used for if it is, determine object format or the agreement of conversion, will The information of described object format or agreement is written in described amended URL;Described first outer net resource acquisition unit or second Outer net resource acquisition unit includes: format/protocol conversion subelement, for obtaining described outer net resource from corresponding Web server Content, described outer net resource is converted to described object format or agreement, and the outer net after form or protocol conversion is provided The content in source returns to subscriber equipment.
In conjunction with the first to three kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, Described policy control includes that charging control, bandwidth control or location-based application controls.
In conjunction with the first to three kind of possible implementation of second aspect, in the 6th kind of possible implementation of second aspect, Described system uses PCC framework.
The specific embodiment provided according to the present invention, invention achieves techniques below effect:
Owing to outer net resource representation can be also added in the control strategy issued, and can the application page main to specific transactions In the URL of outer net resource that comprises modify, add upper outer net resource identification wherein, and embody in outer net resource identification Go out the identification information of this specific transactions, so, after receiving accessing page request, if it find that the URL of the accessed page In include outer net resource identification, it is possible to use the control strategy of corresponding specific transactions that this access request is carried out policy control. Therefore, it is possible to make in the case of there is embedded outer net resource, it is also possible to carry out the policy control identical with the main application page.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, will make required in embodiment below Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be only some embodiments of the present invention, for From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawings Accompanying drawing.
Figure 1A is the network diagram of a system controlled for specific transactions implementation strategy;
Figure 1B is the flow chart of the method that the embodiment of the present invention provides;
Fig. 2 is the flow chart of the detailed description of the invention that the embodiment of the present invention provides;
Fig. 3 is the schematic diagram of the system that the embodiment of the present invention provides;
Fig. 4 is the schematic diagram of another system that the embodiment of the present invention provides;
Fig. 5 is the schematic diagram of another system that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the system of a kind of control business transmission that can realize embodiment of the present invention each method.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete retouching State, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on the present invention In embodiment, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, Broadly fall into the scope of protection of the invention.
Technical scheme, can apply to various communication system, such as: global system for mobile communications (GSM, Global System of Mobile communication), CDMA (CDMA, Code Division Multiple Access) System, WCDMA (WCDMA, Wideband Code Division Multiple Access Wireless), general Packet wireless business (GPRS, General Packet Radio Service), Long Term Evolution (LTE, Long Term Evolution) Etc..
With reference to Figure 1A, it it is the network diagram of a system controlled for specific transactions implementation strategy.Subscriber equipment (UE, User Equipment), it is possible to referred to as mobile terminal (Mobile Terminal), mobile subscriber equipment etc., can be through wireless access Net (such as, RAN, Radio Access Network) communicates with one or more core net, and subscriber equipment can be to move Dynamic terminal, such as mobile phone (or being referred to as " honeycomb " phone) and the computer with mobile terminal, for example, it may be portable Formula, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they with wireless access network exchange language and/ Or data.
Policy controlling system, can include the network equipment and device that in various communication network, implementation strategy controls.Such as, this plan Slightly control system, including policy decisions service device, can be arranged on outside gateway device, independent mutually with gateway device.Gateway sets Standby can include GGSN(Gateway GPRS Support Node, Gateway GPRS Support Node), PDSN(Packet Data Serving Node, packet data serving node), TDF and Wimax access service network (WASN, Wimax Access Service Network) etc., it should be appreciated that the gateway device of the embodiment of the present invention can also include being capable of in other networks service set meeting Accumulation and the Business Stream to end-user access can be realized carry out the network element of Context resolution and control.
The most such as, control in (PCC, Policy and Charging Control) framework in strategy and charging, policy control System, including omiting and charging rule functions (PCRF, Policy and Charging Rule Function) and tactful and charging Perform function (PCEF, Policy and Charging Enforcement Function).Wherein PCEF can be that gateway sets A standby part, for realizing the detection of business, strategy execution and billing function based on stream.PCRF can accept from PCEF Input, for implementation strategy control decision and based on flow based charging control function, to PCEF provide about business data flow detection, Gate, network control function based on flow based charging (in addition to diameter credit control), the self-defined information in conjunction with PCRF makes PCC decision. Wherein the work process between PCEF and PCRF is not repeated herein.
In the embodiment of the present invention, in order to when using special policy control for specific transactions so that special strategy control System can either be applied to the main application page of business, can apply to again the outer net resource being embedded in the main application page, can be to master The URL of outer net resource embedded in the application page modifies, and mainly adds outer net resource identification in the URL of outer net resource. This outer net resource identification includes the identification information of specific transactions, say, that this outer net resource identification is used for indicating this resource to need The specific control strategy using certain specific transactions is controlled, and which specific transactions indicates be.So implementation strategy control The entity of system just can be determined need to use certain special control strategy to control according to this outer net resource identification in URL System, and the specific transactions of correspondence can be known, then according to the control strategy of this specific transactions, the request of this this resource of access is entered Row policy control.Below this is introduced in detail.
Seeing Figure 1B, aforementioned policy controlling system can perform the policy control method that the embodiment of the present invention provides, including following Step:
S101: policy controlling system obtains the control strategy information for specific transactions, and described control strategy information includes control Policy content processed, and described control strategy content be suitable for uniform resource position mark URL set and outer net resource identification, Described set of URL closes the URL of each the main application page including described specific transactions, and described outer net resource identification includes The identification information of described specific transactions;
Firstly the need of explanation, include concrete control strategy content in control strategy information, such as concrete how to this spy Determine business and carry out charging, how to distribute bandwidth for this specific transactions, or how this specific transactions is carried out location-based application control System etc., will also include the scope of application information of this control strategy content simultaneously.Scope of application information is usually by a set of URL Incompatible expression, the element in the conjunction of this set of URL is exactly the URL of each main application page of this specific transactions.Wherein, so-called The main application page, be primarily referred to as some pages of specific transactions self, the URL of these pages is directed to this specific transactions The server of oneself.
As a example by PCC framework, control strategy information (URL of the most main application page) can be to be provided, concurrently by SP Cloth is in PCRF, then is handed down to PCEF by PCRF.Wherein the operation principle between PCRF and PCEF is with reference to prior art, example As being dynamic socket pattern or static interface pattern.Except concrete control strategy content and scope of application information thereof it Outward, in embodiments of the present invention, also including an outer net resource identification in the control strategy information that PCRF issues, this mark needs Embody the identification information of the specific transactions of correspondence.Such as, for this specific transactions of facebook, this outer net resource identification Can be src=facebook etc..Certainly, outer net resource identification can also is that other form, hereinafter has detailed Jie Continue.
S102: after policy controlling system receives accessing page request, the Web server corresponding from the accessed page obtains Resource content, and obtain the URL of the accessed page;
The accessing page request of subscriber equipment typically can first be sent to policy controlling system (PCEF the most therein or TDF), the Web server of correspondence, accordingly, the page that Web server returns it are transmitted to the most again by policy controlling system Resource content also can first arrive policy controlling system, and afterwards, this page resource content is returned to user by policy controlling system again Equipment end.Exactly because access request and response all can be through policy controlling systems, the page could be visited by policy controlling system The request of asking carries out various policy control.Concrete, policy controlling system can use DPI technology, therefore, is receiving certain page After the access request of face, it is possible to utilize DPI technical limit spacing to the URL of the accessed page.
S103: when determining the URL of the main application page that URL is described specific transactions of the described accessed page, to described The origin url of the outer net resource comprised in resource content is modified so that described amended URL includes described outer net Resource identification, and the resource content including amended URL is returned to subscriber equipment;
After getting the URL of the accessed page, can fit with the control strategy content of each specific transactions got in advance Each URL compare, if the control strategy content belonging to certain specific transactions be suitable for set of URL close, then can make With the control strategy of this specific transactions, this visit request is carried out policy control, including charging control, bandwidth control etc.. Meanwhile, after getting the resource content of the accessed page that Web server returns, need resource content is entered Row processes, and returns again to afterwards to subscriber equipment end.Concrete processing procedure, it is judged that in the resource content of the accessed page be No comprising embedded outer net resource, if included, then modifying the URL of outer net resource, the process of amendment is mainly The outer net resource identification got before can be added in the URL of outer net resource.
It should be noted that a corresponding HTML(Hypertext Markup Language of webpage, hypertext mark Note language) file, when accessing certain webpage, Web server returns to the page resource content of PCEF/TDF and is exactly typically This html file.Html file is with .htm or .html as suffix name, and the resource content comprised in webpage is all at HTML Defined in document, for the outer net resource being embedded in a page, this outer net money can be write in html document exactly The URL in source, so when user clicks on the link of this outer net resource in this page, will provide to outer net according to this URL Access request initiated by the Web server at place, source, obtains concrete resource content.And in embodiments of the present invention, strategy Control system (PCEF or TDF as therein in this policy controlling system) after getting the html file of a webpage A, If the URL of this webpage A is certain specific transactions main application page, then in the embodiment of the present invention, it is possible to from webpage A's Html file finds out the URL of the embedded outer net resource wherein comprised, then the URL of these outer net resources is carried out Amendment, namely it is respectively outer net resource identification in the URL interpolation of each outer net resource.URL for each outer net resource adds After having added outer net resource identification, it is possible to replace the original URL of each outer net resource in html file respectively, preserve it The most just can return to subscriber equipment.
S104: determine when the URL of the described accessed page comprises described outer net resource identification, then according to described control strategy Content carries out policy control.
Subscriber equipment is receiving the quilt that policy controlling system (PCEF or TDF as therein in this policy controlling system) returns After the resource content of accession page, browser just can carry out parsing to resource content and render, and shows the page of correspondence. During showing the page, the server that browser may be applied to other for embedded some picture resources etc. Initiate to obtain the request of these picture resources, in order in the page, show this picture.After showing the page, Yong Hushe Standby can also continue in this page, perform the operations such as clickthrough and initiate new accessing page request.These are clicked Link may point to Intranet resource, namely another main application page, it is also possible to points to outer net resource.If sensing Intranet Resource, then the URL of the accessed page that accessing page request is corresponding will be included in the main application page URL of corresponding business In set, therefore, the control strategy implementation strategy that this policy controlling system just can use this business corresponding accordingly controls.As Fruit points to outer net resource, then in the operation before will being included in the URL of the accessed page that accessing page request is corresponding Add outer net resource identification, and can recognize that correspondence be which specific transactions, therefore, this policy controlling system with Sample can use the control strategy implementation strategy that this specific transactions is corresponding to control accordingly.
Although it should be noted that in step s 103 the URL of each outer net resource embedded in accessed webpage being entered Go amendment, but the display of accessed webpage can't have been affected.This is because, for embedded each in accessed webpage For individual outer net resource, usually representing in the form of a link in accessed webpage, what we revised is the equal of this Plant the URL of target pages corresponding to link, but the content shown in the source web page at this link place is chain of each link Connecing text, image etc., these information will not change along with the change of the URL of target web.Certainly, at user's point After having hit the link of certain outer net resource, if subscriber equipment is directly to send request to the Web server of target web, Then owing to have modified the URL of target web, it is thus possible to can cannot get corresponding resource.But, the present invention implements In example, after user clicks the link of certain outer net resource, the request accessing target web can first be sent by subscriber equipment To this policy controlling system (PCEF or TDF as therein in this policy controlling system), one can be carried out at this policy controlling system Fixed process, it is ensured that subscriber equipment can show target pages normally.Concrete, this policy controlling system is receiving After one accesses web-page requests, if it find that the URL of the accessed page includes the outer net resource identification pre-set, then may be used First the outer net resource identification in the URL of the accessed page is removed, concrete to corresponding Web server request the most again Outer net resource.
Visible, in embodiments of the present invention, owing to outer net resource representation can be also added in the control strategy issued, and The URL of the outer net resource that can comprise in the application page main to specific transactions modifies, and adds upper outer net resource identification wherein, And in outer net resource identification, embody the identification information of this specific transactions, so, after receiving accessing page request, as Fruit finds to be accessed in the URL of the page and includes outer net resource identification, it is possible to use the control strategy of corresponding specific transactions to this Access request carries out policy control.Therefore, it is possible in the case of there is embedded outer net resource, it is also possible to carry out and main application The policy control that the page is identical.
In actual applications, the above-mentioned side of the embodiment of the present invention can be realized by a proxy entity in logic Case.Concrete, outer net resource identification can be the identification information combination of the URL by preset proxy server and specific transactions URL fragment.Such as, as a example by this specific transactions of Facebook Zero, it is assumed that the URL of proxy server is: Www.proxyserver.com/forward.action, then outer net resource identification can be following URL fragment: www.proxyserver.com/forward.action?Src=facebook, it is seen then that this outer net resource identification is to be taken by agency The URL www.proxyserver.com/forward.action of business device splices with mark src=facebook of specific transactions ?.So, when the URL of outer net resource is modified, it is possible to former by this URL fragment and outer net resource Beginning, URL spliced, and forms new URL, and new URL is pointed to proxy server.For example, it is assumed that certain main application Embedded in the page is certain picture resource of outer net, and corresponding HTML code is <img src= " www.sina.com/sample.GIF "/>, that is, the URL of outer net resource is www.sina.com/sample.GIF, The most amended URL be exactly can:
www.proxyserver.com/forward.action?src=facebook&des=www.sina.com/sample .GIF, accordingly, amended HTML code is:
<img src= “www.proxyserver.com/forward.action?src=facebook&des=www.sina.com/sample.gi f”/>
So, the browser of subscriber equipment end is after initiating the request of this picture resource of access, and policy controlling system will detect Go out in the URL of picture resource and include www.proxyserver.com/forward.action?Src=facebook this URL fragment, accordingly, it is possible to determine that needs are controlled according to the Special controlling strategy that certain specific transactions is customized, enters And, by this mark of facebook comprised in this fragment, it may be determined that go out these specific transactions and belong to Facebook Zero, therefore, is controlled according to the control strategy of Facebook Zero service customizing.Then, concrete money is obtained During source, first access request can be sent to proxy server by PCEF/TDF, proxy server after the requests have been received, The original URL of outer net resource according to preset rule, can be extracted from URL, then according to this original URL to right Concrete resource data asked by the Web server answered, and is then returned to this policy controlling system, then by this policy controlling system Return to subscriber equipment, thus can show the page of correspondence at subscriber equipment end.
In order to be more fully understood that the embodiment of the present invention, below as a example by the communication system using PCC framework, real to the present invention The policy control method that executing example provides is introduced.See Fig. 2, may comprise steps of:
S201:PCRF issues control and charging policy to PCEF or TDF.In present embodiment, this control and charging Strategy generally comprises: main application service mark or set of URL close, and for this main application service and this main application service The control strategy of the business of middle nesting or charging policy.Can be generally referred to as the service package for this main application service. Set of URL conjunction is a part for Policy content, can close for these set of URL and do special control strategy, such as visit Ask and limit on service bandwidth, time, place.In addition to this it is possible to by by proxy server URL and should The URL fragment that the expression information of business combines increases in the control strategy of this service package, in order to provide as outer net The mark in source, and represent correspondence be which specific transactions.As a example by this service package is for Facebook Zero, can With by www.proxyserver.com/forward.action?Src=facebook increases to Facebook Zero business In the control of set meal and charging policy.
S202: user passes through the browser access Facebook page, and access request is sent to PCEF or TDF;
S203:PCEF or TDF sends service request to the Web server of Facebook;
The Web server of S204:Facebook returns the resource content (a corresponding html file) of service response;
S205:PCEF or TDF identifies the URL of the Web page of the Web server return of Facebook by DPI The set of URL being included in service package closes interior, then, by the content (example from other application services embedded in this page The picture resource provided such as outer net, video, audio frequency, text etc.) URL be converted to URL corresponding on proxy server. URL after conversion meets three below condition: 1. the URL after conversion can point at proxy server;2. after conversion URL in can comprise in service package control with charging policy in for proxy server setting URL fragment;3. act on behalf of Server can by conversion after URL obtain outer net resource origin url, in order to obtain resource return to PCEF or The most such as, embedded is picture resource, then can be by code <img src=corresponding in html file " www.sina.com/sample.GIF "/>, be converted to<img src= “www.proxyserver.com/forward.action?src=facebook&des=www.sina.com/sample.gi f”/>.Wherein, www.proxyserver.com/forward.action represents the URL of proxy server, Src=facebook represents service identification, the origin url of des=www.sina.com/sample.GIF representative picture resource. So, PCEF or TDF can recognize the need for using Facebook Zero service package according to src=facebook Control and charging policy, proxy server, can be to corresponding Web according to des=www.sina.com/sample.GIF Server obtains concrete picture resource.
S206:PCEF or TDF will comprise the facebook page of URL corresponding to amended outer net picture resource Html file returns to the browser of subscriber equipment, and the browser of subscriber equipment can show facebook page of correspondence Face;
Outer net picture resource embedded in S207: the terminal browser request Facebook page.Such as in previous example That picture;
S208:PCEF or TDF sends outer net resource content request to proxy server;
S209: proxy server analysis also obtains this embedded content from other application services (such as original image money Source) URL, to these other application services server (i.e. source material) send request;
The server returned content response of S210: these other application services;
S211: proxy server returns this content response to PCEF or TDF;
This content response from the server of other application services received is returned to use by S212:PCEF or TDF Family device navigator;
S213:PCEF or TDF identifies amended resource URL and includes following URL fragment: www.proxyserver.com/forward.action?Defined in this URL fragment i.e. step S201 of src=facebook( URL fragment in service package charging policy), therefore, mate Facebook Zero service package, carry out corresponding Control and the control of charging policy: such as, carry out traffic monitoring, and to OCS(Online Charging System, Online Charging System) report the flow quota making to be finished and apply for new flow quota.
It should be noted that in actual applications, the outer net resource being embedded in the main application page not only includes that picture provides Source, it is also possible to include the resources such as audio frequency, video, text, as long as be embedded in current application from other application services Resource, just may be by the embodiment of the present invention provide mode carry out policy control.Wherein, due to finally need by Various resources are sent on subscriber equipment carry out representing or playing, and subscriber equipment is probably the mobile terminals such as mobile phone, this Plant mobile terminal and may have special call format for the resource such as audio frequency, video, such as, for video, mobile Terminal typically can only support several forms fixed, and such as 3gp etc., and if the form of outer net resource is flv etc., then Possibly cannot play the most in the terminal.Therefore, in embodiments of the present invention, in abovementioned steps S205, permissible Judge for this situation, if it find that outer net resource is the form that terminal unit can not be correctly decoded, then need into Row transcoding or protocol conversion, then when revising the URL of outer net resource, it is also possible to adding in URL after the modification needs Be converted to which kind of form or which kind of agreement;So, when user accesses this resource, receiving other application services After the resource content that device returns, it is possible to be first according to this transcoding or the translation-protocol comprised in amended URL Information change, the most again the content after conversion is returned to the browser of terminal unit, normal to guarantee Represent or play.Wherein, concrete transcoding or protocol conversion work can be by proxy server or PCEF or TDF is carried out.
For example, it is assumed that PCEF or TDF detects comprises following outer net resource in certain main application page: < a href= " http://www.sina.com/sample.flv "/>, according to the suffix name " flv " of URL it appeared that this is one Individual video resource, and this form in the terminal cannot normal decoder, then need it is changed, therefore, Can be able to be with amended URL just: www.proxyserver.com/forward.action?src=facebook&format=3gp&des=http://www.si Na.com/sample.flv, it is seen then that for the URL in previous example, adds this letter of format=3gp Breath.So, when user accesses this video resource, the URL of the accessed resource that PCEF or TDF receives is exactly that this is repaiied URL after changing, owing to including this information of format=3gp, therefore, receiving the server of other application services After the resource content returned, need first the form of video to be converted to 3gp, then return again to terminal unit.Close In specifically how carrying out transcoding or protocol conversion, may refer to prior art, I will not elaborate.
Corresponding with the policy control method that the embodiment of the present invention provides, the embodiment of the present invention additionally provides a kind of policy control System, sees Fig. 3, and this system may include that
Control strategy information acquisition unit 301, for obtaining the control strategy information for specific transactions, described control plan Slightly information includes control strategy content, and the uniform resource position mark URL set that is suitable for of described control strategy content and Outer net resource identification, described set of URL closes the URL of each the main application page including described specific transactions, described outer net Resource identification includes the identification information of described specific transactions;
Page resource acquiring unit 302, after being used for receiving accessing page request, from the Web clothes that the accessed page is corresponding Business device obtains resource content, and obtains the URL of the accessed page;
URL revises unit 303, for determining the main application page that URL is described specific transactions of the described accessed page URL time, the origin url of the outer net resource comprised in described resource content is modified so that described amended URL Include described outer net resource identification, and the resource content including amended URL is returned to subscriber equipment;
Strategy control unit 304, for determining when the URL of the described accessed page comprises described outer net resource identification, then Policy control is carried out according to described control strategy content.
Wherein, in actual applications, seeing Fig. 4, this system can also include:
First outer net resource acquisition unit 305, for determining that the URL of the described accessed page comprises described outer net resource mark During knowledge, from the URL of the described accessed page, extract the origin url of described outer net resource, from corresponding Web server Obtain the content of described outer net resource, and the content of described outer net resource is returned to subscriber equipment.
When implementing, outer net resource identification can be the mark of the URL by preset proxy server and described specific transactions The URL fragment that knowledge information combines;Accordingly, amended URL points to described proxy server, by described URL The origin url of fragment and described outer net resource combines.
In this case, seeing Fig. 5, this system can also include:
Second outer net resource acquisition unit 306, if comprising described URL fragment in the URL of the described accessed page, Then described accessing page request is sent to described proxy server, in order to described proxy server is from this accessed page URL extracts the origin url of described outer net resource, obtains the content of described outer net resource from corresponding Web server, and The content of described outer net resource is returned to subscriber equipment.
In actual applications, in order to ensure that outer net resource can carry out representing or playing the most in a user device, described URL amendment unit 303 may include that
Format/protocol obtains subelement, obtains the form of described outer net resource for the origin url according to described outer net resource Or agreement;
Judgment sub-unit, for judging whether to need described outer net resource is carried out transcoding or association according to described form or agreement View conversion;
Amendment subelement, for if it is, determine object format or the agreement of conversion, by described object format or agreement Information be written in described amended URL;
Accordingly, described first outer net resource acquisition unit 305 or the second outer net resource acquisition unit 306 include:
Format/protocol conversion subelement, for obtaining the content of described outer net resource, by institute from corresponding Web server State outer net resource and be converted to described object format or agreement, and by the content of the outer net resource after form or protocol conversion Return to subscriber equipment.
It addition, in actual applications, described system uses PCC framework.
With reference to Fig. 6, it is provided that the structural representation of the system of a kind of control business transmission that can realize aforementioned approaches method. Control business transmission system include at least one processor 1001, such as CPU, at least one network interface 1004 or Other user interfaces 1003, memorizer 1005, and at least one communication bus 1002.Communication bus 1002 is used for realizing Connection communication between aforementioned means.The system of this control business transmission optionally comprises user interface 1003, such as, show Device, keyboard or pointing device.Memorizer 1005 may comprise high speed Ram memorizer, it is also possible to also includes non-shakiness Fixed memorizer (non-volatile memory), for example, at least one disk memory.Memorizer 1005 optionally may be used To comprise at least one storage device being located remotely from aforementioned CPU1001.In some embodiments, memorizer 1005 is deposited Store up following element, module or data structure, or their subset, or their superset:
Operating system 1006, comprises various program, for realizing various basic business and place by application module 1007 Manage hardware based task;Wherein, application module 1007 may include that
Control strategy information acquisition unit 101, for obtaining the control strategy information for specific transactions, described control plan Slightly information includes control strategy content, and the uniform resource position mark URL set that is suitable for of described control strategy content and Outer net resource identification, described set of URL closes the URL of each the main application page including described specific transactions, described outer net Resource identification includes the identification information of described specific transactions;
Page resource acquiring unit 102, after being used for receiving accessing page request, from the Web clothes that the accessed page is corresponding Business device obtains resource content, and obtains the URL of the accessed page;
URL revises unit 103, for determining the main application page that URL is described specific transactions of the described accessed page URL time, the origin url of the outer net resource comprised in described resource content is modified so that described amended URL Include described outer net resource identification, and the resource content including amended URL is returned to subscriber equipment;
Strategy control unit 104, for determining when the URL of the described accessed page comprises described outer net resource identification, then Policy control is carried out according to described control strategy content.
Preferably, the operation principle of aforementioned modules, it is referred to Figure 1B, the concrete introduction in method shown in 2, at this not Repeat again.Accordingly, it is also possible to reference to Fig. 3-5, on the basis of above-mentioned module, each module is extended, at this not Repeat again.
Policy control described in the embodiment of the present invention can include but not limited to that charging control, bandwidth control or location-based Application controls.
In embodiments of the present invention, owing to outer net resource representation can be also added in the control strategy issued, and can be right The URL of the outer net resource comprised in the specific transactions main application page modifies, the upper outer net resource identification of interpolation wherein, and Outer net resource identification embodies the identification information of this specific transactions, so, after receiving accessing page request, if sent out Now it is accessed in the URL of the page and includes outer net resource identification, it is possible to use the control strategy of corresponding specific transactions to this access Request carries out policy control.Therefore, it is possible to make in the case of there is embedded outer net resource, it is also possible to carry out and main application The policy control that the page is identical.
As seen through the above description of the embodiments, those skilled in the art it can be understood that to the application can be by soft Part adds the mode of required general hardware platform and realizes.Based on such understanding, the technical scheme of the application is the most in other words The part contributing prior art can embody with the form of software product, and this computer software product can be stored in In storage medium, such as ROM/RAM, magnetic disc, CD etc., instruct with so that a computer equipment (can be including some Personal computer, server, or the network equipment etc.) perform described in some part of each embodiment of the application or embodiment Method.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and between each embodiment, identical similar part is mutual Seeing, what each embodiment stressed is the difference with other embodiments.Real especially for system or system For executing example, owing to it is substantially similar to embodiment of the method, so describing fairly simple, relevant part sees embodiment of the method Part illustrate.System described above and system embodiment are only schematically, wherein said as separating component The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can not also It is physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to actual need Select some or all of module therein to realize the purpose of the present embodiment scheme.Those of ordinary skill in the art are not paying In the case of creative work, i.e. it is appreciated that and implements.
Above to policy control method provided herein and system, it is described in detail, specific case used herein Principle and embodiment to the application are set forth, and the explanation of above example is only intended to help and understands the present processes And core concept;Simultaneously for one of ordinary skill in the art, according to the thought of the application, in detailed description of the invention and All will change in range of application.In sum, this specification content should not be construed as the restriction to the application.

Claims (13)

1. a policy control method, it is characterised in that including:
Obtaining the control strategy information for specific transactions, described control strategy information includes control strategy content, Yi Jisuo Stating uniform resource position mark URL set and outer net resource identification that control strategy content is suitable for, described set of URL wraps in closing Including the URL of each main application page of described specific transactions, described outer net resource identification includes the mark of described specific transactions Knowledge information;
After receiving accessing page request, the Web server corresponding from the accessed page obtains resource content, and obtains quilt The URL of accession page;
When determining the URL of the main application page that URL is described specific transactions of the described accessed page, in described resource The origin url of the outer net resource comprised in appearance is modified so that described amended URL includes described outer net resource mark Know, and the resource content including amended URL is returned to subscriber equipment;
When initiating new accessing page request in the described accessed page, determine that described new accessing page request is corresponding The accessed page URL in comprise described outer net resource identification, carry out policy control according to described control strategy content.
Method the most according to claim 1, it is characterised in that also include:
Determine time the URL of the accessed page corresponding to described new accessing page request comprises described outer net resource identification, The origin url of described outer net resource is extracted from the URL of the accessed page corresponding to described new accessing page request, from Corresponding Web server obtains the content of described outer net resource, and the content of described outer net resource is returned to subscriber equipment.
Method the most according to claim 1, it is characterised in that described outer net resource identification is by preset agency The URL fragment that the identification information of the URL of server and described specific transactions combines;Described amended URL points to Described proxy server, is combined by the origin url of described URL fragment and described outer net resource.
Method the most according to claim 3, it is characterised in that also include:
If the URL of the accessed page that described new accessing page request is corresponding comprising described URL fragment, then by institute State accessing page request and be sent to described proxy server, in order to described proxy server is from described new accessing page request The URL of the corresponding accessed page extracts the origin url of described outer net resource, obtains institute from corresponding Web server State the content of outer net resource, and the content of described outer net resource is returned to subscriber equipment.
5. according to the method described in claim 2 or 4, it is characterised in that described to described resource content comprises The origin url of outer net resource is modified and is included:
Origin url according to described outer net resource obtains form or the agreement of described outer net resource;
Judge whether to need described outer net resource is carried out transcoding or protocol conversion according to described form or agreement;
If needing described outer net resource is carried out transcoding or protocol conversion, it is determined that the object format of conversion or agreement, will The information of described object format or agreement is written in described amended URL;
The described content obtaining described outer net resource from corresponding Web server, and the content of described outer net resource is returned Include to subscriber equipment:
Obtain the content of described outer net resource from corresponding Web server, described outer net resource is converted to described target lattice Formula or agreement, and the content of the outer net resource after form or protocol conversion is returned to subscriber equipment.
6. according to the method described in any one of claim 1-4, it is characterised in that described policy control includes charging control System, bandwidth control or location-based application controls.
7. a policy controlling system, it is characterised in that including:
Control strategy information acquisition unit, for obtaining the control strategy information for specific transactions, described control strategy is believed Breath includes control strategy content, and the uniform resource position mark URL set that is suitable for of described control strategy content and outer net Resource identification, described set of URL closes the URL of each the main application page including described specific transactions, described outer net resource Mark includes the identification information of described specific transactions;
Page resource acquiring unit, after being used for receiving accessing page request, from the Web server that the accessed page is corresponding Obtain resource content, and obtain the URL of the accessed page;
URL revises unit, for determining the URL of the main application page that URL is described specific transactions of the described accessed page Time, the origin url of the outer net resource comprised in described resource content is modified so that described amended URL wraps Include described outer net resource identification, and the resource content including amended URL is returned to subscriber equipment;
Strategy control unit, for when initiating new accessing page request in the described accessed page, determine described newly The accessed page corresponding to accessing page request URL in comprise described outer net resource identification, according to described control strategy Content carries out policy control.
System the most according to claim 7, it is characterised in that also include:
First outer net resource acquisition unit, for determining the URL of the accessed page corresponding to described new accessing page request In when comprising described outer net resource identification, extract from the URL of the accessed page corresponding to described new accessing page request Go out the origin url of described outer net resource, obtain the content of described outer net resource from corresponding Web server, and by outside described The content of net resource returns to subscriber equipment.
System the most according to claim 8, it is characterised in that policy controlling system also includes preset agency's clothes Business device, described outer net resource identification be the URL by described proxy server with the combination of the identification information of described specific transactions and The URL fragment become;Described amended URL points to described proxy server, by described URL fragment and described outer net The origin url of resource combines.
System the most according to claim 9, it is characterised in that also include:
Second outer net resource acquisition unit, if being used for the URL of the accessed page corresponding to described new accessing page request In comprise described URL fragment, then described accessing page request is sent to described proxy server, in order to described agency take Business device extracts the origin url of described outer net resource from the URL of the accessed page corresponding to described new accessing page request, Obtain the content of described outer net resource from corresponding Web server, and the content of described outer net resource is returned to user set Standby.
System described in 11. according to Claim 8 or 10, it is characterised in that described URL amendment unit includes:
Format/protocol obtains subelement, obtains the form of described outer net resource for the origin url according to described outer net resource Or agreement;
Judgment sub-unit, for judging whether to need described outer net resource is carried out transcoding or association according to described form or agreement View conversion;
Amendment subelement, if carrying out transcoding or protocol conversion for needs to described outer net resource, it is determined that the mesh of conversion Style formula or agreement, be written to the information of described object format or agreement in described amended URL;
Described first outer net resource acquisition unit or the second outer net resource acquisition unit include:
Format/protocol conversion subelement, for obtaining the content of described outer net resource, by institute from corresponding Web server State outer net resource and be converted to described object format or agreement, and by the content of the outer net resource after form or protocol conversion Return to subscriber equipment.
12. according to the system described in any one of claim 7-10, it is characterised in that described policy control includes charging Control, bandwidth controls or location-based application controls.
13. according to the system described in any one of claim 7-10, including: described system uses strategy to control with charging PCC framework.
CN201310068282.4A 2013-03-04 2013-03-04 Policy control method and system Active CN103200231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310068282.4A CN103200231B (en) 2013-03-04 2013-03-04 Policy control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310068282.4A CN103200231B (en) 2013-03-04 2013-03-04 Policy control method and system

Publications (2)

Publication Number Publication Date
CN103200231A CN103200231A (en) 2013-07-10
CN103200231B true CN103200231B (en) 2016-07-20

Family

ID=48722586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310068282.4A Active CN103200231B (en) 2013-03-04 2013-03-04 Policy control method and system

Country Status (1)

Country Link
CN (1) CN103200231B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618792B (en) 2013-11-29 2017-04-19 华为技术有限公司 Data stream identification method and device
CN105635073B (en) * 2014-11-06 2020-06-26 华为技术有限公司 Access control method and device and network access equipment
CN104703162B (en) * 2014-12-27 2018-11-30 华为技术有限公司 A kind of method, apparatus and system by application access third party's resource
CN106294799B (en) * 2016-08-15 2019-10-22 广州神马移动信息科技有限公司 Get method, apparatus and server ready
CN111639275B (en) * 2019-03-01 2023-04-25 阿里巴巴集团控股有限公司 Routing information processing method, device, electronic equipment and computer storage medium
CN114826956B (en) * 2022-03-30 2023-05-26 杭州迪普科技股份有限公司 Automatic DPI policy library file generation method and device for DPI test equipment
CN114466066B (en) * 2022-04-13 2022-07-22 北京指掌易科技有限公司 Web-based reverse proxy method, device, medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769708B (en) * 2008-06-05 2014-09-17 华为技术有限公司 Method, device and system for providing custom ringtones
US20110231892A1 (en) * 2010-03-18 2011-09-22 Tovar Tom C Systems and Methods for Restricting Online Access
CN102137450B (en) * 2010-11-17 2014-02-19 华为技术有限公司 Strategy control method and device as well as gateway
EP2458779A1 (en) * 2010-11-29 2012-05-30 Telefonaktiebolaget L M Ericsson (Publ) Usage-sensitive policy and charging control method, servers, systems and computer programs
CN102142990B (en) * 2010-12-31 2016-11-02 华为技术有限公司 Business consumption monitoring method and apparatus

Also Published As

Publication number Publication date
CN103200231A (en) 2013-07-10

Similar Documents

Publication Publication Date Title
CN103200231B (en) Policy control method and system
CN105446750B (en) The method and apparatus that WebApp starting runs, generates image file
EP2962216B1 (en) Sharing application states
CN103888928B (en) Business strategy control method and system
CN103269479B (en) A kind of call bill processing method, device and system
KR101868180B1 (en) Aggregating multiple functions into a single platform
WO2016082289A1 (en) Content distribution network (cdn)-based website acceleration method and system
US11010215B2 (en) Recommending applications based on call requests between applications
CN103384993B (en) The reorientation method of user equipment access webpage, gateway and server
CN104572777A (en) Webpage loading method and device based on UIWebView component
CN106557584A (en) A kind of web site collection method and device
KR20120037417A (en) Method and apparatus for modifying internet content through redirection of embedded objects
US20140086151A1 (en) Quality of service level adaptation for visual services in mobile communication networks
CN103902534B (en) A kind of method and apparatus of web page program triggering local operation
CN106254528A (en) A kind of resource downloading method and buffer memory device
CN105794175A (en) Performance metric of a system conveying WEB content
CN106411819A (en) Method and apparatus for recognizing proxy Internet protocol address
EP3163795B1 (en) Charging methods, access device, and charging device
CN102142925B (en) Method, equipment and system for filtering deep packet inspection
CN103440281A (en) Method, device and equipment for acquiring download file
CN103686852B (en) A kind of method, equipment and Wireless acceleration system that interaction data is processed
US20160315905A1 (en) Method and System for Determining and Tracking an Email Open Duration
EP2850809A1 (en) Providing data to a network terminal
CN102726026A (en) Method, equipment and system for acquiring user behavior
US20180227434A1 (en) Method and Network Entity for Control of Charging for Value Added Service (VAS)

Legal Events

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