CN113596105B - Content acquisition method, edge node and computer readable storage medium - Google Patents

Content acquisition method, edge node and computer readable storage medium Download PDF

Info

Publication number
CN113596105B
CN113596105B CN202110764695.0A CN202110764695A CN113596105B CN 113596105 B CN113596105 B CN 113596105B CN 202110764695 A CN202110764695 A CN 202110764695A CN 113596105 B CN113596105 B CN 113596105B
Authority
CN
China
Prior art keywords
request
content
source
content acquisition
acquisition request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110764695.0A
Other languages
Chinese (zh)
Other versions
CN113596105A (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.)
Shenzhen SDMC Technology Co Ltd
Original Assignee
Shenzhen SDMC Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen SDMC Technology Co Ltd filed Critical Shenzhen SDMC Technology Co Ltd
Priority to CN202110764695.0A priority Critical patent/CN113596105B/en
Publication of CN113596105A publication Critical patent/CN113596105A/en
Application granted granted Critical
Publication of CN113596105B publication Critical patent/CN113596105B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Abstract

The invention discloses a content acquisition method, an edge node and a computer readable storage medium, wherein the content acquisition method is applied to the edge node of a content distribution network, the content distribution network comprises a scheduling node and the edge node, and the method comprises the following steps: receiving a content acquisition request scheduled by a scheduling node, wherein the content acquisition request is sent to the scheduling node by a terminal; generating a source return request according to the content acquisition request; the method comprises the steps of sending a source returning request to a source station corresponding to a request address and a content type of a content acquisition request, wherein the source station responds to the source returning request and sends target content; and sending the received target content to the terminal. The invention improves the content acquisition efficiency.

Description

