CN108366097A - Resource access control method and system - Google Patents

Resource access control method and system Download PDF

Info

Publication number
CN108366097A
CN108366097A CN201810049725.8A CN201810049725A CN108366097A CN 108366097 A CN108366097 A CN 108366097A CN 201810049725 A CN201810049725 A CN 201810049725A CN 108366097 A CN108366097 A CN 108366097A
Authority
CN
China
Prior art keywords
resource
client
server
download
addresses
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.)
Granted
Application number
CN201810049725.8A
Other languages
Chinese (zh)
Other versions
CN108366097B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810049725.8A priority Critical patent/CN108366097B/en
Publication of CN108366097A publication Critical patent/CN108366097A/en
Application granted granted Critical
Publication of CN108366097B publication Critical patent/CN108366097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The present invention provides a kind of resource access control method and system, method therein includes:Client initiates resource access request to resolution server;Resolution server returns to the resource access response for carrying the download address information obtained according to the addresses ip of download server to client;Client carries out resource downloading according in the download address information to download server.Resource access efficiency can be improved in the present invention.

Description

Resource access control method and system
Technical field
The present invention relates to Internet technical fields, more particularly to a kind of resource access control method and system.
Background technology
The playing flow of the resources such as online request video at present, in network side mainly by video resolution server (Video Play Service, VPS), the association of video dispatching server (abbreviation scheduler) and video download services device (abbreviation cache machines) With control.
For example, when user's one film of viewing or certain collection of a TV play, this video depositing in server side Storage is not an entire file, but is sliced, and may be divided into 10,20 or more small documents (are known as text Part fragment).For 10, when user accesses, the address list for downloading each fragment is first obtained, totally 10 addresses correspond to 10 Then fragment is downloaded each file and is played out in order;Store the server i.e. VPS of this address list.Later, user is every It, can first access scheduling device before secondary foradownloaded video fragment;Scheduler determines which cache machine downloading slicing user can remove.
As it can be seen that the access order that user watches video is:VPS->Scheduler->Cache machines A (downloads the 1st video point Piece)->Scheduler->Cache machines B (the 2nd video slicing of download) ... ...As cache machines A is possible with B, it is also possible to differ Sample.
The above flow is excessively cumbersome.From the angle of client, if removing some cache machine downloading video files no problem, But also it is required for which cache machine inquiry scheduler should remove every time;Actually can not only access in current cache machines or When person's speed of download is excessively slow, just need replacing.Another problem is, using above-mentioned flow, is dispatched when cache machines can connect When device cannot connect, video can not also play, this is also unreasonable.
Invention content
In order to improve resource access efficiency, a kind of resource access control method of offer of the embodiment of the present invention and system.
According to embodiments of the present invention on one side, a kind of resource access control method is provided, including:Client takes to parsing Business device initiates resource access request;Resolution server returns to what carrying was obtained according to the addresses ip of download server to client The resource access response of download address information;Client is carried out according in the download address information to download server under resource It carries.
In a kind of optional mode, the client to resolution server initiate resource access request after further include: The resolution server can be used for according to the resource and/or customer parameter in the resource access request, access scheduling device Download the addresses ip of the download server of the resource.
In a kind of optional mode, after the client initiates resource access request to resolution server, further include: The resolution server obtains the corresponding uri of the resource;The download address information includes the addresses ip and the uri; The client according in the download address information to download server carry out resource downloading include:The client parses institute It states resource access response and obtains the addresses ip and the uri;The client is corresponding by the addresses ip and uri composition resources url;The client downloads resource according to the url from download server.
In a kind of optional mode, after the client initiates resource access request to resolution server, further include: The resolution server obtains the corresponding uri of the resource;The addresses ip and uri are formed resource by the resolution server by described Corresponding url;The download address information is the url;The client is according to the download address information to download service Resource downloading is carried out on device includes:The client downloads resource according to the url from download server.
Further include scheduler address in the resource access response in a kind of optional mode;The method further includes:Institute Client is stated to judge whether to meet:It reaches the preset timer access scheduler moment, resource downloading, resource downloading speed can not be carried out Spend low any one condition;If so, client initiates the access to scheduler according to the scheduler address, request scheduling device is sentenced It is disconnected whether to need replacing new download address, if necessary resource is downloaded according to new download address.
In a kind of optional mode, the client includes to the access of scheduler according to scheduler address initiation: The client carries the scheduling access request of scheduling reference parameter according to the scheduler address to scheduler dispatches;The side Method further includes:The scheduler judges whether to need replacing download according to the scheduling reference parameter in the scheduling access request Server;If necessary to replace, the new addresses ip of newly downloaded server are determined;And it returns and is carried according to the new ip to client The scheduling access response for the download address data that address obtains.
In a kind of optional mode, the scheduling reference parameter includes that parameter, current is inquired/replaced to current download server The ip address parameters of download server, and/or, the used ip list parameters of this playing resource;The scheduler judges to need It replaces download server and determines that the process of the new addresses ip of newly downloaded server is:The scheduler is according to download server Inquiry/replacement parameter, current download server ip address parameters, and/or, resource play ip list parameters, selection with it is described Under the addresses the ip difference of the current download server of client and new not in the used ip lists of this described playing resource Carry the new addresses ip of server.
According to embodiments of the present invention on one side, a kind of resource access control system is provided, the system comprises client, Resolution server, at least one download server;Wherein:The client is visited for initiating resource to the resolution server It asks request, and receives the resource access response that the resolution server returns, and carried according to the resource access response Resource downloading is carried out in download address information to download server;The resolution server, the money for receiving client initiation Source access request, and the resource visit for carrying the download address information obtained according to the addresses ip of download server is returned to client Ask response;The download server, for storing the resource.
In a kind of optional mode, the system also includes:Scheduler, for providing the money to the resolution server The addresses ip of the corresponding download server in source;The resolution server is specifically used for:According to the money in the resource access request Source and/or customer parameter, access scheduling device obtain the addresses ip for the download server that can be used for downloading the resource.
In a kind of optional mode, the resolution server is additionally operable to:Obtain the corresponding uri of the resource;The download Address information includes the addresses ip and the uri;The client is specifically used for:It parses the resource access response and obtains institute State the addresses ip and the uri, and by the addresses ip and the corresponding url of uri composition resources, and according to the url from download service Resource is downloaded on device.
In a kind of optional mode, the resolution server is additionally operable to:Obtain the corresponding uri of the resource;It is incited somebody to action described The addresses ip and the corresponding url of uri composition resources;Wherein:The download address information is the url;The client is specifically used In:Resource is downloaded from download server according to the url.
Further include scheduler address in the resource access response in a kind of optional mode;The client is additionally operable to: Judge whether to meet:It reaches the preset timer access scheduler moment, low times of resource downloading, resource downloading speed can not be carried out One condition;If so, initiating the access to scheduler according to the scheduler address, request scheduling device judges whether to need replacing New download address downloads resource according to new download address if necessary.
In a kind of optional mode, the client is specifically used for:It is taken to scheduler dispatches according to the scheduler address Scheduling access request with scheduling reference parameter;The scheduler is additionally operable to, and is joined according to the scheduling in the scheduling access request Parameter is examined, judges whether to need replacing download server;If necessary to replace, the new addresses ip of newly downloaded server are determined;And The scheduling access response for carrying the download address data obtained according to the new addresses ip is returned to client.
In a kind of optional mode, the scheduling reference parameter includes that parameter, current is inquired/replaced to current download server The ip address parameters of download server, and/or, the used ip list parameters of this playing resource;The scheduling implement body is used In:Judge to need replacing download server and determines that the process of the new addresses ip of newly downloaded server is:The scheduler according to Parameter, the ip address parameters of current download server are inquired/replaced to download server, and/or, resource plays ip list parameters, Selection is different from the addresses ip of the current download server of the client and not in the used ip row of this described playing resource The new addresses ip of newly downloaded server in table.
As it can be seen that scheduler address is supplied to client, client further according to scheduler different from VPS in existing scheme Location access scheduling device obtains the mode of cache machines address, and the direct access scheduling devices of VPS obtain cache machines in the embodiment of the present invention Address, and this is supplied to client according to the download address information that cache machines address obtains, client is without each as a result, It carries out that access scheduling device is all gone to obtain cache machines address when resource downloading, but directly according to the download address information of VPS offers Resource downloading is carried out to cache machines, flow is simplified, improves efficiency.When cache machines can connect and scheduler cannot When connection, resource broadcasting will not be influenced.
Description of the drawings
Fig. 1 is that prior art resource access control method realizes schematic diagram;
Fig. 2 is f4v file fragmentation form schematic diagrams;
Fig. 3 is a kind of resource access control method flow chart provided by one embodiment of the present invention;
Fig. 4 is a kind of resource access control method example schematic provided by one embodiment of the present invention;
Fig. 5 is a kind of resource access control system schematic diagram provided by one embodiment of the present invention.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is described in further detail.
As described before, in existing scheme, the access order that user watches video is:VPS->Scheduler->Cache machines A (downloading the 1st video slicing)->Scheduler->Cache machines B (the 2nd video slicing of download) ... ...
Referring to Fig. 1, schematic diagram is realized for prior art resources accessing control.
Step (1):Client asks fragment address list to VPS;
Step (2):Client access scheduling device obtains the address of 1 corresponding cache machines of fragment;
Step (3):Client carries out fragment 1 according to the address of 1 corresponding cache machines of fragment and downloads;
The download of other each fragments is required for repeating step 2-3 progress.
Wherein, the address in the fragment address list that client is asked from VPS in step 1 is the address of domain name form, It is to be appreciated that the address of scheduler;Then it is obtained in step 2 from scheduler further according to the address access scheduling device of scheduler The address of cache machines.
For playing the flow of f4v formatted files, client can obtain a list such as Fig. 2 formats when accessing VPS, Example in Fig. 2 includes three f4v file fragmentations, and each format is http://data.video.qiyi.com/ videos/...../*.f4v.Later, data.video.qiyi.com can be accessed when each fragment of client downloads, It is exactly scheduler, goes to the address of inquiry cache machines.Scheduler can give one IP address of client every time, and client is again later Remove this IP address downloading video files.
The above flow is excessively cumbersome.From the angle of client, if removing some cache machine downloading video files no problem, So it is not necessarily to which cache machine inquiry scheduler every time should remove;Only speed can not be accessed or download in current cache machines When spending slow, just need replacing.Another problem is, using above-mentioned flow, when cache machines can connect and scheduler cannot connect When connecing, video can not also play, this is also unreasonable.
It is a kind of resource access control method flow chart provided in an embodiment of the present invention referring to Fig. 3, this method includes:
S301:Client initiates resource access request to resolution server;
S302:Resolution server returns to carry to client to be believed according to the download address that the addresses ip of download server obtain The resource access response of breath;
S303:Client is according to carrying out resource downloading in download address information to download server.
Hereinafter, it is illustrated as the example of resolution server, by the example of download server of cache machines using VPS.
Resource includes various Internet communication resources, including but not limited to the resources such as video, picture, word.With video resource For example, video resource is to be stored in network side with fragment, be played in client with fragment.Therefore one in the embodiment of the present invention In kind realization method, resource can be understood as video slicing.
Client initiates that in resource access request resource parameters and/or customer parameter can be carried to VPS.By taking video as an example, Resource parameters include the movie and television play title of viewing, total film size;Customer parameter includes user ip etc..
After VPS receives the resource access request of client, resource access is obtained by resolving resource access request and is asked The resource parameters and/or customer parameter for asking carrying, then get the ip of cache machines according to resource parameters and/or customer parameter Address.In a kind of realization method, pass through the addresses ip that access scheduling device obtains cache machines.
Client needs to obtain the corresponding url of resource (Uniform Resource to realize resource downloading Locator, uniform resource locator).Url includes two parts:A part is download domain name, such as “data.video.iqiyi.com”;Another part is uri (Uniform Resource Identifier, uniform resource identifier Symbol), such as:“/videos/..../*.f4v”.Therefore in one implementation, VPS is visited in the resource for receiving client After asking request, the corresponding uri of resource can also be obtained by searching for database mode.
There are many forms for download address information.
In a kind of optional mode, download address information includes the addresses ip and uri.Namely in such mode, VPS is to obtaining The addresses ip got and uri are not processed, but will be carried both as download address information and be returned in resource access response Client.In such mode, client needs after receiving resource access response and obtaining the addresses ip and uri by the addresses ip The url of resource downloading can be carried out with uri compositions, and resource is finally downloaded from cache machines according to url.
In a kind of optional mode, download address information refers to url.Namely in such mode, VPS is to the ip that gets Address and uri processing, such as the addresses ip and uri are formed to the url that can carry out resource downloading, and url is carried in resource Access response returns to client.In such mode, client is after receiving resource access response and obtaining url, directly Resource is downloaded from cache machines according to url.
Such as preceding introduction, for the different form of download address information, client is according to download address information to cache machines The upper mode for carrying out resource downloading is also different.The case where including the addresses ip and uri for download address information, client is under Resource downloading is carried out in set address information to cache machines includes:Resolving resource access response obtains the addresses ip and uri first;So The addresses ip and uri compositions can be carried out to the url of resource downloading afterwards;Resource is finally downloaded from cache machines according to the url.It is right In download address information is url the case where, client resolving resource access response obtains url;Then directly according to url from Resource is downloaded on cache machines.
As it can be seen that scheduler address is supplied to client, client further according to scheduler different from VPS in existing scheme Location access scheduling device obtains the mode of cache machines address, and the direct access scheduling devices of VPS obtain cache machines in the embodiment of the present invention Address, and this is supplied to client according to the download address information that cache machines address obtains, client is without each as a result, It carries out that access scheduling device is all gone to obtain cache machines address when resource downloading, but directly according to the download address information of VPS offers Resource downloading is carried out to cache machines.When cache machines can connect and scheduler cannot connect, resource will not be influenced It plays.
In resource access process, the cache machine states in order to ensure current accessed as far as possible are available, and avoid in advance not The case where carrying out failed download, client can obtain the state of current cache machines with timing request;In addition, in resource access process In, inevitably it will appear due to the situation that resource downloading caused by network or other reasons fails or speed of download is slow, in order to keep away Exempt from influence of these situations to resource downloading, client can be made from new cache machines in such a way that cache machines are replaced in control Carry out resource downloading.
Therefore, in a kind of optional mode, the embodiment of the present invention is in the above two classes situation (timer access;Failed download or Speed of download is slow) under support client access scheduling device, request scheduling device judge realize need carry out cache machines replacement.
Further include adjusting in order to realize access of the client to scheduler, in the resource access response that VPS is returned to client Spend device address.
Client proceeds as follows:Client judges whether to meet:Reach preset timer access scheduler moment, nothing Method carries out the low any one condition of resource downloading, resource downloading speed;If so, client is initiated according to scheduler address to scheduling The access of device, request scheduling device, which judges to realize, needs replacing download address, if it is desired, then obtains new download address, and presses Resource is downloaded according to new download address.
Wherein:Client can determine whether failed download or the slow situation of speed of download in the following manner:Visitor Detect current TCP (Transmission Control Protocol, transmission control protocol) connection or HTTP in family end (HyperText Transfer Protocol, hypertext transfer protocol) connects, if TCP connection or HTTP connections are obstructed, Then determination can not carry out resource downloading;And/or detection resource downloading speed, if resource downloading speed plays speed less than resource Degree is less than speed of download lowest threshold, it is determined that resource downloading speed is low.
In a kind of optional mode, client includes to the access of scheduler according to the initiation of scheduler address:Client root The scheduling access request of scheduling reference parameter is carried to scheduler dispatches according to scheduler address;Corresponding, scheduler is according to scheduling Scheduling reference parameter in access request judges whether to need replacing cache machines;If necessary to replace, new cache machines are determined The new addresses ip;And the scheduling access response for carrying the download address data obtained according to the new addresses ip is returned to client.
In a kind of optional mode, scheduling reference parameter includes that parameter, current cache machines are inquired/replaced to current cache machines Ip address parameters, and/or, the used ip list parameters of this playing resource;Corresponding, scheduler judgement needs replacing Cache machines simultaneously determine that the process of the new addresses ip of new cache machines is:Parameter, current is inquired/replaced to scheduler according to cache machines The ip address parameters of cache machines, and/or, resource plays ip list parameters, the addresses ip of selection and the current cache machines of client Difference and the not new addresses ip of the new cache machines in the used ip lists of this described playing resource.
As it can be seen that the embodiment of the present invention changes the side for being required for access scheduling device before each downloading video files of existing scheme Formula, becoming client, whether the existing ip of active inquiry can be used on time.Due to being not necessarily to frequent access scheduling device, flow is simplified, only Have when current cache machines can not access or speed of download is excessively slow, just needs replacing cache machines.
The example downloaded below with video slicing, from the process of realization, two angles of each scrap build, to resource Access control method illustrates.
Referring to Fig. 4, for a kind of resource access control method realization schematic diagram provided by one embodiment of the present invention.
Step (1):Client accesses VPS;
Step (2):VPS obtains download address to scheduler;
Step (3):VPS returns to the data constituted comprising the addresses ip and uri to client;
Step (4):After client constitutes url according to the addresses ip and uri, according to downloading slicing on url to cache machines;
Step (5):It reaches or can not download or when speed of download is excessively slow in timing, client access scheduling device, request New download address (new cache machines address), and according to new address from new cache machines downloading slicing (under new cache machines Carry the process such as step (4) of fragment).
Compared with the prior art, the transformation to existing procedure includes VPS, scheduler and client three to the embodiment of the present invention Point.Wherein since scheduler transformation is more, can also be related in other two-part descriptions.
VPS is transformed
When client accesses resource at present, the url download address that the lateral user of network returns includes two parts:A part is Data.video.iqiyi.com, that is, domain name is downloaded, another part is subsequent/videos/..../* .f4v, referred to as uri.This two parts has collectively constituted a url, for client downloads.
The embodiment of the present invention changes this mode:When client accesses VPS servers, VPS is using existing method On the basis of obtaining uri, according to the parameter of client request (the movie and television play title, total film size of such as viewing, user ip), Instead of client access scheduling device, and only access primary, one available download address of acquisition.Later can not by this address ip and Uri forms url, but returns to client (can also directly constitute url and issue client) directly as a part for format, visitor The mode that family end assembles url is more flexible.
For example, it is assumed that when client request watches the video of Fig. 2, VPS finds out three uri of the video respectively as schemed Shown in uri in 2, and the available downloads address that scheduler provides is 180.153.129.205, then VPS returns to following information To client:
{ (180.153.129.205 ,/videos/v0/20160802/56/26/ 8bc193dd86d1fccd9a2d030bbae8082d.f4v), (180.153.129.205 ,/videos/v0/20160802/ 56/26/9a4df444b7d8b2461d976e58405cd745.f4v), (180.153.129.205 ,/videos/v0/ 20160802/56/26/dfb17e97e07aeb7c3d8c8001f3188ba3.f4v)}。
After client receives this message, voluntarily constitutes url and be downloaded.
Two, client is transformed
What client transformation can be completed by rewriting program code, it is desirable to be able to add following functions:
1, the addresses ip for the video cache machines used that start broadcasting can be obtained from VPS and the video content watched Uri can connect the addresses ip with the url that uri compositions can be downloaded;
2, it is able to access that scheduler.When access scheduling device, three parameters can be carried, it is (right to be referred to as type in this example Answer " current cache machines inquire/replace parameter " above-mentioned), the current addresses the ip (corresponding " addresses ip of current cache machines above-mentioned Parameter "), used ip lists (corresponding " the used ip lists ginseng of this playing resource above-mentioned in this watching process Number ").Wherein type may include two values:0 and 1, it respectively represents " whether still available inquiring current cache machines ip " and " wants It asks and replaces cache machines ip ".The value that the current addresses ip watch used ip lists with this is as its literal meaning.
3, the opportunity of access scheduling device.Access scheduling device in both cases:(1) timer access, i.e., each a period of time (e.g., 5 seconds) access a scheduler, and type values at this time are 0, that is, represent to scheduler and inquire that " whether is current cache machines ip Still available ".(2) it is 1 to access type values at this time when speed of download is excessively slow or the failure that can not be accessed occurs, represent " it is required that Scheduler replaces an available ip ".It can not access that can be regarded as network connection obstructed, such as TCP connection or HTTP connections are not It is logical;Speed of download can judge excessively by client slowly, if for example, the speed for downloading file is slower than the broadcasting speed of video, it can be with Think that speed of download is excessively slow.
4, returning the result for scheduler can be received, and new url is formed according to the IP address that scheduler returns and is carried out down It carries.
Three, scheduler is transformed
1, scheduler can support VPS to ask, and return to corresponding IP results according to the request of VPS and record corresponding number According to carry out load balancing (content of load balancing mode non-present invention embodiment discussion).
2, scheduler can support the access of client.When client accesses parameter type=1, can return and client The cache for holding currently used IP different and being different from the IP in used IP lists in client this watching process Machine IP address.
3, can the cache machines IP that client uses actively be replaced according to the situation of cache generator terminals.For the visit of client Ask the request of parameter type=0, returning the result for scheduler may include at least two parameters:Status (state) and ip. Status can select 0 or 1, respectively represent " the cache machines that client uses are out of question, without change " and " this cache machine IP is problematic, replaces ";As status=1, IP parameter values are the cache machines for the downloading video files that client needs replacing Address, when status=0, IP parameter values are null value.
Communication mode between the above VPS, scheduler and client needs for communication mode (such as side https of safety Formula), prevent parameter to be tampered in transmission process.
It should be noted that for embodiment of the method, for simple description, therefore it is all expressed as a series of action group It closes, but those skilled in the art should understand that, the embodiment of the present invention is not limited by the described action sequence, because according to According to the embodiment of the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
As it can be seen that examples above describe the reforming mode to each component part in video display process, one kind is described The video playing flow and method of optimization optimize order video playing flow by improving background framework;It can accelerate video text Starting broadcasting and reducing broadcasting failure for part, promotes user experience.
It is a kind of resource access control system structural schematic diagram provided in an embodiment of the present invention with reference to Fig. 5.The system includes Client 501, resolution server 502, at least one download server 503;Wherein:
The client 501 for initiating resource access request to the resolution server 502, and receives the parsing Server 502 return resource access response, and according to the resource access response carry download address information to download Resource downloading is carried out on server 503;
The resolution server 502, the resource access request for receiving the initiation of client 501, and returned to client 501 Return the resource access response for carrying the download address information obtained according to the addresses ip of download server;
The download server 503, for storing the resource.
In a kind of optional mode, the system also includes:Scheduler 504, it is described for being provided to resolution server 502 The addresses ip of the corresponding download server of resource 503;The resolution server 502 is specifically used for:It is asked according to resource access Resource in asking and/or customer parameter, access scheduling device 504 obtain the download server 503 that can be used for downloading the resource The addresses ip.
In a kind of optional mode, the resolution server 502 is additionally operable to:Obtain the corresponding uri of the resource;Under described Set address information includes the addresses ip and the uri;The client 501 is specifically used for:Parse the resource access response Obtain the addresses ip and the uri, and by the addresses ip and uri compositions can the corresponding url of resource, and according to the url from Resource is downloaded in download server 503.
In a kind of optional mode, the resolution server 502 is additionally operable to:Obtain the corresponding uri of the resource;It will be described It can the corresponding url of resource by the addresses ip and uri compositions;Wherein:The download address information is the url;The client 501 It is specifically used for:According to the url resource is downloaded from cache machines.
Further include scheduler address in the resource access response in a kind of optional mode;The client 501 is also used In:Judge whether to meet:Reach that the preset timer access scheduler moment, can not to carry out resource downloading, resource downloading speed low Any one condition;If so, initiating the access to scheduler 504 according to the scheduler address, the judgement of request scheduling device 304 is It is no to need replacing new download address, if necessary resource is downloaded according to new download address.
In a kind of optional mode, the client 501 is specifically used for:According to the scheduler address to scheduler 504 Send the scheduling access request for carrying scheduling reference parameter;The scheduler 504 is additionally operable to, according in the scheduling access request Scheduling reference parameter, judge whether to need replacing download server 503;If necessary to replace, newly downloaded server 503 is determined The new addresses ip;And the scheduling access for carrying the download address data obtained according to the new addresses ip is returned to client 501 Response.
In a kind of optional mode, the scheduling reference parameter includes that parameter, current is inquired/replaced to current cache machines The ip address parameters of cache machines, and/or, the used ip list parameters of this playing resource;The scheduler 504 is specifically used In:Judge to need replacing cache machines and determines that the process of the new addresses ip of new cache machines is:504 basis of the scheduler Parameter, the ip address parameters of current cache machines are inquired/replaced to cache machines, and/or, resource play ip list parameters, selection with The addresses ip of 501 current cache machines of the client are different and not in the used ip lists of this described playing resource The new addresses ip of new cache machines.
For system embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description Place illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction generates for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device of specified function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments In computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows And/or in one box of block diagram or multiple boxes specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
Above to a kind of resource access control method provided by the present invention and system, it is described in detail, herein Applying specific case, principle and implementation of the present invention are described, and the explanation of above example is only intended to help Understand the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, There will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as to this The limitation of invention.

Claims (14)

1. a kind of resource access control method, which is characterized in that including:
Client initiates resource access request to resolution server;
Resolution server returns to the resource for carrying the download address information obtained according to the addresses ip of download server to client Access response;
Client carries out resource downloading according in the download address information to download server.
2. according to the method described in claim 1, being accessed it is characterized in that, initiating resource to resolution server in the client After request, further include:
The resolution server is according to resource and/or customer parameter in the resource access request, and access scheduling device, acquisition can The addresses ip for the download server for downloading the resource.
3. according to the method described in claim 1, it is characterized in that,
After the client initiates resource access request to resolution server, further include:The resolution server obtains institute State the corresponding uri of resource;
Wherein:The download address information includes the addresses ip and the uri;
The client according in the download address information to download server carry out resource downloading include:The client solution It analyses the resource access response and obtains the addresses ip and the uri;The client corresponds to the addresses ip and uri composition resources Url;The client downloads resource according to the url from download server.
4. according to the method described in claim 1, it is characterized in that,
After the client initiates resource access request to resolution server, further include:The resolution server obtains institute State the corresponding uri of resource;The addresses ip and uri compositions can be carried out the url of resource downloading by the resolution server by described;
Wherein:The download address information is the url;
The client according in the download address information to download server carry out resource downloading include:The client root Resource is downloaded from download server according to the url.
5. according to claim 1-4 any one of them methods, which is characterized in that
Further include scheduler address in the resource access response;
The method further includes:The client judges whether to meet:Reach preset timer access scheduler moment, Wu Fajin The low any one condition of row resource downloading, resource downloading speed;If so, client is initiated according to the scheduler address to scheduling The access of device, request scheduling device judges whether to need replacing new download address, if necessary according under new download address Carry resource.
6. according to the method described in claim 5, it is characterized in that, the client is initiated to exchange according to the scheduler address Degree device access include:The client carries the scheduling of scheduling reference parameter according to the scheduler address to scheduler dispatches Access request;
The method further includes:The scheduler judges whether to need according to the scheduling reference parameter in the scheduling access request Replace download server;If necessary to replace, the new addresses ip of newly downloaded server are determined;And it is returned to client and carries root According to the scheduling access response for the download address data that the new addresses ip obtain.
7. according to the method described in claim 6, it is characterized in that,
The scheduling reference parameter includes that parameter, the addresses the ip ginseng of current download server are inquired/replaced to current download server Number, and/or, the used ip list parameters of this playing resource;
The scheduler judges to need replacing download server and determines that the process of the new addresses ip of newly downloaded server is:It is described Parameter, the ip address parameters of current download server are inquired/replaced to scheduler according to download server, and/or, resource plays ip List parameter is selected different from the addresses ip of the current download server of the client and is not used in this described playing resource The new addresses ip of newly downloaded server in the ip lists crossed.
8. a kind of resource access control system, which is characterized in that the system comprises clients, resolution server, at least one Download server;Wherein:
The client for initiating resource access request to the resolution server, and receives the resolution server and returns Resource access response, and according to the resource access response carry download address information to download server on provided It downloads in source;
The resolution server, the resource access request for receiving client initiation, and return and carried under to client The resource access response for the download address information that the addresses ip of load server obtain;
The download server, for storing the resource.
9. system according to claim 8, which is characterized in that the system also includes:Scheduler is used for the parsing Server provides the addresses ip of the corresponding download server of the resource;The resolution server is specifically used for:According to the money Resource in the access request of source and/or customer parameter access the scheduler, obtain the download clothes that can be used for downloading the resource The addresses ip of business device.
10. system according to claim 8, which is characterized in that the resolution server is additionally operable to:Obtain the resource pair The uri answered;The download address information includes the addresses ip and the uri;
The client is specifically used for:It parses the resource access response and obtains the addresses ip and the uri, and by the addresses ip Url corresponding with uri composition resources, and resource is downloaded from download server according to the url.
11. system according to claim 8, which is characterized in that
The resolution server is additionally operable to:Obtain the corresponding uri of the resource;
The resolution server is additionally operable to:By described by the addresses ip and the corresponding url of uri composition resources;Wherein:The download ground Location information is the url;
The client is specifically used for:Resource is downloaded from download server according to the url.
12. according to claim 8-11 any one of them systems, which is characterized in that further include adjusting in the resource access response Spend device address;
The client is additionally operable to:Judge whether to meet:It reaches the preset timer access scheduler moment, can not carry out under resource It carries, any one condition that resource downloading speed is low;If so, initiating the access to scheduler, request according to the scheduler address Scheduler judges whether to need replacing new download address, if necessary according to new download address download resource.
13. system according to claim 12, which is characterized in that the client is specifically used for:According to the scheduler Address carries the scheduling access request of scheduling reference parameter to scheduler dispatches;
The scheduler is additionally operable to, and according to the scheduling reference parameter in the scheduling access request, judges whether to need replacing down Carry server;If necessary to replace, the new addresses ip of newly downloaded server are determined;And it returns and is carried according to described new to client The scheduling access response for the download address data that the addresses ip obtain.
14. system according to claim 13, which is characterized in that
The scheduling reference parameter includes that parameter, the addresses the ip ginseng of current download server are inquired/replaced to current download server Number, and/or, the used ip list parameters of this playing resource;
The scheduler is specifically used for:Judge the mistake for needing replacing download server and the new addresses ip of determining newly downloaded server Cheng Wei:Parameter, the ip address parameters of current download server are inquired/replaced to the scheduler according to download server, and/or, Resource plays ip list parameters, selects different from the addresses ip of the current download server of the client and is not broadcast in described this Put the new addresses ip of the newly downloaded server in the used ip lists of resource.
CN201810049725.8A 2018-01-18 2018-01-18 Resource access control method and system Active CN108366097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810049725.8A CN108366097B (en) 2018-01-18 2018-01-18 Resource access control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810049725.8A CN108366097B (en) 2018-01-18 2018-01-18 Resource access control method and system

Publications (2)

Publication Number Publication Date
CN108366097A true CN108366097A (en) 2018-08-03
CN108366097B CN108366097B (en) 2021-02-12

Family

ID=63006671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810049725.8A Active CN108366097B (en) 2018-01-18 2018-01-18 Resource access control method and system

Country Status (1)

Country Link
CN (1) CN108366097B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347475A (en) * 2019-06-19 2019-10-18 东软集团股份有限公司 Service calling method, service call device and service calling system
CN110365800A (en) * 2019-08-20 2019-10-22 浪潮商用机器有限公司 A kind of method, apparatus and medium obtaining optimal downloading route
WO2024051672A1 (en) * 2022-09-08 2024-03-14 天翼数字生活科技有限公司 Method and system for unitized scheduling and access of device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471316A (en) * 2002-07-25 2004-01-28 梁肇新 New-generation distributed video on demand (VOD) service technique
AU2004100324A4 (en) * 2004-05-03 2004-05-27 Fuse Holdings Pty Ltd Video encoder
CN102196298A (en) * 2011-05-19 2011-09-21 广东星海数字家庭产业技术研究院有限公司 Distributive VOD (video on demand) system and method
CN103024082A (en) * 2013-01-04 2013-04-03 福建星网视易信息系统有限公司 Point-to-point communication method used for digital media distribution
US20160227277A1 (en) * 2015-02-03 2016-08-04 Clickspree Performance Ltd. Method and system for determining viewers' video clip attention and placing commercial responsive thereto

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471316A (en) * 2002-07-25 2004-01-28 梁肇新 New-generation distributed video on demand (VOD) service technique
AU2004100324A4 (en) * 2004-05-03 2004-05-27 Fuse Holdings Pty Ltd Video encoder
CN102196298A (en) * 2011-05-19 2011-09-21 广东星海数字家庭产业技术研究院有限公司 Distributive VOD (video on demand) system and method
CN103024082A (en) * 2013-01-04 2013-04-03 福建星网视易信息系统有限公司 Point-to-point communication method used for digital media distribution
US20160227277A1 (en) * 2015-02-03 2016-08-04 Clickspree Performance Ltd. Method and system for determining viewers' video clip attention and placing commercial responsive thereto

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347475A (en) * 2019-06-19 2019-10-18 东软集团股份有限公司 Service calling method, service call device and service calling system
CN110347475B (en) * 2019-06-19 2022-03-04 东软集团股份有限公司 Service calling method, service calling device and service calling system
CN110365800A (en) * 2019-08-20 2019-10-22 浪潮商用机器有限公司 A kind of method, apparatus and medium obtaining optimal downloading route
WO2024051672A1 (en) * 2022-09-08 2024-03-14 天翼数字生活科技有限公司 Method and system for unitized scheduling and access of device

Also Published As

Publication number Publication date
CN108366097B (en) 2021-02-12

Similar Documents

Publication Publication Date Title
US11929978B2 (en) Network address resolution
CN113518247B (en) Video playing method, related equipment and computer readable storage medium
WO2012168356A1 (en) Locating and retrieving segmented content
EP2493191B1 (en) Method, device and system for realizing hierarchically requesting content in http streaming system
US20110113124A1 (en) Method and device for downloading multimedia contents at high speed in the internet
CN108366097A (en) Resource access control method and system
CN102118323A (en) Content delivery network server and content downloading method
WO2016045606A1 (en) Method and apparatus for recommending media content
CN108449308A (en) Identify the method and device that malice resource accesses
CN104869132A (en) Media resource sharing system, method and server set based on Internet
CN104917754B (en) Video data sending and receiving method, server and client
CN112243136B (en) Content playing method, video storage method and device
CN110300308B (en) Streaming media playback method and device
CN111225248B (en) On-demand content management method and content distribution network on-demand server
WO2008013385A1 (en) System and method for continuous display of grouped multiple independent contents
JP2007527067A (en) Hierarchical distribution of UI assets
CN108282547B (en) Resource access pre-control method and device
US10091557B2 (en) Identifying and sharing video content on a digital network
CN108495190B (en) On-line video on-demand control method and device
CN106686156A (en) Internet audio-video domain name resolution method and device
CN100589558C (en) A kind of system that optimal service can be provided according to the request program
US20090055258A1 (en) Distribution system of program combined with advertisement according to distribution date and time
CN117256153A (en) A process model for a DASH client process model supporting processing DASH event updates
CN116233499A (en) Method for preventing m3u8 video from being downloaded in batch concurrently
CN116055772A (en) Streaming media playing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant