WO2021004384A1 - Content delivery network, data processing method, apparatus and device, and storage medium - Google Patents

Content delivery network, data processing method, apparatus and device, and storage medium Download PDF

Info

Publication number
WO2021004384A1
WO2021004384A1 PCT/CN2020/100052 CN2020100052W WO2021004384A1 WO 2021004384 A1 WO2021004384 A1 WO 2021004384A1 CN 2020100052 W CN2020100052 W CN 2020100052W WO 2021004384 A1 WO2021004384 A1 WO 2021004384A1
Authority
WO
WIPO (PCT)
Prior art keywords
service node
node
data
streaming
target data
Prior art date
Application number
PCT/CN2020/100052
Other languages
French (fr)
Chinese (zh)
Inventor
杨超
李松林
王宗阳
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2021004384A1 publication Critical patent/WO2021004384A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/61Network physical structure; Signal processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • H04N21/64738Monitoring network characteristics, e.g. bandwidth, congestion level

Definitions

  • This application relates to the field of Internet technology, and in particular to a content distribution network, data processing method, device, equipment, and storage medium.
  • the Content Delivery Network consists of a data center and a cache server.
  • Cache servers are distributed in areas or networks where user access is relatively concentrated.
  • the data center can use global load technology to direct user access to the cache server closest to the user, greatly reducing user access latency .
  • the existing CDN architecture is usually implemented as a tree structure.
  • the tree structure CDN contains multiple node server levels, and each node server level can contain multiple node servers.
  • each node server level can contain multiple node servers.
  • the resulting link loss is relatively large. Therefore, a new solution needs to be proposed.
  • Various aspects of the present application provide a content distribution network, data processing method, device, equipment, and storage medium to effectively reduce link loss and optimize CDN link quality.
  • An embodiment of the present application provides a content distribution network, including: a central node and at least one service node; wherein, the first service node in the at least one service node is used to: When requesting access, request the central node to obtain the address of the node storing the target data; the central node is specifically configured to: request the address of the node storing the target data at the first service node When determining the second service node in the content distribution network that meets the preset rules and stores the target data, and provides the address of the second service node to the first service node, so that the first service node A service node obtains the target data from the second service node.
  • the embodiment of the present application also provides a data processing method, which is suitable for the first service node in the content distribution network, and includes: responding to an access request for target data, querying whether the target data is stored locally; if not, from the center The node obtains the address of the second service node storing the target data; the second service node is selected according to a preset rule; accesses the second service node according to the address of the second service node to obtain the The target data.
  • the embodiment of the present application also provides a data processing method, which is applicable to a central node in a content distribution network, including: responding to a request sent by a first service node to obtain a service node storing target data, and selecting the content according to a preset rule A second service node storing the target data in the distribution network; providing the address of the second service node to the first service node so that the first service node can obtain it from the second service node The target data.
  • An embodiment of the present application also provides a content distribution network, including: a live broadcast center and at least one live broadcast node; wherein the first live broadcast node in the at least one live broadcast node is configured to: When requesting data streaming, request to the live broadcast center to obtain the address of the live broadcast node storing the live streaming data; the live broadcast center is specifically configured to: request to obtain the live broadcast stored at the first live broadcast node When the address of the live streaming node of the streaming data is determined, the second service node in the content distribution network that meets the preset rules and stores the live streaming data is determined, and the address of the second live streaming node is provided to the first A live streaming node, so that the first live streaming node obtains the live streaming data from the second live streaming node.
  • An embodiment of the present application also provides a data processing device, including: a query module, used to respond to an access request for target data, and query whether the target data is stored locally; a request module, used to check whether the output of the query module is no When, obtain the address of the second service node storing the target data from the central node; the second service node is selected according to a preset rule; the data obtaining module is used to access according to the address of the second service node The second service node to obtain the target data.
  • An embodiment of the application also provides a data processing device, including: a selection module, configured to respond to a request sent by a first service node to obtain a service node storing target data, and select a data processing device stored in the content distribution network according to preset rules.
  • the second service node of the target data a sending module, configured to provide the address of the second service node to the first service node, so that the first service node obtains it from the second service node The target data.
  • An embodiment of the present application also provides an electronic device, including: a memory, a processor, and a communication component; the memory is used to store one or more computer instructions; the processor is used to execute the one or more computer instructions for use ⁇ : Execute the steps in the data processing method provided in the embodiment of this application.
  • the embodiment of the present application also provides a computer-readable storage medium storing a computer program.
  • the processor can enable the processor to implement the steps in the data processing method provided in the embodiment of the present application.
  • the first service node when the first service node receives an access request for target data that is not stored locally, it requests the central node to obtain the address of the second service node storing the target data to obtain the The service node obtains the target data; wherein, the second service node complies with the set rule.
  • the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which is beneficial to optimize the link quality and reduce the transmission data of the content distribution network.
  • Fig. 1a is a schematic structural diagram of a content distribution network provided by an exemplary embodiment of this application.
  • FIG. 1b is a schematic structural diagram of a content distribution network provided by another exemplary embodiment of this application.
  • FIG. 2 is a schematic flowchart of a data processing method provided by an exemplary embodiment of the present application
  • FIG. 3 is a schematic flowchart of a data processing method provided by another exemplary embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a data processing device provided by an exemplary embodiment of this application.
  • FIG. 5 is a schematic structural diagram of a data processing device provided by an exemplary embodiment of this application.
  • Fig. 6 is a schematic structural diagram of a first service node provided by an exemplary embodiment of the present application.
  • Fig. 7 is a schematic structural diagram of a central node provided by an exemplary embodiment of this application.
  • FIG. 1a is a schematic structural diagram of a content distribution network provided by an exemplary embodiment of this application.
  • the content distribution network (CDN) 100 includes a central node 10 and at least one service node 20.
  • the at least one service node 20 may be illustrated as the service nodes 201a, 201b, 201c, 201d, 201e, 201f, 201g, 202a, 202b, 202c, etc. in FIG. 1a.
  • the content distribution network 100 is implemented as a tree structure.
  • the tree structure of CDN mainly includes three levels: the central level, the middle level, and the edge level.
  • the central node 10 in the central level is the root node in the tree structure
  • the service nodes in the middle level are the child nodes of the service node in the central level.
  • the service nodes in the edge level are child nodes of the service node in the middle level.
  • the number of service nodes 20 and the number of divided levels depend on actual needs, and this embodiment does not limit this.
  • the central node 10 in the central hierarchy is used to implement functions such as load balancing, data content distribution, and access scheduling.
  • the service node of the middle level is used to connect the service node of the edge level and the central node of the central level to relieve the data access pressure of the central node in the central level.
  • the service node in the edge level is used to synchronize the content of the source site, and directly respond to user requests, and quickly distribute the content to users.
  • the service nodes 20 can be distributed to areas or networks where users visit relatively concentrated, so that users can access the data they need nearby, reduce the amount of visits to the central node 10, and solve the congestion of the network , And help provide the response speed of network services.
  • the technical solution provided in this embodiment is described below by taking the first service node in the content distribution network 100 as an example.
  • the first service node is any one of at least one service node 20, and may be a service node in an edge level or a service node in an intermediate level.
  • the first service node is used to: respond to an access request for target data, query whether the target data is stored locally; if the query result is no, request the central node 10 to obtain the target data The address of the service node.
  • the access request for target data may be that the user passes through the user terminal device (for example, FIG. 1a).
  • the second device shown) directly initiated to the first service node.
  • the access request for the target data can be a service node (for example, node 201a and node 201a) at the next level of the first service node.
  • 201b) Initiated to the first service node.
  • the central node 10 After the central node 10 receives the request from the first service node to obtain the service node storing the target data, it can determine the service node in the content distribution network 100 that meets the preset rules and stores the target data as the second service node. Then, the address of the second service node is provided to the first service node. After receiving the address of the second service node, the first service node can access the second service node according to the address to obtain the target data therefrom.
  • preset rules can be set according to actual conditions.
  • the second service node complies with the preset rule, which can be implemented as: the visit volume of the second service node is less than the set visit quantity threshold; in other embodiments, the second service node complies with the preset rule, It can be implemented as: the second service node adapts to the region classification to which the first service node belongs; in other embodiments, the second service node complies with preset rules, which can be implemented as: the downlink available bandwidth of the second service node is greater than the set Set the bandwidth threshold.
  • preset rules can be set according to actual conditions.
  • the second service node complies with the preset rule, which can be implemented as: the visit volume of the second service node is less than the set visit quantity threshold; in other embodiments, the second service node complies with the preset rule, It can be implemented as: the second service node adapts to the region classification to which the first service node belongs; in other embodiments, the second service node complies with prese
  • the central node 10 and the service node 20 may be implemented as conventional servers, cloud servers, cloud hosts, virtual centers, and other servers, which are not limited in this embodiment.
  • the structure of the server device mainly includes a processor, a hard disk, a memory, a system bus, etc., and is similar to a general computer architecture, and will not be repeated.
  • the central node 10 and the service node 20 may establish a communication connection, and the specific communication connection mode may be determined according to actual application scenarios.
  • the central node 10 and the at least one serving node 20 may communicate in a wired communication manner and a wireless communication manner.
  • wireless communication methods include short-range communication methods such as Bluetooth, ZigBee, infrared, WiFi (WIreless-Fidelity, wireless fidelity technology), long-distance wireless communication methods such as LORA, and wireless communication methods based on mobile networks.
  • the network standard of the mobile network can be 2G (GSM), 2.5G (GPRS), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G+ (LTE+) Any one of, 5G, WiMax, etc.
  • the first service node when the first service node receives an access request for target data not stored locally, it requests the central node to obtain the address of the second service node storing the target data, so as to obtain the target data from the second service node; Among them, the second service node complies with the set rule.
  • the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which is beneficial to optimize the link quality and reduce the transmission data of the content distribution network. The link loss caused by the time.
  • the first service node after the first service node receives the address of the second service node returned by the central node, if the first service node does not obtain it from the second service node When the target data is reached, the first service node can initiate a request for obtaining the target data to the service node above it, and obtain the target data by querying upwards layer by layer, which will not be repeated.
  • the preset rules are different according to different application scenarios, and some specific rules will be exemplified below.
  • the second service node complies with a preset rule
  • the preset rule may be implemented as: the second service node adapts to the region classification to which the first service node belongs.
  • service nodes are deployed according to regions to meet the needs of users in different regions to access the network quickly and stably.
  • multiple regional-level central nodes can be deployed in a country, and multiple central nodes correspond to different regions of the country (such as the central region, southern region, northern region, eastern region, western region, etc.); the next level of regional level can be Deploy province-level service nodes.
  • the next level in the central region can include: service nodes corresponding to province A, service nodes corresponding to province B, and service nodes corresponding to province C; the next level of province level can deploy city-level services Service nodes, for example, the next level of service nodes corresponding to province A may include service nodes corresponding to city A1, service nodes corresponding to city A2, service nodes corresponding to city A3, and so on.
  • the service node in the city level can be regarded as being at the edge node level.
  • the deployment locations of service nodes in different regions in the content distribution network 100 are far apart, and the data transmission link is longer, which in turn leads to greater data transmission when the service nodes in different regions are far apart.
  • Link loss can be evaluated by the loss of data packets during data transmission.
  • the central node 10 selects the second service node
  • the corresponding geographical distribution of the first service node and the second service node in the content distribution network 100 can be taken into consideration, and the nearest one is selected as the first service node.
  • the address of the service node that is closer to the service node and stores the target data is used as the return source address of the first service node.
  • This implementation mode is beneficial to shorten the data transmission link and optimize the link quality. In addition, it can also reduce to a certain extent the dependence of the operation of the first service node to obtain the target data on the service node of the upper or lower level connected to it.
  • the regional classification adaptation to which the first service node and the second service node belong may include: the first service node and the second service node belong to the same national level, belong to the same regional level, and belong to the same province The level and/or the same city level, etc., are not limited in this embodiment.
  • the region classification adaptation to which the first service node and the second service node belong may include: the distance between the first service node and the second service node (this distance includes geographic distance, or chain Path distance) is less than the set distance threshold; or, the distance between the first service node and the second service node is less than the distance between the first service node and the service node of the upper level to which it belongs, this embodiment includes but does not Limited to this.
  • the central node 10 when the central node 10 selects the second service node storing the target data in the content distribution network 100 according to preset rules, it can determine at least one candidate node in the content distribution network 100 that is adapted to the geographic classification of the first service node Then, from the at least one candidate node, the service node storing the target data is determined as the second service node.
  • service nodes 202a, 202b, and 202c are service nodes corresponding to provinces A, B, and C, respectively, and service nodes 201a, 201b are service nodes corresponding to cities A1 and A2 under the jurisdiction of province A.
  • the central node 10 When the central node 10 receives the request sent by the service node 201c to obtain the service node storing the target data, the central node 10 can obtain from the content distribution network 100 the service node 201d that is adapted to the geographic classification of the service node 201c and Service node 201e. Then, the service node storing the target data is selected from the service node 201d and the service node 201e, and returned to the service node 201c. Assuming that target data is stored on the service node 201d, the service node 201c can directly access the service node 201d to obtain the target data. Based on this scheme, data scheduling between different cities in the province is realized with low link loss.
  • the central node 10 when the central node 10 receives a request from the first service node to obtain the address of the service node storing the target data, it can query whether there is an appropriate geographic classification for the first service node.
  • the second service node that is equipped with and stores the target data, if it exists, the address of the second service node is returned to the first service node; if it does not exist, the first service node can be notified to initiate to the service node above it
  • the target data acquisition request is obtained by querying upwards layer by layer, which will not be repeated.
  • the bandwidth cost cost of the central node is higher than the bandwidth cost cost of the middle-level service node, and the bandwidth cost of the middle-level service node is higher than the bandwidth cost of the edge-level service node.
  • the central node 10 may further consider hierarchical factors, from the content In the distribution network 100, a service node that is adapted to the geographic classification of the first service node and is located at the same node level as the first service node is acquired as the at least one candidate node.
  • the first service node can obtain target data from the second service node of the same level, which reduces the dependence on the service node of the upper level, reduces the amount of visits to the service node of the higher level, and helps reduce the first service The bandwidth cost and access pressure of the service node of the upper level of the node.
  • the service node 201c when the service node 201c receives a request to obtain target data sent by a user terminal, if the service node 201c does not store the target data locally, it can request the central node 10 to query storage The service node with the target data. Assume that the central node 10 determines that the service node 201d and the service node 202b are service nodes that are adapted to the geographic classification of the service node 201a and store target data. Further, the central node 10 may determine the service node 201d at the same level as the service node 201c as the second service node. In this embodiment, the target data is obtained from the service node 201d instead of the service node 202b. On the one hand, it can reduce the access pressure of the service node 202b. On the other hand, it is beneficial to reduce the impact of the visit. Bandwidth costs.
  • the content distribution network 100 can be used to distribute a variety of different types of data, for example, non-streaming data such as web page data, image data, audio data, and video data, as well as multimedia streaming data such as video streams and audio streams generated in real time. .
  • non-streaming data such as web page data, image data, audio data, and video data
  • multimedia streaming data such as video streams and audio streams generated in real time.
  • the data described in the foregoing embodiments may be implemented as streaming data generated by live broadcast.
  • the streaming data is collected in real time by the push streaming terminal (the first device and the second device as shown in FIG. 1a), encapsulated using a transmission protocol, and pushed to the network terminal in real time.
  • the push end can push the encapsulated streaming data to the service node in the edge layer, and the service node in the edge layer can cache the streaming data and push the streaming data to the service in the middle layer.
  • the streaming terminal can be implemented as a mobile phone, a tablet computer, a computer, an image collector, an aerial drone, etc., which is not limited in this embodiment.
  • the central node 10 when the central node 10 receives the streaming operation of the service node for streaming data, it may respond to the streaming operation and obtain the service node associated with the streaming operation of streaming data and the streaming domain name and streaming name of the streaming data; , Corresponding to the ingest domain name and stream name that records the stream data and the service node associated with the ingest operation of the stream data to generate the correspondence between the stream data and the service node associated with the ingest operation.
  • the service node associated with the streaming operation of streaming data may include: a service node that pushes the streaming data to other nodes, and a service node that receives the streaming data pushed by other nodes or the streaming end. That is to say, the service nodes associated with the streaming operation of streaming data may include: all the nodes that the streaming data passes through and arrives during the streaming process, and these nodes include not only the service nodes in the edge level, but also the middle level. Service nodes in the central hierarchy and service nodes in the central hierarchy.
  • a user conducts a live broadcast through a mobile phone, and the first stream data generated by the live broadcast is pushed by the mobile phone to the service node 201b at the edge level closest to the user.
  • the service node 201b caches the first stream data and pushes the first stream data. It flows to the upper-level service node 202a connected to it, and the service node 202a caches the first stream data and pushes the first stream data to the central node 10 connected to it.
  • the service nodes associated with the push streaming operation of the first stream data include: the service node 201b, the service node 202a, and the central node 10.
  • the first service node when the first service node requests the central node 10 to obtain the address of the service node storing the target stream data, it may send the playback domain name and stream name of the target stream data to the central node 10. After receiving the play domain name and stream name, the central node 10 can determine the service node associated with the push operation of the target stream data according to the correspondence between the stream data and the service node associated with the push operation.
  • the central node 10 when the central node 10 manages streaming data, it uses the broadcast domain name and the push domain name to distinguish between the streaming data requested to be played and the streaming data pushed; at the same time, the central node The corresponding relationship between the broadcast domain name and the push domain name is stored in 10 places. Based on this correspondence, after the central node 10 receives the broadcast domain name of the target stream data sent by the first service node, it can determine the ingest domain name corresponding to the target stream data according to the correspondence between the broadcast domain name and the ingest domain name.
  • the service node corresponding to the ingest domain name and stream name of the target stream data is determined as the second service node.
  • the central node 10 can determine the playback domain name and the target stream data from the request. Stream name, and determine the streaming domain name corresponding to the broadcast domain name. Then, query which service nodes that are adapted to the geographic classification to which the service node 201a belongs and are located at the same level have ingest records corresponding to the ingest domain name and stream name.
  • the central node 10 can return the address of the service node 201b to the service node 201a, and the service node 201a can directly obtain the target from the service node 201b Stream data. Furthermore, on the one hand, it is beneficial to shorten the transmission link of the target stream data and improve the quality of data transmission, on the other hand, it reduces the bandwidth consumption of the intermediate-level service node 202a and the central node 10.
  • the central node 10 receives a request for acquiring target stream data sent by the service node 202a, and can determine the playback domain name and stream name of the target stream data from the request, and determine the push domain name corresponding to the playback domain name.
  • query which service nodes that are adapted to the geographic classification to which the service node 202a belongs and are located at the same level have ingest records corresponding to the ingest domain name and stream name.
  • the central node 10 can return the address of the service node 202c to the service node 202a, and then the service node 202a can directly obtain the target stream data from the service node 202c.
  • it is beneficial to shorten the transmission link of the target stream data and improve the data transmission quality on the other hand, it reduces the bandwidth consumption of the central node 10.
  • the access to the stream data generated by the live broadcast is usually highly concurrent. This high concurrent access requires higher bandwidth.
  • the link quality requirements for data transmission are required Also higher.
  • the technical solutions provided by the embodiments can effectively alleviate the technical problems of high-level service nodes and central nodes that consume large bandwidth and the technical problems of link quality that are not easy to optimize, thereby effectively reducing problems such as live broadcast delay, freezes, and picture loss. .
  • the data accessible to users in the content distribution network can be implemented as non-streaming data such as web page data, image data, audio data, and video data.
  • the central node 10 may record the service node associated with the data upload operation, or record the service node associated with the data download operation.
  • the central node 10 may perform the corresponding relationship between the pre-recorded target data and the service node associated with the upload operation of the target data, or the pre-recorded target data and the The corresponding relationship of the service nodes associated with the download operation of the target data determines the service node that has requested to upload the target data in the historical time period, or the service node that has downloaded the target data, as the service node that stores the target data. Then, the address of the service node storing the target data can be returned, so that the device that initiates the query request can obtain the target data, which will not be repeated.
  • the embodiments of the present application also provide a content distribution network as shown in FIG. 1b.
  • the content distribution network includes: a live broadcast center 30 and at least one live broadcast node 40.
  • the first live streaming node in at least one live streaming node 40 is used to request the live streaming center 30 to obtain the address of the service node storing the live streaming data when receiving a streaming request for live streaming data not stored locally .
  • the first live broadcast node is any live broadcast node among at least one live broadcast node 40.
  • the live broadcast center 30 is specifically configured to: when the first live broadcast node requests to obtain the address of the live broadcast node storing live streaming data, determine the second live broadcast node in the content distribution network 200 that conforms to preset rules and stores live streaming data, and The address of the second live broadcast node is provided to the first live broadcast node, so that the first live broadcast node obtains live streaming data from the second live broadcast node.
  • the streaming request received by the first live broadcast node may be initiated by the streaming terminal (for example, a mobile phone, a computer, or a smart TV). If the first live broadcast node is at the middle level, the streaming request received by the first live broadcast node may be initiated by the live broadcast node at the next level.
  • the streaming terminal for example, a mobile phone, a computer, or a smart TV.
  • the live streaming data stored in the second live streaming node may be pushed by the streaming end (for example, mobile phone, computer, camera) performing the streaming operation. If the second live broadcast node is located at the middle level, the live streaming data stored in the second live broadcast node may be pushed by the live broadcast node at the next level after performing the streaming operation.
  • the streaming end for example, mobile phone, computer, camera
  • the service node in the edge tier may not upload the cold data to the service node above it To reduce bandwidth consumption.
  • the central node can identify cold data from the data it manages, and does not distribute the cold data to the service nodes in the middle tier and the service nodes in the edge tier.
  • cold data includes unpopular multimedia data, backup data, historical data before a set time, and other data with low access frequency.
  • the node 201b can request the node 202a to obtain the data A without storing the data A locally. After the node 202a downloads (pulls) data A from the node 201a, it returns the data A to the node 201b. In this way, data A is transmitted through two transmission links between three nodes. On the one hand, bandwidth consumption increases, and on the other hand, link loss increases.
  • the node 201b may request the central node 10 to query the service node storing the data A when the data A is not stored locally. After querying, the central node 10 can determine that the node 201a stores the data A and is the same as the geographical classification and level to which the node 201b belongs, and can return the address of the node 201a to the node 201b. Furthermore, the node 201b can directly download (pull stream) the data A from the node 201a. In this way, data A is transmitted through a link between two nodes, which reduces bandwidth consumption and bandwidth costs on the one hand, and reduces link loss on the other.
  • the node 201c can request the central node 10 to query the service node storing the data A in the case where the data A is not stored locally. After querying, the central node 10 can determine that the data A is stored in the node 201a. However, the area classification to which the node 201a and the node 201c belong is different. At this time, the central node 10 can instruct the service node 202b of the upper level of the node 201c to request the data A from the service node 202a of the same level. The node 202a can retrieve the data A from the service node 201a at the next level, and return the data A to the node 202a.
  • node 202a After node 202a receives data A, it can deliver data A to node 201c. Compared with the prior art, this solution saves the steps of node 202a continuing to visit central node 10 and central node 10 accessing node 202a layer by layer to obtain target data, which is beneficial to reduce bandwidth consumption and bandwidth cost, and reduce link loss. And to reduce the access pressure of the central node 10.
  • this embodiment also provides a data processing method, which will be described below with reference to the accompanying drawings.
  • Fig. 2 is a schematic flowchart of a data processing method provided by an exemplary embodiment of the present application. When the method is executed on the side of the first service node in the content distribution network, it may include the steps shown in Fig. 2:
  • Step 201 The first service node receives an access request for target data.
  • Step 202 Query whether the target data is stored locally; if yes, return the target data; if not, execute step 203.
  • Step 203 Obtain the address of the second service node storing the target data from the central node; the second service node is selected according to a preset rule.
  • Step 204 Access the second service node according to the address of the second service node to obtain target data.
  • the target data includes: target stream data; in response to an access request for the target data, a way to query whether the target data is stored locally includes: responding to the access request for the target stream data, obtaining the target stream The playback domain name and stream name of the data; check locally whether there is stream data matching the playback domain name and stream name of the target stream data.
  • one way of requesting the central node to obtain the address of the second service node storing the target data includes: sending the playback domain name and stream name of the target stream data to the central node, so that the center The node determines the service node associated with the push operation of the target data stream in the content distribution network as the second service node according to the play domain name and the stream name of the target stream data.
  • the first service node when the first service node receives an access request for target data not stored locally, it requests the central node to obtain the address of the second service node storing the target data, so as to obtain the target data from the second service node; Among them, the second service node complies with the preset rule.
  • the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which is beneficial to optimize the link quality and reduce the transmission data of the content distribution network. The link loss caused by the time.
  • Fig. 3 is a schematic flowchart of a data processing method provided by another exemplary embodiment of the present application. When the method is executed on the side of a central node in a content distribution network, it may include the steps shown in Fig. 3:
  • Step 301 In response to the request sent by the first service node to obtain the service node storing the target data, select the second service node storing the target data in the content distribution network according to a preset rule.
  • Step 302 Provide the address of the second service node to the first service node, so that the first service node obtains target data from the second service node.
  • a method for selecting the second service node storing the target data in the content distribution network according to a preset rule includes: determining the content distribution network that is compatible with the geographic classification of the first service node At least one candidate node; from the at least one candidate node, determine the service node storing the target data as the second service node.
  • a method for determining at least one candidate node in the content distribution network that is adapted to the classification of the region to which the first service node belongs includes: obtaining the region to which the first service node belongs from the content distribution network A service node that is classified and adapted and is at the same node level as the first service node is used as at least one candidate node.
  • the target data includes: target stream data; from at least one candidate node, determining a service node that stores the target data as a second service node includes: according to the stream data and push The corresponding relationship between the service nodes associated with the streaming operation, and the service node associated with the streaming operation of the target data stream is determined from at least one candidate node as the second service node.
  • the service node associated with the streaming operation of the target data stream is determined as the second service node.
  • One method includes: obtaining the playback domain name and stream name of the target stream data from the request; determining the target streaming domain name corresponding to the target stream data according to the corresponding relationship between the playback domain name and the streaming domain name; determining from at least one candidate node The service node associated with the streaming operation of the streaming data identified by the target streaming domain name and the streaming name serves as the second service node.
  • determining the service node storing the target data, and before serving as the second service node further includes: responding to a streaming operation for streaming data, obtaining a streaming data push The service node associated with the streaming operation and the streaming domain name and stream name of the streaming data; corresponding to the streaming domain name and streaming name that records the streaming data and the service node associated with the streaming operation of the streaming data to generate services associated with the streaming data and the streaming operation Correspondence of nodes.
  • the central node when the central node receives a request from the first service node to obtain the service node storing the target data, it returns the address of the second service node that belongs to the same node hierarchy as the first service node and stores the target data to The first service node.
  • the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which reduces the dependence on the previous node level, which is beneficial to Optimize the link quality and reduce the link loss generated when the content distribution network transmits data.
  • the execution subject of each step of the method provided in the foregoing embodiment may be the same device, or different devices may also be the execution subject of the method.
  • the execution subject of steps 201 to 204 may be device A; for another example, the execution subject of steps 201 and 202 may be device A, and the execution subject of step 203 may be device B; and so on.
  • the embodiment of the present application also provides a data processing device, which will be described below with reference to the accompanying drawings.
  • FIG. 4 is a schematic structural diagram of a data processing device provided by an exemplary embodiment of this application. As shown in FIG. 4, the device includes:
  • the query module 401 is used to respond to a request for access to target data and query whether the target data is stored locally; the request module 402 is used to obtain the stored target data from a central node when the output of the query module is no The address of the second service node; the second service node is selected according to a preset rule; the data acquisition module 403 is configured to access the second service node according to the address of the second service node to obtain the Target data.
  • the target data includes: target stream data; when the query module 401 queries whether the target data is stored locally in response to an access request for target data, it is specifically used to: respond to an access to the target stream data Request to obtain the playback domain name and stream name of the target stream data; query locally whether there is stream data matching the playback domain name and stream name of the target stream data.
  • the request module 402 when requesting the central node to obtain the address of the second service node storing the target data, is specifically configured to send the playback domain name and stream name of the target stream data to the center. Node, so that the central node determines the service node associated with the push operation of the target data stream in the content distribution network according to the playback domain name and stream name of the target stream data as the second service node.
  • the first service node when it receives an access request for target data not stored locally, it requests the central node to obtain the address of the second service node storing the target data, so as to obtain the target data from the second service node; Among them, the second service node complies with the preset rule.
  • the first service node can obtain data from other nodes that store the target data according to the result of the interaction with the central node to achieve back-to-source operation, which is beneficial to optimize the link quality and reduce the time when the content distribution network transmits data. The resulting link loss.
  • FIG. 5 is a schematic structural diagram of a data processing device provided by an exemplary embodiment of this application. As shown in FIG. 5, the device includes:
  • the selecting module 501 is configured to respond to a request sent by the first service node to obtain the service node storing the target data, and select the second service node storing the target data in the content distribution network according to a preset rule; sending module 502 , Used to provide the address of the second service node to the first service node, so that the first service node obtains the target data from the second service node.
  • the selection module 501 selects the second service node storing the target data in the content distribution network according to a preset rule, it is specifically configured to: determine whether the content distribution network corresponds to the first service node. At least one candidate node adapted to the region classification and adaptation of the node; from the at least one candidate node, a service node storing the target data is determined as the second service node.
  • the selection module 501 is specifically configured to: obtain from the content distribution network the geographic classification to which the first service node belongs. A service node that is adapted and is at the same node level as the first service node is used as at least one candidate node.
  • the target data includes: target stream data; when the selection module 501 determines the service node storing the target data from at least one candidate node, as the second service node, it is specifically used to: according to the stream data and push stream The corresponding relationship between the service nodes associated with the operation, and the service node associated with the push flow operation of the target data stream is determined from at least one candidate node as the second service node.
  • the selection module 501 determines the service node associated with the push operation of the target data stream as the second service node from at least one candidate node according to the correspondence between the stream data and the service node associated with the push operation , Specifically used to: obtain the playback domain name and stream name of the target stream data from the request; determine the target stream domain name corresponding to the target stream data according to the correspondence between the playback domain name and the stream domain name; determine the target stream domain name corresponding to the target stream data from at least one candidate node
  • the service node associated with the streaming operation of the streaming data identified by the target streaming domain name and the streaming name serves as the second service node.
  • the selection module 501 determines the service node storing the target data from the at least one candidate node, and before serving as the second service node, it is also used to: respond to the streaming operation for streaming data, and obtain information related to streaming data.
  • the central node when the central node receives a request from the first service node to obtain the service node storing the target data, it returns the address of the second service node that belongs to the same node hierarchy as the first service node and stores the target data to The first service node.
  • the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which is beneficial to optimize the link quality and reduce the transmission data of the content distribution network.
  • the link loss caused by the time.
  • Fig. 6 is a schematic structural diagram of a first service node provided by an exemplary embodiment of the present application, and the first service node is suitable for the content distribution network provided by the foregoing embodiment.
  • the first service node includes: a memory 601, a processor 602, and a communication component 603.
  • the memory 601 is used to store computer programs, and may be configured to store other various data to support operations on the first service node. Examples of these data include instructions for any application or method operating on the first service node, contact data, phone book data, messages, pictures, videos, etc.
  • the processor 602 is coupled with the memory 601, and is configured to execute the computer program in the memory 601 for: responding to an access request for the target data, querying whether the target data is stored locally; if not, then using the communication component 603 from The central node obtains the address of the second service node that stores the target data; the second service node is selected according to a preset rule; accesses the second service node according to the address of the second service node to obtain The target data.
  • the target data includes: target stream data; when the processor 602 inquires whether the target data is stored locally in response to an access request for the target data, it is specifically used for: responding to the access request for the target stream data and obtain the target stream data The playback domain name and stream name of the file; query locally whether there is stream data matching the playback domain name and stream name of the target stream data.
  • the processor 602 when the processor 602 requests the central node to obtain the address of the second service node storing the target data, it is specifically configured to send the playback domain name and the stream name of the target stream data to the central node, so that the central node
  • the service node associated with the push operation of the target data stream in the content distribution network is determined as the second service node according to the playing domain name and the stream name of the target stream data.
  • the first service node further includes: a power supply component 604 and other components. Only some components are schematically shown in FIG. 6, which does not mean that the first service node only includes the components shown in FIG. 6.
  • the first service node when the first service node receives an access request for target data not stored locally, it requests the central node to obtain the address of the second service node storing the target data, so as to obtain the target data from the second service node; Among them, the second service node complies with the preset rule.
  • the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which is beneficial to optimize the link quality and reduce the transmission data of the content distribution network. The link loss caused by the time.
  • an embodiment of the present application also provides a computer-readable storage medium storing a computer program, and when the computer program is executed, the steps that can be executed by the first service node in the foregoing method embodiment can be implemented.
  • FIG. 7 is a schematic structural diagram of a central node provided by an exemplary embodiment of this application, and the central node is suitable for the content distribution network provided by the foregoing embodiment.
  • the central node of the first service node includes: a memory 701, a processor 702, and a communication component 703.
  • the memory 701 is used to store computer programs, and can be configured to store various other data to support operations on the central node. Examples of these data include instructions for any application or method operating on the central node, contact data, phone book data, messages, pictures, videos, etc.
  • the processor 702 is coupled with the memory 701, and is configured to execute the computer program in the memory 701, so as to respond to a request sent by the first service node to obtain a service node storing target data, and select the content distribution according to a preset rule
  • the second service node that stores the target data in the network; provides the address of the second service node to the first service node, so that the first service node obtains all information from the second service node The target data.
  • the processor 702 selects the second service node that stores the target data in the content distribution network according to a preset rule, it is specifically configured to: determine whether the content distribution network is connected to the first service node. At least one candidate node adapted to the region classification and adaptation of the node; from the at least one candidate node, a service node storing the target data is determined as the second service node.
  • the processor 702 determines at least one candidate node that is adapted to the geographic classification of the first service node in the content distribution network, it is specifically configured to: obtain from the content distribution network the geographic classification to which the first service node belongs. A service node that is adapted and is at the same node level as the first service node is used as at least one candidate node.
  • the target data includes: target stream data; when the processor 702 determines a service node storing the target data from at least one candidate node as the second service node, it is specifically configured to: according to the stream data and push streaming The corresponding relationship between the service nodes associated with the operation, and the service node associated with the push flow operation of the target data stream is determined from at least one candidate node as the second service node.
  • the processor 702 determines the service node associated with the push operation of the target data stream as the second service node from at least one candidate node according to the correspondence between the stream data and the service node associated with the push operation , Specifically used to: obtain the playback domain name and stream name of the target stream data from the request; determine the target stream domain name corresponding to the target stream data according to the correspondence between the playback domain name and the stream domain name; determine the target stream domain name corresponding to the target stream data from at least one candidate node
  • the service node associated with the streaming data streaming operation identified by the target streaming domain name and the streaming name serves as the second service node.
  • the processor 702 determines the service node storing the target data from the at least one candidate node, and before serving as the second service node, is further configured to: in response to the streaming operation for streaming data, obtain the streaming data push Operate the associated service node and the push domain name and stream name of the stream data; correspond to the ingest domain name and stream name of the recorded stream data and the service node associated with the stream data push operation to generate the correspondence between the stream data and the service node associated with the push operation relationship.
  • the central node also includes other components such as a power supply component 704. Only some components are schematically shown in FIG. 7, which does not mean that the central node only includes the components shown in FIG. 7.
  • the central node when the central node receives a request from the first service node to obtain the service node storing the target data, it returns the address of the second service node that belongs to the same node hierarchy as the first service node and stores the target data to The first service node.
  • the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which reduces the dependence on the previous node level, which is beneficial to Optimize the link quality and reduce the link loss generated when the content distribution network transmits data.
  • an embodiment of the present application also provides a computer-readable storage medium storing a computer program, and when the computer program is executed, the steps that can be executed by the central node in the foregoing method embodiments can be implemented.
  • the memory in Figure 6 and Figure 7 above can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable programmable read-only memory
  • PROM programmable read-only memory
  • ROM read-only memory
  • magnetic memory magnetic memory
  • flash memory magnetic disk or optical disk.
  • the communication components in Figs. 6 and 7 described above are configured to facilitate wired or wireless communication between the device where the communication component is located and other devices.
  • the device where the communication component is located can access a wireless network based on communication standards, such as WiFi, 2G or 3G, or a combination of them.
  • the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component may be based on near field communication (NFC) technology, radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies to realise.
  • NFC near field communication
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the power supply components in Figure 6 and Figure 7 above provide power for various components of the equipment where the power supply component is located.
  • the power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device where the power supply component is located.
  • the embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • processors CPU
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiments of the present application provide a content delivery network, a data processing method, apparatus, and device, and a storage medium. In a content delivery network, when receiving an access request for target data not stored locally, a first serving node requests a central node to acquire an address of a second serving node storing the target data, so as to acquire the target data from the second serving node, the second serving node conforming to a set rule. In this implementation, the first serving node may directly acquire data from other nodes storing target data according to an interaction result with the central node, so as to implement a back-to-source operation, thereby facilitating the optimization of link quality and the reduction of link loss generated during data transmission of the content delivery network.