Content acquisition method, edge node and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method for acquiring content, an edge node, and a computer readable storage medium.
Background
In the current content distribution network, a single-node source returning mode is mainly adopted, and the same-category content can only send a source returning request to one source station. Under the condition that the number of the source return requests is excessive, the efficiency of processing the source return requests by the single-node source station is low, so that the acquisition efficiency of the content is low.
Disclosure of Invention
The embodiment of the invention aims to solve the technical problem of how to improve the acquisition efficiency of content by providing a content acquisition method, an edge node and a computer readable storage medium.
The embodiment of the invention provides a content acquisition method, which is applied to an edge node of a content distribution network, wherein the content distribution network comprises a scheduling node and the edge node, and the content acquisition method comprises the following steps:
receiving a content acquisition request scheduled by a scheduling node, wherein the content acquisition request is sent to the scheduling node by a terminal;
generating a source return request according to the content acquisition request;
the source returning request is sent to a source station corresponding to the request address and the content type of the content acquisition request, wherein the source station responds to the source returning request and sends target content;
and sending the received target content to the terminal.
In one embodiment, the step of sending the source return request to the source station corresponding to the request address and the content type of the content acquisition request includes:
determining the number of source stations corresponding to the request address and the content type;
when the number of the source stations is larger than 1, sending the source returning request to the source station corresponding to the request address according to the working state of each source station;
and when the number of the source stations is 1, sending the source returning request to the source station corresponding to the request address.
In an embodiment, when the number of source stations is greater than 1, the step of sending the source return request to the source station corresponding to the request address according to the working state of each source station includes:
when the number of the source stations is larger than 1, determining the working state of each source station corresponding to the request address;
and when the working state of the source station is an idle state, sending the source returning request to the source station in the idle state.
In an embodiment, after the step of determining the working states of the source stations corresponding to the request address, the method further includes:
and when the working states of the source stations are all busy states, returning to execute the step of determining the number of the source stations corresponding to the request address and the content type.
In an embodiment, after the step of receiving the content acquisition request scheduled by the scheduling node, the method further comprises:
inquiring whether the target content is stored locally according to the content acquisition request;
if the target content is stored locally, the target content is sent to the terminal;
and if the target content is not stored locally, executing the step of generating a source return request according to the content acquisition request.
In an embodiment, after the step of receiving the content acquisition request scheduled by the scheduling node, the method further comprises:
authenticating the token of the content acquisition request;
and when the authentication is successful, executing the step of generating a source return request according to the content acquisition request.
In an embodiment, after the step of receiving the content acquisition request scheduled by the scheduling node, the method further comprises:
extracting effective request time of a request address carried by the content acquisition request;
and executing the step of generating a source return request according to the content acquisition request when the current time is within the effective request time.
In an embodiment, after the step of generating a back source request according to the content acquisition request, the method further includes:
determining whether the rule of the content acquisition request is a third party rule;
when the rule of the content acquisition request is a third party rule, fuzzy matching is carried out according to the request address of the content acquisition request so as to determine a third party source station;
sending the source return request to a third party source station;
and when the rule of the content acquisition request is not a third party rule, executing the step of sending the source returning request to a source station corresponding to the request address and the content type of the content acquisition request.
The embodiment of the invention also provides an edge node, which comprises: the content acquisition device comprises a memory, a processor and a content acquisition program which is stored in the memory and can run on the processor, wherein the processor realizes the steps of the content acquisition method when executing the content acquisition program.
The embodiment of the present invention also provides a computer-readable storage medium having stored thereon a content acquisition program which, when executed by a processor, implements the steps of the content acquisition method described above.
In the technical scheme of the embodiment, an edge node receives a content acquisition request scheduled by a scheduling node, and the content acquisition request is sent to the scheduling node by a terminal; generating a source return request according to the content acquisition request; the source returning request is sent to a source station corresponding to the request address and the content type of the content acquisition request, wherein the source station responds to the source returning request and sends target content; and sending the received target content to the terminal. Because the edge node can receive and determine the content type of the target content to be acquired according to the content acquisition request, when a plurality of source stations corresponding to the request address carried by the content acquisition request are needed, after the source return request is generated, the corresponding source station can be determined in the source stations corresponding to the request address according to the content type of the target content to be acquired, and the source return request is sent to the corresponding source station, so that the data sent by the source station is received to respond to the content acquisition request sent by the terminal, the efficiency of the source station for processing the source return request is improved, and the acquisition efficiency of the content is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a hardware architecture of an edge node according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a method for acquiring content of the present invention;
fig. 3 is a schematic diagram of a refinement flow of step S30 in a second embodiment of the method for obtaining the content of the present invention;
fig. 4 is a schematic diagram of a refinement flow of step S30 in a third embodiment of the method for obtaining the content of the present invention;
fig. 5 is a schematic diagram of a refinement flow of step S30 in a fourth embodiment of the method for obtaining the content of the present invention;
FIG. 6 is a flowchart of a fifth embodiment of a method for acquiring content of the present invention;
fig. 7 is a flowchart of a sixth embodiment of the method for obtaining the content of the present invention.
Detailed Description
In order that the above-described aspects may be better understood, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The main solution of the invention is as follows: the method comprises the steps that an edge node receives a content acquisition request scheduled by a scheduling node, and the content acquisition request is sent to the scheduling node by a terminal; generating a source return request according to the content acquisition request; the source returning request is sent to a source station corresponding to the request address and the content type of the content acquisition request, wherein the source station responds to the source returning request and sends target content; and sending the received target content to the terminal.
Because the edge node can receive and determine the content type of the target content to be acquired according to the content acquisition request, when a plurality of source stations corresponding to the request address carried by the content acquisition request are needed, after the source return request is generated, the corresponding source station can be determined in the source stations corresponding to the request address according to the content type of the target content to be acquired, and the source return request is sent to the corresponding source station, so that the data sent by the source station is received to respond to the content acquisition request sent by the terminal, the efficiency of the source station for processing the source return request is improved, and the acquisition efficiency of the content is improved.
As an implementation, the edge node may be as in fig. 1.
The embodiment of the invention relates to an edge node, which comprises: a processor 101, such as a CPU, a memory 102, and a communication bus 103. Wherein the communication bus 103 is used to enable connected communication among the components.
The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. As shown in fig. 1, a detection program may be included in the memory 103 as a computer-readable storage medium; and the processor 101 may be configured to call the detection program stored in the memory 102 and perform the following operations:
receiving a content acquisition request scheduled by a scheduling node, wherein the content acquisition request is sent to the scheduling node by a terminal;
generating a source return request according to the content acquisition request;
the source returning request is sent to a source station corresponding to the request address and the content type of the content acquisition request, wherein the source station responds to the source returning request and sends target content;
and sending the received target content to the terminal.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining the number of source stations corresponding to the request address and the content type;
when the number of the source stations is larger than 1, sending the source returning request to the source station corresponding to the request address according to the working state of each source station;
and when the number of the source stations is 1, sending the source returning request to the source station corresponding to the request address.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
when the number of the source stations is larger than 1, determining the working state of each source station corresponding to the request address;
and when the working state of the source station is an idle state, sending the source returning request to the source station in the idle state.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and returning to execute the step of determining the number of the source stations corresponding to the request address and the content type when the working states of the source stations are busy.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
inquiring whether the target content is stored locally according to the content acquisition request;
if the target content is stored locally, the target content is sent to the terminal;
and if the target content is not stored locally, executing the step of generating a source return request according to the content acquisition request.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
authenticating the token of the content acquisition request;
and when the authentication is successful, executing the step of generating a source return request according to the content acquisition request.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining whether the rule of the content acquisition request is a third party rule;
when the rule of the content acquisition request is a third party rule, fuzzy matching is carried out according to the request address of the content acquisition request so as to determine a third party source station;
sending the source return request to a third party source station;
and when the rule of the content acquisition request is not a third party rule, executing the step of sending the source returning request to a source station corresponding to the request address and the content type of the content acquisition request.
In the technical scheme of the embodiment, an edge node receives a content acquisition request scheduled by a scheduling node, and the content acquisition request is sent to the scheduling node by a terminal; generating a source return request according to the content acquisition request; the source returning request is sent to a source station corresponding to the request address and the content type of the content acquisition request, wherein the source station responds to the source returning request and sends target content; and sending the received target content to the terminal. Because the edge node can receive and determine the content type of the target content to be acquired according to the content acquisition request, when a plurality of source stations corresponding to the request address carried by the content acquisition request are needed, after the source return request is generated, the corresponding source station can be determined in the source stations corresponding to the request address according to the content type of the target content to be acquired, and the source return request is sent to the corresponding source station, so that the data sent by the source station is received to respond to the content acquisition request sent by the terminal, the efficiency of the source station for processing the source return request is improved, and the acquisition efficiency of the content is improved.
In order to better understand the above technical solutions, the following detailed description will refer to the accompanying drawings and specific embodiments.
Referring to fig. 2, fig. 2 is a first embodiment of a method for obtaining the content of the present invention, the method includes the following steps:
step S10, receiving a content acquisition request scheduled by a scheduling node, wherein the content acquisition request is sent to the scheduling node by a terminal.
In this embodiment, when receiving a content acquisition request sent by a terminal, the scheduling node responds to the terminal with a 302 status code to an edge node address, and then the terminal sends the content acquisition request to the edge node according to the edge website address. The content acquiring method of the present embodiment is applied to an edge node of a content delivery network, where the Content Delivery Network (CDN) includes a scheduling node and an edge node, and the CDN is generally called Content Delivery Network, i.e., the content delivery network. The basic idea is to avoid the bottleneck and link on the internet which possibly affects the data transmission speed and stability as much as possible, so that the content transmission is faster and more stable. Through a layer of intelligent virtual network formed by node servers placed everywhere in the network and based on the existing internet, the CDN system can redirect the user's request to the service node nearest to the user in real time according to the network flow and the comprehensive information of the connection of each node, the load condition, the distance to the user, the response time and the like. The method aims to enable the user to obtain the required content nearby, solve the problem of congestion of the Internet network and improve the response speed of the user for accessing the website. Further, the scheduling node is configured to receive a content acquisition request sent by the terminal and schedule the content acquisition request to the edge node, so that the edge node responds to the content acquisition request sent by the terminal, specifically, as long as a domain name of a request address (URL) of the content acquisition request uses a domain name of the scheduling node, the content acquisition request must be requested to the scheduling node, the scheduling node will schedule the address to the edge node, and then the edge node processes the request.
And step S20, generating a source return request according to the content acquisition request.
In this embodiment, the edge node generates a corresponding source-returning request when receiving a content acquisition request scheduled by the scheduling node.
And step S30, the source returning request is sent to a source station corresponding to the request address and the content type of the content acquisition request, wherein the source station responds to the source returning request and sends target content.
In this embodiment, the selectable source station is determined based on the request address, and then the source station to be transmitted is further determined based on the requested and content types of the content acquisition request, specifically, the content types are obtained by analyzing the content acquisition request, and can be classified according to the content types, the source stations which are not available are selected according to the different content types to process the source return request, and the main content types currently include: the on-demand, live broadcast, time shifting and review can dynamically configure different content types according to the requirements; when the source station to be returned is determined according to the request address, a source return request can be generated and sent to the corresponding source station; when the source station receives a source returning request sent by the edge node, the source station sends target content to the edge node so that the edge node receives the target content.
Alternatively, for the content type, by taking the on-demand content type and the live content type as examples, different source stations may be used for the on-demand content type and the live content type, so that the on-demand content and the live content are isolated (the isolation is that the on-demand content and the live content are not associated at all, and are not required to be on-demand or live respectively as one piece cdn, but the same cdn may be used, and are not associated with each other). Further, the same type of content may also have multiple source stations, such as: 3 source stations can be configured for the content type of the on-demand, the 1 st source return request returns to the on-demand source station 1, and the 2 nd source return request returns to the source station 2, so that the pressure of the source stations of the same type can be reduced. And if one of the source stations is down, the on-demand content can still return to the source without affecting the service.
Alternatively, if the discovery rule is not its own rule when processing the content acquisition request, it may be considered as a third party integrated source station address, and then the source request is directly generated and sent back to the third party source station. Specifically, whether the rule of the content acquisition request is a third party rule is determined; when the rule of the content acquisition request is a third party rule, fuzzy matching is performed according to the request address of the content acquisition request to determine a third party source station matched with the character of the request address, and optionally, the third party source station with similar characters is searched according to the request address to serve as the source station address of the return source, for example: the request address of the third party source station is provided with a fixed character, and whether the third party source station address is supported can be judged only by matching the character; after determining that the source station address of the third-party source station is searched, sending a source returning request to the third-party source station so that the third-party source station sends target content to the edge node, and then the edge node sends the target content to the terminal. And when the rule of the content acquisition request is not a third party rule, executing the step of sending the back source request to the source station corresponding to the request address and the content type of the content acquisition request. For the determination of the third party rule, the content acquisition request can be analyzed, whether the preset parameters are contained or not is then determined, if the preset parameters are contained, the content acquisition request is processed as the content acquisition request of the non-third party rule, and if the preset parameters are contained, the content acquisition request is processed as the content acquisition request of the third party rule; further, the corresponding parameter information can be obtained by analyzing the content acquisition request, and the parameter information mainly comprises: content ID, content type, content protocol, device MAC address, public network IP, token, validity time.
In the technical solution of this embodiment, the edge node may process a content acquisition request with a preset rule, or may process a content acquisition request with a non-preset rule, where the non-preset rule includes a third party rule, and by setting a disposition manner of the content acquisition request with a different rule, may process content acquisition requests with multiple different rules, and may process preset rules for content acquisition.
And step S40, the received target content is sent to the terminal.
In this embodiment, after receiving the target content, the edge node sends the target content to the terminal, and specifically, sends the parameter information obtained according to the analysis content acquisition request to the corresponding terminal.
Optionally, after the target content is obtained, the target content is stored locally.
Optionally, when the edge node receives the content acquisition request, whether the target content is stored is queried locally in advance according to the content acquisition request; if the target content is locally available, the target content is sent to a terminal; and if the target content is not stored locally, executing the step of generating a source returning request according to the content acquisition request.
In the technical scheme of the embodiment, when the content acquisition request is received, whether the target content for response is locally stored is determined, if the target content is locally stored, the generation and the transmission of the back source request can be canceled, the content acquisition request is directly responded, and the calculation force required by the back source is reduced.
In this embodiment, since the edge node may receive and determine the content type of the target content to be acquired according to the content acquisition request, when there are multiple source stations corresponding to the request address carried by the content acquisition request, if source returning is to be performed, after the source returning request is generated, the corresponding source station may be determined in the source stations corresponding to the request address according to the content type of the target content to be acquired, and the source returning request is sent to the corresponding source station, so that data sent by the source station is received to respond to the content acquisition request sent by the terminal, so that efficiency of the source station for processing the source returning request is improved, and thus content acquisition efficiency is improved.
Referring to fig. 3, fig. 3 is a second embodiment of the method for obtaining the content of the present invention, based on the first embodiment, step S30 includes:
step S31, determining the number of source stations corresponding to the request address and the content type.
And step S32, when the number of the source stations is larger than 1, the source returning request is sent to the source station corresponding to the request address according to the working state of each source station.
In this embodiment, if the number of optional source stations determined based on the request address and the content type is any multiple, the screening of the source stations may be further performed based on the working states of the optional source stations.
And step S33, when the number of the source stations is 1, the source returning request is sent to the source station corresponding to the request address.
In the technical scheme of the embodiment, after the request address and the content type determine a plurality of optional source stations, the source returning request can be normally processed, and the source station for processing the source returning request is selected according to the working state of the source station, so that the stability of content acquisition is improved.
Referring to fig. 4, fig. 4 is a third embodiment of the method for obtaining the content of the present invention, based on any one of the first to second embodiments, step S32 includes:
and S321, when the number of the source stations is larger than 1, determining the working state of each source station corresponding to the request address.
And step S322, when the working state of the source station is an idle state, the source returning request is sent to the source station in the idle state.
In the technical scheme of the embodiment, after the request address and the content type determine a plurality of optional source stations, when an idle source station exists, the source station which is endangered to crash can be prevented from being selected to process the source returning request, and the possibility of source returning abnormality is reduced.
Referring to fig. 5, fig. 5 is a fourth embodiment of the method for obtaining the content of the present invention, based on any one of the first to third embodiments, after step S322, further including:
step S323, when the working states of the source stations are all busy states, returning to execute the step of determining the number of source stations corresponding to the request address and the content type.
In this embodiment, when the source station that processes the source return request is selected according to the working state of the source station, if the source stations that are suitable for processing the source return request are all busy states, the step of determining the number of source stations corresponding to the request address and the content type may be performed in a return manner, so as to wait for the source stations in an idle state to appear, and then send the source return request to the corresponding source station.
In the technical scheme of the embodiment, through the technical characteristics, whether the source returning request cannot be processed due to the busy source station can be determined, if so, the source returning is not directly abandoned, and the processing opportunity is waited, and the embodiment can improve the processing success rate of the source returning request.
Referring to fig. 6, fig. 6 is a fifth embodiment of the method for obtaining the content of the present invention, based on any one of the first to fourth embodiments, after step S10, further including:
step S50, authenticating the token of the content acquisition request.
In this embodiment, a token (token) obtained by parsing a content acquisition request is authenticated.
And step S60, when the authentication is successful, executing the step of generating a source return request according to the content acquisition request.
In the technical scheme of the embodiment, by authenticating the token, whether the content acquisition request has permission to acquire the corresponding content can be determined, and the security of the source station content is improved.
Referring to fig. 7, fig. 7 is a sixth embodiment of the method for obtaining the content of the present invention, based on any one of the first to fifth embodiments, after step S10, further including:
step S70, extracting the effective request time of the request address carried by the content acquisition request.
And step S80, executing the step of generating a source return request according to the content acquisition request when the current time is within the effective request time.
In this embodiment, the valid request time refers to the valid time when the request address can download the content, and beyond the valid time, the address of the acquired content fails, and the corresponding source station cannot be determined according to the request address.
In the technical solution of this embodiment, if the effective time of the request address of the content acquisition request is invalid, the source returning can be canceled, so as to prevent resource waste caused by source returning failure.
To achieve the above object, an embodiment of the present invention further provides an edge node, including: the content acquisition device comprises a memory, a processor and a content acquisition program which is stored in the memory and can run on the processor, wherein the processor realizes the steps of the content acquisition method when executing the content acquisition program.
To achieve the above object, an embodiment of the present invention also provides a computer-readable storage medium having stored thereon a content acquisition program which, when executed by a processor, implements the respective steps of the content acquisition method described above.
It will be appreciated by those skilled in the art that embodiments of the invention may be provided as a method, system, or content acquisition program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a network configuration product program embodied on one or more computer-usable computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and content retrieval program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by program instructions for obtaining the content. The program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The program instructions for obtaining such content may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
The program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (8)

