CN109218362A - A kind of internet content distribution method, device and system - Google Patents

A kind of internet content distribution method, device and system Download PDF

Info

Publication number
CN109218362A
CN109218362A CN201710534426.9A CN201710534426A CN109218362A CN 109218362 A CN109218362 A CN 109218362A CN 201710534426 A CN201710534426 A CN 201710534426A CN 109218362 A CN109218362 A CN 109218362A
Authority
CN
China
Prior art keywords
cdn
content
information
name information
domain
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
CN201710534426.9A
Other languages
Chinese (zh)
Other versions
CN109218362B (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications 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 China Mobile Communications Group Co Ltd, China Mobile Communications Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710534426.9A priority Critical patent/CN109218362B/en
Publication of CN109218362A publication Critical patent/CN109218362A/en
Application granted granted Critical
Publication of CN109218362B publication Critical patent/CN109218362B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • 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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of internet content distribution methods, device and system, the described method includes: CDN SC obtains the log information of at least one content to be distributed, determine that corresponding content distribution configuration strategy, the content distribution configuration strategy include domain name server (DNS) service strategy according to the domain-name information that log information carries;The content distribution configuration strategy is sent to content distributing network CDN, is configured by the CDN according to the content distribution configuration strategy, and returns to configuration result to CDN SC;CDN SC is if it is determined that the configuration result is configuration successful, then according to the DNS service strategy in the content assignment configuration strategy, scheduling information is sent to the corresponding dns server of the DNS service strategy, so that dns server is after receiving user access request, the user access request is sent to corresponding CDN according to the scheduling information and dispatches system, realizes the quick distribution of content according to the user access request by CDN scheduling system.

Description

A kind of internet content distribution method, device and system
Technical field
The present invention relates to internet data processing technology field more particularly to a kind of internet content distribution methods, device And system.
Background technique
Content distributing network (Content Delivery Network, CDN) is building in basic IP (Internet Protocol, Internet protocol) on bearer network, content delivery and flow distribution network towards multiple business demand.CDN It, by application traffic dispatching technique, can be pressed in the service node of the content distribution in source server to distributed deployment User's request is automatically assigned to the service node of global optimum according to specified strategy, provides acceleration by the service node for user Service.Therefore, CDN has effective use bearer network resource, ensures the operation of business efficient stable and promotes user content access The advantages that speed, is widely used by network authorization and operator.
For example, CDN is an important increasing in IDC (Internet Data Center, Internet data center) business Value business, IDC operator can also be opened up other than collecting the expenses such as hosting, host lease by providing CDN value-added service Interests space is opened up, and then obtains more additional benefits.It is manual when existing IDC business carries out content distribution by CDN It is operated under mode and line, i.e., website domain name is supplied to CDN service by business side (such as network authorization or company of enterprises and institutions) scene Quotient, CDN service quotient complete data and corresponding strategies with postponing according to website domain name, and CDN business could online execution content distribution.
However when the above method being used to execute CDN operation to IDC business, due to using being operated under line, and IDC and Mutually indepedent between CDN, so can cause following problems: (1) operation is cumbersome, in terms of leading to operation management and in terms of manpower It is unable to satisfy operation demand;(2) time-consuming more, primary show from demand proposes to data configuration, then raw to CDN system inside It is longer to imitate this Period Process;(3) in distribution procedure, there may be the interior of content that IDC to be distributed and CDN actual dispensed Hold inconsistent situation, so that distribution effect is undesirable.
In conclusion how to construct the incidence relation between IDC and CDN, realize that CDN obtains what IDC needed to distribute online Content and the automatic distributing for realizing content, and then improving value-added service ability of the CDN in IDC network is technology urgently to be resolved One of problem.
Summary of the invention
The embodiment of the present invention provides a kind of internet content distribution method, device and content distributing network service controller CDN SC realizes that CDN obtains the content that IDC needs to distribute and realization online to establish the incidence relation between IDC and CDN The automatic distributing of content.
In a first aspect, the embodiment of the present invention provides a kind of internet content distribution method, comprising:
Content distributing network service controller CDN SC obtains the log information of at least one content to be distributed, the log Information carries domain-name information;
According to domain name information, determine that corresponding content distribution configuration strategy, the content distribution configuration strategy include Domain name server (DNS) service strategy;
The content distribution configuration strategy is sent to content distributing network CDN, is matched by the CDN according to the content distribution Strategy is set to carry out configuration and return to configuration result to CDN SC;
Receive the configuration result that the CDN is returned, if it is determined that going out the configuration result is configuration successful, then according to DNS service strategy sends scheduling information to the corresponding dns server of the DNS service strategy, and the scheduling information includes domain name The IP address of CDN scheduling system in information and the CDN, by the dns server after receiving user access request, root The user access request is forwarded to the corresponding CDN of the CDN scheduling system ip address according to the scheduling information and dispatches system, CDN edge service node is determined according to the user access request by CDN scheduling system, by the CDN edge service section Point carries out content distribution according to the user access request.
Second aspect, the embodiment of the present invention provide a kind of internet content diostribution device, comprising:
Acquiring unit, for obtaining the log information of at least one content to be distributed, the log information carries domain name Information;
First determination unit, for determining corresponding content distribution configuration strategy, the content according to domain name information Distributing configuration strategy includes domain name server (DNS) service strategy;
Transmission unit, for sending the content distribution configuration strategy to content distributing network CDN, by the CDN according to The content distribution configuration strategy carries out configuration and returns to configuration result to the CDN SC;
Receiving unit, the configuration result returned for receiving the CDN, if it is determined that going out the configuration result is to be configured to Function sends scheduling information, the tune to the corresponding dns server of the DNS service strategy then according to the DNS service strategy Degree information includes the IP address of the CDN scheduling system in domain-name information and the CDN, is receiving use by the dns server After the access request of family, the user access request is forwarded to by the CDN according to the scheduling information and dispatches system ip address pair The CDN scheduling system answered determines CDN edge service node according to the user access request by CDN scheduling system, by institute It states CDN edge service node and content distribution is carried out according to the user access request.
The third aspect, the embodiment of the present invention provide a kind of internet content dissemination system, comprising: content distributing network business Controller CDN SC, content distributing network CDN, domain name server (DNS), in which:
The CDN SC, for obtaining the log information of at least one content to be distributed, the log information carries domain Name information;According to domain name information, determine that corresponding content distribution configuration strategy, the content distribution configuration strategy include domain Name server DNS service strategy;The content distribution configuration strategy is sent to content distributing network CDN;And receive the CDN The configuration result of return, if it is determined that going out the configuration result is configuration successful, then according to the DNS service strategy, to described The corresponding dns server of DNS service strategy sends scheduling information, and the scheduling information includes in domain-name information and CDN network The IP address of CDN scheduling system;
The CDN, for carrying out configuration according to the content distribution configuration strategy and returning to configuration result to CDN SC;With And the CDN scheduling system in the CDN receives the user access request of the dns server forwarding, is accessed according to the user It requests to determine CDN edge service node, content point is carried out according to the user access request by the CDN edge service node Hair;
The dns server, for being visited the user according to the scheduling information after receiving user access request Ask that request is forwarded to the corresponding CDN scheduling system of the CDN scheduling system ip address.
The invention has the advantages that:
Internet content distribution method provided in an embodiment of the present invention, device and system, content distributing network Service control Device CDN SC obtains the log information of at least one content to be distributed, and the log information carries domain-name information;According to described Domain-name information determines that corresponding content distribution configuration strategy, the content distribution configuration strategy include domain name server (DNS) service Strategy;The content distribution configuration strategy is sent to content distributing network CDN, is configured by the CDN according to the content distribution Strategy carries out configuration and returns to configuration result to CDN SC;Corresponding content is generated according to the domain-name information of acquisition using CDN SC Distribute configuration strategy, and the content distribution configuration strategy is sent to CDN, is achieved in and CDN is automatically configured;And Receive the configuration result that the CDN is returned, if it is determined that going out the configuration result is configuration successful, then takes according to the DNS Business strategy sends scheduling information to the corresponding dns server of the DNS service strategy, and the scheduling information includes domain-name information The IP address that system is dispatched with CDN, by the dns server after receiving user access request, according to the scheduling information The user access request is forwarded to the corresponding CDN scheduling system of the CDN scheduling system ip address, is dispatched by the CDN System determines CDN edge service node according to the user access request, by the CDN edge service node according to the user Access request, which carries out content distribution, realizes the automatic distributing of CDN content thus after CDN configuration successful.It is mentioned using the present invention The method of confession not only realizes the on-line automatic configuration for completing strategy of CDN, alleviates the burden of operation management and manpower, in addition, Since CDN configuration and distribution procedure are on-line operation, the accuracy of distribution content is thereby ensured that.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 a is the flow diagram for the internet content distribution method that the embodiment of the present invention one provides;
Fig. 1 b be the embodiment of the present invention one provide according to domain name information, determine corresponding content distribution configuration strategy Method flow diagram;
Fig. 2 is to judge whether the corresponding site element of domain name information meets in the embodiment of the present invention two to cache judgement The flow diagram of the first method of condition;
Fig. 3 is to judge whether the corresponding site element of domain name information meets in the embodiment of the present invention two to cache judgement The flow diagram of the second method of condition;
Fig. 4 be the URL provided by Embodiment 2 of the present invention for judge http information whether include characteristic character process illustrate Figure;
Fig. 5 is the structural schematic diagram for the internet content diostribution device that the embodiment of the present invention three provides;
Fig. 6 is the structural schematic diagram for the internet content dissemination system that the embodiment of the present invention four provides.
Specific embodiment
Internet content distribution method provided in an embodiment of the present invention, device and system are not only built by introducing CDN SC The incidence relation between IDC and CDN has been found, CDN has more been realized and obtains the content that IDC needs to distribute online, also achieve simultaneously The automatic distributing of content.
Below in conjunction with Figure of description, preferred embodiment of the present invention will be described, it should be understood that described herein Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this hair The feature in embodiment and embodiment in bright can be combined with each other.
Embodiment one
As shown in Figure 1a, the flow diagram of the internet content distribution method provided for the embodiment of the present invention one, can be with The following steps are included:
S11, content distributing network service controller CDN SC obtain the log information of at least one content to be distributed, described Log information carries domain-name information.
Preferably, CDN SC (Content Delivery Network Service Controller, content delivery network Network service controller) can be obtained from DPI (Deep Packet Inspection, deep message detection) equipment at least one to Distribute the log information of content, wherein the log information DPI is collected from IDC.
When it is implemented, the content to be distributed that DPI equipment is acquired from IDC exists with IP packet format, wrapped in the IP packet The content contained is more, and more dispersed, includes domain-name information, browser model, source IP address, destination IP in IP packet information Address, port numbers, time etc..For the ease of subsequent progress content distribution and excessive garbage is avoided to occupy too many memory, Each IP packet need to be screened, such as be directed to each IP packet, using purpose IP address, language, port information and when Between it is equal content in IP packet is associated, filter out necessary information (such as domain-name information, port information and destination IP), It is possible thereby to filter out some IP packets without carrying out content distribution;Then the necessary information that will be filtered out according to budget rules A log information is generated, the log information includes domain-name information.
It is some it is not necessary that the domain-name information group in the IP packet can be extracted after carrying out the IP packet of content distribution filtering out It at the domain-name information list for not having caching value, is compared when obtaining domain-name information so as to next time, uses this operation can be with Improve the treatment effeciency of CDN SC.
At the same time it can also need to carry out the domain-name information column that the domain-name information composition of content distribution has caching value Table when avoiding obtain the domain-name information in the domain-name information list again next time, repeats the process of step S12, reduces CDN The treating capacity of SC.
S12, CDN SC determine that corresponding content distribution configuration strategy, the content distribution are matched according to domain name information It sets strategy and includes domain name server (DNS) service strategy.
Specifically, the DNS in the embodiment of the present invention one (Domain Name Service, domain name service) server can be with By two, such as operator DNS server (Local DNS) and network authorization dns server (Auth DNS).In order to distinguish this two A dns server, introduces DNS service strategy, and the DNS service strategy is awarded for subregion operator DNS server and network Weigh dns server.It specifically can be respectively the two dns servers setting identification information, and DNS service strategy carries the mark Domain-name information can be sent to the corresponding dns server of the identification information according to the identification information by information, CDN SC.
It, can be by when it is implemented, CDN SC determines corresponding content distribution configuration strategy according to domain name information It is executed according to method shown in Fig. 1 b, comprising the following steps:
S121, judge whether domain name information is newly-increased domain-name information, if so, thening follow the steps S122;Otherwise it holds Row step S125.
When it is implemented, CDN SC from DPI obtain each log information after, can be by the domain in the log information Name information is stored, while the content assignment configuration strategy process for generating the domain-name information can be also executed for domain-name information, Therefore, it is executed again for identical domain-name information in order to prevent and generates content distribution configuration strategy process, caused unnecessary The waste of process resource, CDN SC after obtaining domain-name information, by domain name information be stored in having in CDN SC All domain-name informations cached in the domain-name information list of value compare, if it is determined that go out the domain-name information in the domain In name information list, then it represents that the content distribution configuration strategy of the domain-name information has transmitted to CDN network, without sending out again It send, indicates that process terminates, is i.e. execution step S125;If it is determined that domain name information is in the domain-name information list, It then also needs all domain-name informations in domain name information and the pre-stored domain-name information list for not having caching value It is compared, if not finding domain name information in the domain-name information list for not having caching value, then it represents that should Domain-name information is newly-increased domain-name information, then the corresponding content assignment configuration of the domain-name information need to be determined according to step S122~S124 Strategy;If finding domain name information in the domain-name information list for not having caching value, then it represents that domain name letter Breath does not have caching value, without executing subsequent process.
Preferably, CDN SC can also store the original site element acquired from DPI, the content point for any domain-name information Hair configuration strategy and it is locally generated, store and safeguard user contracting data and other strategy.
S122, according to domain name information, judge whether the corresponding site element of domain name information meets to cache and sentence Broken strip part, if so, thening follow the steps S123;It is no to then follow the steps S126.
Specifically, the site element can be understood as the information on webpage, as text information, picture, video, script, Style sheet and JavaScript etc..
When it is implemented, can be determined by WebCache, such as domain-name information is configured in advance and is taken in WebCache It is engaged in white list, after obtaining domain-name information, if it is determined that the domain-name information obtained out is in WebCache service white list, then Determine that the corresponding site element satisfaction of the domain-name information can cache Rule of judgment, wherein in the WebCache service white list Domain-name information meet normal service whithin a period of time, and no user is complained.
S123, the content for needing to cache in the site element is determined.
When it is implemented, determining that the corresponding site element satisfaction of domain name information can cache judgement item in step S122 Part then it needs to be determined that the content for needing to cache in the site element, and generates content caching strategy and carries and configure in content distribution In strategy, CDN is then sent to by CDN SC, so as to CDN according to the cache policy in content distribution configuration strategy to the domain name Cacheable content is cached in the corresponding site element of information, fast implements content distribution after caching successfully.
S124, corresponding content distribution configuration strategy is generated according to domain name information and the content for needing to cache.
When it is implemented, the content distribution configuration strategy further includes at least one of following: domain-name information, content distribution side Formula, content caching strategy and content distribution priority.
Specifically, needs in the corresponding site element of the domain-name information that content caching strategy is determined according to step S123 The content of caching determines that the content for needing to cache can be text, picture or video etc., for example, CDN SC can remember The filename for the content that record needs to cache, is generated content caching strategy.It is needed it should be noted that CDN SC is only determined The content of caching, but the content not cached to the needs determined caches, and is cached by CDN network.
Further, not due to the significance level for the content for needing to cache in the different corresponding site elements of domain-name information It together, therefore can be according to perception degree of the user to the content for needing cache, in the corresponding site element of each domain-name information The corresponding content distribution priority of the curriculum offering for needing to cache one, high content its corresponding content distribution of perception degree are excellent First grade is higher.
Preferably, the content that can also be cached as needed determines that ways of distribution, such as some current events politics etc. can adopt It is pushed to user with the mode of active distribution, some other content for needing user to access then pushes by the way of passively distributing To user, the present invention provides two kinds of ways of distribution, needs to push corresponding contents according to user, improves user experience.
S125, process terminate.
Optionally, the case where DNS service strategy changes is likely to occur in the embodiment of the present invention, i.e., current Auth Dns server desires to participate in content distribution, then needs to send dispatch command to CDN SC, CDN SC upon receipt of the instructions, changes Become DNS service strategy, then updates content distribution configuration strategy, thus CDN SC also needs again to match updated content distribution It sets strategy and is sent to CDN network, and also need to send scheduling information, the i.e. domain-name information and CDN network to Auth dns server The IP address of middle CDN scheduling system.
S126, determining the site element, there is no the contents for needing to cache.
Preferably, purpose IP address is also carried in the log information, in order to which further screening is some without carrying out The log information of content distribution also wraps before executing step S121 and judging whether domain name information is newly-increased domain-name information It includes: determining the destination IP address in pre-stored IP address list.
When it is implemented, CDN SC has store function, operator's IP address can store, such as the IP of each operator of province Address forms the IP address network consisting authorization IP address list of operator's IP address list or network authorization, therefore, After obtaining log information, the purpose IP address in domain-name information can be compared with the IP address of storage, if it is determined that go out The purpose IP address has been stored in after operator's IP address list in advance in network authorization IP address list, then it represents that domain name letter Breath can execute subsequent step, otherwise indicate that the domain-name information is possible to as information unauthorized, without executing subsequent process.
By executing step S121~S126, CDN SC is judging domain name letter according to each domain-name information of acquisition After breath has caching value, respectively it generates corresponding content distribution configuration strategy, after being sent to CDN network, so that CDN Network can be configured automatically according to content distribution configuration strategy, change manual configuration procedures in the prior art, simultaneously also The incidence relation between IDC and CDN network is effectively established, so that the method that more business provide through the invention realizes content Quickly distribution.
S13, CDN SC send the content distribution configuration strategy to content distributing network CDN.
When it is implemented, CDN SC is after generating corresponding content distribution configuration strategy according to domain-name information, in order to realize Content distribution is also needed the content distribution configuration strategy being sent to CDN network, be held by CDN network according to content distribution policy The corresponding configuration process of row.
S14, CDN are configured according to the content distribution configuration strategy.
Since the content distribution configuration strategy includes domain-name information, and DNS service strategy corresponding with domain-name information, Content distribution mode, content caching strategy and content distribution priority, thus CDN network can be determined according to DNS service strategy This receives the dns server of user access request;CDN can also be according to the corresponding station of content caching access vector cache domain-name information The content for needing to cache in point element;And the content of the corresponding caching of each domain-name information is determined according to content distribution priority Priority orders, thus distribution when can according to priority orders realize content preferential transmission.
Preferably, since CDN SC is newly added equipment, in order to realize the content distribution configuration for receiving CDN SC and sending Strategy, CDN network need to be transformed the interface of itself, so that improved CDN interface supports service contracting and opens function Can, and each CDN service node can also will be distributed to inside content distribution configuration strategy that CDN SC is issued.
S15, CDN return to configuration result to CDN SC.
S16, CDN SC are according to the configuration result, if it is determined that going out the configuration result is configuration successful, then according to institute DNS service strategy is stated, sends scheduling information to the corresponding dns server of the DNS service strategy, the scheduling information includes domain The IP address of CDN scheduling system in name information and the CDN.
When it is implemented, CDN SC receives the configuration result that CDN is configured according to content distribution configuration strategy, if really Making the configuration result is configuration successful, then sends scheduling information to dns server.
Specifically, since dns server includes Local dns server and Auth dns server, so needing basis Scheduling information is sent to the corresponding dns server of DNS service strategy by DNS service strategy.
Further, dns server, can be by the domain-name information and CDN in scheduling information after receiving scheduling information The IP address of scheduling system is stored in domain name access list, so as to receive user request after, in domain name Access Column The domain-name information of user's access is searched in table.
By executing the process of step S11~S17, CDN SC complete transmission to the content distribution configuration strategy of CDN and Transmission to the scheduling information of dns server so that CDN is automatically performed configuration process, and effectively establish IDC, CDN and Correspondence between dns server extends the interests space of IDC.
CDN SC generate content distribution configuration strategy that content distribution configuration strategy and CDN are sent according to CDN SC into Row is with postponing, and after CDN SC sends scheduling information to dns server, content distribution process that CDN is executed with specific reference to Step S17~S112, explains it in detailed below:
S17, user terminal send user access request to dns server.
When it is implemented, user sends user's access to dns server and asks by clicking any link, such as xxx.com It asks, dns server parses domain-name information from the link after the user access request for receiving user's transmission.
The user access request is forwarded to the CDN according to the scheduling information by S18, dns server dispatches system The corresponding CDN of IP address dispatches system.
When it is implemented, DNS after the domain-name information for parsing the link, can be arranged in the domain name access being locally stored The domain-name information is searched in table, if found, system ip address is dispatched according to the corresponding CDN of the domain-name information, by user Access request is forwarded to the corresponding CDN scheduling system of CDN scheduling system ip address;If do not found, use is refused to respond Family request.
Preferably, user access request is being forwarded to the corresponding CDN scheduling of CDN scheduling system ip address by dns server When system, if the dns server is Local dns server, Forward plan is added in the link xxx.com of user Slightly, it is then sent to the corresponding CDN scheduling system of CDN scheduling system ip address;If the dns server is Auth DNS clothes Business device is then sent to the corresponding CDN scheduling system of CDN scheduling system ip address then by user.
S19, CDN dispatch system and determine CDN edge service node according to the user access request.Link xxx.com adds Enter CNAME strategy
When it is implemented, CDN, which dispatches system, determines edge service according to user access request and content distribution configuration strategy Node (optimal edge service node), is then sent to dns server for the IP address for the edge service node determined.
S110, CDN dispatch system and the IP address for the edge service node determined are sent to dns server.
The IP address for the edge service node determined is sent user terminal by S111, dns server.
S112, user terminal are after the IP address for receiving the edge service node, to the CDN Edge Server section Point initiates user access request, carries out content distribution according to the user access request by the CDN edge service node.
By executing step S17~S112, IDC, CDN SC, CDN and the direct correspondence of dns server are being established Afterwards, quick distribution of the CDN network to IDC content is not only realized, the service ability of CDN network has more been fully demonstrated, while Improve user experience.
The embodiment of the present invention one provide internet content distribution method, by increase newly CDN SC, and using CDN SC from DPI equipment obtains log information, and the log information is that DPI is collected from IDC, and then CDN SC is according to the log of acquisition Domain-name information in information determines the corresponding content distribution configuration strategy of the domain-name information, and the content distribution is configured plan It is slightly sent to CDN network, thereby establishes the incidence relation between IDC and CDN, IDC is realized and is cooperateed with the close of CDN, more IDC service business is expanded;After establishing aforementioned incidence relation, CDN network carries out phase according to the content distribution configuration strategy It should configure, after success to be configured, to CDN SC feedback configuration as a result, CDN SC is determining that the configuration result is configuration successful Afterwards, scheduling information is sent to dns server, the scheduling information includes the CDN scheduling system in domain-name information and CDN network IP address, so that dns server is after receiving user access request, if it is determined that go out the domain name in user access request The domain-name information that information is sent with the CDN SC received is consistent, then user access request is forwarded to the IP of CDN scheduling system The corresponding CDN in address dispatches system, so that CDN, which dispatches system, determines CDN edge service node according to the user access request, And the IP address for the CDN edge service node determined is fed back into dns server, dns server is receiving the edge CDN clothes It is engaged in after the IP address of node, the IP address of the CDN edge service node is sent to user terminal, so that user terminal passes through The IP address of this CDN edge service node sends user access request to CDN edge service node, by the CDN edge service Node realizes the quick distribution of content according to user access request, while also ensuring that IDC introduces content and CDN distributes content It is synchronous, the generation of mismatch problem caused by manually reporting and configuring is avoided, the service energy of CDN network has been given full play to Power improves user experience.
Embodiment two
For a further understanding of the present invention, the embodiment of the present invention two describes step S122 in detail on the basis of embodiment It is middle according to domain name information, the specific of Rule of judgment can be cached by judging whether the corresponding site element of domain name information meets Process judges whether the corresponding site element of domain name information meets and can cache second embodiment of the present invention provides two methods It is discussed in detail in Rule of judgment individually below:
Method one:
Refering to what is shown in Fig. 2, to judge whether the corresponding site element of domain name information meets in the embodiment of the present invention one The flow diagram of the first method of Rule of judgment can be cached, comprising the following steps:
S21, according to domain name information, respectively determine the corresponding site element of domain name information in include static state in Hold information and dynamic content information.
When it is implemented, having partial content that can occur according to the difference for the content that user usually accesses for any webpage Difference, such as Taobao's page, Taobao's client will record the access habits of user, for example women's dress or cosmetics are asked in user's A frequentation, Sportswear or shoes are asked in user's B frequentation, then Taobao's client can be respectively that they are presented not according to the access habits of user A and B With Taobao's page, but be user A presentation Taobao's page and be user's B program Taobao's page in have identical portion Point, such as the day cat pattern in Taobao's page, Tian Mao supermarket and some with the embedded picture or video being presented on Taobao's webpage Deng, these identical parts can cache, as static content information, and according to the purchasing habits of user in Taobao's page The content of display since Taobao's information of different user browsing is different, therefore does not have caching value, so this kind of content is referred to as Dynamic content information.It is possible thereby to determine the static content information and dynamic content information in site element according to the method described above.
Further, it is also possible to judge that the corresponding script information of the suffix name is according to the suffix name in site element including content No is dynamic content information, and such as some scripts are needed using Java Background scheduling program, and this kind of script is dynamic content letter Breath does not have caching value.
Preferably, some html text information have caching value, it may be determined that be static content information.
S22, ratio between the static content information and the dynamic content information is determined.
Due to the existing static content information of any webpage, and there is dynamic content information.If only had for each webpage Static content information is just cached, and will result in cached some nugatory contents in this way.Such as certain webpage, static state in Hold information and account for 10%, dynamic content information accounts for 90%, it can thus be appreciated that the webpage static content information is few, indicates that the webpage can be with It is some improper webpages, accessed probability is smaller, if the site element to the webpage caches, it will cause memories Unnecessary waste.
Therefore, in order to avoid the generation of above situation, the embodiment of the present invention is in the static content letter for determining site element After breath and dynamic content information, also needs further to judge, i.e., first determine the static content information and the dynamic content information Ratio, when it is implemented, the size of static content information can be measured and dynamic content information with the memory that it is occupied Size can be measured with its memory occupied, it is possible thereby to determine the ratio of static content information and dynamic content information Value, according to the ratio, you can get it, and ratio is bigger to represent that static content information is more, and the value of caching is also bigger;Conversely, ratio Smaller, dynamic content information is more, and the value of caching is also just smaller, and specifically determining that site element has according to step S23 can delay Sustainability.
S23, judge whether the ratio is greater than preset ratio threshold value, if so, thening follow the steps S24;Otherwise step is executed Rapid S25.
When it is implemented, if the ratio determined in step S22 is greater than preset ratio threshold value, then it represents that the domain-name information pair The site element satisfaction answered can cache Rule of judgment, that is, value can be cached by having, namely satisfaction can cache Rule of judgment;If small In or equal to then indicating that the corresponding site element of the domain-name information does not have caching value, the i.e. corresponding website of domain name information Element is unsatisfactory for that Rule of judgment can be cached.
S24, determine that the corresponding site element satisfaction of domain name information can cache Rule of judgment.
S25, determine that the corresponding site element of domain name information is unsatisfactory for that Rule of judgment can be cached.
It can determine that whether the corresponding site element of domain name information meets by executing step S21~S25 as a result, Rule of judgment can be cached, if it is satisfied, showing that there is the content that can cache value in the corresponding site element of the domain-name information, so Domain name information is stored in the domain-name information list with caching value afterwards;If conditions are not met, then showing that the domain name is believed It ceases in corresponding site element and does not have caching value, then can screen away the domain-name information, preferably, can be by the domain Name information is stored in the domain-name information list for not having caching value.In subsequent acquisition domain-name information, need to only delay having It deposits the domain-name information list of value and the domain-name information list without caching value searches whether the domain name comprising obtaining respectively Information effectively increases the treatment effeciency of CDN SC if executing corresponding operation comprising if.
Method two:
As shown in figure 3, can to judge whether the corresponding site element of domain name information meets in the embodiment of the present invention one Cache the flow diagram of the second method of Rule of judgment, comprising the following steps:
S31, according to domain name information, determine the port information for being used for transmission the corresponding site element of domain name information With http information.
When it is implemented, also carrying port information in the log information when obtaining log information according to step S11 With http information, and with domain-name information to corresponding.It is possible thereby to find the corresponding port of the domain-name information according to domain-name information Information and http information.
S32, according to the port information, judge whether the port information is the first default port information, if it is, Execute step S33;It is no to then follow the steps S35.
When it is implemented, the first default port information can be, but not limited to as " 80 " and " 8080 " port etc..
S33, judge whether the URL of the http information includes characteristic character, if so, thening follow the steps S37;Otherwise it holds Row step S34.
When it is implemented, URL (Uniform Resource Locator, uniform resource locator) characteristic character is correlation The key-strings of dynamic and interaction content do not provide local cache for such dynamic resource caching default and accelerate to service. CDN SC need in one URL characteristic character experience library of local maintenance, and can be increased newly, be deleted by front-end interface, being modified, It checks specific characteristic character, is used for daily caching operation maintenance.As characteristic character library may include api, bbs, login, password、upgrade、upload、post、weather、cnzz、push、passport、ntp、time、sdk、sex、 Click, google etc..
If it is determined that the URL includes features described above character, then show that the corresponding site element of current domain-name information is Private information does not have caching value.
S34, determine that the corresponding site element satisfaction of domain name information can cache Rule of judgment.
S35, according to the port information, judge whether the port information is the second default port information, if it is, Execute step S36;It is no to then follow the steps S37.
When it is implemented, the second default port information can be " 443 " port, robbed in order to avoid being buffered system It holds, part website can open 443 ports and be transmitted.
S36, judge whether the log information of the described second default port transmission is encrypted, if it is, executing Step S37;Otherwise, step S33 is executed.
When it is implemented, when being transmitted with " 443 " port, it is possible to there are encrypted transmissions, then need to judge with Whether the log information of " 443 " port transmission is encrypted and (such as monitors the handshaking information of SSL), if it is not, then indicating Practical and unused encryption mechanism is transmitted (the corresponding site element of the domain-name information is known as " false https resource "), then also Http judgement, i.e. execution step S33 need to be executed.It uses " 443 " port when being transmitted if detecting resource, uses encryption Transmission mode then determines that the corresponding site element of domain name information can not cache, that is, is unsatisfactory for that Rule of judgment can be cached, namely The affiliated domain name of resource is https domain name, is not cached.
S37, determine that the corresponding site element of domain name information is unsatisfactory for that Rule of judgment can be cached.
To sum up, it can judge whether the corresponding site element of domain name information meets by executing step S31~S37 Rule of judgment can be cached, after judging that satisfaction can cache Rule of judgment, that is, produces content distribution configuration strategy.
Preferably, deterministic process shown in Fig. 4 can also be performed in the present invention before executing step S33, may include with Lower step:
S41, the log information according to acquisition, determine http return code.
Specifically, before executing step S33, http return code can be determined according to the log information obtained from DPI.
Preferably, when user requests some URL for the first time, the return code of server end is 200, and content is that user asks The resource asked, while the time that the attribute of Last-Modified marks this file finally to be modified at period of service end, format such as: Last-Modified:Fri,12May 2006 18:53:33GMT.When user, which executes, requests above-mentioned URL for the second time, according to The regulation of http agreement, browser can transmit If-Modified-Since header to server, and file is after inquiring the time It is no to be modified, such as: 2006 18:53:33GMT of If-Modified-Since:Fri, 12May, if server end Resource does not change, then return code is 304 (Not Changed), and content is sky, and which offers a saving transmitted data amounts.Work as clothes When business device end code changes or restarts server, then resource is re-emitted, returned similar when being requested with first time.To Guarantee not repeat to issue resource to client, also guarantees that, when server changes, user can obtain newest resource.
S42, judge whether the return code is the first return code, if so, thening follow the steps S412 (i.e. step S33); It is no to then follow the steps S42.
If return code is that the first return code such as " 304 " can then execute step S412 (i.e. step S33).
Preferably, if it is determined that return code is not the first return code, for example " 200 ", i.e. request or server for the first time End code changes or restarts, then also needs to judge http request mode, i.e. execution step S43.
S43, it determines http request mode, and judges whether the request method is GET mode, if it is, executing step Rapid S44;It is no to then follow the steps S414 (i.e. step S37).
When it is implemented, if request method is non-GET mode, directly execution step S414 determines the domain The corresponding site element of name information is unsatisfactory for that Rule of judgment can be cached;If it is determined that request method is GET mode, then it need to also be into One step is judged that i.e. execution S44 determines http Cache-Control Header (the general header field of http).
S44, Cache-Control in the general header field of http is determined.
When it is implemented, general header field includes request and the header field that response message is all supported, general header field includes Cache- Control、Connection、Date、Pragma、Transfer-Encoding、Upgrade、Via。
Specifically, communication two party is required all to support this extension the extension of general header field, it is general if there is what is do not supported Header field will generally handle the caching mechanism that the specified request of Cache-Control and response follow as entity header field.It is requesting Cache-Control is arranged in message or response message can't modify the caching process mistake in another message processing procedure Journey.Cache instruction when request includes no-cache, no-store, max-age, max-stale, min-fresh, only-if- Cached, the instruction in response message include public, private, no-cache, no-store, no-transform, must-ridate、proxy-ridate、max-age。
Determining that http request mode is difference of the GET according to response message in general header field, implementation procedure is also corresponding Difference, with specific reference to step S45, S48 and S49.
When it is implemented, the caching mechanism that Cache-Control header field is followed for specified request and response, disappears in request Setting Cache-Control can't modify the caching process process in another message processing procedure in breath or response message. Cache instruction when request includes no-cache, no-store, max-age, max-stale, min-fresh, only-if- Cached, the instruction in response message include public, private, no-cache, no-store, no-transform, must-ridate、proxy-ridate、max-age。
When it is implemented, Public instruction response can be cached by any buffer area.Private is indicated for single user's Response message all or in part cannot be shared caching process.This allows server only to describe to disappear when the part of user responds Breath, this response message are invalid for the request of other users.
No-cache instruction request or response message cannot cache;No-store is for preventing important information by unintentionally Publication, transmission will make to call request in request message and response message does not all use caching.
Max-age instruction client computer can receive the response of life cycle less at fixed time (in seconds).
S45, if it is determined that response message is " public " in Cache-Control, and determine Cache-Control Middle cache instruction " max-age is less than or equal to 0 ", thens follow the steps S46.
S46, judge that URL whether there is activity time Expires in http header field, if it is present executing step respectively The deterministic process of S411 and S412;If it does not exist, then executing step S47.
S47, judge to then follow the steps S412 if deposited with the presence or absence of eTag/Last-Modified in http header field;It is no Then follow the steps S414.
S48, if it is determined that response message is " public " in Cache-Control, and determine Cache-Control Middle cache instruction " max-age is greater than 0 ", thens follow the steps S412.
Specifically, max-age=600 (s), then it represents that from current time its, cache after 600s expired.
S49, if it is determined that in Cache-Control response message be " no-cache " or " no-store ", then execute Step S414.
When it is implemented, according to, for the explanation of no-cache and no-store, easily obtaining and disappearing if responded in step S44 Breath is no-cache or no-store, shows that the corresponding http information of the response message cannot be buffered.
S410, if it is determined that Expires be greater than Date, then follow the steps S412.
When it is implemented, Expires, which is used to indicate, caches expired absolute time, if having crossed specified that of Expires A time point indicates that caching is invalid, needs to re-request a newest.Date header field indicates the time that message is sent, time Descriptor format defined by rfc822.For example, Date:Mon, 31Dec200104:25:57GMT.The time of Date description indicates Greenwich mean time needs to know the time zone where user if being converted into local zone time.
Specifically, if it is determined that go out Expires and be greater than Date, then it represents that current time be less than Expires it is specified when Between, i.e., it is also not out of date, then follow the steps S412.
S411, if it is determined that Expires be less than or equal to Date, then follow the steps S414.
Specifically, if it is determined that go out Expires and be less than or equal to Date, then it represents that current time is more than Expires specified It is time, i.e., expired, then follow the steps S414.
S412, judge whether the URL of the http information includes characteristic character (i.e. step S33), if it is, executing step Rapid S414 (i.e. step S37);It is no to then follow the steps S413 (i.e. step S34).
When it is implemented, the description of step S33 can be referred to, overlaps will not be repeated.
S413, determine that the corresponding site element satisfaction of domain name information can cache Rule of judgment.
S414, determine that the corresponding site element of domain name information is unsatisfactory for that Rule of judgment can be cached.
It should be noted that two kinds provided by Embodiment 2 of the present invention judge that the corresponding site element of domain name information is No satisfaction can cache Rule of judgment, when it is implemented, any judgment method can be executed, also may be performed simultaneously two kinds of judgements Method, it is possible thereby to which whether accurate judgement needs to cache the corresponding site element of domain name information, on this basis according to slow The content distribution configuration strategy for depositing analysis result and domain-name information generation is more accurate.
Embodiment three
Based on the same inventive concept, a kind of internet content diostribution device is additionally provided in the embodiment of the present invention, due to upper State that the principle that device solves the problems, such as is similar to internet content distribution method, therefore the implementation of above-mentioned apparatus may refer to method Implement, overlaps will not be repeated.
As shown in figure 5, the structural schematic diagram of the internet content diostribution device provided for the embodiment of the present invention three, including obtain Take unit 51, the first determination unit 52, transmission unit 53 and receiving unit 54, in which:
Acquiring unit 51, for obtaining the log information of at least one content to be distributed, the log information carries domain Name information;
First determination unit 52, it is described interior for determining corresponding content distribution configuration strategy according to domain name information Holding distribution configuration strategy includes domain name server (DNS) service strategy;
Transmission unit 53, for sending the content distribution configuration strategy to content distributing network CDN, by the CDN root Configuration is carried out according to the content distribution configuration strategy and returns to configuration result to the CDN SC;
Receiving unit 54, the configuration result returned for receiving the CDN, if it is determined that going out the configuration result is configuration Success sends scheduling information to the corresponding dns server of the DNS service strategy then according to the DNS service strategy, described Scheduling information includes the IP address of the CDN scheduling system in domain-name information and the CDN, is being received by the dns server After user access request, the user access request is forwarded to by the CDN according to the scheduling information and dispatches system ip address Corresponding CDN dispatches system, determines CDN edge service node according to the user access request by CDN scheduling system, by The CDN edge service node carries out content distribution according to the user access request.
When it is implemented, first determination unit 52, specifically includes judgment sub-unit, determines subelement and generates son and is single Member, in which:
The judgment sub-unit, for judging whether domain name information is newly-increased domain-name information;
The determining subelement is when being for the judging result in the judgment sub-unit, according to domain name information, If it is determined that the corresponding site element satisfaction of domain name information can cache Rule of judgment, it is determined that needed in the site element The content to be cached;
The generation subelement, the needs for being determined according to domain name information and the determining subelement are slow The content deposited generates corresponding content distribution configuration strategy.
Further, the determining subelement specifically includes the first determining module, the second determining module, third and determines mould Block and the 4th determining module, in which:
First determining module, for determining the corresponding website of domain name information respectively according to domain name information The static content information and dynamic content information for including in element;
Second determining module, for determining the ratio between the static content information and the dynamic content information Value;
The third determining module is used for if it is determined that the ratio is greater than preset ratio threshold value, it is determined that go out described The corresponding site element satisfaction of domain-name information can cache Rule of judgment;
4th determining module, in determining the static content information to need to cache in the site element Hold.
Preferably, the content distribution configuration strategy further includes at least one of following: domain-name information, content distribution mode, Content caching strategy and content distribution priority.
When it is implemented, also carrying in the log information has purpose internet protocol address;And described device, also Include:
Second determination unit, for the judgment sub-unit judge domain name information whether be newly-increased domain-name information it Before, determine the destination IP address in pre-stored IP address list.
When it is implemented, the acquiring unit 51, be specifically used for obtaining from deep message detection DPI equipment at least one to Distribute the log information of content, wherein the log information DPI is collected from Internet data center IDC.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist Implement to realize the function of each module (or unit) in same or multiple softwares or hardware when the present invention.For example, this The internet content diostribution device that inventive embodiments three provide can be set in CDN SC, complete content distribution plan by CDN SC Configuration slightly, and complete the interaction of IDC, CDN and dns server.
Example IV
As shown in fig. 6, the structural schematic diagram of the internet content dissemination system provided for the embodiment of the present invention four, including it is interior Content distributing network service controller CDN SC 61, content distributing network CDN 62 and dns server 63, in which:
The CDN SC 61, for obtaining the log information of at least one content to be distributed, the log information is carried Domain-name information;According to domain name information, determine that corresponding content distribution configuration strategy, the content distribution configuration strategy include Domain name server (DNS) service strategy;The content distribution configuration strategy is sent to content distributing network CDN 62;And receive institute State the configuration result of the return of CDN 62, if it is determined that going out the configuration result is configuration successful, then according to the DNS service plan Slightly, send scheduling information to the corresponding dns server 63 of the DNS service strategy, the scheduling information include domain-name information and The IP address of CDN scheduling system in CDN network;
The CDN 62, for carrying out configuration and returning to CDN SC 61 to configure according to the content distribution configuration strategy As a result;And the CDN scheduling system in the CDN receives the user access request that the dns server 63 forwards, according to described User access request determines CDN edge service node, is carried out by the CDN edge service node according to the user access request Content distribution;
The dns server 63, for after receiving user access request, according to the scheduling information by the user Access request is forwarded to the corresponding CDN scheduling system of the CDN scheduling system ip address.
When it is implemented, the CDN SC 61, specifically for judging whether domain name information is newly-increased domain-name information; And when the judgment result is yes, according to domain name information, if it is determined that it is full to go out the corresponding site element of domain name information Rule of judgment can be cached completely, it is determined that the content for needing to cache in the site element;And according to domain name information and described The content for needing to cache generates corresponding content distribution configuration strategy.
Preferably, the CDN SC 61, is also used to according to domain name information, determine that domain name information is corresponding respectively Site element in include static content information and dynamic content information;And determine the static content information and the dynamic Ratio between content information;If it is determined that the ratio is greater than preset ratio threshold value, it is determined that go out domain name information pair The site element satisfaction answered can cache Rule of judgment;And determine that the static content information is to need to cache in the site element Content.
When it is implemented, the content distribution configuration strategy further includes at least one of following: domain-name information, content distribution side Formula, content caching strategy and content distribution priority.
Preferably, also carrying in the log information has purpose internet protocol address;And
The CDN SC 61 is also used to before judging whether domain name information be newly-increased domain-name information, determine described in Purpose IP address is in pre-stored IP address list.
Preferably, the system, further includes that deep message detects DPI equipment 64 and Internet data center IDC 65, In:
The DPI equipment 64, for acquiring the log information of content to be distributed from IDC 65;
The CDN SC 61, for obtaining the log information of at least one content to be distributed from shown DPI equipment 64.
Preferably, the dns server 63, specifically for after the scheduling information for receiving the transmission of CDN SC 61, by institute The IP address for stating the CDN scheduling system in the domain-name information in scheduling information and the CDN is stored in domain-name information list;With And after receiving user access request, the domain-name information in the user access request is parsed, according to the domain parsed Name information, if it is judged that the user access request in domain name information list, is then forwarded to by domain name information The CDN scheduling system ip address corresponds to CDN scheduling system.
Preferably, external interface module built in the CDN SC, be used for and external equipment, as CDN network, dns server, DPI equipment etc. carries out docking and interacting message, and is also used to carry out the conversion of equipment room data protocol.
Internet content distribution method provided in an embodiment of the present invention, device and system, content distributing network Service control Device CDN SC obtains the log information of at least one content to be distributed, and the log information carries domain-name information;According to described Domain-name information determines that corresponding content distribution configuration strategy, the content distribution configuration strategy include domain name server (DNS) service Strategy;The content distribution configuration strategy is sent to content distributing network CDN, is configured by the CDN according to the content distribution Strategy carries out configuration and returns to configuration result to CDN SC;Corresponding content is generated according to the domain-name information of acquisition using CDN SC Distribute configuration strategy, and the content distribution configuration strategy is sent to CDN, is achieved in and CDN is automatically configured;And Receive the configuration result that the CDN is returned, if it is determined that going out the configuration result is configuration successful, then takes according to the DNS Business strategy sends scheduling information to the corresponding dns server of the DNS service strategy, and the scheduling information includes domain-name information The IP address that system is dispatched with CDN, by the dns server after receiving user access request, according to the scheduling information The user access request is forwarded to the corresponding CDN scheduling system of the CDN scheduling system ip address, is dispatched by the CDN System determines CDN edge service node according to the user access request, by the CDN edge service node according to the user Access request, which carries out content distribution, realizes the automatic distributing of CDN content thus after CDN configuration successful.It is mentioned using the present invention The method of confession not only realizes the on-line automatic configuration for completing strategy of CDN, alleviates the burden of operation management and manpower, in addition, Since CDN configuration and distribution procedure are on-line operation, the accuracy of distribution content is thereby ensured that.
Internet content diostribution device and system provided by embodiments herein can be realized by a computer program.This Field technical staff it should be appreciated that above-mentioned module division mode is only one of numerous module division modes, if It is divided into other modules or non-division module, it, all should be as long as internet content diostribution device and system have an above-mentioned function Within the protection scope of the application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (19)

1. a kind of internet content distribution method characterized by comprising
Content distributing network service controller CDN SC obtains the log information of at least one content to be distributed, the log information Carry domain-name information;
According to domain name information, determine that corresponding content distribution configuration strategy, the content distribution configuration strategy include domain name Server DNS service strategy;
The content distribution configuration strategy is sent to content distributing network CDN, plan is configured according to the content distribution by the CDN It slightly carries out configuration and returns to configuration result to CDN SC;
Receive the configuration result that the CDN is returned, if it is determined that going out the configuration result is configuration successful, then according to the DNS Service strategy sends scheduling information to the corresponding dns server of the DNS service strategy, and the scheduling information includes domain name letter The IP address of CDN scheduling system in breath and the CDN, by the dns server after receiving user access request, according to The user access request is forwarded to the corresponding CDN of the CDN scheduling system ip address and dispatches system by the scheduling information, by The CDN scheduling system determines CDN edge service node according to the user access request, by the CDN edge service node Content distribution is carried out according to the user access request.
2. the method as described in claim 1, which is characterized in that according to domain name information, determine that corresponding content distribution is matched Strategy is set, is specifically included:
Judge whether domain name information is newly-increased domain-name information;And
When the judgment result is yes, according to domain name information, if it is determined that it is full to go out the corresponding site element of domain name information Rule of judgment can be cached completely, it is determined that the content for needing to cache in the site element;And
Corresponding content distribution configuration strategy is generated according to domain name information and the content for needing to cache.
3. method according to claim 2, which is characterized in that according to domain name information, if it is determined that go out domain name letter Rule of judgment can be cached by ceasing corresponding site element satisfaction, it is determined that and the content for needing to cache in the site element is specific to wrap It includes:
According to domain name information, respectively determine the corresponding site element of domain name information in include static content information and Dynamic content information;And
Determine the ratio between the static content information and the dynamic content information;
If it is determined that the ratio is greater than preset ratio threshold value, it is determined that go out the corresponding site element of domain name information and meet Rule of judgment can be cached;And
Determine that the static content information is the content for needing to cache in the site element.
4. method according to claim 2, which is characterized in that the content distribution configuration strategy further includes following at least one : domain-name information, content distribution mode, content caching strategy and content distribution priority.
5. method according to claim 2, which is characterized in that also carrying in the log information has purpose Internet protocol IP Address;And
Before judging whether domain name information be newly-increased domain-name information, further includes:
Determine the destination IP address in pre-stored IP address list.
6. the method as described in Claims 1 to 5 any claim, which is characterized in that content distributing network service controller CDN SC obtains the log information of at least one content to be distributed, specifically includes:
CDN SC obtains the log information of at least one content to be distributed from deep message detection DPI equipment, wherein the log The information DPI is collected from Internet data center IDC.
7. a kind of internet content diostribution device characterized by comprising
Acquiring unit, for obtaining the log information of at least one content to be distributed, the log information carries domain-name information;
First determination unit, for determining corresponding content distribution configuration strategy, the content distribution according to domain name information Configuration strategy includes domain name server (DNS) service strategy;
Transmission unit, for sending the content distribution configuration strategy to content distributing network CDN, as the CDN according to Content distribution configuration strategy carries out configuration and returns to configuration result to the CDN SC;
Receiving unit, the configuration result returned for receiving the CDN, if it is determined that going out the configuration result is configuration successful, Then according to the DNS service strategy, scheduling information, the scheduling letter are sent to the corresponding dns server of the DNS service strategy Breath includes the IP address of the CDN scheduling system in domain-name information and the CDN, is receiving user's visit by the dns server After asking request, it is corresponding that the user access request is forwarded to by CDN scheduling system ip address according to the scheduling information CDN dispatches system, CDN edge service node is determined according to the user access request by CDN scheduling system, by described CDN edge service node carries out content distribution according to the user access request.
8. device as claimed in claim 7, which is characterized in that first determination unit, specifically include judgment sub-unit, really Stator unit and generation subelement, in which:
The judgment sub-unit, for judging whether domain name information is newly-increased domain-name information;
The determining subelement, when being for the judging result in the judgment sub-unit, according to domain name information, if Determine that the corresponding site element satisfaction of domain name information can cache Rule of judgment, it is determined that need to delay in the site element The content deposited;
The generation subelement, what the needs for being determined according to domain name information and the determining subelement cached Content generates corresponding content distribution configuration strategy.
9. device as claimed in claim 8, which is characterized in that the determining subelement specifically includes the first determining module, Two determining modules, third determining module and the 4th determining module, in which:
First determining module, for determining the corresponding site element of domain name information respectively according to domain name information In include static content information and dynamic content information;
Second determining module, for determining the ratio between the static content information and the dynamic content information;
The third determining module is used for if it is determined that the ratio is greater than preset ratio threshold value, it is determined that go out domain name The corresponding site element satisfaction of information can cache Rule of judgment;
4th determining module, for determining that the static content information is the content for needing to cache in the site element.
10. device as claimed in claim 8, which is characterized in that the content distribution configuration strategy further includes following at least one : domain-name information, content distribution mode, content caching strategy and content distribution priority.
11. device as claimed in claim 8, which is characterized in that also carrying in the log information has purpose Internet protocol IP address;And described device, further includes:
Second determination unit, for before the judgment sub-unit judges whether domain name information is newly-increased domain-name information, Determine the destination IP address in pre-stored IP address list.
12. the device as described in claim 7~11 any claim, which is characterized in that
The acquiring unit is believed specifically for the log for obtaining at least one content to be distributed from deep message detection DPI equipment Breath, wherein the log information DPI is collected from Internet data center IDC.
13. a kind of internet content dissemination system, which is characterized in that including content distributing network service controller CDN SC, interior Content distributing network CDN, domain name server (DNS), in which:
The CDN SC, for obtaining the log information of at least one content to be distributed, the log information carries domain name letter Breath;According to domain name information, determine that corresponding content distribution configuration strategy, the content distribution configuration strategy take comprising domain name Business device DNS service strategy;The content distribution configuration strategy is sent to content distributing network CDN;And it receives the CDN and returns Configuration result, if it is determined that going out the configuration result is configuration successful, then according to the DNS service strategy, takes to the DNS The corresponding dns server of business strategy sends scheduling information, and the scheduling information includes the CDN tune in domain-name information and CDN network The IP address of degree system;
The CDN, for carrying out configuration according to the content distribution configuration strategy and returning to configuration result to CDN SC;And institute The user access request that the CDN scheduling system in CDN receives the dns server forwarding is stated, according to the user access request It determines CDN edge service node, content distribution is carried out according to the user access request by the CDN edge service node;
The dns server, for being asked user access according to the scheduling information after receiving user access request It asks and is forwarded to the corresponding CDN scheduling system of the CDN scheduling system ip address.
14. system as claimed in claim 13, which is characterized in that
The CDN SC, specifically for judging whether domain name information is newly-increased domain-name information;It and in judging result is yes When, according to domain name information, if it is determined that Rule of judgment can be cached by going out the corresponding site element satisfaction of domain name information, then Determine the content for needing to cache in the site element;And phase is generated according to domain name information and the content for needing to cache The content distribution configuration strategy answered.
15. system as claimed in claim 14, which is characterized in that
The CDN SC is also used to according to domain name information, determines wrap in the corresponding site element of domain name information respectively The static content information and dynamic content information contained;And it determines between the static content information and the dynamic content information Ratio;If it is determined that the ratio is greater than preset ratio threshold value, it is determined that it is full to go out the corresponding site element of domain name information Rule of judgment can be cached completely;And determine that the static content information is the content for needing to cache in the site element.
16. system as claimed in claim 14, which is characterized in that the content distribution configuration strategy further includes following at least one : domain-name information, content distribution mode, content caching strategy and content distribution priority.
17. system as claimed in claim 14, which is characterized in that also carrying in the log information has purpose Internet protocol IP address;And
The CDN SC is also used to before judging whether domain name information be newly-increased domain-name information, determines the destination IP Address is in pre-stored IP address list.
18. the system as described in claim 13~17 any claim, which is characterized in that further include deep message detection DPI equipment and Internet data center IDC, in which:
The DPI equipment, for acquiring the log information of content to be distributed from IDC;
The CDN SC, for obtaining the log information of at least one content to be distributed from the DPI equipment.
19. system as claimed in claim 13, which is characterized in that
The dns server, specifically for receive CDN SC transmission scheduling information after, by the domain in the scheduling information The IP address of CDN scheduling system in name information and the CDN is stored in domain-name information list;And it is visited receiving user After asking request, the domain-name information in the user access request is parsed, according to the domain name information parsed, if it is judged that The user access request is then forwarded to the CDN and dispatches system IP by domain name information in domain name information list Address corresponds to CDN scheduling system.
CN201710534426.9A 2017-07-03 2017-07-03 Internet content distribution method, device and system Active CN109218362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710534426.9A CN109218362B (en) 2017-07-03 2017-07-03 Internet content distribution method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710534426.9A CN109218362B (en) 2017-07-03 2017-07-03 Internet content distribution method, device and system

Publications (2)

Publication Number Publication Date
CN109218362A true CN109218362A (en) 2019-01-15
CN109218362B CN109218362B (en) 2021-01-15

Family

ID=64992401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710534426.9A Active CN109218362B (en) 2017-07-03 2017-07-03 Internet content distribution method, device and system

Country Status (1)

Country Link
CN (1) CN109218362B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083058A (en) * 2019-12-04 2020-04-28 百度在线网络技术(北京)有限公司 Content distribution network service current limiting method and electronic equipment
CN111314726A (en) * 2020-02-21 2020-06-19 北京金山云网络技术有限公司 Configuration data adding method, device and system for CDN
CN112311826A (en) * 2019-07-30 2021-02-02 贵州白山云科技股份有限公司 Method, device and system for processing access request in content distribution system
CN112468848A (en) * 2019-08-19 2021-03-09 中兴通讯股份有限公司 Method, device and system for realizing policy scheduling
CN112860343A (en) * 2021-02-10 2021-05-28 北京百度网讯科技有限公司 Configuration changing method, system, device, electronic equipment and storage medium
CN113067907A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 Method and related equipment for addressing edge application
CN113301159A (en) * 2021-05-26 2021-08-24 中国电子科技集团公司第五十四研究所 Service position obtaining method and device in edge computing system
CN113938482A (en) * 2021-08-27 2022-01-14 网宿科技股份有限公司 Scheduling method, scheduling system, server and storage medium for content delivery network
CN114095578A (en) * 2020-08-03 2022-02-25 中国移动通信集团浙江有限公司 Function distribution method, unified scheduling platform, edge node and computing equipment
CN115102957A (en) * 2022-06-08 2022-09-23 中移(杭州)信息技术有限公司 Service distribution method based on hybrid management system and related equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592248A (en) * 2003-08-29 2005-03-09 华为技术有限公司 Layered content distributing network and method thereof
CN101404585A (en) * 2008-11-20 2009-04-08 中国电信股份有限公司 Policy system and method for implementing content distribution network content management
CN101431532A (en) * 2008-12-15 2009-05-13 中国电信股份有限公司 Content routing method, load balancing equipment and resource management equipment
CN101489102A (en) * 2009-01-13 2009-07-22 中兴通讯股份有限公司 Method and system for setting and executing network television content publishing policy
CN104184775A (en) * 2013-05-27 2014-12-03 电子科技大学 CDN-based domain name parse service model
CN104427005A (en) * 2013-08-20 2015-03-18 阿里巴巴集团控股有限公司 Method and system for realizing accurate request scheduling on content delivery network
CN106028400A (en) * 2016-06-30 2016-10-12 华为技术有限公司 Content caching method and base station
CN106790322A (en) * 2015-11-19 2017-05-31 中国移动通信集团公司 Cache policy forming method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592248A (en) * 2003-08-29 2005-03-09 华为技术有限公司 Layered content distributing network and method thereof
CN101404585A (en) * 2008-11-20 2009-04-08 中国电信股份有限公司 Policy system and method for implementing content distribution network content management
CN101431532A (en) * 2008-12-15 2009-05-13 中国电信股份有限公司 Content routing method, load balancing equipment and resource management equipment
CN101489102A (en) * 2009-01-13 2009-07-22 中兴通讯股份有限公司 Method and system for setting and executing network television content publishing policy
CN104184775A (en) * 2013-05-27 2014-12-03 电子科技大学 CDN-based domain name parse service model
CN104427005A (en) * 2013-08-20 2015-03-18 阿里巴巴集团控股有限公司 Method and system for realizing accurate request scheduling on content delivery network
CN106790322A (en) * 2015-11-19 2017-05-31 中国移动通信集团公司 Cache policy forming method and device
CN106028400A (en) * 2016-06-30 2016-10-12 华为技术有限公司 Content caching method and base station

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311826B (en) * 2019-07-30 2022-05-03 贵州白山云科技股份有限公司 Method, device and system for processing access request in content distribution system
CN112311826A (en) * 2019-07-30 2021-02-02 贵州白山云科技股份有限公司 Method, device and system for processing access request in content distribution system
US11606415B2 (en) 2019-07-30 2023-03-14 Guizhou Baishancloud Technology Co., Ltd. Method, apparatus and system for processing an access request in a content delivery system
CN112468848A (en) * 2019-08-19 2021-03-09 中兴通讯股份有限公司 Method, device and system for realizing policy scheduling
CN111083058B (en) * 2019-12-04 2024-03-01 百度在线网络技术(北京)有限公司 Content distribution network service flow limiting method and electronic equipment
CN111083058A (en) * 2019-12-04 2020-04-28 百度在线网络技术(北京)有限公司 Content distribution network service current limiting method and electronic equipment
CN113067907B (en) * 2020-01-02 2023-04-07 中国移动通信有限公司研究院 Method and related equipment for addressing edge application
CN113067907A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 Method and related equipment for addressing edge application
CN111314726B (en) * 2020-02-21 2022-07-05 北京金山云网络技术有限公司 Configuration data adding method, device and system for CDN
CN111314726A (en) * 2020-02-21 2020-06-19 北京金山云网络技术有限公司 Configuration data adding method, device and system for CDN
CN114095578A (en) * 2020-08-03 2022-02-25 中国移动通信集团浙江有限公司 Function distribution method, unified scheduling platform, edge node and computing equipment
CN114095578B (en) * 2020-08-03 2024-05-07 中国移动通信集团浙江有限公司 Function distribution method, unified scheduling platform, edge node and computing device
CN112860343A (en) * 2021-02-10 2021-05-28 北京百度网讯科技有限公司 Configuration changing method, system, device, electronic equipment and storage medium
CN112860343B (en) * 2021-02-10 2024-04-23 北京百度网讯科技有限公司 Configuration changing method, system, device, electronic equipment and storage medium
CN113301159B (en) * 2021-05-26 2022-12-09 中国电子科技集团公司第五十四研究所 Service position obtaining method and device in edge computing system
CN113301159A (en) * 2021-05-26 2021-08-24 中国电子科技集团公司第五十四研究所 Service position obtaining method and device in edge computing system
CN113938482A (en) * 2021-08-27 2022-01-14 网宿科技股份有限公司 Scheduling method, scheduling system, server and storage medium for content delivery network
CN113938482B (en) * 2021-08-27 2024-01-19 网宿科技股份有限公司 Scheduling method, scheduling system, server and storage medium for content distribution network
CN115102957A (en) * 2022-06-08 2022-09-23 中移(杭州)信息技术有限公司 Service distribution method based on hybrid management system and related equipment
CN115102957B (en) * 2022-06-08 2024-06-04 中移(杭州)信息技术有限公司 Service distribution method based on hybrid management system and related equipment

Also Published As

Publication number Publication date
CN109218362B (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN109218362A (en) A kind of internet content distribution method, device and system
JP6410280B2 (en) Website access method, apparatus, and website system
US7222088B2 (en) Service system
CN105530324B (en) The method and system of process resource request
US6366947B1 (en) System and method for accelerating network interaction
US7861174B2 (en) Method and system for assembling concurrently-generated content
KR100629057B1 (en) Remote dynamic configuration of a web server to facilitate capacity on demand
US20020055956A1 (en) Method and system for assembling concurrently-generated content
CN106133688A (en) Coordinate the enforcement of the service of container layout and execution
CN103905574B (en) A kind of DNS Operational Visits method, DNS data synchronous method and equipment
JP2000242658A (en) Individual information managing device, and customizing device
CN109347968A (en) A kind of method, apparatus and system of data block that downloading resource file
CN108390955A (en) Domain Name acquisition method, Website access method and server
CN108418847A (en) A kind of network traffic cache system, method and device
JP2008522464A (en) Method and system for agent to redirect terminal request
CN109302437A (en) A kind of method and apparatus redirecting website
JP2012118709A (en) Distribution system, storage capacity decision program, and storage capacity decision method
US20150006622A1 (en) Web contents transmission method and apparatus
JP4186164B2 (en) Web sharing system, Web sharing method, Web sharing program, relay server, and WWW browser display device
JP2010511236A (en) Method, apparatus and computer program for changing an endpoint reference representing a web service endpoint
CN103731396B (en) Resource access method, system and cache resources information push-delivery apparatus
JP2003162449A (en) Integrated access management system, integrated access management device and its method and program
CN105791247A (en) Unified traffic payment business implementation method and associated equipment and system
JPH11175471A (en) Method and device for rewriting url, and medium recorded with url re-writable program
EP1325424A2 (en) Method and system for assembling concurrently-generated content

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