Description

内容分发网络、数据处理方法、装置、设备及存储介质Content distribution network, data processing method, device, equipment and storage medium
本申请要求2019年07月09日递交的申请号为201910614694.0、发明名称为“内容分发网络、数据处理方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on July 9, 2019 with the application number 201910614694.0 and the invention title "content distribution network, data processing method, device, equipment and storage medium", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及互联网技术领域,尤其涉及一种内容分发网络、数据处理方法、装置、设备及存储介质。This application relates to the field of Internet technology, and in particular to a content distribution network, data processing method, device, equipment, and storage medium.
背景技术Background technique
内容分发网络(Content Delivery Network,CDN)由数据中心和缓存服务器组成。缓存服务器分布在用户访问相对集中的地区或网络中,在用户访问网络资源时,数据中心可利用全局负载技术将用户的访问指向距离用户最近的缓存服务器上,极大降低了用户的访问延时。The Content Delivery Network (CDN) consists of a data center and a cache server. Cache servers are distributed in areas or networks where user access is relatively concentrated. When users access network resources, the data center can use global load technology to direct user access to the cache server closest to the user, greatly reducing user access latency .
现有的CDN架构通常实现为树状结构。树状结构的CDN包含多个节点服务器层级,每个节点服务器层级可包含多个节点服务器。但是,依赖于这种树状结构的CDN进行数据分发时,产生的链路损耗较大。因此,有待提出一种新的解决方案。The existing CDN architecture is usually implemented as a tree structure. The tree structure CDN contains multiple node server levels, and each node server level can contain multiple node servers. However, when data distribution is performed on CDNs that rely on this kind of tree structure, the resulting link loss is relatively large. Therefore, a new solution needs to be proposed.
发明内容Summary of the invention
本申请的多个方面提供一种内容分发网络、数据处理方法、装置、设备及存储介质,用以有效地降低链路损耗,优化CDN的链路质量。Various aspects of the present application provide a content distribution network, data processing method, device, equipment, and storage medium to effectively reduce link loss and optimize CDN link quality.
本申请实施例提供一种内容分发网络,包括:中心节点以及至少一服务节点;其中,所述至少一服务节点中的第一服务节点,用于:在接收到针对本地未存储的目标数据的访问请求时,向所述中心节点请求获取存储有所述目标数据的节点的地址;所述中心节点,具体用于:在所述第一服务节点请求获取存储有所述目标数据的节点的地址时,确定所述内容分发网络中符合预设规则且存储有所述目标数据的第二服务节点,并将所述第二服务节点的地址提供给所述第一服务节点,以使所述第一服务节点从所述第二服务节点获取所述目标数据。An embodiment of the present application provides a content distribution network, including: a central node and at least one service node; wherein, the first service node in the at least one service node is used to: When requesting access, request the central node to obtain the address of the node storing the target data; the central node is specifically configured to: request the address of the node storing the target data at the first service node When determining the second service node in the content distribution network that meets the preset rules and stores the target data, and provides the address of the second service node to the first service node, so that the first service node A service node obtains the target data from the second service node.
本申请实施例还提供一种数据处理方法,适用于内容分发网络中的第一服务节点,包括:响应针对目标数据的访问请求,查询本地是否存储所述目标数据;若为否,则从 中心节点获取存储有所述目标数据的第二服务节点的地址;所述第二服务节点为按照预设规则选择的;根据所述第二服务节点的地址访问所述第二服务节点,以获取所述目标数据。The embodiment of the present application also provides a data processing method, which is suitable for the first service node in the content distribution network, and includes: responding to an access request for target data, querying whether the target data is stored locally; if not, from the center The node obtains the address of the second service node storing the target data; the second service node is selected according to a preset rule; accesses the second service node according to the address of the second service node to obtain the The target data.
本申请实施例还提供一种数据处理方法,适用于内容分发网络中的中心节点,包括:响应第一服务节点发送的获取存储有目标数据的服务节点的请求,按照预设规则选择所述内容分发网络中存储有所述目标数据的第二服务节点;将所述第二服务节点的地址提供给所述第一服务节点,以使所述第一服务节点从所述第二服务节点中获取所述目标数据。The embodiment of the present application also provides a data processing method, which is applicable to a central node in a content distribution network, including: responding to a request sent by a first service node to obtain a service node storing target data, and selecting the content according to a preset rule A second service node storing the target data in the distribution network; providing the address of the second service node to the first service node so that the first service node can obtain it from the second service node The target data.
本申请实施例还提供一种内容分发网络,包括:直播中心以及至少一直播节点;其中,所述至少一直播节点中的第一直播节点,用于:在接收到针对本地未存储的直播流数据的拉流请求时,向所述直播中心请求获取存储有所述直播流数据的直播节点的地址;所述直播中心,具体用于:在所述第一直播节点请求获取存储有所述直播流数据的直播节点的地址时,确定所述内容分发网络中符合预设规则且存储有所述直播流数据的第二服务节点,并将所述第二直播节点的地址提供给所述第一直播节点,以使所述第一直播节点从所述第二直播节点获取所述直播流数据。An embodiment of the present application also provides a content distribution network, including: a live broadcast center and at least one live broadcast node; wherein the first live broadcast node in the at least one live broadcast node is configured to: When requesting data streaming, request to the live broadcast center to obtain the address of the live broadcast node storing the live streaming data; the live broadcast center is specifically configured to: request to obtain the live broadcast stored at the first live broadcast node When the address of the live streaming node of the streaming data is determined, the second service node in the content distribution network that meets the preset rules and stores the live streaming data is determined, and the address of the second live streaming node is provided to the first A live streaming node, so that the first live streaming node obtains the live streaming data from the second live streaming node.
本申请实施例还提供一种数据处理装置,包括:查询模块,用于响应针对目标数据的访问请求,查询本地是否存储所述目标数据;请求模块,用于在所述查询模块的输出为否时,从中心节点获取存储有所述目标数据的第二服务节点的地址;所述第二服务节点为按照预设规则选择的;数据获取模块,用于根据所述第二服务节点的地址访问所述第二服务节点,以获取所述目标数据。An embodiment of the present application also provides a data processing device, including: a query module, used to respond to an access request for target data, and query whether the target data is stored locally; a request module, used to check whether the output of the query module is no When, obtain the address of the second service node storing the target data from the central node; the second service node is selected according to a preset rule; the data obtaining module is used to access according to the address of the second service node The second service node to obtain the target data.
本申请实施例还提供一种数据处理装置,包括:选择模块,用于响应第一服务节点发送的获取存储有目标数据的服务节点的请求,按照预设规则选择所述内容分发网络中存储有所述目标数据的第二服务节点;发送模块,用于将所述第二服务节点的地址提供给所述第一服务节点,以使所述第一服务节点从所述第二服务节点中获取所述目标数据。An embodiment of the application also provides a data processing device, including: a selection module, configured to respond to a request sent by a first service node to obtain a service node storing target data, and select a data processing device stored in the content distribution network according to preset rules. The second service node of the target data; a sending module, configured to provide the address of the second service node to the first service node, so that the first service node obtains it from the second service node The target data.
本申请实施例还提供一种电子设备,包括:存储器、处理器以及通信组件;所述存储器用于存储一条或多条计算机指令;所述处理器用于执行所述一条或多条计算机指令以用于:执行本申请实施例提供的数据处理方法中的步骤。An embodiment of the present application also provides an electronic device, including: a memory, a processor, and a communication component; the memory is used to store one or more computer instructions; the processor is used to execute the one or more computer instructions for use于: Execute the steps in the data processing method provided in the embodiment of this application.
本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,计算机程序被处理器执行时能够使得处理器实现本申请实施例提供的数据处理方法中的步骤。The embodiment of the present application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor can enable the processor to implement the steps in the data processing method provided in the embodiment of the present application.
本申请实施例提供的内容分发网络中,第一服务节点接收到针对本地未存储的目标 数据的访问请求时,向中心节点请求获取存储该目标数据的第二服务节点的地址,以从第二服务节点获取目标数据;其中,第二服务节点符合设定规则。在这种实施方式中,第一服务节点可根据与中心节点的交互结果,直接从存储有目标数据的其他节点获取数据以实现回源操作,有利于优化链路质量,降低内容分发网络传输数据时产生的链路损耗。In the content distribution network provided by the embodiments of the present application, when the first service node receives an access request for target data that is not stored locally, it requests the central node to obtain the address of the second service node storing the target data to obtain the The service node obtains the target data; wherein, the second service node complies with the set rule. In this embodiment, the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which is beneficial to optimize the link quality and reduce the transmission data of the content distribution network. The link loss caused by the time.
附图说明Description of the drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The exemplary embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation of the application. In the attached picture:
图1a为本申请一示例性实施例提供的内容分发网络的结构示意图;Fig. 1a is a schematic structural diagram of a content distribution network provided by an exemplary embodiment of this application;
图1b为本申请另一示例性实施例提供的内容分发网络的结构示意图;FIG. 1b is a schematic structural diagram of a content distribution network provided by another exemplary embodiment of this application;
图2是本申请一示例性实施例提供的数据处理方法的流程示意图;Fig. 2 is a schematic flowchart of a data processing method provided by an exemplary embodiment of the present application;
图3是本申请另一示例性实施例提供的数据处理方法的流程示意图;FIG. 3 is a schematic flowchart of a data processing method provided by another exemplary embodiment of the present application;
图4为本申请一示例性实施例提供的数据处理装置的结构示意图;FIG. 4 is a schematic structural diagram of a data processing device provided by an exemplary embodiment of this application;
图5为本申请一示例性实施例提供的数据处理装置的结构示意图;FIG. 5 is a schematic structural diagram of a data processing device provided by an exemplary embodiment of this application;
图6是本申请一示例性实施例提供的第一服务节点的结构示意图;Fig. 6 is a schematic structural diagram of a first service node provided by an exemplary embodiment of the present application;
图7为本申请一示例性实施例提供的中心节点的结构示意图。Fig. 7 is a schematic structural diagram of a central node provided by an exemplary embodiment of this application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions, and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely in conjunction with specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
针对现有技术存在的内容分发网络链路损耗较大,不易优化链路质量的技术问题,在本申请一些实施例中,提供了一种解决方案,以下结合附图,详细说明本申请各实施例提供的技术方案。In view of the high link loss of the content distribution network in the prior art and the difficulty in optimizing the link quality, a solution is provided in some embodiments of the present application. The implementation of the present application will be described in detail below with reference to the drawings. Examples of technical solutions provided.
图1a为本申请一示例性实施例提供的内容分发网络的结构示意图,如图1a所示,该内容分发网络(CDN)100包括:中心节点10以及至少一服务节点20。FIG. 1a is a schematic structural diagram of a content distribution network provided by an exemplary embodiment of this application. As shown in FIG. 1a, the content distribution network (CDN) 100 includes a central node 10 and at least one service node 20.
其中,至少一服务节点20可示意为图1a中的服务节点201a、201b、201c、201d、201e、201f、201g、202a、202b、202c等等。Among them, the at least one service node 20 may be illustrated as the service nodes 201a, 201b, 201c, 201d, 201e, 201f, 201g, 202a, 202b, 202c, etc. in FIG. 1a.
如图1a所示,内容分发网络100实现为树状结构。树状结构的CDN主要包含三个层级:中心层级、中间层级以及边缘层级。其中,中心层级中的中心节点10为树状结构中的根节点,中间层级中的服务节点(例如图1a所示的服务节点202a、202b、202c)为中心层级中的服务节点的子节点,边缘层级中的服务节点(例如图1a所示的服务节点201a、201b、201c、201d、201e、201f、201g)为中间层级中的服务节点的子节点。需要说明的是,内容分发网络100中,服务节点20的数量以及所划分的层级的数量视实际需求而定,本实施例对此不做限制。As shown in FIG. 1a, the content distribution network 100 is implemented as a tree structure. The tree structure of CDN mainly includes three levels: the central level, the middle level, and the edge level. Among them, the central node 10 in the central level is the root node in the tree structure, and the service nodes in the middle level (for example, the service nodes 202a, 202b, 202c shown in FIG. 1a) are the child nodes of the service node in the central level. The service nodes in the edge level (for example, the service nodes 201a, 201b, 201c, 201d, 201e, 201f, and 201g shown in FIG. 1a) are child nodes of the service node in the middle level. It should be noted that, in the content distribution network 100, the number of service nodes 20 and the number of divided levels depend on actual needs, and this embodiment does not limit this.
其中,中心层级中的中心节点10用于实现负载均衡、数据内容分发以及访问调度等功能。中间层级的服务节点用于连接边缘层级中的服务节点以及中心层级的中心节点,以缓解中心层级中的中心节点的数据访问压力。边缘层级中的服务节点用于同步源站内容,并直接响应用户请求,将内容快速分发到用户。Among them, the central node 10 in the central hierarchy is used to implement functions such as load balancing, data content distribution, and access scheduling. The service node of the middle level is used to connect the service node of the edge level and the central node of the central level to relieve the data access pressure of the central node in the central level. The service node in the edge level is used to synchronize the content of the source site, and directly respond to user requests, and quickly distribute the content to users.
基于树状结构的内容分发网络100,服务节点20可分布到用户访问相对集中的地区或者网络中,使用户可以就近访问其所需的数据,降低中心节点10的访问量,解决网络的拥挤状况,并有利于提供网络服务的响应速度。Based on the content distribution network 100 of the tree structure, the service nodes 20 can be distributed to areas or networks where users visit relatively concentrated, so that users can access the data they need nearby, reduce the amount of visits to the central node 10, and solve the congestion of the network , And help provide the response speed of network services.
以下为描述方便,以内容分发网络100中的第一服务节点为例对本实施例提供的技术方案进行说明。其中,第一服务节点为至少一服务节点20中的任意一个服务节点,可以是边缘层级中的服务节点,也可以是中间层级中的服务节点。For convenience of description, the technical solution provided in this embodiment is described below by taking the first service node in the content distribution network 100 as an example. Wherein, the first service node is any one of at least one service node 20, and may be a service node in an edge level or a service node in an intermediate level.
在内容分发网络100中,第一服务节点,用于:响应针对目标数据的访问请求,查询本地是否存储该目标数据;若查询结果为否,则向中心节点10请求获取存储有该目标数据的服务节点的地址。In the content distribution network 100, the first service node is used to: respond to an access request for target data, query whether the target data is stored locally; if the query result is no, request the central node 10 to obtain the target data The address of the service node.
当第一服务节点实现为直接为用户提供网络访问服务的边缘层级中的服务节点(例如图1a中的服务节点201a)时,针对目标数据的访问请求可以是用户通过用户终端设备(例如图1a所示的第二设备)直接向第一服务节点发起的。When the first service node is implemented as a service node in the edge level that directly provides network access services for users (for example, service node 201a in FIG. 1a), the access request for target data may be that the user passes through the user terminal device (for example, FIG. 1a). The second device shown) directly initiated to the first service node.
当第一服务节点实现为位于中间层级中的服务节点(例如图1a中的服务节点202a)时,针对目标数据的访问请求可以第一服务节点的下一层级的服务节点(例如节点201a和节点201b)向第一服务节点发起的。When the first service node is implemented as a service node in the middle level (for example, the service node 202a in FIG. 1a), the access request for the target data can be a service node (for example, node 201a and node 201a) at the next level of the first service node. 201b) Initiated to the first service node.
中心节点10接收到第一服务节点发送的获取存储有目标数据的服务节点的请求后,可确定内容分发网络100中符合预设规则、且存储有目标数据的服务节点,作为第二服务节点。接着,将第二服务节点的地址提供给第一服务节点。第一服务节点接收到第二服务节点的地址后,可根据该地址访问第二服务节点,以从中获取该 目标数据。After the central node 10 receives the request from the first service node to obtain the service node storing the target data, it can determine the service node in the content distribution network 100 that meets the preset rules and stores the target data as the second service node. Then, the address of the second service node is provided to the first service node. After receiving the address of the second service node, the first service node can access the second service node according to the address to obtain the target data therefrom.
其中,预设规则,可根据实际情况进行设置。在一些实施例中,第二服务节点符合预设规则,可实现为:第二服务节点的访问量小于设定的访问量阈值;在另一些实施例中,第二服务节点符合预设规则,可实现为:第二服务节点与第一服务节点所属的地域分类适配;在又一些实施例中,第二服务节点符合预设规则,可实现为:第二服务节点的下行可用带宽大于设定的带宽阈值。上述列举的规则用于对本实施例进行示例性说明,并不对本实施例所述的预设规则进行限制。Among them, preset rules can be set according to actual conditions. In some embodiments, the second service node complies with the preset rule, which can be implemented as: the visit volume of the second service node is less than the set visit quantity threshold; in other embodiments, the second service node complies with the preset rule, It can be implemented as: the second service node adapts to the region classification to which the first service node belongs; in other embodiments, the second service node complies with preset rules, which can be implemented as: the downlink available bandwidth of the second service node is greater than the set Set the bandwidth threshold. The above-listed rules are used to exemplify this embodiment, and do not limit the preset rules described in this embodiment.
图1a在一些实施例中,中心节点10和服务节点20可实现为常规服务器、云服务器、云主机、虚拟中心等服务器等设备,本实施例对此不做限制。其中,服务器设备的构成主要包括处理器、硬盘、内存、系统总线等,和通用的计算机架构类似,不再赘述。Figure 1a In some embodiments, the central node 10 and the service node 20 may be implemented as conventional servers, cloud servers, cloud hosts, virtual centers, and other servers, which are not limited in this embodiment. Among them, the structure of the server device mainly includes a processor, a hard disk, a memory, a system bus, etc., and is similar to a general computer architecture, and will not be repeated.
在内容分发网络100中,为实现中心节点10和服务节点20之间的上述数据交互过程,中心节点10和服务节点20可建立通信连接,具体的通信连接方式可视实际的应用场景而定。In the content distribution network 100, in order to realize the aforementioned data interaction process between the central node 10 and the service node 20, the central node 10 and the service node 20 may establish a communication connection, and the specific communication connection mode may be determined according to actual application scenarios.
在一些示例性实施方式中,中心节点10和至少一服务节点20之间可采用有线通信方式无线通信方式进行通信。其中,无线通信方式包括蓝牙、ZigBee、红外线、WiFi(WIreless-Fidelity,无线保真技术)等短距离通信方式,也包括LORA等远距离无线通信方式,还可包括基于移动网络的无线通信方式。其中,当通过移动网络通信连接时,移动网络的网络制式可以为2G(GSM)、2.5G(GPRS)、3G(WCDMA、TD-SCDMA、CDMA2000、UTMS)、4G(LTE)、4G+(LTE+)、5G、WiMax等中的任意一种。In some exemplary embodiments, the central node 10 and the at least one serving node 20 may communicate in a wired communication manner and a wireless communication manner. Among them, wireless communication methods include short-range communication methods such as Bluetooth, ZigBee, infrared, WiFi (WIreless-Fidelity, wireless fidelity technology), long-distance wireless communication methods such as LORA, and wireless communication methods based on mobile networks. Among them, when connected via mobile network communication, the network standard of the mobile network can be 2G (GSM), 2.5G (GPRS), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G+ (LTE+) Any one of, 5G, WiMax, etc.
本实施例中,第一服务节点接收到针对本地未存储的目标数据的访问请求时,向中心节点请求获取存储该目标数据的第二服务节点的地址,以从第二服务节点获取目标数据;其中,第二服务节点符合设定规则。在这种实施方式中,第一服务节点可根据与中心节点的交互结果,直接从存储有目标数据的其他节点获取数据以实现回源操作,有利于优化链路质量,降低内容分发网络传输数据时产生的链路损耗。In this embodiment, when the first service node receives an access request for target data not stored locally, it requests the central node to obtain the address of the second service node storing the target data, so as to obtain the target data from the second service node; Among them, the second service node complies with the set rule. In this embodiment, the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which is beneficial to optimize the link quality and reduce the transmission data of the content distribution network. The link loss caused by the time.
需要说明的是,在本申请的上述以及下述各实施例中,第一服务节点接收到中心节点返回的第二服务节点的地址后,若第一服务节点并未从第二服务节点处获取到目标数据,则第一服务节点可向其上一层级的服务节点发起目标数据的获取请求,以通过逐层向上查询的方式获取到目标数据,不再赘述。It should be noted that in the foregoing and following embodiments of the present application, after the first service node receives the address of the second service node returned by the central node, if the first service node does not obtain it from the second service node When the target data is reached, the first service node can initiate a request for obtaining the target data to the service node above it, and obtain the target data by querying upwards layer by layer, which will not be repeated.
在本申请的上述以及下述各实施例中,根据应用场景不同,所述的预设规则也不同,以下将结合一些具体的规则进行示例性说明。In the above and the following embodiments of the present application, the preset rules are different according to different application scenarios, and some specific rules will be exemplified below.
在一些示例性的实例中,第二服务节点符合预设规则,该预设规则可实现为:第二服务节点与第一服务节点所属的地域分类适配。In some exemplary instances, the second service node complies with a preset rule, and the preset rule may be implemented as: the second service node adapts to the region classification to which the first service node belongs.
在内容分发网络100中,服务节点按照地域进行部署,以满足不同地区的用户快速、稳定地访问网络的需求。In the content distribution network 100, service nodes are deployed according to regions to meet the needs of users in different regions to access the network quickly and stably.
例如,一国家内可部署多个地区层级的中心节点,多个中心节点对应国家的不同地区(例如中部地区、南部地区、北部地区、东部地区、西部地区等);地区层级的下一层级可部署省份层级的服务节点,例如,中部地区的下一层级可包括:A省对应的服务节点、B省对应的服务节点、C省对应的服务节点;省份层级的下一层级可部署城市层级的服务节点,例如,A省对应的服务节点的下一层级可包括A1市对应的服务节点、A2市对应的服务节点、A3市对应的服务节点等等。通常,城市层级中的服务节点可被视为位于边缘节点层级。For example, multiple regional-level central nodes can be deployed in a country, and multiple central nodes correspond to different regions of the country (such as the central region, southern region, northern region, eastern region, western region, etc.); the next level of regional level can be Deploy province-level service nodes. For example, the next level in the central region can include: service nodes corresponding to province A, service nodes corresponding to province B, and service nodes corresponding to province C; the next level of province level can deploy city-level services Service nodes, for example, the next level of service nodes corresponding to Province A may include service nodes corresponding to city A1, service nodes corresponding to city A2, service nodes corresponding to city A3, and so on. Generally, the service node in the city level can be regarded as being at the edge node level.
通常,内容分发网络100中不同地区的服务节点之间的部署位置相距较远,数据传输链路较长,进而导致数据在相距较远的不同地区的服务节点之间进行传输时,产生较大的链路损耗。其中,链路损耗可采用数据传输过程中数据包丢失的情况来评价。Generally, the deployment locations of service nodes in different regions in the content distribution network 100 are far apart, and the data transmission link is longer, which in turn leads to greater data transmission when the service nodes in different regions are far apart. Link loss. Among them, the link loss can be evaluated by the loss of data packets during data transmission.
因此,为降低链路损耗,中心节点10在选取第二服务节点时,可将第一服务节点和第二服务节点在内容分发网络100中对应的地域分布情况纳入考虑范围,就近选取与第一服务节点距离较近、且存储有目标数据的服务节点的地址作为第一服务节点的回源地址。这种实施方式有利于缩短数据传输的链路,优化链路质量。除此之外,还可一定程度上降低第一服务节点获取目标数据的操作对与其相连的上一层级或者下一层级的服务节点的依赖。Therefore, in order to reduce the link loss, when the central node 10 selects the second service node, the corresponding geographical distribution of the first service node and the second service node in the content distribution network 100 can be taken into consideration, and the nearest one is selected as the first service node. The address of the service node that is closer to the service node and stores the target data is used as the return source address of the first service node. This implementation mode is beneficial to shorten the data transmission link and optimize the link quality. In addition, it can also reduce to a certain extent the dependence of the operation of the first service node to obtain the target data on the service node of the upper or lower level connected to it.
在一些实施例中,第一服务节点和第二服务节点所属的地域分类适配,可包括:第一服务节点和第二服务节点同属于同一国家层级、同属于同一地区层级、同属于同一省份层级和/或同属于同一城市层级等等,本实施例不做限制。In some embodiments, the regional classification adaptation to which the first service node and the second service node belong may include: the first service node and the second service node belong to the same national level, belong to the same regional level, and belong to the same province The level and/or the same city level, etc., are not limited in this embodiment.
当然,在另一些实施例中,第一服务节点和第二服务节点所属的地域分类适配,可包括:第一服务节点和第二服务节点之间的距离(该距离包括地理距离,或者链路距离)小于设定的距离阈值;或者,第一服务节点和第二服务节点之间的距离小于第一服务节 点与其所属的上一层级的服务节点之间的距离,本实施例包含但不限于此。Of course, in other embodiments, the region classification adaptation to which the first service node and the second service node belong may include: the distance between the first service node and the second service node (this distance includes geographic distance, or chain Path distance) is less than the set distance threshold; or, the distance between the first service node and the second service node is less than the distance between the first service node and the service node of the upper level to which it belongs, this embodiment includes but does not Limited to this.
基于此,中心节点10在按照预设规则选择内容分发网络100中存储有目标数据的第二服务节点时,可确定内容分发网络100中与第一服务节点所属地域分类适配的至少一个候选节点,接着从该至少一个候选节点中,确定存储有目标数据的服务节点,作为第二服务节点。Based on this, when the central node 10 selects the second service node storing the target data in the content distribution network 100 according to preset rules, it can determine at least one candidate node in the content distribution network 100 that is adapted to the geographic classification of the first service node Then, from the at least one candidate node, the service node storing the target data is determined as the second service node.
例如,如图1a所示,假设服务节点202a、202b、202c分别为A省、B省以及C省对应的服务节点,服务节点201a、201b分别为A省下辖的A1市、A2市对应的服务节点;服务节点201c、201d、201e分别为B省下辖的B1市、B2以及B3市对应的服务节点;服务节点201f、201g为C省下辖的C1市以及C2市对应的服务节点。当中心节点10接收到服务节点201c发送的请求获取存储有目标数据的服务节点的请求时,中心节点10可从内容分发网络100中,获取与服务节点201c所属地域分类适配的服务节点201d以及服务节点201e。接着,从服务节点201d以及服务节点201e中选取存储有目标数据的服务节点,并返回给服务节点201c。假设,服务节点201d上存储有目标数据,则服务节点201c可直接访问服务节点201d获取目标数据。基于这种方案,在链路损耗较低的情况下实现了省内不同城市之间的数据调度。For example, as shown in Figure 1a, suppose service nodes 202a, 202b, and 202c are service nodes corresponding to provinces A, B, and C, respectively, and service nodes 201a, 201b are service nodes corresponding to cities A1 and A2 under the jurisdiction of province A. Service nodes; service nodes 201c, 201d, and 201e are service nodes corresponding to cities B1, B2, and B3 under the jurisdiction of Province B; service nodes 201f, 201g are service nodes corresponding to cities C1 and C2 under the jurisdiction of Province C. When the central node 10 receives the request sent by the service node 201c to obtain the service node storing the target data, the central node 10 can obtain from the content distribution network 100 the service node 201d that is adapted to the geographic classification of the service node 201c and Service node 201e. Then, the service node storing the target data is selected from the service node 201d and the service node 201e, and returned to the service node 201c. Assuming that target data is stored on the service node 201d, the service node 201c can directly access the service node 201d to obtain the target data. Based on this scheme, data scheduling between different cities in the province is realized with low link loss.
基于上述实施例,在一种典型的应用场景中,中心节点10接收到第一服务节点获取存储有目标数据的服务节点的地址的请求时,可查询是否存在与第一服务节点所属地域分类适配且存储有目标数据的第二服务节点,若存在,则将第二服务节点的地址返回给第一服务节点;若不存在,则可通知第一服务节点向其上一层级的服务节点发起目标数据的获取请求,以通过逐层向上查询的方式获取到目标数据,不再赘述。Based on the above-mentioned embodiment, in a typical application scenario, when the central node 10 receives a request from the first service node to obtain the address of the service node storing the target data, it can query whether there is an appropriate geographic classification for the first service node. The second service node that is equipped with and stores the target data, if it exists, the address of the second service node is returned to the first service node; if it does not exist, the first service node can be notified to initiate to the service node above it The target data acquisition request is obtained by querying upwards layer by layer, which will not be repeated.
实际场景中,受机房建设以及设备部署规划等方面的限制,节点的层级越高,其对应的带宽费用成本越高。例如,中心节点的带宽费用成本高于中间层级的服务节点的带宽费用成本,中间层级的服务节点的带宽费用成本高于边缘层级的服务节点的带宽费用成本。In actual scenarios, due to the limitations of computer room construction and equipment deployment planning, the higher the level of the node, the higher the corresponding bandwidth cost. For example, the bandwidth cost cost of the central node is higher than the bandwidth cost cost of the middle-level service node, and the bandwidth cost of the middle-level service node is higher than the bandwidth cost of the edge-level service node.
因此,在上述各实施例的基础上,可选地,中心节点10在确定内容分发网络100中与第一服务节点所属地域分类适配的至少一个候选节点时,可进一步考虑层级因素,从内容分发网络100中,获取与第一服务节点所属地域分类适配、且与第一服务节点位于同一节点层级的服务节点,作为该至少一个候选节点。Therefore, on the basis of the foregoing embodiments, optionally, when determining at least one candidate node in the content distribution network 100 that is adapted to the geographic classification of the first service node, the central node 10 may further consider hierarchical factors, from the content In the distribution network 100, a service node that is adapted to the geographic classification of the first service node and is located at the same node level as the first service node is acquired as the at least one candidate node.
基于上述,第一服务节点可从同一层级的第二服务节点处获取目标数据,降低了对 上一层级的服务节点的依赖,降低了高层级的服务节点的访问量,有利于降低第一服务节点的上一层级的服务节点的带宽费用成本以及访问压力。Based on the above, the first service node can obtain target data from the second service node of the same level, which reduces the dependence on the service node of the upper level, reduces the amount of visits to the service node of the higher level, and helps reduce the first service The bandwidth cost and access pressure of the service node of the upper level of the node.
例如,以图1a所示的内容分发网络为例:服务节点201c接收到用户终端发送的获取目标数据的请求时,若服务节点201c本地未存储该目标数据,则可向中心节点10请求查询存储有该目标数据的服务节点。假设,中心节点10确定服务节点201d以及服务节点202b为与服务节点201a所属地域分类适配、且存储有目标数据的服务节点。进一步地,中心节点10可确定与服务节点201c位于同一层级的服务节点201d作为第二服务节点。在这种实施方式中,从服务节点201d中获取目标数据而不是从服务节点202b中获取目标数据,一方面可降低服务节点202b的访问压力,另一方面,有利于降低本次访问过程产生的带宽费用。For example, take the content distribution network shown in Figure 1a as an example: when the service node 201c receives a request to obtain target data sent by a user terminal, if the service node 201c does not store the target data locally, it can request the central node 10 to query storage The service node with the target data. Assume that the central node 10 determines that the service node 201d and the service node 202b are service nodes that are adapted to the geographic classification of the service node 201a and store target data. Further, the central node 10 may determine the service node 201d at the same level as the service node 201c as the second service node. In this embodiment, the target data is obtained from the service node 201d instead of the service node 202b. On the one hand, it can reduce the access pressure of the service node 202b. On the other hand, it is beneficial to reduce the impact of the visit. Bandwidth costs.
内容分发网络100可用于分发多种不同类型的数据,例如,网页数据、图片数据、音频数据、视频数据等非流式数据,也可以是实时产生的视频流、音频流等多媒体流式数据等。以下将结合一种典型的应用场景进行示例性说明。The content distribution network 100 can be used to distribute a variety of different types of data, for example, non-streaming data such as web page data, image data, audio data, and video data, as well as multimedia streaming data such as video streams and audio streams generated in real time. . The following will give an exemplary description in conjunction with a typical application scenario.
在一种典型的应用场景中,前述各实施例所述的数据可实现为直播产生的流数据。该流数据由推流端(如图1a所示的第一设备以及第二设备)实时采集,使用传输协议封装并实时推送至网络端。In a typical application scenario, the data described in the foregoing embodiments may be implemented as streaming data generated by live broadcast. The streaming data is collected in real time by the push streaming terminal (the first device and the second device as shown in FIG. 1a), encapsulated using a transmission protocol, and pushed to the network terminal in real time.
在内容分发网络100中,推流端可将封装好的流数据推送至边缘层级中的服务节点,边缘层级中的服务节点可缓存该流数据,并将该流数据推送至中间层级中的服务节点;中间层级中的服务节点缓存该流数据,并可将该流数据推送至中心节点10。在本实施例中,推流端可以实现为手机、平板电脑、计算机、图像采集器、航拍无人机等等,本实施例不做限制。In the content distribution network 100, the push end can push the encapsulated streaming data to the service node in the edge layer, and the service node in the edge layer can cache the streaming data and push the streaming data to the service in the middle layer. Node; the service node in the middle tier caches the streaming data and can push the streaming data to the central node 10. In this embodiment, the streaming terminal can be implemented as a mobile phone, a tablet computer, a computer, an image collector, an aerial drone, etc., which is not limited in this embodiment.
可选地,中心节点10接收到服务节点针对流数据的推流操作时,可响应该推流操作,获取与流数据的推流操作关联的服务节点以及流数据的推流域名和流名称;接着,对应记录流数据的推流域名和流名称以及与流数据的推流操作关联的服务节点,以生成流数据与推流操作关联的服务节点的对应关系。Optionally, when the central node 10 receives the streaming operation of the service node for streaming data, it may respond to the streaming operation and obtain the service node associated with the streaming operation of streaming data and the streaming domain name and streaming name of the streaming data; , Corresponding to the ingest domain name and stream name that records the stream data and the service node associated with the ingest operation of the stream data to generate the correspondence between the stream data and the service node associated with the ingest operation.
其中,与流数据的推流操作关联的服务节点可包括:向其他节点推送该流数据的服务节点,以及,接收其他节点或者推流端推送的该流数据的服务节点。也就是说,与流数据的推流操作关联的服务节点可包括:流数据在推流的过程中所经过以及到达的所有节点,这些节点既包括边缘层级中的服务节点,也可包括中间层级中 的服务节点以及中心层级中的服务节点。Wherein, the service node associated with the streaming operation of streaming data may include: a service node that pushes the streaming data to other nodes, and a service node that receives the streaming data pushed by other nodes or the streaming end. That is to say, the service nodes associated with the streaming operation of streaming data may include: all the nodes that the streaming data passes through and arrives during the streaming process, and these nodes include not only the service nodes in the edge level, but also the middle level. Service nodes in the central hierarchy and service nodes in the central hierarchy.
例如,在一种场景下,用户通过手机进行直播,直播产生的第一流数据由手机推流至距离用户最近的边缘层级的服务节点201b,服务节点201b缓存该第一流数据并将第一流数据推流至与其相连的上一层级的服务节点202a,服务节点202a缓存该第一流数据并将该第一流数据推流至与其相连的中心节点10。则,与第一流数据的推流操作关联的服务节点包括:服务节点201b、服务节点202a以及中心节点10。For example, in a scenario, a user conducts a live broadcast through a mobile phone, and the first stream data generated by the live broadcast is pushed by the mobile phone to the service node 201b at the edge level closest to the user. The service node 201b caches the first stream data and pushes the first stream data. It flows to the upper-level service node 202a connected to it, and the service node 202a caches the first stream data and pushes the first stream data to the central node 10 connected to it. Then, the service nodes associated with the push streaming operation of the first stream data include: the service node 201b, the service node 202a, and the central node 10.
基于上述,可选地,在直播场景下,第一服务节点在向中心节点10请求获取存储有目标流数据的服务节点的地址时,可将目标流数据的播放域名以及流名称发送至中心节点10。中心节点10接收到该播放域名和流名称后,可根据流数据与推流操作关联的服务节点的对应关系,确定与该目标流数据的推流操作关联的服务节点。Based on the above, optionally, in a live broadcast scenario, when the first service node requests the central node 10 to obtain the address of the service node storing the target stream data, it may send the playback domain name and stream name of the target stream data to the central node 10. After receiving the play domain name and stream name, the central node 10 can determine the service node associated with the push operation of the target stream data according to the correspondence between the stream data and the service node associated with the push operation.
需要说明的是,在内容分发网络100中,中心节点10在管理流数据时,分别采用播放域名和推流域名对请求播放的流数据和推送来的流数据进行区分;与此同时,中心节点10处存储有播放域名和推流域名的对应关系。基于该对应关系,中心节点10接收到第一服务节点发送的目标流数据的播放域名后,可根据播放域名和推流域名的对应关系,确定目标流数据对应的推流域名。接着,根据预先记录的推流域名和流名称与推流操作关联的服务节点的对应关系,确定与目标流数据的推流域名和流名称对应的服务节点,作为第二服务节点。It should be noted that, in the content distribution network 100, when the central node 10 manages streaming data, it uses the broadcast domain name and the push domain name to distinguish between the streaming data requested to be played and the streaming data pushed; at the same time, the central node The corresponding relationship between the broadcast domain name and the push domain name is stored in 10 places. Based on this correspondence, after the central node 10 receives the broadcast domain name of the target stream data sent by the first service node, it can determine the ingest domain name corresponding to the target stream data according to the correspondence between the broadcast domain name and the ingest domain name. Then, according to the pre-recorded correspondence between the ingest domain name and the stream name and the service node associated with the ingest operation, the service node corresponding to the ingest domain name and stream name of the target stream data is determined as the second service node.
继续结合图1a进行示例性说明,如图1a所示,假设中心节点10接收到了服务节点201a发送的获取目标流数据的请求,则中心节点10可从该请求中确定目标流数据的播放域名和流名称,并确定与该播放域名对应的推流域名。接着,查询与服务节点201a所属的地域分类适配且位于同一层级的服务节点中哪些服务节点存在与该推流域名和流名称对应的推流记录。假设,服务节点201b存在与该推流域名和流名称对应的推流记录,则中心节点10可将服务节点201b的地址返回给服务节点201a,进而,服务节点201a可直接从服务节点201b处获取目标流数据。进而,一方面有利于缩短目标流数据的传输链路,提升数据传输质量,另一方面降低了中间层级的服务节点202a以及中心节点10的带宽消耗。Continuing the exemplary description with reference to Fig. 1a, as shown in Fig. 1a, assuming that the central node 10 receives a request for acquiring target stream data sent by the service node 201a, the central node 10 can determine the playback domain name and the target stream data from the request. Stream name, and determine the streaming domain name corresponding to the broadcast domain name. Then, query which service nodes that are adapted to the geographic classification to which the service node 201a belongs and are located at the same level have ingest records corresponding to the ingest domain name and stream name. Assuming that the service node 201b has an ingest record corresponding to the ingest domain name and stream name, the central node 10 can return the address of the service node 201b to the service node 201a, and the service node 201a can directly obtain the target from the service node 201b Stream data. Furthermore, on the one hand, it is beneficial to shorten the transmission link of the target stream data and improve the quality of data transmission, on the other hand, it reduces the bandwidth consumption of the intermediate-level service node 202a and the central node 10.
又例如,假设中心节点10接收到服务节点202a发送的获取目标流数据的请求,则可从该请求中确定目标流数据的播放域名和流名称,并确定与该播放域名对应的推流域名。接着,查询与服务节点202a所属的地域分类适配且位于同一层级的服务节点中哪些服务节点存在与该推流域名和流名称对应的推流记录。假设,服务节点 202c存在对应的推流记录,则中心节点10可将服务节点202c的地址返回给服务节点202a,进而,服务节点202a可直接从服务节点202c处获取目标流数据。进而,一方面有利于缩短目标流数据的传输链路,提升数据传输质量,另一方面降低了中心节点10的带宽消耗。For another example, suppose that the central node 10 receives a request for acquiring target stream data sent by the service node 202a, and can determine the playback domain name and stream name of the target stream data from the request, and determine the push domain name corresponding to the playback domain name. Next, query which service nodes that are adapted to the geographic classification to which the service node 202a belongs and are located at the same level have ingest records corresponding to the ingest domain name and stream name. Assuming that the service node 202c has a corresponding push stream record, the central node 10 can return the address of the service node 202c to the service node 202a, and then the service node 202a can directly obtain the target stream data from the service node 202c. Furthermore, on the one hand, it is beneficial to shorten the transmission link of the target stream data and improve the data transmission quality, on the other hand, it reduces the bandwidth consumption of the central node 10.
直播场景下,针对直播产生的流数据的访问通常是高并发的,这种高并发的访问对带宽要求较高,除此之外,为确保直播数据流畅播放,对数据传输的链路质量要求也较高。相对于低层级的服务节点逐层向上访问高层级中的服务节点和/或高层级中的服务节点逐层向下访问低层级中的服务节点以获取直播流数据的技术方案而言,基于本实施例提供的技术方案,可有效缓解高层级的服务节点以及中心节点的带宽消耗较大的技术问题以及链路质量不易优化的技术问题,从而有效降低直播延时、卡顿、画面丢失等问题。In the live broadcast scenario, the access to the stream data generated by the live broadcast is usually highly concurrent. This high concurrent access requires higher bandwidth. In addition, in order to ensure the smooth playback of the live data, the link quality requirements for data transmission are required Also higher. Compared with the technical solution in which low-level service nodes access high-level service nodes layer by layer and/or high-level service nodes access low-level service nodes layer by layer to obtain live streaming data, it is based on this The technical solutions provided by the embodiments can effectively alleviate the technical problems of high-level service nodes and central nodes that consume large bandwidth and the technical problems of link quality that are not easy to optimize, thereby effectively reducing problems such as live broadcast delay, freezes, and picture loss. .
在除直播场景之外的其他应用场景中,内容分发网络中可供用户访问的数据可实现为网页数据、图片数据、音频数据、视频数据等等非流式数据。中心节点10可记录与数据的上传操作关联的服务节点,或者记录与数据的下载操作关联的服务节点。进而,接收到查询存储目标数据的服务节点的地址的请求时,中心节点10可根据预先记录的目标数据和与目标数据的上传操作关联的服务节点的对应关系,或者预先记录的目标数据和与目标数据的下载操作关联的服务节点的对应关系,确定历史时间段内请求上传过目标数据的服务节点,或者下载过目标数据的服务节点,作为存储有目标数据的服务节点。接着,可返回存储有目标数据的服务节点的地址,以使发起查询请求的设备获取目标数据,不再赘述。In application scenarios other than live broadcast scenarios, the data accessible to users in the content distribution network can be implemented as non-streaming data such as web page data, image data, audio data, and video data. The central node 10 may record the service node associated with the data upload operation, or record the service node associated with the data download operation. Furthermore, upon receiving a request for querying the address of the service node storing the target data, the central node 10 may perform the corresponding relationship between the pre-recorded target data and the service node associated with the upload operation of the target data, or the pre-recorded target data and the The corresponding relationship of the service nodes associated with the download operation of the target data determines the service node that has requested to upload the target data in the historical time period, or the service node that has downloaded the target data, as the service node that stores the target data. Then, the address of the service node storing the target data can be returned, so that the device that initiates the query request can obtain the target data, which will not be repeated.
除上述各实施例记载的内容分发网络之外,本申请实施例还提供了如图1b所示的内容分发网络,如图1b所示,该内容分发网络包括:直播中心30以及至少一直播节点40。In addition to the content distribution network described in the foregoing embodiments, the embodiments of the present application also provide a content distribution network as shown in FIG. 1b. As shown in FIG. 1b, the content distribution network includes: a live broadcast center 30 and at least one live broadcast node 40.
其中,至少一直播节点40中的第一直播节点,用于:在接收到针对本地未存储的直播流数据的拉流请求时,向直播中心30请求获取存储有直播流数据的服务节点的地址。其中,第一直播节点是至少一直播节点40中的任一直播节点。Wherein, the first live streaming node in at least one live streaming node 40 is used to request the live streaming center 30 to obtain the address of the service node storing the live streaming data when receiving a streaming request for live streaming data not stored locally . The first live broadcast node is any live broadcast node among at least one live broadcast node 40.
直播中心30,具体用于:在第一直播节点请求获取存储有直播流数据的直播节点的地址时,确定内容分发网络200中符合预设规则且存储有直播流数据的第二直播节点,并将第二直播节点的地址提供给第一直播节点,以使第一直播节点从第二 直播节点获取直播流数据。The live broadcast center 30 is specifically configured to: when the first live broadcast node requests to obtain the address of the live broadcast node storing live streaming data, determine the second live broadcast node in the content distribution network 200 that conforms to preset rules and stores live streaming data, and The address of the second live broadcast node is provided to the first live broadcast node, so that the first live broadcast node obtains live streaming data from the second live broadcast node.
其中,第一直播节点位于边缘层级时,第一直播节点接收到的拉流请求,可以是拉流端(例如手机、电脑、智能电视)发起的。若第一直播节点位于中间层级,第一直播节点接收到的拉流请求,可以是其下一层级的直播节点发起的。Wherein, when the first live broadcast node is at the edge level, the streaming request received by the first live broadcast node may be initiated by the streaming terminal (for example, a mobile phone, a computer, or a smart TV). If the first live broadcast node is at the middle level, the streaming request received by the first live broadcast node may be initiated by the live broadcast node at the next level.
其中,第二直播节点位于边缘层级时,第二直播节点中存储的直播流数据,可以是推流端(例如手机、电脑、摄像机)执行推流操作推送来的。若第二直播节点位于中间层级,第二直播节点中存储的直播流数据,可以是其下一层级的直播节点执行推流操作推送来的。Wherein, when the second live streaming node is located at the edge level, the live streaming data stored in the second live streaming node may be pushed by the streaming end (for example, mobile phone, computer, camera) performing the streaming operation. If the second live broadcast node is located at the middle level, the live streaming data stored in the second live broadcast node may be pushed by the live broadcast node at the next level after performing the streaming operation.
本申请实施例提供的技术方案可应用于多种不同的应用场景中,以下将结合具体的例子进行示例性说明。The technical solutions provided by the embodiments of the present application can be applied to a variety of different application scenarios. The following will exemplify descriptions in conjunction with specific examples.
在一些场景下,若用户上传(或推流)至边缘层级中的服务节点的数据为访问频次较少冷数据,则边缘层级中的服务节点可不向其上一层级的服务节点上传该冷数据,以降低带宽消耗。或者,在另一些场景下,中心节点可从其管理的数据中识别出冷数据,并且不向中间层级中的服务节点以及边缘层级的服务节点分发这些冷数据。其中,冷数据包括冷门的多媒体数据、备份数据、设定时间之前的历史数据等访问频次较低的数据等等。In some scenarios, if the data uploaded (or pushed) by the user to the service node in the edge tier is cold data with less frequent access, the service node in the edge tier may not upload the cold data to the service node above it To reduce bandwidth consumption. Or, in other scenarios, the central node can identify cold data from the data it manages, and does not distribute the cold data to the service nodes in the middle tier and the service nodes in the edge tier. Among them, cold data includes unpopular multimedia data, backup data, historical data before a set time, and other data with low access frequency.
在上述两种场景下,以图1a为例,假设用户上传(推流)至边缘层级中的服务节点201a的数据A为冷数据,则节点201a可缓存数据A,且不向其上一层级的服务节点上传该数据A。中心节点10检测到用户的上传(推流)记录后,可记录数据A和节点201a的对应关系。In the above two scenarios, taking Figure 1a as an example, assuming that the data A uploaded (pushed) by the user to the service node 201a in the edge hierarchy is cold data, then the node 201a can cache data A and not send it one level higher. The service node uploads the data A. After the central node 10 detects the upload (push) record of the user, it can record the correspondence between the data A and the node 201a.
假设,节点201b接收到了用户访问该数据A的请求,若采用现有的逐层获取数据的方式,则节点201b在本地未存储数据A的情况下,可向节点202a请求获取数据A。节点202a从节点201a处下载(拉取)数据A后,再将数据A返回给节点201b。这种方式中,数据A的传输经过三个节点之间的两条传输链路,一方面带宽消耗增大,另一方面链路损耗增大。Assuming that the node 201b receives a user's request to access the data A, if the existing method of obtaining data layer by layer is adopted, the node 201b can request the node 202a to obtain the data A without storing the data A locally. After the node 202a downloads (pulls) data A from the node 201a, it returns the data A to the node 201b. In this way, data A is transmitted through two transmission links between three nodes. On the one hand, bandwidth consumption increases, and on the other hand, link loss increases.
若采用本实施例提供的技术方案,则节点201b在本地未存储数据A的情况下,可向中心节点10请求查询存储有数据A的服务节点。中心节点10经查询,可确定节点201a存储有该数据A,且与节点201b所属的地域分类和层级相同,则可将节点201a的地址返回给节点201b。进而,节点201b可直接从节点201a处下载(拉流)数据A。这种方 式中,数据A的传输经过两个节点之间的一条链路,一方面降低了带宽消耗以及带宽费用成本,另一方面减少了链路损耗。If the technical solution provided in this embodiment is adopted, the node 201b may request the central node 10 to query the service node storing the data A when the data A is not stored locally. After querying, the central node 10 can determine that the node 201a stores the data A and is the same as the geographical classification and level to which the node 201b belongs, and can return the address of the node 201a to the node 201b. Furthermore, the node 201b can directly download (pull stream) the data A from the node 201a. In this way, data A is transmitted through a link between two nodes, which reduces bandwidth consumption and bandwidth costs on the one hand, and reduces link loss on the other.
假设,节点201c接收到了用户访问该数据A的请求,则在本地未存储数据A的情况下,可向中心节点10请求查询存储有数据A的服务节点。中心节点10经查询,可确定节点201a存储有该数据A。但是,节点201a与节点201c所属的地域分类不相同。此时,中心节点10可指示节点201c的上一层级的服务节点202b向与之同一层级的服务节点202a请求获取数据A。节点202a可从其下一层级的服务节点201a中数据A,并将数据A返回至节点202a。节点202a接收到数据A后,可将数据A下发至节点201c。相对于现有技术,本方案节省了节点202a继续访问中心节点10且中心节点10逐层向下访问节点202a以获取目标数据的步骤,有利于降低带宽消耗以及带宽费用成本,减少链路损耗,以及降低中心节点10的访问压力。Assuming that the node 201c receives the user's request to access the data A, it can request the central node 10 to query the service node storing the data A in the case where the data A is not stored locally. After querying, the central node 10 can determine that the data A is stored in the node 201a. However, the area classification to which the node 201a and the node 201c belong is different. At this time, the central node 10 can instruct the service node 202b of the upper level of the node 201c to request the data A from the service node 202a of the same level. The node 202a can retrieve the data A from the service node 201a at the next level, and return the data A to the node 202a. After node 202a receives data A, it can deliver data A to node 201c. Compared with the prior art, this solution saves the steps of node 202a continuing to visit central node 10 and central node 10 accessing node 202a layer by layer to obtain target data, which is beneficial to reduce bandwidth consumption and bandwidth cost, and reduce link loss. And to reduce the access pressure of the central node 10.
本实施例除了提供前述实施例记载的内容分发网络之外,还提供一种数据处理方法,以下将结合附图进行说明。In addition to providing the content distribution network described in the foregoing embodiment, this embodiment also provides a data processing method, which will be described below with reference to the accompanying drawings.
图2是本申请一示例性实施例提供的数据处理方法的流程示意图,该方法在内容分发网络中的第一服务节点侧执行时,可包括如图2所示的步骤:Fig. 2 is a schematic flowchart of a data processing method provided by an exemplary embodiment of the present application. When the method is executed on the side of the first service node in the content distribution network, it may include the steps shown in Fig. 2:
步骤201、第一服务节点接收针对目标数据的访问请求。Step 201: The first service node receives an access request for target data.
步骤202、查询本地是否存储目标数据;若为是,则返回目标数据;若为否,则执行步骤203。Step 202: Query whether the target data is stored locally; if yes, return the target data; if not, execute step 203.
步骤203、从中心节点获取存储有目标数据的第二服务节点的地址;第二服务节点为按照预设规则选择的。Step 203: Obtain the address of the second service node storing the target data from the central node; the second service node is selected according to a preset rule.
步骤204、根据第二服务节点的地址访问第二服务节点,以获取目标数据。Step 204: Access the second service node according to the address of the second service node to obtain target data.
在一些示例性的实施例中,目标数据包括:目标流数据;响应针对目标数据的访问请求,查询本地是否存储目标数据的一种方式,包括:响应针对目标流数据的访问请求,获取目标流数据的播放域名以及流名称;在本地查询是否存在与目标流数据的播放域名以及流名称匹配的流数据。In some exemplary embodiments, the target data includes: target stream data; in response to an access request for the target data, a way to query whether the target data is stored locally includes: responding to the access request for the target stream data, obtaining the target stream The playback domain name and stream name of the data; check locally whether there is stream data matching the playback domain name and stream name of the target stream data.
在一些示例性的实施例中,向中心节点请求获取存储有目标数据的第二服务节点的地址的一种方式,包括:将目标流数据的播放域名以及流名称发送至中心节点,以使中心节点根据目标流数据的播放域名以及流名称确定内容分发网络中与目标数据流的推流操作关联的服务节点作为第二服务节点。In some exemplary embodiments, one way of requesting the central node to obtain the address of the second service node storing the target data includes: sending the playback domain name and stream name of the target stream data to the central node, so that the center The node determines the service node associated with the push operation of the target data stream in the content distribution network as the second service node according to the play domain name and the stream name of the target stream data.
本实施例中,第一服务节点接收到针对本地未存储的目标数据的访问请求时,向中心节点请求获取存储该目标数据的第二服务节点的地址,以从第二服务节点获取目标数据;其中,第二服务节点符合预设规则。在这种实施方式中,第一服务节点可根据与中心节点的交互结果,直接从存储有目标数据的其他节点获取数据以实现回源操作,有利于优化链路质量,降低内容分发网络传输数据时产生的链路损耗。In this embodiment, when the first service node receives an access request for target data not stored locally, it requests the central node to obtain the address of the second service node storing the target data, so as to obtain the target data from the second service node; Among them, the second service node complies with the preset rule. In this embodiment, the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which is beneficial to optimize the link quality and reduce the transmission data of the content distribution network. The link loss caused by the time.
图3是本申请另一示例性实施例提供的数据处理方法的流程示意图,该方法在内容分发网络中的中心节点侧执行时,可包括如图3所示的步骤:Fig. 3 is a schematic flowchart of a data processing method provided by another exemplary embodiment of the present application. When the method is executed on the side of a central node in a content distribution network, it may include the steps shown in Fig. 3:
步骤301、响应第一服务节点发送的获取存储有目标数据的服务节点的请求,按照预设规则选择内容分发网络中存储有目标数据的第二服务节点。Step 301: In response to the request sent by the first service node to obtain the service node storing the target data, select the second service node storing the target data in the content distribution network according to a preset rule.
步骤302、将第二服务节点的地址提供给第一服务节点,以使第一服务节点从第二服务节点中获取目标数据。Step 302: Provide the address of the second service node to the first service node, so that the first service node obtains target data from the second service node.
在一些示例性的实施例中,按照预设规则选择内容分发网络中存储有目标数据的第二服务节点的一种方式,包括:确定内容分发网络中与第一服务节点所属地域分类适配的至少一个候选节点;从至少一个候选节点中,确定存储有目标数据的服务节点,作为第二服务节点。In some exemplary embodiments, a method for selecting the second service node storing the target data in the content distribution network according to a preset rule includes: determining the content distribution network that is compatible with the geographic classification of the first service node At least one candidate node; from the at least one candidate node, determine the service node storing the target data as the second service node.
在一些示例性的实施例中,确定内容分发网络中与第一服务节点所属地域分类适配的至少一个候选节点的一种方式,包括:从内容分发网络中,获取与第一服务节点所属地域分类适配,且与第一服务节点位于同一节点层级的服务节点,作为至少一个候选节点。In some exemplary embodiments, a method for determining at least one candidate node in the content distribution network that is adapted to the classification of the region to which the first service node belongs includes: obtaining the region to which the first service node belongs from the content distribution network A service node that is classified and adapted and is at the same node level as the first service node is used as at least one candidate node.
在一些示例性的实施例中,目标数据包括:目标流数据;从至少一个候选节点中,确定存储有目标数据的服务节点,作为第二服务节点的一种方式,包括:根据流数据与推流操作关联的服务节点的对应关系,从至少一个候选节点中确定与目标数据流的推流操作关联的服务节点作为第二服务节点。In some exemplary embodiments, the target data includes: target stream data; from at least one candidate node, determining a service node that stores the target data as a second service node includes: according to the stream data and push The corresponding relationship between the service nodes associated with the streaming operation, and the service node associated with the streaming operation of the target data stream is determined from at least one candidate node as the second service node.
在一些示例性的实施例中,根据流数据与推流操作关联的服务节点的对应关系,从至少一个候选节点中,确定与目标数据流的推流操作关联的服务节点作为第二服务节点的一种方式,包括:从请求中获取目标流数据的播放域名以及流名称;根据播放域名与推流域名的对应关系,确定目标流数据对应的目标推流域名;从至少一个候选节点中,确定对目标推流域名和流名称所标识的流数据的推流操作关联的服务节点,作为第二服务节点。In some exemplary embodiments, according to the corresponding relationship between the streaming data and the service node associated with the streaming operation, from at least one candidate node, the service node associated with the streaming operation of the target data stream is determined as the second service node. One method includes: obtaining the playback domain name and stream name of the target stream data from the request; determining the target streaming domain name corresponding to the target stream data according to the corresponding relationship between the playback domain name and the streaming domain name; determining from at least one candidate node The service node associated with the streaming operation of the streaming data identified by the target streaming domain name and the streaming name serves as the second service node.
在一些示例性的实施例中,从至少一个候选节点中,确定存储有目标数据的服务节点,作为第二服务节点之前,还包括:响应针对流数据的推流操作,获取与流数据的推流操作关联的服务节点以及流数据的推流域名和流名称;对应记录流数据的推流域名和流名称以及与流数据的推流操作关联的服务节点,以生成流数据与推流操作关联的服务节点的对应关系。In some exemplary embodiments, from at least one candidate node, determining the service node storing the target data, and before serving as the second service node, further includes: responding to a streaming operation for streaming data, obtaining a streaming data push The service node associated with the streaming operation and the streaming domain name and stream name of the streaming data; corresponding to the streaming domain name and streaming name that records the streaming data and the service node associated with the streaming operation of the streaming data to generate services associated with the streaming data and the streaming operation Correspondence of nodes.
本实施例中,中心节点接收到第一服务节点获取存储有目标数据的服务节点的请求时,将与第一服务节点同属于同一节点层级且存储有目标数据的第二服务节点的地址返回给第一服务节点。在这种实施方式中,第一服务节点可根据与中心节点的交互结果,直接从存储有目标数据的其他节点获取数据以实现回源操作,降低了对上一节点层级的的依赖,有利于优化链路质量,降低内容分发网络传输数据时产生的链路损耗。In this embodiment, when the central node receives a request from the first service node to obtain the service node storing the target data, it returns the address of the second service node that belongs to the same node hierarchy as the first service node and stores the target data to The first service node. In this embodiment, the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which reduces the dependence on the previous node level, which is beneficial to Optimize the link quality and reduce the link loss generated when the content distribution network transmits data.
需要说明的是,上述实施例所提供方法的各步骤的执行主体均可以是同一设备,或者,该方法也由不同设备作为执行主体。比如,步骤201至步骤204的执行主体可以为设备A;又比如,步骤201和202的执行主体可以为设备A,步骤203的执行主体可以为设备B;等等。It should be noted that the execution subject of each step of the method provided in the foregoing embodiment may be the same device, or different devices may also be the execution subject of the method. For example, the execution subject of steps 201 to 204 may be device A; for another example, the execution subject of steps 201 and 202 may be device A, and the execution subject of step 203 may be device B; and so on.
另外,在上述实施例及附图中的描述的一些流程中,包含了按照特定顺序出现的多个操作,但是应该清楚了解,这些操作可以不按照其在本文中出现的顺序来执行或并行执行,操作的序号如201、202等,仅仅是用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。In addition, in some of the processes described in the above embodiments and drawings, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may be performed out of the order in which they appear in this document or performed in parallel. The sequence numbers of operations, such as 201, 202, etc., are only used to distinguish different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel. It should be noted that the descriptions of "first" and "second" in this article are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, nor do they limit the "first" and "second" Are different types.
本申请实施例还提供一种数据处理装置,以下将结合附图进行说明。The embodiment of the present application also provides a data processing device, which will be described below with reference to the accompanying drawings.
图4为本申请一示例性实施例提供的数据处理装置的结构示意图,如图4所示,该装置包括:FIG. 4 is a schematic structural diagram of a data processing device provided by an exemplary embodiment of this application. As shown in FIG. 4, the device includes:
查询模块401,用于响应针对目标数据的访问请求,查询本地是否存储所述目标数据;请求模块402,用于在所述查询模块的输出为否时,从中心节点获取存储有所述目标数据的第二服务节点的地址;所述第二服务节点为按照预设规则选择的;数据获取模块403,用于根据所述第二服务节点的地址访问所述第二服务节点,以获取 所述目标数据。The query module 401 is used to respond to a request for access to target data and query whether the target data is stored locally; the request module 402 is used to obtain the stored target data from a central node when the output of the query module is no The address of the second service node; the second service node is selected according to a preset rule; the data acquisition module 403 is configured to access the second service node according to the address of the second service node to obtain the Target data.
进一步可选地,所述目标数据包括:目标流数据;查询模块401在响应针对目标数据的访问请求,查询本地是否存储所述目标数据时,具体用于:响应针对所述目标流数据的访问请求,获取所述目标流数据的播放域名以及流名称;在本地查询是否存在与所述目标流数据的播放域名以及流名称匹配的流数据。Further optionally, the target data includes: target stream data; when the query module 401 queries whether the target data is stored locally in response to an access request for target data, it is specifically used to: respond to an access to the target stream data Request to obtain the playback domain name and stream name of the target stream data; query locally whether there is stream data matching the playback domain name and stream name of the target stream data.
进一步可选地,请求模块402在向中心节点请求获取存储有所述目标数据的第二服务节点的地址时,具体用于:将所述目标流数据的播放域名以及流名称发送至所述中心节点,以使所述中心节点根据所述目标流数据的播放域名以及流名称确定所述内容分发网络中与所述目标数据流的推流操作关联的服务节点作为所述第二服务节点。Further optionally, when requesting the central node to obtain the address of the second service node storing the target data, the request module 402 is specifically configured to send the playback domain name and stream name of the target stream data to the center. Node, so that the central node determines the service node associated with the push operation of the target data stream in the content distribution network according to the playback domain name and stream name of the target stream data as the second service node.
本实施例中,第一服务节点接收到针对本地未存储的目标数据的访问请求时,向中心节点请求获取存储该目标数据的第二服务节点的地址,以从第二服务节点获取目标数据;其中,第二服务节点符合预设规则。在这种实施方式中,第一服务节点可根据与中心节点的交互结果,从存储有目标数据的其他节点获取数据以实现回源操作,有利于优化链路质量,降低内容分发网络传输数据时产生的链路损耗。In this embodiment, when the first service node receives an access request for target data not stored locally, it requests the central node to obtain the address of the second service node storing the target data, so as to obtain the target data from the second service node; Among them, the second service node complies with the preset rule. In this embodiment, the first service node can obtain data from other nodes that store the target data according to the result of the interaction with the central node to achieve back-to-source operation, which is beneficial to optimize the link quality and reduce the time when the content distribution network transmits data. The resulting link loss.
图5为本申请一示例性实施例提供的数据处理装置的结构示意图,如图5所示,该装置包括:FIG. 5 is a schematic structural diagram of a data processing device provided by an exemplary embodiment of this application. As shown in FIG. 5, the device includes:
选择模块501,用于响应第一服务节点发送的获取存储有目标数据的服务节点的请求,按照预设规则选择所述内容分发网络中存储有所述目标数据的第二服务节点;发送模块502,用于将所述第二服务节点的地址提供给所述第一服务节点,以使所述第一服务节点从所述第二服务节点中获取所述目标数据。The selecting module 501 is configured to respond to a request sent by the first service node to obtain the service node storing the target data, and select the second service node storing the target data in the content distribution network according to a preset rule; sending module 502 , Used to provide the address of the second service node to the first service node, so that the first service node obtains the target data from the second service node.
进一步可选地,选择模块501在按照预设规则选择所述内容分发网络中存储有所述目标数据的第二服务节点时,具体用于:确定所述内容分发网络中与所述第一服务节点所属地域分类适配的至少一个候选节点;从所述至少一个候选节点中,确定存储有所述目标数据的服务节点,作为所述第二服务节点。Further optionally, when the selection module 501 selects the second service node storing the target data in the content distribution network according to a preset rule, it is specifically configured to: determine whether the content distribution network corresponds to the first service node. At least one candidate node adapted to the region classification and adaptation of the node; from the at least one candidate node, a service node storing the target data is determined as the second service node.
进一步可选地,选择模块501在确定内容分发网络中与第一服务节点所属地域分类适配的至少一个候选节点时,具体用于:从内容分发网络中,获取与第一服务节点所属地域分类适配,且与第一服务节点位于同一节点层级的服务节点,作为至少一个候选节点。Further optionally, when determining at least one candidate node in the content distribution network that is adapted to the geographic classification of the first service node, the selection module 501 is specifically configured to: obtain from the content distribution network the geographic classification to which the first service node belongs. A service node that is adapted and is at the same node level as the first service node is used as at least one candidate node.
进一步可选地,目标数据包括:目标流数据;选择模块501在从至少一个候选节点中,确定存储有目标数据的服务节点,作为第二服务节点时,具体用于:根据流数据与推流操作关联的服务节点的对应关系,从至少一个候选节点中确定与目标数据流的推流操作关联的服务节点作为第二服务节点。Further optionally, the target data includes: target stream data; when the selection module 501 determines the service node storing the target data from at least one candidate node, as the second service node, it is specifically used to: according to the stream data and push stream The corresponding relationship between the service nodes associated with the operation, and the service node associated with the push flow operation of the target data stream is determined from at least one candidate node as the second service node.
进一步可选地,选择模块501在根据流数据与推流操作关联的服务节点的对应关系,从至少一个候选节点中,确定与目标数据流的推流操作关联的服务节点作为第二服务节点时,具体用于:从请求中获取目标流数据的播放域名以及流名称;根据播放域名与推流域名的对应关系,确定目标流数据对应的目标推流域名;从至少一个候选节点中,确定与目标推流域名和流名称所标识的流数据的推流操作关联的服务节点,作为第二服务节点。Further optionally, when the selection module 501 determines the service node associated with the push operation of the target data stream as the second service node from at least one candidate node according to the correspondence between the stream data and the service node associated with the push operation , Specifically used to: obtain the playback domain name and stream name of the target stream data from the request; determine the target stream domain name corresponding to the target stream data according to the correspondence between the playback domain name and the stream domain name; determine the target stream domain name corresponding to the target stream data from at least one candidate node The service node associated with the streaming operation of the streaming data identified by the target streaming domain name and the streaming name serves as the second service node.
进一步可选地,选择模块501在从至少一个候选节点中,确定存储有目标数据的服务节点,作为第二服务节点之前,还用于:响应针对流数据的推流操作,获取与流数据的推流操作关联的服务节点以及流数据的推流域名和流名称;对应记录流数据的推流域名和流名称以及与流数据的推流操作关联的服务节点,以生成流数据与推流操作关联的服务节点的对应关系。Further optionally, the selection module 501 determines the service node storing the target data from the at least one candidate node, and before serving as the second service node, it is also used to: respond to the streaming operation for streaming data, and obtain information related to streaming data. The service node associated with the ingest operation and the ingest domain name and stream name of the stream data; corresponding to the ingest domain name and stream name that records the stream data and the service node associated with the ingest operation of the stream data to generate the stream data associated with the ingest operation Correspondence of service nodes.
本实施例中,中心节点接收到第一服务节点获取存储有目标数据的服务节点的请求时,将与第一服务节点同属于同一节点层级且存储有目标数据的第二服务节点的地址返回给第一服务节点。在这种实施方式中,第一服务节点可根据与中心节点的交互结果,直接从存储有目标数据的其他节点获取数据以实现回源操作,有利于优化链路质量,降低内容分发网络传输数据时产生的链路损耗。In this embodiment, when the central node receives a request from the first service node to obtain the service node storing the target data, it returns the address of the second service node that belongs to the same node hierarchy as the first service node and stores the target data to The first service node. In this embodiment, the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which is beneficial to optimize the link quality and reduce the transmission data of the content distribution network. The link loss caused by the time.
图6是本申请一示例性实施例提供的第一服务节点的结构示意图,该第一服务节点适用于前述实施例提供的内容分发网络。如图6所示,该第一服务节点包括:存储器601、处理器602以及通信组件603。Fig. 6 is a schematic structural diagram of a first service node provided by an exemplary embodiment of the present application, and the first service node is suitable for the content distribution network provided by the foregoing embodiment. As shown in FIG. 6, the first service node includes: a memory 601, a processor 602, and a communication component 603.
存储器601,用于存储计算机程序,并可被配置为存储其它各种数据以支持在第一服务节点上的操作。这些数据的示例包括用于在第一服务节点上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。The memory 601 is used to store computer programs, and may be configured to store other various data to support operations on the first service node. Examples of these data include instructions for any application or method operating on the first service node, contact data, phone book data, messages, pictures, videos, etc.
处理器602,与存储器601耦合,用于执行存储器601中的计算机程序,以用于:响应针对目标数据的访问请求,查询本地是否存储所述目标数据;若为否,则通过通信组件603从中心节点获取存储有所述目标数据的第二服务节点的地址;所 述第二服务节点为按照预设规则选择的;根据所述第二服务节点的地址访问所述第二服务节点,以获取所述目标数据。The processor 602 is coupled with the memory 601, and is configured to execute the computer program in the memory 601 for: responding to an access request for the target data, querying whether the target data is stored locally; if not, then using the communication component 603 from The central node obtains the address of the second service node that stores the target data; the second service node is selected according to a preset rule; accesses the second service node according to the address of the second service node to obtain The target data.
进一步可选地,目标数据包括:目标流数据;处理器602在响应针对目标数据的访问请求,查询本地是否存储目标数据时,具体用于:响应针对目标流数据的访问请求,获取目标流数据的播放域名以及流名称;在本地查询是否存在与目标流数据的播放域名以及流名称匹配的流数据。Further optionally, the target data includes: target stream data; when the processor 602 inquires whether the target data is stored locally in response to an access request for the target data, it is specifically used for: responding to the access request for the target stream data and obtain the target stream data The playback domain name and stream name of the file; query locally whether there is stream data matching the playback domain name and stream name of the target stream data.
进一步可选地,处理器602在向中心节点请求获取存储有目标数据的第二服务节点的地址时,具体用于:将目标流数据的播放域名以及流名称发送至中心节点,以使中心节点根据目标流数据的播放域名以及流名称确定内容分发网络中与目标数据流的推流操作关联的服务节点作为第二服务节点。Further optionally, when the processor 602 requests the central node to obtain the address of the second service node storing the target data, it is specifically configured to send the playback domain name and the stream name of the target stream data to the central node, so that the central node The service node associated with the push operation of the target data stream in the content distribution network is determined as the second service node according to the playing domain name and the stream name of the target stream data.
进一步,如图6所示,该第一服务节点还包括:电源组件604等其它组件。图6中仅示意性给出部分组件,并不意味着第一服务节点只包括图6所示组件。Further, as shown in FIG. 6, the first service node further includes: a power supply component 604 and other components. Only some components are schematically shown in FIG. 6, which does not mean that the first service node only includes the components shown in FIG. 6.
本实施例中,第一服务节点接收到针对本地未存储的目标数据的访问请求时,向中心节点请求获取存储该目标数据的第二服务节点的地址,以从第二服务节点获取目标数据;其中,第二服务节点符合预设规则。在这种实施方式中,第一服务节点可根据与中心节点的交互结果,直接从存储有目标数据的其他节点获取数据以实现回源操作,有利于优化链路质量,降低内容分发网络传输数据时产生的链路损耗。In this embodiment, when the first service node receives an access request for target data not stored locally, it requests the central node to obtain the address of the second service node storing the target data, so as to obtain the target data from the second service node; Among them, the second service node complies with the preset rule. In this embodiment, the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which is beneficial to optimize the link quality and reduce the transmission data of the content distribution network. The link loss caused by the time.
相应地,本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,计算机程序被执行时能够实现上述方法实施例中可由第一服务节点执行的各步骤。Correspondingly, an embodiment of the present application also provides a computer-readable storage medium storing a computer program, and when the computer program is executed, the steps that can be executed by the first service node in the foregoing method embodiment can be implemented.
图7为本申请一示例性实施例提供的中心节点的结构示意图,该中心节点适用于前述实施例提供的内容分发网络。如图7所示,该第一服务节点中心节点包括:存储器701、处理器702以及通信组件703。FIG. 7 is a schematic structural diagram of a central node provided by an exemplary embodiment of this application, and the central node is suitable for the content distribution network provided by the foregoing embodiment. As shown in FIG. 7, the central node of the first service node includes: a memory 701, a processor 702, and a communication component 703.
存储器701,用于存储计算机程序,并可被配置为存储其它各种数据以支持在中心节点上的操作。这些数据的示例包括用于在中心节点上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。The memory 701 is used to store computer programs, and can be configured to store various other data to support operations on the central node. Examples of these data include instructions for any application or method operating on the central node, contact data, phone book data, messages, pictures, videos, etc.
处理器702,与存储器701耦合,用于执行存储器701中的计算机程序,以用于:响应第一服务节点发送的获取存储有目标数据的服务节点的请求,按照预设规则选择所述内容分发网络中存储有所述目标数据的第二服务节点;将所述第二服务节点的地址提供给所述第一服务节点,以使所述第一服务节点从所述第二服务节点 中获取所述目标数据。The processor 702 is coupled with the memory 701, and is configured to execute the computer program in the memory 701, so as to respond to a request sent by the first service node to obtain a service node storing target data, and select the content distribution according to a preset rule The second service node that stores the target data in the network; provides the address of the second service node to the first service node, so that the first service node obtains all information from the second service node The target data.
进一步可选地,处理器702在按照预设规则选择所述内容分发网络中存储有所述目标数据的第二服务节点时,具体用于:确定所述内容分发网络中与所述第一服务节点所属地域分类适配的至少一个候选节点;从所述至少一个候选节点中,确定存储有所述目标数据的服务节点,作为所述第二服务节点。Further optionally, when the processor 702 selects the second service node that stores the target data in the content distribution network according to a preset rule, it is specifically configured to: determine whether the content distribution network is connected to the first service node. At least one candidate node adapted to the region classification and adaptation of the node; from the at least one candidate node, a service node storing the target data is determined as the second service node.
进一步可选地,处理器702在确定内容分发网络中与第一服务节点所属地域分类适配的至少一个候选节点时,具体用于:从内容分发网络中,获取与第一服务节点所属地域分类适配,且与第一服务节点位于同一节点层级的服务节点,作为至少一个候选节点。Further optionally, when the processor 702 determines at least one candidate node that is adapted to the geographic classification of the first service node in the content distribution network, it is specifically configured to: obtain from the content distribution network the geographic classification to which the first service node belongs. A service node that is adapted and is at the same node level as the first service node is used as at least one candidate node.
进一步可选地,目标数据包括:目标流数据;处理器702在从至少一个候选节点中,确定存储有目标数据的服务节点,作为第二服务节点时,具体用于:根据流数据与推流操作关联的服务节点的对应关系,从至少一个候选节点中确定与目标数据流的推流操作关联的服务节点作为第二服务节点。Further optionally, the target data includes: target stream data; when the processor 702 determines a service node storing the target data from at least one candidate node as the second service node, it is specifically configured to: according to the stream data and push streaming The corresponding relationship between the service nodes associated with the operation, and the service node associated with the push flow operation of the target data stream is determined from at least one candidate node as the second service node.
进一步可选地,处理器702在根据流数据与推流操作关联的服务节点的对应关系,从至少一个候选节点中,确定与目标数据流的推流操作关联的服务节点作为第二服务节点时,具体用于:从请求中获取目标流数据的播放域名以及流名称;根据播放域名与推流域名的对应关系,确定目标流数据对应的目标推流域名;从至少一个候选节点中,确定与目标推流域名和流名称所标识的流数据推流操作关联的服务节点,作为第二服务节点。Further optionally, when the processor 702 determines the service node associated with the push operation of the target data stream as the second service node from at least one candidate node according to the correspondence between the stream data and the service node associated with the push operation , Specifically used to: obtain the playback domain name and stream name of the target stream data from the request; determine the target stream domain name corresponding to the target stream data according to the correspondence between the playback domain name and the stream domain name; determine the target stream domain name corresponding to the target stream data from at least one candidate node The service node associated with the streaming data streaming operation identified by the target streaming domain name and the streaming name serves as the second service node.
进一步可选地,处理器702在从至少一个候选节点中,确定存储有目标数据的服务节点,作为第二服务节点之前,还用于:响应针对流数据的推流操作,获取对流数据推流操作关联的服务节点以及流数据的推流域名和流名称;对应记录流数据的推流域名和流名称以及对流数据推流操作关联的服务节点,以生成流数据与推流操作关联的服务节点的对应关系。Further optionally, the processor 702 determines the service node storing the target data from the at least one candidate node, and before serving as the second service node, is further configured to: in response to the streaming operation for streaming data, obtain the streaming data push Operate the associated service node and the push domain name and stream name of the stream data; correspond to the ingest domain name and stream name of the recorded stream data and the service node associated with the stream data push operation to generate the correspondence between the stream data and the service node associated with the push operation relationship.
进一步,如图7所示,该中心节点还包括:电源组件704等其它组件。图7中仅示意性给出部分组件,并不意味着中心节点只包括图7所示组件。Further, as shown in FIG. 7, the central node also includes other components such as a power supply component 704. Only some components are schematically shown in FIG. 7, which does not mean that the central node only includes the components shown in FIG. 7.
本实施例中,中心节点接收到第一服务节点获取存储有目标数据的服务节点的请求时,将与第一服务节点同属于同一节点层级且存储有目标数据的第二服务节点的地址返回给第一服务节点。在这种实施方式中,第一服务节点可根据与中心节点的交互结果,直接从存储有目标数据的其他节点获取数据以实现回源操作,降低了对上一节点层级的 的依赖,有利于优化链路质量,降低内容分发网络传输数据时产生的链路损耗。In this embodiment, when the central node receives a request from the first service node to obtain the service node storing the target data, it returns the address of the second service node that belongs to the same node hierarchy as the first service node and stores the target data to The first service node. In this embodiment, the first service node can directly obtain data from other nodes that store the target data according to the result of the interaction with the central node to realize the back-to-source operation, which reduces the dependence on the previous node level, which is beneficial to Optimize the link quality and reduce the link loss generated when the content distribution network transmits data.
相应地,本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,计算机程序被执行时能够实现上述方法实施例中可由中心节点执行的各步骤。Correspondingly, an embodiment of the present application also provides a computer-readable storage medium storing a computer program, and when the computer program is executed, the steps that can be executed by the central node in the foregoing method embodiments can be implemented.
上述图6和图7中的存储器可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory in Figure 6 and Figure 7 above can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory ( EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
上述图6和图7中的通信组件被配置为便于通信组件所在设备和其他设备之间有线或无线方式的通信。通信组件所在设备可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件可基于近场通信(NFC)技术、射频识别(RFID)技术、红外数据协会(IrDA)技术、超宽带(UWB)技术、蓝牙(BT)技术和其他技术来实现。The communication components in Figs. 6 and 7 described above are configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on communication standards, such as WiFi, 2G or 3G, or a combination of them. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component may be based on near field communication (NFC) technology, radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies to realise.
上述图6和图7中的电源组件,为电源组件所在设备的各种组件提供电力。电源组件可以包括电源管理系统,一个或多个电源,及其他与为电源组件所在设备生成、管理和分配电力相关联的组件。The power supply components in Figure 6 and Figure 7 above provide power for various components of the equipment where the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device where the power supply component is located.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令 装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, product or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or include elements inherent to this process, method, commodity, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of this application and are not used to limit this application. For those skilled in the art, this application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the scope of the claims of this application.

Claims (15)

  1. 一种内容分发网络,其特征在于,包括:中心节点以及至少一服务节点;A content distribution network, characterized by comprising: a central node and at least one service node;
    其中,所述至少一服务节点中的第一服务节点,用于:在接收到针对本地未存储的目标数据的访问请求时,向所述中心节点请求获取存储有所述目标数据的服务节点的地址;Wherein, the first service node of the at least one service node is configured to: upon receiving an access request for target data not stored locally, request the central node to obtain the service node storing the target data address;
    所述中心节点,具体用于:在所述第一服务节点请求获取存储有所述目标数据的服务节点的地址时,确定所述内容分发网络中符合预设规则且存储有所述目标数据的第二服务节点,并将所述第二服务节点的地址提供给所述第一服务节点,以使所述第一服务节点从所述第二服务节点获取所述目标数据。The central node is specifically configured to: when the first service node requests to obtain the address of the service node storing the target data, determine that the content distribution network meets the preset rules and stores the target data A second service node, and provide the address of the second service node to the first service node, so that the first service node obtains the target data from the second service node.
  2. 一种数据处理方法,适用于内容分发网络中的第一服务节点,其特征在于,包括:A data processing method suitable for a first service node in a content distribution network, characterized in that it includes:
    响应针对目标数据的访问请求,查询本地是否存储所述目标数据;In response to an access request for target data, query whether the target data is stored locally;
    若为否,则从中心节点获取存储有所述目标数据的第二服务节点的地址;所述第二服务节点为按照预设规则选择的;If not, obtain the address of the second service node storing the target data from the central node; the second service node is selected according to a preset rule;
    根据所述第二服务节点的地址访问所述第二服务节点,以获取所述目标数据。Accessing the second service node according to the address of the second service node to obtain the target data.
  3. 根据权利要求2所述的方法,其特征在于,所述目标数据包括:目标流数据;The method according to claim 2, wherein the target data comprises: target stream data;
    响应针对目标数据的访问请求,查询本地是否存储所述目标数据,包括:In response to an access request for target data, querying whether the target data is stored locally includes:
    响应针对所述目标流数据的访问请求,获取所述目标流数据的播放域名以及流名称;In response to the access request for the target stream data, obtain the playback domain name and stream name of the target stream data;
    在本地查询是否存在与所述目标流数据的播放域名以及流名称匹配的流数据。Inquire locally whether there is stream data matching the playback domain name and stream name of the target stream data.
  4. 根据权利要求3所述的方法,其特征在于,从中心节点获取存储有所述目标数据的第二服务节点的地址,包括:The method according to claim 3, wherein obtaining the address of the second service node storing the target data from a central node comprises:
    将所述目标流数据的播放域名以及流名称发送至所述中心节点,以使所述中心节点根据所述目标流数据的播放域名以及流名称确定所述内容分发网络中与所述目标数据流的推流操作关联的服务节点作为所述第二服务节点。The play domain name and stream name of the target stream data are sent to the central node, so that the central node determines the content distribution network and the target data stream according to the play domain name and stream name of the target stream data The service node associated with the streaming operation of is used as the second service node.
  5. 一种数据处理方法,适用于内容分发网络中的中心节点,其特征在于,包括:A data processing method suitable for a central node in a content distribution network, and is characterized in that it includes:
    响应第一服务节点发送的获取存储有目标数据的服务节点的请求,按照预设规则选择所述内容分发网络中存储有所述目标数据的第二服务节点;In response to a request sent by the first service node to obtain a service node storing target data, select a second service node in the content distribution network that stores the target data according to a preset rule;
    将所述第二服务节点的地址提供给所述第一服务节点,以使所述第一服务节点从所述第二服务节点中获取所述目标数据。The address of the second service node is provided to the first service node, so that the first service node obtains the target data from the second service node.
  6. 根据权利要求5所述的方法,其特征在于,按照预设规则选择所述内容分发网络 中存储有所述目标数据的第二服务节点,包括:The method according to claim 5, wherein selecting a second service node in the content distribution network that stores the target data in accordance with a preset rule comprises:
    确定所述内容分发网络中与所述第一服务节点所属地域分类适配的至少一个候选节点;Determine at least one candidate node in the content distribution network that is adapted to the geographic classification to which the first service node belongs;
    从所述至少一个候选节点中,确定存储有所述目标数据的服务节点,作为所述第二服务节点。From the at least one candidate node, determine a service node storing the target data as the second service node.
  7. 根据权利要求6所述的方法,其特征在于,确定所述内容分发网络中与所述第一服务节点所属地域分类适配的至少一个候选节点,包括:The method according to claim 6, wherein determining at least one candidate node in the content distribution network that is adapted to the geographic classification to which the first service node belongs comprises:
    从所述内容分发网络中,获取与所述第一服务节点所属地域分类适配,且与所述第一服务节点位于同一节点层级的服务节点,作为所述至少一个候选节点。Obtain, from the content distribution network, a service node that is adapted to the geographic classification to which the first service node belongs and is located at the same node level as the first service node as the at least one candidate node.
  8. 根据权利要求6所述的方法,其特征在于,所述目标数据包括:目标流数据;The method according to claim 6, wherein the target data comprises: target stream data;
    从所述至少一个候选节点中,确定存储有所述目标数据的服务节点,作为第二服务节点,包括:From the at least one candidate node, determining the service node storing the target data as the second service node includes:
    根据流数据与推流操作关联的服务节点的对应关系,从所述至少一个候选节点中确定与所述目标数据流的推流操作关联的服务节点作为所述第二服务节点。According to the corresponding relationship between the streaming data and the service node associated with the streaming operation, a service node associated with the streaming operation of the target data stream is determined from the at least one candidate node as the second service node.
  9. 根据权利要求8所述的方法,其特征在于,根据流数据与推流操作关联的服务节点的对应关系,从所述至少一个候选节点中,确定与所述目标数据流的推流操作关联的服务节点作为所述第二服务节点,包括:The method according to claim 8, characterized in that, according to the corresponding relationship between the streaming data and the service node associated with the push operation, from the at least one candidate node, determine the data associated with the push operation of the target data stream The service node, as the second service node, includes:
    从所述请求中获取所述目标流数据的播放域名以及流名称;Acquiring the playback domain name and stream name of the target stream data from the request;
    根据播放域名与推流域名的对应关系,确定所述目标流数据对应的目标推流域名;Determining the target streaming domain name corresponding to the target streaming data according to the corresponding relationship between the playing domain name and the streaming domain name;
    从所述至少一个候选节点中,确定与所述目标推流域名和所述流名称所标识的流数据的推流操作关联的服务节点,作为所述第二服务节点。From the at least one candidate node, determine a service node associated with the streaming operation of the target streaming domain name and streaming data identified by the streaming name as the second service node.
  10. 根据权利要求8或9所述的方法,其特征在于,从所述至少一个候选节点中,确定存储有所述目标数据的服务节点,作为第二服务节点之前,还包括:The method according to claim 8 or 9, characterized in that, from the at least one candidate node, determining the service node storing the target data, before serving as the second service node, further comprising:
    响应针对流数据的推流操作,获取与所述流数据的推流操作关联的服务节点以及所述流数据的推流域名和流名称;In response to the streaming operation for streaming data, obtaining the service node associated with the streaming operation of the streaming data and the streaming domain name and the streaming name of the streaming data;
    对应记录所述流数据的推流域名和流名称以及与所述流数据的推流操作关联的服务节点,以生成所述流数据与推流操作关联的服务节点的对应关系。Correspondingly record the streaming domain name and stream name of the streaming data and the service node associated with the streaming operation of the streaming data to generate a correspondence between the streaming data and the service node associated with the streaming operation.
  11. 一种内容分发网络,其特征在于,包括:直播中心以及至少一直播节点;A content distribution network, characterized by comprising: a live broadcast center and at least one live broadcast node;
    其中,所述至少一直播节点中的第一直播节点,用于:在接收到针对本地未存储的直播流数据的拉流请求时,向所述直播中心请求获取存储有所述直播流数据的服务节点 的地址;Wherein, the first live streaming node of the at least one live streaming node is configured to: upon receiving a streaming request for live streaming data not stored locally, request the live streaming center to obtain the live streaming data stored there. The address of the service node;
    所述直播中心,具体用于:在所述第一直播节点请求获取存储有所述直播流数据的直播节点的地址时,确定所述内容分发网络中符合预设规则且存储有所述直播流数据的第二直播节点,并将所述第二直播节点的地址提供给所述第一直播节点,以使所述第一直播节点从所述第二直播节点获取所述直播流数据。The live broadcast center is specifically configured to: when the first live broadcast node requests to obtain the address of the live broadcast node storing the live stream data, determine that the content distribution network complies with preset rules and stores the live stream And provide the address of the second live broadcast node to the first live broadcast node, so that the first live broadcast node obtains the live stream data from the second live broadcast node.
  12. 一种数据处理装置,其特征在于,包括:A data processing device, characterized by comprising:
    查询模块,用于响应针对目标数据的访问请求,查询本地是否存储所述目标数据;The query module is used to respond to the access request for the target data and query whether the target data is stored locally;
    请求模块,用于在所述查询模块的输出为否时,从中心节点获取存储有所述目标数据的第二服务节点的地址;所述第二服务节点为按照预设规则选择的;The request module is configured to obtain the address of the second service node storing the target data from the central node when the output of the query module is no; the second service node is selected according to a preset rule;
    数据获取模块,用于根据所述第二服务节点的地址访问所述第二服务节点,以获取所述目标数据。The data obtaining module is configured to access the second service node according to the address of the second service node to obtain the target data.
  13. 一种数据处理装置,其特征在于,包括:A data processing device, characterized by comprising:
    选择模块,用于响应第一服务节点发送的获取存储有目标数据的服务节点的请求,按照预设规则选择内容分发网络中存储有所述目标数据的第二服务节点;The selection module is configured to respond to the request sent by the first service node to obtain the service node storing the target data, and select the second service node storing the target data in the content distribution network according to a preset rule;
    发送模块,用于将所述第二服务节点的地址提供给所述第一服务节点,以使所述第一服务节点从所述第二服务节点中获取所述目标数据。The sending module is configured to provide the address of the second service node to the first service node, so that the first service node obtains the target data from the second service node.
  14. 一种电子设备,其特征在于,包括:存储器、处理器以及通信组件;An electronic device, characterized by comprising: a memory, a processor, and a communication component;
    所述存储器用于存储一条或多条计算机指令;The memory is used to store one or more computer instructions;
    所述处理器用于执行所述一条或多条计算机指令以用于:执行权利要求2-10任一项所述的方法中的步骤。The processor is configured to execute the one or more computer instructions to execute the steps in the method of any one of claims 2-10.
  15. 一种存储有计算机程序的计算机可读存储介质,其特征在于,计算机程序被处理器执行时能够使得处理器实现权利要求2-10任一项所述的方法中的步骤。A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor can realize the steps in the method of any one of claims 2-10.
PCT/CN2020/100052 2019-07-09 2020-07-03 Content delivery network, data processing method, apparatus and device, and storage medium WO2021004384A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910614694.0 2019-07-09
CN201910614694.0A CN112218100B (en) 2019-07-09 2019-07-09 Content distribution network, data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021004384A1 true WO2021004384A1 (en) 2021-01-14

Family

ID=74047361

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/100052 WO2021004384A1 (en) 2019-07-09 2020-07-03 Content delivery network, data processing method, apparatus and device, and storage medium

Country Status (2)

Country Link
CN (1) CN112218100B (en)
WO (1) WO2021004384A1 (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194134A (en) * 2021-04-27 2021-07-30 上海哔哩哔哩科技有限公司 Node determination method and device
CN113676511A (en) * 2021-07-13 2021-11-19 阿里巴巴新加坡控股有限公司 Cloud storage method, system, equipment and storage medium
CN113761246A (en) * 2021-09-06 2021-12-07 北京金山云网络技术有限公司 Data acquisition method and device, electronic equipment and storage medium
CN114125489A (en) * 2021-12-10 2022-03-01 上海哔哩哔哩科技有限公司 Data stream distribution method and system
CN114245161A (en) * 2021-12-13 2022-03-25 中国农业银行股份有限公司 Live broadcast stream pushing method and device, storage medium and electronic equipment
CN114501053A (en) * 2022-02-07 2022-05-13 上海哔哩哔哩科技有限公司 Live stream acquisition method and device
CN114501056A (en) * 2022-04-18 2022-05-13 深圳市华曦达科技股份有限公司 Method and device for automatically returning channels of multi-source station
CN114553727A (en) * 2022-02-18 2022-05-27 网宿科技股份有限公司 Data processing method and device based on content distribution network
CN114666141A (en) * 2022-03-24 2022-06-24 阿里云计算有限公司 Data processing method, device, medium and product based on platform as a service
CN114979262A (en) * 2022-04-25 2022-08-30 阿里云计算有限公司 Access method and system
CN115002497A (en) * 2022-05-27 2022-09-02 上海哔哩哔哩科技有限公司 Live broadcast source returning scheduling method and system and source returning server
CN115022177A (en) * 2022-06-08 2022-09-06 阿里巴巴(中国)有限公司 CDN system, back-to-source method, CDN node and storage medium
CN115208955A (en) * 2021-03-29 2022-10-18 贵州白山云科技股份有限公司 Resource request processing method and device, computer equipment and medium
CN115622984A (en) * 2022-10-19 2023-01-17 上海哔哩哔哩科技有限公司 Plug flow quality improving method and device
WO2023179505A1 (en) * 2022-03-22 2023-09-28 北京有竹居网络技术有限公司 Scheduling method and apparatus for content delivery network, and storage medium and electronic device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033191A (en) * 2021-10-25 2023-04-28 中兴通讯股份有限公司 Live broadcast method, content distribution service device, and storage medium
CN114500722B (en) * 2022-01-25 2023-10-17 北京百度网讯科技有限公司 Method, device, electronic equipment and medium for distributing application program mirror image
CN114615237B (en) * 2022-03-22 2024-03-29 阿里巴巴(中国)有限公司 Streaming media communication method, system, equipment and storage medium
CN115002083B (en) * 2022-05-23 2024-04-02 阿里巴巴(中国)有限公司 Method, equipment and storage medium for transmitting real-time streaming media data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103703747A (en) * 2013-08-13 2014-04-02 华为技术有限公司 Internet content storage method and apparatus
CN103747112A (en) * 2013-12-24 2014-04-23 乐视网信息技术(北京)股份有限公司 CDN back-to-source method, first server and system thereof
CN103747273A (en) * 2013-12-23 2014-04-23 乐视网信息技术(北京)股份有限公司 Video requesting method, device and system
CN106685762A (en) * 2016-12-29 2017-05-17 北京爱奇艺科技有限公司 Scheduling method of data tracing, device and CDN network
CN109218363A (en) * 2017-07-03 2019-01-15 中国移动通信有限公司研究院 Content distribution method, network node and storage medium
US20190104068A1 (en) * 2013-10-29 2019-04-04 Limelight Networks, Inc. End-to-end acceleration of dynamic content

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897456A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Content distributing method and system
CN107645485B (en) * 2016-07-22 2021-11-05 中兴通讯股份有限公司 Network live broadcast distribution method, system and device
CN108712343A (en) * 2018-05-14 2018-10-26 网宿科技股份有限公司 Distribution method, system, fringe node and the central dispatching system of streaming media resource

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103703747A (en) * 2013-08-13 2014-04-02 华为技术有限公司 Internet content storage method and apparatus
US20190104068A1 (en) * 2013-10-29 2019-04-04 Limelight Networks, Inc. End-to-end acceleration of dynamic content
CN103747273A (en) * 2013-12-23 2014-04-23 乐视网信息技术(北京)股份有限公司 Video requesting method, device and system
CN103747112A (en) * 2013-12-24 2014-04-23 乐视网信息技术(北京)股份有限公司 CDN back-to-source method, first server and system thereof
CN106685762A (en) * 2016-12-29 2017-05-17 北京爱奇艺科技有限公司 Scheduling method of data tracing, device and CDN network
CN109218363A (en) * 2017-07-03 2019-01-15 中国移动通信有限公司研究院 Content distribution method, network node and storage medium

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208955A (en) * 2021-03-29 2022-10-18 贵州白山云科技股份有限公司 Resource request processing method and device, computer equipment and medium
CN115208955B (en) * 2021-03-29 2024-04-19 贵州白山云科技股份有限公司 Method, device, computer equipment and medium for processing resource request
CN113194134B (en) * 2021-04-27 2023-01-10 上海哔哩哔哩科技有限公司 Node determination method and device
CN113194134A (en) * 2021-04-27 2021-07-30 上海哔哩哔哩科技有限公司 Node determination method and device
CN113676511B (en) * 2021-07-13 2024-03-12 阿里巴巴新加坡控股有限公司 Cloud storage method, system, equipment and storage medium
CN113676511A (en) * 2021-07-13 2021-11-19 阿里巴巴新加坡控股有限公司 Cloud storage method, system, equipment and storage medium
CN113761246A (en) * 2021-09-06 2021-12-07 北京金山云网络技术有限公司 Data acquisition method and device, electronic equipment and storage medium
CN114125489A (en) * 2021-12-10 2022-03-01 上海哔哩哔哩科技有限公司 Data stream distribution method and system
CN114245161B (en) * 2021-12-13 2024-02-02 中国农业银行股份有限公司 Live broadcast push method and device, storage medium and electronic equipment
CN114245161A (en) * 2021-12-13 2022-03-25 中国农业银行股份有限公司 Live broadcast stream pushing method and device, storage medium and electronic equipment
CN114501053B (en) * 2022-02-07 2023-10-20 上海哔哩哔哩科技有限公司 Live stream acquisition method and device
CN114501053A (en) * 2022-02-07 2022-05-13 上海哔哩哔哩科技有限公司 Live stream acquisition method and device
CN114553727A (en) * 2022-02-18 2022-05-27 网宿科技股份有限公司 Data processing method and device based on content distribution network
WO2023179505A1 (en) * 2022-03-22 2023-09-28 北京有竹居网络技术有限公司 Scheduling method and apparatus for content delivery network, and storage medium and electronic device
CN114666141A (en) * 2022-03-24 2022-06-24 阿里云计算有限公司 Data processing method, device, medium and product based on platform as a service
CN114501056A (en) * 2022-04-18 2022-05-13 深圳市华曦达科技股份有限公司 Method and device for automatically returning channels of multi-source station
CN114979262A (en) * 2022-04-25 2022-08-30 阿里云计算有限公司 Access method and system
CN114979262B (en) * 2022-04-25 2024-04-19 阿里云计算有限公司 Access method and system
CN115002497A (en) * 2022-05-27 2022-09-02 上海哔哩哔哩科技有限公司 Live broadcast source returning scheduling method and system and source returning server
CN115002497B (en) * 2022-05-27 2024-03-12 上海哔哩哔哩科技有限公司 Live broadcast source-returning scheduling method and system and source-returning server
CN115022177A (en) * 2022-06-08 2022-09-06 阿里巴巴(中国)有限公司 CDN system, back-to-source method, CDN node and storage medium
CN115022177B (en) * 2022-06-08 2023-10-24 阿里巴巴(中国)有限公司 CDN system, source returning method, CDN node and storage medium
CN115622984A (en) * 2022-10-19 2023-01-17 上海哔哩哔哩科技有限公司 Plug flow quality improving method and device

Also Published As

Publication number Publication date
CN112218100B (en) 2023-05-26
CN112218100A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
WO2021004384A1 (en) Content delivery network, data processing method, apparatus and device, and storage medium
US10805418B2 (en) Data management in an information-centric network
CN102404378B (en) Streaming media distribution and transmission network system
KR102305064B1 (en) Video live broadcasting method and device
CN110336843B (en) Content distribution method for crowdsourcing, central node and edge node
US9621620B2 (en) Apparatus and method for providing content with a distributed architecture, and system for providing content with the said apparatus
US20190149628A1 (en) Just in time transcoding and packaging in ipv6 networks
US8756296B2 (en) Method, device and system for distributing file data
AU2011274249B2 (en) Systems and methods for storing digital content
CN102740159B (en) Media file storage format and self-adaptation transfer system
EP2288085A1 (en) P2p based method, device and system for playing media
CN101610162A (en) A kind of method, system and equipment that content is provided based on reciprocity storage networking
CN104735044A (en) Streaming media live broadcast method and system
KR20200101047A (en) Video streaming method using real time caching technique and system thereof
CN108881444A (en) A kind of content popularit is distributed the asynchronous code cache method of inconsistent mist wireless access network
CN113296924A (en) Content distribution method, device, system and storage medium
US20100293172A1 (en) Method and system for storing and distributing electronic content
WO2018090315A1 (en) Data request processing method and cache system
Ramesh et al. Mobile applications in multimedia cloud computing
CN113934916A (en) CDN service implementation method, terminal device, node server and storage medium
WO2017071524A1 (en) Multimedia resource publishing method and apparatus
EP2575323B1 (en) Delivering content from a server to a client
KR20130134911A (en) Method for providing content caching service in adapted streaming service and local caching device thereof
Victoria Priscilla et al. A Review on Video Sharing over Content Centric Networks
KR20160090521A (en) Method for providing streaming service through device-to-device communication, server and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20837739

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20837739

Country of ref document: EP

Kind code of ref document: A1