1. A method for acquiring content, wherein the method for acquiring content is applied to an edge node of a content distribution network, the content distribution network comprises a scheduling node and the edge node, and the method for acquiring content comprises the following steps:
receiving a content acquisition request scheduled by a scheduling node, wherein the content acquisition request is sent to the scheduling node by a terminal;
generating a source return request according to the content acquisition request;
determining a request address of a content acquisition request and the number of source stations corresponding to the content type;
when the number of the source stations is larger than 1, determining the working state of each source station corresponding to the request address;
when the working state of the source station is an idle state, sending the source returning request to the source station in the idle state;
when the number of the source stations is 1, the source returning request is sent to the source station corresponding to the request address, wherein the source station responds to the source returning request and sends target content;
and sending the received target content to the terminal.
2. The content acquisition method according to claim 1, wherein after the step of determining the operation states of the respective source stations corresponding to the request addresses, the method further comprises:
and when the working states of the source stations are all busy states, returning to execute the step of determining the number of the source stations corresponding to the request address and the content type.
3. The method for acquiring content according to claim 1, wherein after the step of receiving the content acquisition request scheduled by the scheduling node, the method further comprises:
inquiring whether the target content is stored locally according to the content acquisition request;
if the target content is stored locally, the target content is sent to the terminal;
and if the target content is not stored locally, executing the step of generating a source return request according to the content acquisition request.
4. The method for acquiring content according to claim 1, wherein after the step of receiving the content acquisition request scheduled by the scheduling node, the method further comprises:
authenticating the token of the content acquisition request;
and when the authentication is successful, executing the step of generating a source return request according to the content acquisition request.
5. The method for acquiring content according to claim 1, wherein after the step of receiving the content acquisition request scheduled by the scheduling node, the method further comprises:
extracting effective request time of a request address carried by the content acquisition request;
and executing the step of generating a source return request according to the content acquisition request when the current time is within the effective request time.
6. The method for acquiring content according to claim 1, wherein after the step of generating a back source request from the content acquisition request, the method further comprises:
determining whether the rule of the content acquisition request is a third party rule;
when the rule of the content acquisition request is a third party rule, fuzzy matching is carried out according to the request address of the content acquisition request so as to determine a third party source station;
sending the source return request to a third party source station;
and when the rule of the content acquisition request is not a third party rule, executing the step of sending the source returning request to a source station corresponding to the request address and the content type of the content acquisition request.
7. An edge node, the edge node comprising: memory, a processor and a content acquisition program stored on the memory and executable on the processor, the processor implementing the steps of the content acquisition method according to any one of claims 1 to 6 when executing the content acquisition program.
8. A computer-readable storage medium, wherein a content acquisition program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the content acquisition method according to any one of claims 1 to 6.
CN202110764695.0A 2021-07-06 2021-07-06 Content acquisition method, edge node and computer readable storage medium Active CN113596105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110764695.0A CN113596105B (en) 2021-07-06 2021-07-06 Content acquisition method, edge node and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110764695.0A CN113596105B (en) 2021-07-06 2021-07-06 Content acquisition method, edge node and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113596105A CN113596105A (en) 2021-11-02
CN113596105B true CN113596105B (en) 2023-12-26

