CN103108030B - Based on the multiple service supporting method of application - Google Patents

Based on the multiple service supporting method of application Download PDF

Info

Publication number
CN103108030B
CN103108030B CN201210567625.7A CN201210567625A CN103108030B CN 103108030 B CN103108030 B CN 103108030B CN 201210567625 A CN201210567625 A CN 201210567625A CN 103108030 B CN103108030 B CN 103108030B
Authority
CN
China
Prior art keywords
service request
resource
mode
application
priority
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
CN201210567625.7A
Other languages
Chinese (zh)
Other versions
CN103108030A (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.)
Xi'an Sihua Information Technology Co., Ltd
Original Assignee
SHANGHAI SIHUA TECH 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 SHANGHAI SIHUA TECH Co Ltd filed Critical SHANGHAI SIHUA TECH Co Ltd
Priority to CN201210567625.7A priority Critical patent/CN103108030B/en
Publication of CN103108030A publication Critical patent/CN103108030A/en
Application granted granted Critical
Publication of CN103108030B publication Critical patent/CN103108030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present invention relates to the multiple service supporting method based on application.A kind of by Resourse Distribute to the technology of service request.This technology comprises reception and applies service request that be associated, request resource, and wherein this service request comprises a URL; The URL that parsing receives is to identify the application be associated with this service request; Determine the application resource mode of priority be associated with this application; According to determined application resource mode of priority, give this service request by Resourse Distribute in order.

Description

Based on the multiple service supporting method of application
Technical field
The present invention relates to the Resourse Distribute in content distributing network.
Background technology
Content distributing network comprises multiple virtual content distributing network.Each virtual content distributing network marks off appointment " resource " from content distributing network, for each virtual content distributing network in the mode exclusively enjoyed.Each virtual content distributing network comprises multiple application.When user initiates service request, virtual content distributing network is to each service request Resources allocation.In the prior art, content distributing network or according to the mode exclusively enjoyed completely, to Resourse Distribute to service request, or according to the mode shared completely, makes and applies the service request contention for resources be associated.When with the mode Resources allocation exclusively enjoyed completely, the resource existed an application exclusively enjoys is not used, and applies with other situation that service request be associated cannot obtain resource.When with the mode Resources allocation shared completely, there is the contention because of other application, the situation that system core content cannot push all the time.Lack the resource distribution mode flexibly in a kind of content distributing network.
Summary of the invention
The present invention relates to a kind of by Resourse Distribute to the method for service request.The method comprises reception and applies service request that be associated, request resource, and wherein this service request comprises a URL; The URL that parsing receives is to identify the application be associated with this service request; Determine the application resource mode of priority be associated with this application; According to determined application resource mode of priority, give this service request by Resourse Distribute in order.
The invention still further relates to a kind of by Resourse Distribute to the system of service request.This system comprises: access control module, receives the service request of the request resource comprising service URL; Analytic application module, the URL that parsing receives is to identify the application be associated with this service request; Resource management module, determines the application resource mode of priority be associated with this application, and according to determined application resource mode of priority, gives this service request in order by Resourse Distribute.
Accompanying drawing explanation
Fig. 1 is the block diagram of exemplary embodiment according to the present invention to the system of service request Resources allocation.
Fig. 2 is the method for exemplary embodiment according to the present invention to service request Resources allocation.
Fig. 3-4 is flow charts of Resources allocation in order in the method according to Fig. 2.
Embodiment
Fig. 1 is the block diagram of exemplary embodiment according to the present invention to the system of service request Resources allocation.This system can comprise access control module 102, analytic application module 104, resource management module 106, content locating module 108, data service module 110.Access control module 102 receives service request from user.This service request comprises service URL, and specifies requested resource.Service request and one is applied and is associated.One application can have the one or more service requests be associated.Upon receipt of a service request, access control module 102 calls analytic application module 104, and the latter resolves URL to obtain the mark of the application be associated with this service request.Follow-up process all depends on the application identities of resolving and obtaining.After parsing is applied mark, obtained application identities is sent to resource management module 106 by access control module 102, and the load equalizer 112 in access control module 102 calls resource management module 106.The application identities that resource management module 106 sends according to access control module 102, inquires about the application resource mode of priority be associated with this application.After determining the application resource mode of priority be associated with this application, resource management module according to the determined order of this mode of priority, to service request Resources allocation.These resources or to exclusively enjoy mode or to use with the serviced request of sharing mode.After being assigned with resource, access control module 102 calls content locating module 108.After the position of content in content distributing network that content locating module 108 finds user to expect to access, access control module 102 notifies to data service module 110, user be provided to expect the content of accessing to user.
Fig. 2 is the method for exemplary embodiment according to the present invention to service request Resources allocation.
In operation 202, access control module receives the service request comprising service URL from user.This service request is to the resource of a certain quantity of content distributing network request.
In operation 204, access control module calls analytic application module, resolves service URL, to obtain the mark of " application " that be associated with this service.Concrete steps about analytic application will in following description.
In operation 206, the load equalizer in access control module calls resource management module, carries out inspection and and representative of consumer carrys out request resource for this service request to resource.Resource management module determines the application resource mode of priority specified by application be associated with this service request.
In operation 208, requested resource, according to determined application resource mode of priority, is distributed to service request by resource management module in order.Details about Resourse Distribute will in following description.If do not have resource to be assigned with, then refuse this service request.Otherwise this process proceeds to operation 210.
In operation 210, access control module calls content positioning service, and in CDN, location wants user to be intended to the content of accessing.
In operation 212, the content that user will be intended to access by access control module notification data service module is supplied to user.
URL parses policy of the present invention is below described.Serve the form of URL generally following (in [] is option):
Agreement: // host name [: port]/path/[; Parameter] [inquiry] # fragment
Wherein " agreement " specifies the host-host protocol used, and includes but not limited to: p, http, https, file etc.; Host name refers to domain name system host name or the IP address of the server depositing resource; Path is the character string separated by zero or multiple "/" symbol, is generally used for representing a catalogue on main frame or file address; Inquiry is used for dynamic web page (as used the webpage of the fabrication techniques such as CGI, ISAPI, PHP/JSP/ASP/ASP.NET) Transfer Parameters, and can have multiple parameter, separate with " & " symbol, name and value "=" symbol of each parameter separate.
In the present invention, application can be identified according to the value of a parameter in the directory name of first in host name, path and inquiry.In one example, URL is
http://1.1.1.1/contex/a/b.flv?appid=contex&token=XXX
In this instance, application can be resolved according to host name, can resolve the mark that is applied according to host name " 1.1.1.1 ".Or, can according to the directory name of first in path, namely " contex " resolves.Such as, or also can resolve according to the value of parameter in inquiry, if a kind of strategy is specified use appid parameter, then the value of this parameter i.e. " contex " can be used to resolve with the mark be applied.In one example, parameter can comprise COS, user class etc.
In the present invention, the one or more combination in the value of a parameter in host name, path first directory name and inquiry also can be selected to resolve the mark be applied.
Below the specific descriptions to application resource priority pattern.
Resource management module be access in control module call time, resource management module can be inquired about to determine and apply the application resource mode of priority be associated.Application resource mode of priority in the present invention is divided into: exclusively enjoy resource priority and shared resource is preferential.According to embodiments of the invention, exclusively enjoying in resource priority pattern, preferentially divide to service request the resource being equipped with the mode of exclusively enjoying and using, after the resource quantity used to exclusively enjoy mode of distributing to the application be associated with this service request reaches the certain threshold value be associated with this application, service request uses the resource in Content Distribution Network with sharing mode.And in shared resource mode of priority, the resource being equipped with sharing mode and using preferentially is divided to service request, after the resource quantity used with sharing mode of distributing to the application be associated with this service request reaches the certain threshold value be associated with this application, service request uses resource in Content Distribution Network to exclusively enjoy mode.In an embodiment of the present invention, can be application and distribute the resource provisioning of configurable number with exclusively enjoying.Even if in fact the service request be associated with this application is not using these quantity resources, also to reserve the resource of these quantity for this application, and the Resourse Distribute of this tittle can not used to applying with other service request be associated.And can the principle according to First come first served between multiple application use with the resource that sharing mode uses.
Resource described in the present invention comprise high-speed cache (that is, which high-speed cache can be used), concurrent quantity (namely one application support while online user's quantity), flow (i.e. service available data traffic), memory space (memory capacity of cacheable content) etc.
With reference now to Fig. 3 and Fig. 4, provide according to determined application resource mode of priority, in order by Resourse Distribute to the specific descriptions of service request.
First service request is inquired about and is applied the application resource mode of priority be associated, and judges that application resource mode of priority is " sharing " resource priority or " exclusively enjoying " resource priority (operation 300).
When determining this application resource mode of priority for exclusively enjoying resource priority pattern, if first judge divide to this service request the requested resource being equipped with the mode of exclusively enjoying and using, so distribute to each service request be associated with this application, whether exceed first threshold (operating 302) with the quantity exclusively enjoying the resource that mode uses.First threshold can be pre-defined according to each application by user or system.If do not exceed first threshold, then can divide the requested resource being equipped with the mode of exclusively enjoying and using (operation 304) to this service request.If exceed first threshold, then judge further, if divide the requested resource being equipped with sharing mode and using to this service request, whether the quantity of resource that so distribute to each service request be associated with this application, that use with sharing mode exceedes Second Threshold (operating 306).Second Threshold can be pre-defined according to each application by user or system.If do not exceed Second Threshold, then divide the requested resource being equipped with sharing mode and using (operation 308) to this service request.If exceed Second Threshold, then judge further again, the resource that whether there is minimum in system can be assigned to this service request (operation 310).This minimum can according to the application be associated with service request by user or system predefine.If so, then distribute the request (operation 312) of minimum to this service request, otherwise then refuse this service request (operation 314).
When determining that this application resource mode of priority is shared resource mode of priority, if first judge to divide to this service request the requested resource being equipped with sharing mode and using, whether the quantity of resource that so distribute to each service request be associated with this application, that use with sharing mode exceedes Second Threshold (operating 322).If do not exceed Second Threshold, then can divide to this service request the requested resource (324) being equipped with sharing mode and using.If exceed Second Threshold, then judge further, if divide the requested resource being equipped with the mode of exclusively enjoying and using to this service request, so distribute to each service request be associated with this application, whether exceed first threshold (operating 326) with the quantity exclusively enjoying the resource that mode uses.If do not exceed first threshold, then divide the requested resource being equipped with the mode of exclusively enjoying and using (operation 328) to this service request.If exceed first threshold, then judge further again, the resource that whether there is minimum in system can be assigned to this service request (operation 330).If so, then distribute the request (operation 332) of minimum to this service request, otherwise then refuse this service request (operation 334).
In another embodiment of the present invention, each resource has been distinguished priority in advance.When to service request Resources allocation, according to the priority of resource to service request Resources allocation.First the resource that priority is high is assigned with.Priority can be pre-defined by user or system.

Claims (7)

1. by Resourse Distribute to a method for service request, comprising:
Receive the service request of request resource, described service request comprises a URL;
The URL that parsing receives is to identify the application be associated with described service request;
Determine that the application resource mode of priority be associated with described application exclusively enjoys resource priority pattern or shared resource mode of priority; And
According to determined application resource mode of priority, give described service request by Resourse Distribute in order,
Wherein when determining described application resource mode of priority for exclusively enjoying resource priority pattern, comprise Resourse Distribute to described service request according to order: judge when divide to described service request be equipped with requested resource that the mode of exclusively enjoying uses, distribute to each service request be associated with described application, whether exceed predefined first threshold with the quantity exclusively enjoying the resource that mode uses, if do not exceed first threshold, the requested resource being equipped with the mode of exclusively enjoying and using then is divided to described service request, and
When determining that described application resource mode of priority is shared resource mode of priority, according to order, Resourse Distribute is comprised to service request: judge when dividing the requested resource being equipped with sharing mode use to described service request, whether the quantity of resource that distribute to each service request be associated with described application, that use with sharing mode exceedes predefined Second Threshold, if do not exceed Second Threshold, then divide the requested resource being equipped with sharing mode and using to described service request.
2. the method for claim 1, it is characterized in that, also be included in and judge when exceeding first threshold, further judgement is when dividing the requested resource being equipped with sharing mode use to described service request, whether the quantity of resource that distribute to each service request be associated with described application, that use with sharing mode exceedes predefined Second Threshold, if do not exceed Second Threshold, then divide the requested resource being equipped with sharing mode and using to described service request.
3. method as claimed in claim 2, it is characterized in that, also be included in and judge when exceeding Second Threshold, judge whether that the resource that there is predefined minimum can be assigned to described service request further, if, then distribute the request of minimum to described service request, otherwise then refuse described service request.
4. the method for claim 1, it is characterized in that, also be included in and judge when exceeding Second Threshold, further judgement when divide to described service request be equipped with requested resource that the mode of exclusively enjoying uses, distribute to each service request be associated with described application, whether exceed predefined first threshold with the quantity exclusively enjoying the resource that mode uses, if do not exceed first threshold, then divide the requested resource being equipped with the mode of exclusively enjoying and using to described service request.
5. method as claimed in claim 2, it is characterized in that, also be included in and judge when exceeding first threshold, judge whether that the resource that there is predefined minimum can be assigned to described service request further, if, then distribute the request of minimum to described service request, otherwise then refuse described service request.
6. the method for claim 1, it is characterized in that, the URL that described method is received by an analytic application policy resolution, described parses policy identifies application according to the combination of at least one in the following: first directory name, parameter value in host name, path.
7. by Resourse Distribute to a system for service request, comprising:
Access control module, receives the described service request of the request resource comprising service URL;
Analytic application module, the URL that parsing receives is to identify the application be associated with described service request;
Resource management module, determines that the application resource mode of priority be associated with described application exclusively enjoys resource priority pattern or shared resource mode of priority, and according to determined application resource mode of priority, gives described service request in order by Resourse Distribute,
Wherein when determining described application resource mode of priority for exclusively enjoying resource priority pattern, comprise Resourse Distribute to described service request according to order: judge when divide to described service request be equipped with requested resource that the mode of exclusively enjoying uses, distribute to each service request be associated with described application, whether exceed predefined first threshold with the quantity exclusively enjoying the resource that mode uses, if do not exceed first threshold, the requested resource being equipped with the mode of exclusively enjoying and using then is divided to described service request, and
When determining that described application resource mode of priority is shared resource mode of priority, according to order, Resourse Distribute is comprised to service request: judge when dividing the requested resource being equipped with sharing mode use to described service request, whether the quantity of resource that distribute to each service request be associated with described application, that use with sharing mode exceedes predefined Second Threshold, if do not exceed Second Threshold, then divide the requested resource being equipped with sharing mode and using to described service request.
CN201210567625.7A 2012-12-24 2012-12-24 Based on the multiple service supporting method of application Active CN103108030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210567625.7A CN103108030B (en) 2012-12-24 2012-12-24 Based on the multiple service supporting method of application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210567625.7A CN103108030B (en) 2012-12-24 2012-12-24 Based on the multiple service supporting method of application

Publications (2)

Publication Number Publication Date
CN103108030A CN103108030A (en) 2013-05-15
CN103108030B true CN103108030B (en) 2016-04-13

Family

ID=48315597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210567625.7A Active CN103108030B (en) 2012-12-24 2012-12-24 Based on the multiple service supporting method of application

Country Status (1)

Country Link
CN (1) CN103108030B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516905B (en) * 2013-09-24 2015-08-19 北京奇虎科技有限公司 Service positioning method and service locator
CN108600303B (en) * 2018-03-13 2020-08-25 腾讯科技(深圳)有限公司 Application control method, device, terminal equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123814A (en) * 2007-09-10 2008-02-13 北京航空航天大学 Adjacent space multi-protocol tag switching network system and its processing method
CN101150421A (en) * 2006-09-22 2008-03-26 华为技术有限公司 A distributed content distribution method, edge server and content distribution network
CN102263828A (en) * 2011-08-24 2011-11-30 北京蓝汛通信技术有限责任公司 Load balanced sharing method and equipment
CN102799488A (en) * 2012-07-06 2012-11-28 中山大学深圳研究院 Application resource management system applied to digital television

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9148332B2 (en) * 2010-05-19 2015-09-29 Google Inc. Content delivery network
US20120036365A1 (en) * 2010-08-06 2012-02-09 Microsoft Corporation Combining request-dependent metadata with media content

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150421A (en) * 2006-09-22 2008-03-26 华为技术有限公司 A distributed content distribution method, edge server and content distribution network
CN101123814A (en) * 2007-09-10 2008-02-13 北京航空航天大学 Adjacent space multi-protocol tag switching network system and its processing method
CN102263828A (en) * 2011-08-24 2011-11-30 北京蓝汛通信技术有限责任公司 Load balanced sharing method and equipment
CN102799488A (en) * 2012-07-06 2012-11-28 中山大学深圳研究院 Application resource management system applied to digital television

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于CDN内容管理网络优化研究;张裔智 等;《微计算机信息》;20080630;第24卷(第6期);全文 *

Also Published As

Publication number Publication date
CN103108030A (en) 2013-05-15

Similar Documents

Publication Publication Date Title
US20230216930A1 (en) Content delivery systems and methods
AU2013351670B2 (en) Business scheduling method and apparatus and convergence device
US11178062B2 (en) Orchestrating physical and virtual resources for delivering digital contents
CN103297472B (en) A kind of reorientation method and content distribution nodes applied to content distributing network
CN104363313A (en) Method and system for guaranteeing resource utilization rate of website using content distribution network
CN102882939B (en) Load balancing method, load balancing equipment and extensive domain acceleration access system
CN107707943B (en) A kind of method and system for realizing cloud service fusion
US20120198045A1 (en) Global load balancing on a content delivery network
CN104320487A (en) HTTP dispatching system and method for content delivery network
CN101425969B (en) Scheduling method, apparatus and system
CN102067094A (en) Cache optimzation
CN104348798B (en) A kind of method, apparatus, dispatch server and system for distributing network
EP1655919B1 (en) Analysis method for user request
KR101959970B1 (en) Contents delivery service method using contents sharing, and cache apparatus therefor
CN109756584B (en) Domain name resolution method, domain name resolution device and computer readable storage medium
CN109151009A (en) A kind of CDN node distribution method and system based on MEC
WO2020259234A1 (en) Inter-area media service switching method, server, system, and storage medium
CN109618003B (en) Server planning method, server and storage medium
CN103108030B (en) Based on the multiple service supporting method of application
US20130144728A1 (en) PRE-PROCESSING OF AD REQUESTS USING EDGE SIDE PROCESSING OVER COMMERCIAL CDNs
KR102389334B1 (en) Virtual machine provisioning system and method for cloud service
CN109302302B (en) Method, system and computer readable storage medium for scaling service network element
CN111510491B (en) Resource access method, cache server, storage medium and electronic device
CN113301445B (en) Address allocation method and device for content distribution network
KR20150011087A (en) Distributed caching management method for contents delivery network service and apparatus therefor

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201030

Address after: Room 11704, 17 / F, unit 1, building 1, Jingu Rongcheng, No. 10, Jinye 1st Road, hi tech Zone, Xi'an City, Shaanxi Province

Patentee after: Xi'an Sihua Information Technology Co., Ltd

Address before: 200120, Shanghai, Lujiazui, Pudong New Area loop No. 166, the future asset building, 6 floor

Patentee before: SHANGHAI SIHUA TECHNOLOGY Co.,Ltd.