Family

ID=78246270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110764695.0A Active CN113596105B (en) 2021-07-06 2021-07-06 Content acquisition method, edge node and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113596105B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114501056A (en) * 2022-04-18 2022-05-13 深圳市华曦达科技股份有限公司 Method and device for automatically returning channels of multi-source station

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196060A (en) * 2011-06-15 2011-09-21 北京蓝汛通信技术有限责任公司 Method and system for selecting source station by Cache server
CN104363313A (en) * 2014-12-02 2015-02-18 网宿科技股份有限公司 Method and system for guaranteeing resource utilization rate of website using content distribution network
CN106202112A (en) * 2015-05-06 2016-12-07 阿里巴巴集团控股有限公司 CACHE DIRECTORY method for refreshing and device
CN109194772A (en) * 2018-11-13 2019-01-11 杭州领智云画科技有限公司 CDN fringe node returns source method and system
CN109981765A (en) * 2019-03-18 2019-07-05 北京百度网讯科技有限公司 Method and apparatus for determining the access path of content distributing network
CN110572687A (en) * 2019-08-09 2019-12-13 北京达佳互联信息技术有限公司 Live broadcast source-returning aggregation method, device, system, equipment and storage medium
CN112243027A (en) * 2020-09-30 2021-01-19 武汉兴图新科电子股份有限公司 System and method for solving mass media stream distribution problem based on cluster technology
CN112422702A (en) * 2020-08-10 2021-02-26 上海哔哩哔哩科技有限公司 CDN back-to-source method, system and computer equipment
CN112804555A (en) * 2021-04-08 2021-05-14 北京新唐思创教育科技有限公司 Line scheduling method, system, electronic device and computer storage medium
CN113037869A (en) * 2021-04-14 2021-06-25 北京百度网讯科技有限公司 Method and apparatus for back-sourcing of content distribution network system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10826870B2 (en) * 2019-03-21 2020-11-03 Wangsu Science & Technology Co., Ltd. Method, device and server for processing access request

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196060A (en) * 2011-06-15 2011-09-21 北京蓝汛通信技术有限责任公司 Method and system for selecting source station by Cache server
CN104363313A (en) * 2014-12-02 2015-02-18 网宿科技股份有限公司 Method and system for guaranteeing resource utilization rate of website using content distribution network
CN106202112A (en) * 2015-05-06 2016-12-07 阿里巴巴集团控股有限公司 CACHE DIRECTORY method for refreshing and device
CN109194772A (en) * 2018-11-13 2019-01-11 杭州领智云画科技有限公司 CDN fringe node returns source method and system
CN109981765A (en) * 2019-03-18 2019-07-05 北京百度网讯科技有限公司 Method and apparatus for determining the access path of content distributing network
CN110572687A (en) * 2019-08-09 2019-12-13 北京达佳互联信息技术有限公司 Live broadcast source-returning aggregation method, device, system, equipment and storage medium
CN112422702A (en) * 2020-08-10 2021-02-26 上海哔哩哔哩科技有限公司 CDN back-to-source method, system and computer equipment
CN112243027A (en) * 2020-09-30 2021-01-19 武汉兴图新科电子股份有限公司 System and method for solving mass media stream distribution problem based on cluster technology
CN112804555A (en) * 2021-04-08 2021-05-14 北京新唐思创教育科技有限公司 Line scheduling method, system, electronic device and computer storage medium
CN113037869A (en) * 2021-04-14 2021-06-25 北京百度网讯科技有限公司 Method and apparatus for back-sourcing of content distribution network system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈湉.《现代电信科技》.2015,全文. *

Also Published As

Publication number Publication date
CN113596105A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN108881448B (en) API request processing method and device
US9794242B2 (en) Method, apparatus and application platform for realizing logon to an application service website
CN111580995B (en) Synchronous communication method and system of distributed cloud platform and Internet of things intelligent terminal based on MQTT asynchronous communication scene
CN110830564B (en) CDN scheduling method, device, system and computer readable storage medium
US10958735B2 (en) Client connection method and system
CN110633442A (en) Pushing method and device and electronic equipment
CN110336848B (en) Scheduling method, scheduling system and scheduling equipment for access request
CN109756584B (en) Domain name resolution method, domain name resolution device and computer readable storage medium
CN111367693B (en) Method, system, device and medium for scheduling plug-in tasks based on message queue
CN102143177A (en) Portal authentication method, Portal authentication device,Portal authentication equipment and Portal authentication system
CN113676563B (en) Scheduling method, device, equipment and storage medium of content distribution network service
CN106550056A (en) A kind of domain name analytic method and device
CN114024972A (en) Long connection communication method, system, device, equipment and storage medium
US10225358B2 (en) Page push method, device, server and system
CN113361913A (en) Communication service arranging method, device, computer equipment and storage medium
CN105792247B (en) data pushing method and device
CN113596105B (en) Content acquisition method, edge node and computer readable storage medium
CN102891851A (en) Access control method, equipment and system of virtual desktop
CN107770203B (en) Service request forwarding method, device and system
US8332498B2 (en) Synchronized relay messaging and coordinated network processing using SNMP
CN110601989A (en) Network traffic balancing method and device
CN110865845B (en) Method for improving interface access efficiency and storage medium
CN111988298B (en) Data processing method, device and equipment
CN112131263B (en) Software package acquisition method, system, device, electronic equipment and storage medium
CN109688204B (en) File downloading method, node and terminal based on NDN (named data networking)

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