Back-to-source method, system, computer device and storage medium

CN119854544BActive Publication Date: 2025-11-04CHINA TELECOM CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411784309.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-11-04
Estimated Expiration
2044-12-05

AI Technical Summary

Technical Problem

随机选择的候选的回源ip地址可能是异常的回源ip地址,如何提升回源的效率成为一个需要解决的问题

Benefits of technology

[0035]本公开实施例提供的回源方法,当目标CDN节点记录的回源ip地址列表中存在对应于目标加速域名的目标回源ip地址并且目标回源ip地址不在异常回源ip地址列表中时,将目标回源ip地址确定为用于获取对应于目标视频流标识的视频流数据的回源ip地址。从而,当客户端连续请求对应于同一视频流标识的视频流数据时,若目标CDN节点记录的回源ip地址列表中存在对应于目标加速域名的目标回源ip地址并且目标回源ip地址不在异常回源ip地址列表中,可以直接通过记录的对应于目标加速域名的目标回源ip地址回源。可以实现客户端连续请求对应于同一视频流标识的视频流数据时,对应于同一视频流标识的多个视频流数据均通过同一个回源ip即对应于目标加速域名的目标回源ip地址进行回源。显示视频流数据对应的画面时不会跳跃。当对应于目标视频流标识的视频流数据为基于HLS(HTTP Live streaming)协议的直播流数据时,一定数据量的直播流数据被划分为多个ts(Transport Stream)片时,可以实现客户端播放器播放的多个ts片均在同一台切片服务器上下载,显示直播流数据对应的画面时不会跳跃。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854544B_ABST
    Figure CN119854544B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of computers, and discloses a method and system for source returning, a computer device and a storage medium. The method comprises: receiving, by a target CDN node, a request sent by a client, wherein the request indicates that video stream data corresponding to a target video stream identifier needs to be obtained, and the request comprises: the target video stream identifier and a target acceleration domain name corresponding to the target video stream identifier; and performing, by the target CDN node, a source returning association operation when it is determined that the video stream data corresponding to the target video stream identifier needs to be obtained through source returning.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, in particular to a back-to-source method, system, computer device and storage medium. BACKGROUND

[0002] In the related art, when a content delivery network (CDN) node performs back-to-source, a candidate back-to-source ip address is randomly selected from candidate back-to-source ip addresses. The randomly selected candidate back-to-source ip address can be an abnormal back-to-source ip address, and how to improve the efficiency of back-to-source becomes a problem to be solved. SUMMARY

[0003] Therefore, the present disclosure provides a back-to-source method, system, computer device and storage medium.

[0004] In a first aspect, the present disclosure provides a back-to-source method, comprising:

[0005] The target CDN node receives a request sent by a client, wherein the request indicates that video stream data corresponding to a target video stream identifier needs to be obtained, and the request comprises: the target video stream identifier and a target acceleration domain name corresponding to the target video stream identifier.

[0006] When the target CDN node determines that the video stream data corresponding to the target video stream identifier needs to be obtained through back-to-source, a back-to-source association operation is performed, and the back-to-source association operation comprises:

[0007] When the target CDN node records a target back-to-source ip address corresponding to the target acceleration domain name in a back-to-source ip address list and the target back-to-source ip address is not in an abnormal back-to-source ip address list, the target back-to-source ip address is determined as a back-to-source ip address used to obtain the video stream data corresponding to the target video stream identifier.

[0008] When the target CDN node determines that there is no target back-to-source ip address corresponding to the target acceleration domain name in the back-to-source ip address list recorded by the target CDN node and there is a first candidate back-to-source ip address corresponding to the target acceleration domain name, the target first candidate back-to-source ip address is selected, and it is determined whether the target first candidate back-to-source ip address is in the abnormal back-to-source ip address list; when it is determined that the target first candidate back-to-source ip address is not in the abnormal back-to-source ip address list, the target first candidate back-to-source ip address is determined as the back-to-source ip address used to obtain the video stream data corresponding to the target video stream identifier.

[0009] In one possible implementation, the method further comprises:

[0010] The target CDN node determines whether the duration of the target first candidate back-to-source IP address in the abnormal back-to-source IP address list is greater than a preset duration when determining that the target first candidate back-to-source IP address is in the abnormal back-to-source IP address list.

[0011] The target CDN node deletes the target first candidate back-to-source IP address from the abnormal back-to-source IP address list and determines the target first candidate back-to-source IP address as the back-to-source IP address used to acquire the video stream data corresponding to the target video stream identifier when determining that the duration of the target first candidate back-to-source IP address in the abnormal back-to-source IP address list is greater than the preset duration.

[0012] In a possible implementation, the method further includes:

[0013] The target CDN node determines whether there is a second candidate back-to-source IP address corresponding to the target acceleration domain name when determining that the duration of the first candidate back-to-source IP address in the abnormal back-to-source IP address list is not greater than the preset duration.

[0014] The target CDN node selects the target second candidate back-to-source IP address and determines whether the target second candidate back-to-source IP address is in the abnormal back-to-source IP address list when determining that there is the second candidate back-to-source IP address corresponding to the target acceleration domain name.

[0015] The target CDN node determines the target second candidate back-to-source IP address as the back-to-source IP address used to acquire the video stream data corresponding to the target video stream identifier when determining that the target second candidate back-to-source IP address is not in the abnormal back-to-source IP address list.

[0016] In a possible implementation, the method further includes:

[0017] The target CDN node adds the back-to-source IP address used to acquire the video stream data corresponding to the target video stream identifier to the back-to-source IP address list recorded by the target CDN node when determining that the status code corresponding to the received back-to-source IP address used to acquire the video stream data corresponding to the target video stream identifier is normal and the rate corresponding to the back-to-source IP address used to acquire the video stream data corresponding to the target video stream identifier is greater than a rate threshold.

[0018] In a possible implementation, the method further includes:

[0019] The target CDN node determines whether the status code corresponding to the received back-to-source IP address used to acquire the video stream data corresponding to the target video stream identifier is abnormal.

[0020] If the target CDN node determines that the status code corresponding to the received source return ip address for obtaining the video stream data corresponding to the target video stream identifier is not abnormal, the target CDN node determines whether the rate corresponding to the source return ip address for obtaining the video stream data corresponding to the target video stream identifier is greater than the rate threshold value;

[0021] If the target CDN node determines that the rate corresponding to the source return ip address for obtaining the video stream data corresponding to the target video stream identifier is not greater than the rate threshold value, the target CDN node adds the source return ip address for obtaining the video stream data corresponding to the target video stream identifier to the abnormal source return ip address list, and determines whether there is a third candidate source return ip address corresponding to the target acceleration domain name;

[0022] When the target CDN node determines that there is a third candidate source return ip address corresponding to the target acceleration domain name, the target CDN node selects a target third candidate source return ip address, and determines whether the target third candidate source return ip address is in the abnormal source return ip address list;

[0023] When the target CDN node determines that the target third candidate source return ip address is not in the abnormal source return ip address list, the target CDN node determines the target third candidate source return ip address as the source return ip address for obtaining the video stream data corresponding to the target video stream identifier.

[0024] In one possible implementation, the video stream data corresponding to the target video stream identifier is live stream data.

[0025] In a second aspect, the embodiments of the present disclosure provide a source return system, the source return system comprising: a client, a target CDN node;

[0026] The target CDN node is configured to receive a request sent by a client, wherein the request indicates that video stream data corresponding to a target video stream identifier needs to be acquired, and the request comprises the target video stream identifier and a target accelerated domain name corresponding to the target video stream identifier. When it is determined that the video stream data corresponding to the target video stream identifier needs to be acquired through source retrieval, a source retrieval association operation is performed. The source retrieval association operation comprises: when a target source retrieval IP address corresponding to the target accelerated domain name exists in a source retrieval IP address list recorded by the target CDN node and the target source retrieval IP address does not exist in an abnormal source retrieval IP address list, the target source retrieval IP address is determined as a source retrieval IP address used to acquire the video stream data corresponding to the target video stream identifier; when it is determined that the target source retrieval IP address corresponding to the target accelerated domain name does not exist in the source retrieval IP address list recorded by the target CDN node and a first candidate source retrieval IP address corresponding to the target accelerated domain name exists, the target first candidate source retrieval IP address is selected, and it is determined whether the target first candidate source retrieval IP address exists in the abnormal source retrieval IP address list; and when it is determined that the target first candidate source retrieval IP address does not exist in the abnormal source retrieval IP address list, the target first candidate source retrieval IP address is determined as the source retrieval IP address used to acquire the video stream data corresponding to the target video stream identifier.

[0027] In a possible implementation, the target CDN node is further configured to, when it is determined that the target first candidate source retrieval IP address exists in the abnormal source retrieval IP address list, determine whether a duration of the target first candidate source retrieval IP address in the abnormal source retrieval IP address list is greater than a preset duration; when it is determined that the duration of the target first candidate source retrieval IP address in the abnormal source retrieval IP address list is greater than the preset duration, the target first candidate source retrieval IP address is deleted from the abnormal source retrieval IP address list, and the target first candidate source retrieval IP address is determined as the source retrieval IP address used to acquire the video stream data corresponding to the target video stream identifier.

[0028] In a possible implementation, the target CDN node is further configured to, when it is determined that the duration of the first candidate source retrieval IP address in the abnormal source retrieval IP address list is not greater than the preset duration, determine whether a second candidate source retrieval IP address corresponding to the target accelerated domain name exists; when it is determined that the second candidate source retrieval IP address corresponding to the target accelerated domain name exists, the target second candidate source retrieval IP address is selected, and it is determined whether the target second candidate source retrieval IP address exists in the abnormal source retrieval IP address list; and when it is determined that the target second candidate source retrieval IP address does not exist in the abnormal source retrieval IP address list, the target second candidate source retrieval IP address is determined as the source retrieval IP address used to acquire the video stream data corresponding to the target video stream identifier.

[0029] In a possible implementation, the target CDN node is further configured to add the source ip address for obtaining the video stream data corresponding to the target video stream identifier into a list of source ip addresses recorded by the target CDN node when the received status code corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is normal and the rate corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is greater than the rate threshold.

[0030] In a possible implementation, the target CDN node is further configured to determine whether the received status code corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is abnormal, determine whether the rate corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is greater than the rate threshold if it is determined that the received status code corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is not abnormal, add the source ip address for obtaining the video stream data corresponding to the target video stream identifier into a list of abnormal source ip addresses if it is determined that the rate corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is not greater than the rate threshold, and determine whether there is a third candidate source ip address corresponding to the target acceleration domain name. The target CDN node selects a target third candidate source ip address and determines whether the target third candidate source ip address is in the list of abnormal source ip addresses if it is determined that there is a third candidate source ip address corresponding to the target acceleration domain name. The target CDN node determines the target third candidate source ip address as the source ip address for obtaining the video stream data corresponding to the target video stream identifier when it is determined that the target third candidate source ip address is not in the list of abnormal source ip addresses.

[0031] In a possible implementation, the video stream data corresponding to the target video stream identifier is live stream data.

[0032] In a third aspect, an embodiment of the present disclosure provides a computer device, including: a memory and a processor, which are in communication connection with each other, and the memory stores computer instructions; the processor executes the computer instructions to perform the method in the first aspect or any of the corresponding implementation manners thereof.

[0033] In a fourth aspect, an embodiment of the present disclosure provides a computer readable storage medium, which stores computer instructions, and the computer instructions are used to make a computer perform the method in the first aspect or any of the corresponding implementation manners thereof.

[0034] In a fifth aspect, the present disclosure provides a computer program product, which includes computer instructions, and the computer instructions are used to make a computer perform the method in the first aspect or any of the corresponding implementation manners thereof.

[0035] The method for source returning provided by the embodiments of the present disclosure determines the target source returning IP address as the source returning IP address used to acquire the video stream data corresponding to the target video stream identifier when the target source returning IP address corresponding to the target accelerated domain name exists in the target CDN node recorded source returning IP address list and the target source returning IP address does not exist in the abnormal source returning IP address list. Thus, when the client continuously requests the video stream data corresponding to the same video stream identifier, if the target source returning IP address corresponding to the target accelerated domain name exists in the target CDN node recorded source returning IP address list and the target source returning IP address does not exist in the abnormal source returning IP address list, the source returning can be directly performed through the target source returning IP address recorded corresponding to the target accelerated domain name. When the client continuously requests the video stream data corresponding to the same video stream identifier, the multiple video stream data corresponding to the same video stream identifier can be all returned through the same source returning IP, i.e., the target source returning IP address corresponding to the target accelerated domain name. The display of the picture corresponding to the video stream data will not be skipped. When the video stream data corresponding to the target video stream identifier is the live stream data based on the HLS (HTTP Live streaming) protocol, the live stream data of a certain data amount is divided into multiple ts (Transport Stream) pieces, and the multiple ts pieces played by the client player can be all downloaded on the same piece server, and the display of the picture corresponding to the live stream data will not be skipped.

[0036] When it is determined that the target source returning IP address corresponding to the target accelerated domain name does not exist in the target CDN node recorded source returning IP address list and the first candidate source returning IP address corresponding to the target accelerated domain name exists, the target first candidate source returning IP address is selected, and it is determined whether the target first candidate source returning IP address exists in the abnormal source returning IP address list. When it is determined that the target first candidate source returning IP address does not exist in the abnormal source returning IP address list, the target first candidate source returning IP address is determined as the source returning IP address used to acquire the video stream data corresponding to the target video stream identifier. Thus, when there is no target source returning IP address recorded corresponding to the target accelerated domain name, the source returning can be performed through the normal target first candidate source returning IP address, the rate of the source returning is ensured, the load balancing is guaranteed, and the stability of the transmission of the video data is improved. When the video stream data corresponding to the target video stream identifier is the live stream data based on the HLS (HTTP Live streaming) protocol, the transmission speed stability of the live HLS is improved, and the quality of the user accessing the HLS resource through the CDN is guaranteed. BRIEF DESCRIPTION OF DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the specific embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or prior art description. Obviously, the drawings described below are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative labor under the premise of the drawings.

[0038] Figure 1 is an example flowchart of the source returning method provided by the embodiments of the present disclosure;

[0039] Figure 2 is an example flowchart of the source returning method provided by the embodiments of the present disclosure;

[0040] Figure 3 is a structural schematic diagram of the computer device provided by the embodiments of the present disclosure. DETAILED DESCRIPTION

[0041] In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are some of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present disclosure.

[0042] Reference Figure 1 It shows an example flowchart of the source returning method provided by the embodiments of the present disclosure. The source returning method provided by the embodiments of the present disclosure can be executed by a target CDN node.

[0043] In step S101, the target CDN node receives a request sent by a client.

[0044] The target CDN node can be any CDN node to which the method provided by the embodiments of the present disclosure can be applied.

[0045] The request sent by the client indicates that the video stream data corresponding to the target video stream identifier needs to be obtained, and the request includes: the target video stream identifier, and the target acceleration domain name (url) corresponding to the target video stream identifier. The target acceleration domain name corresponding to the target video stream identifier is an acceleration domain name that can provide the video stream data corresponding to the target video stream identifier.

[0046] The source returning ip in the embodiments of the present disclosure specifically refers to a CDN source returning ip. The source returning ip is used to obtain the ip address of the content from the original server, and the source returning ip is usually provided by a CDN service provider.

[0047] In one possible implementation, the video stream data corresponding to the target video stream identifier is live video stream data.

[0048] At step S102, when the target CDN node determines that the video stream data corresponding to the target video stream identifier needs to be acquired through the source retrieval, the source retrieval association operation is performed.

[0049] At step S102, the target CDN node can determine whether the video stream data corresponding to the target video stream identifier needs to be acquired through the source retrieval. The target CDN node can determine whether the target CDN node caches the video stream data corresponding to the target video stream identifier. If yes, it is determined whether the cached video stream data corresponding to the target video stream identifier is expired.

[0050] If the target CDN node caches the video stream data corresponding to the target video stream identifier and is not expired, it can be determined that the video stream data corresponding to the target video stream identifier does not need to be acquired through the source retrieval.

[0051] If the target CDN node does not cache the video stream data corresponding to the target video stream identifier or is expired, it can be determined that the video stream data corresponding to the target video stream identifier needs to be acquired through the source retrieval.

[0052] The source retrieval association operation includes steps S1021 and S1022.

[0053] At step S1021, when the target CDN node records the target source retrieval ip address corresponding to the target acceleration domain name in the source retrieval ip address list and the target source retrieval ip address is not in the abnormal source retrieval ip address list, the target source retrieval ip address is determined as the source retrieval ip address used to acquire the video stream data corresponding to the target video stream identifier.

[0054] After the target source retrieval ip address is determined as the source retrieval ip address used to acquire the video stream data corresponding to the target video stream identifier, the target CDN node can establish a connection with the server having the target source retrieval ip address, and after the target CDN node establishes the connection with the server having the target source retrieval ip address, the target CDN node can receive the video stream data corresponding to the target video stream identifier from the server having the target source retrieval ip address.

[0055] At step S1022, when it is determined that the target CDN node records no target source retrieval ip address corresponding to the target acceleration domain name in the source retrieval ip address list and there is a first candidate source retrieval ip address corresponding to the target acceleration domain name, the target first candidate source retrieval ip address is selected, and it is determined whether the target first candidate source retrieval ip address is in the abnormal source retrieval ip address list; when it is determined that the target first candidate source retrieval ip address is not in the abnormal source retrieval ip address list, the target first candidate source retrieval ip address is determined as the source retrieval ip address used to acquire the video stream data corresponding to the target video stream identifier.

[0056] After determining the target first candidate origin IP address as the origin IP address used to acquire the video stream data corresponding to the target video stream identifier, the target CDN node can establish a connection with the server having the target first candidate origin IP address, and after the target CDN node establishes the connection with the server having the target first candidate origin IP address, the target CDN node can receive the video stream data corresponding to the target video stream identifier from the server having the target first candidate origin IP address.

[0057] In one possible implementation, in step S1022, when the first candidate origin IP address corresponding to the target acceleration domain name is found from the current origin IP address list, it can be determined that the first candidate origin IP address corresponding to the target acceleration domain name exists. The current origin IP address list includes a plurality of origin IP addresses that can be currently used to acquire the video stream data corresponding to the respective video stream identifiers. The first candidate origin IP address corresponding to the target acceleration domain name can be found from the origin IP address list according to hash calculation of the target acceleration domain name.

[0058] In step S1022, one of the first candidate origin IP addresses corresponding to the target acceleration domain name can be randomly selected, and the randomly selected one of the first candidate origin IP addresses corresponding to the target acceleration domain name is taken as the target first candidate origin IP address.

[0059] In step S1022, when it is determined that the target origin IP address corresponding to the target acceleration domain name does not exist in the origin IP address list recorded by the target CDN node, it is determined whether there is an origin IP address that can be used to acquire the video stream data corresponding to the target video stream identifier, except for the origin IP addresses that cannot be currently used to acquire the video stream data corresponding to the target video stream identifier.

[0060] It should be noted that in the embodiments of the present disclosure, the origin IP address that can be used to acquire the video stream data corresponding to the target video stream identifier, except for the origin IP addresses that cannot be currently used to acquire the video stream data corresponding to the target video stream identifier, is determined when the target origin IP address corresponding to the target acceleration domain name does not exist in the origin IP address list recorded by the target CDN node, and is called the first candidate origin IP address. The selected first candidate origin IP address is called the target first candidate origin IP address.

[0061] In one possible implementation, for an origin IP, whether the origin IP is normal is determined according to the status code corresponding to the origin IP last received by the target CDN node.

[0062] In another possible implementation, for a source IP, whether the source IP is normal is determined according to a state code corresponding to the source IP and a rate corresponding to the source IP that are received by the target CDN node last time.

[0063] The state code corresponding to the source IP is one of a state code indicating that the target CDN node successfully establishes a connection with a server having the source IP, a state code indicating that the target CDN node fails to establish a connection with the server having the source IP, a 5xx state code, and a custom abnormal state code.

[0064] If the state code corresponding to the source IP that is received by the target CDN node last time is one of the state code indicating that the target CDN node fails to establish a connection with the server having the source IP, the 5xx state code, and the custom abnormal state code, it can be determined that the source IP is abnormal. Once it is determined that the source IP is abnormal, the source IP can be added to an abnormal IP list.

[0065] In one possible implementation, for a source IP, the rate corresponding to the source IP can be determined each time the source IP is used to obtain video stream data. Once it is determined that the rate corresponding to the source IP is not greater than a rate threshold, it can be determined that the source IP is abnormal, and the source IP is added to an abnormal source IP address list.

[0066] In one possible implementation, in order to calculate the rate corresponding to the source IP, rates of obtaining video stream data from a source station having the source IP in a plurality of statistical time periods during which the source IP is used to obtain the video stream data are used. The rate of obtaining the video stream data from the source station having the source IP in one statistical time period can be a target data amount corresponding to the video stream data obtained from the source station having the source IP in the statistical time period divided by a time length of the statistical time period. The data amount of the video stream data obtained from the source station having the source IP in the statistical time period or the data amount of data other than a preset small file type in the video stream data obtained from the source station having the source IP in the statistical time period. An average value of the rates of obtaining the video stream data from the source station having the source IP in the plurality of statistical time periods is calculated, and the average value is determined as the rate corresponding to the source IP.

[0067] In one possible implementation, the method further includes step S103.

[0068] At step S103, when it is determined that the target first candidate back-to-source IP address is in the abnormal back-to-source IP address list, it is determined whether a duration that the target first candidate back-to-source IP address is in the abnormal back-to-source IP address list is greater than a preset duration; when it is determined that the duration that the target first candidate back-to-source IP address is in the abnormal back-to-source IP address list is greater than the preset duration, the target first candidate back-to-source IP address is deleted from the abnormal back-to-source IP address list, and the target first candidate back-to-source IP address is determined as the back-to-source IP address used to acquire the video stream data corresponding to the target video stream identifier.

[0069] In a possible implementation, the method further includes step S104.

[0070] At step S104, when it is determined that the duration that the first candidate back-to-source IP address is in the abnormal back-to-source IP address list is not greater than the preset duration, it is determined whether there is a second candidate back-to-source IP address corresponding to the target acceleration domain name; when it is determined that there is the second candidate back-to-source IP address corresponding to the target acceleration domain name, the target second candidate back-to-source IP address is selected, and it is determined whether the target second candidate back-to-source IP address is in the abnormal back-to-source IP address list; when it is determined that the target second candidate back-to-source IP address is not in the abnormal back-to-source IP address list, the target second candidate back-to-source IP address is determined as the back-to-source IP address used to acquire the video stream data corresponding to the target video stream identifier.

[0071] It should be noted that, in the embodiments of the present disclosure, the back-to-source IP address that can be used to acquire the video stream data corresponding to the target video stream identifier, except for the back-to-source IP address that cannot be currently used to acquire the video stream data corresponding to the target video stream identifier, and that is determined when it is determined that the duration that the first candidate back-to-source IP address is in the abnormal back-to-source IP address list is not greater than the preset duration, is called a second candidate back-to-source IP address. The selected second candidate back-to-source IP address is called a target second candidate back-to-source IP address.

[0072] At step S104, one second candidate back-to-source IP address can be randomly selected as the target second candidate back-to-source IP address.

[0073] At step S104, when it is determined that the duration that the first candidate back-to-source IP address is in the abnormal back-to-source IP address list is not greater than the preset duration, it is determined whether there is a back-to-source IP address that can be used to acquire the video stream data corresponding to the target video stream identifier, except for the back-to-source IP address that cannot be currently used to acquire the video stream data corresponding to the target video stream identifier.

[0074] In a possible implementation, the method further includes step S105.

[0075] At step S105, when the status code corresponding to the received source return ip address for acquiring the video stream data corresponding to the target video stream identification is normal and the rate corresponding to the source return ip address for acquiring the video stream data corresponding to the target video stream identification is greater than the rate threshold, the source return ip address for acquiring the video stream data corresponding to the target video stream identification is added to the source return ip address list recorded by the target CDN node.

[0076] In one possible implementation, the method further includes step S106.

[0077] At step S106, it is determined whether the status code corresponding to the received source return ip address for acquiring the video stream data corresponding to the target video stream identification is abnormal; if it is determined that the status code corresponding to the received source return ip address for acquiring the video stream data corresponding to the target video stream identification is not abnormal, i.e., normal, it is determined whether the rate corresponding to the source return ip address for acquiring the video stream data corresponding to the target video stream identification is greater than the rate threshold; if it is determined that the rate corresponding to the source return ip address for acquiring the video stream data corresponding to the target video stream identification is not greater than the rate threshold, the source return ip address for acquiring the video stream data corresponding to the target video stream identification is added to the abnormal source return ip address list, and it is determined whether there is a third candidate source return ip address corresponding to the target acceleration domain name; when it is determined that there is a third candidate source return ip address corresponding to the target acceleration domain name, a target third candidate source return ip address is selected, and it is determined whether the target third candidate source return ip address is in the abnormal source return ip address list; when it is determined that the target third candidate source return ip address is not in the abnormal source return ip address list, the target third candidate source return ip address is determined as the source return ip address for acquiring the video stream data corresponding to the target video stream identification.

[0078] It should be noted that, in the embodiments of the present disclosure, when the rate corresponding to the source return ip address for acquiring the video stream data corresponding to the target video stream identification is determined to be not greater than the rate threshold, and the source return ip address for acquiring the video stream data corresponding to the target video stream identification is added to the abnormal source return ip address list, the source return ip address that can be used to acquire the video stream data corresponding to the target video stream identification except for the source return ip address that cannot be used to acquire the video stream data corresponding to the target video stream identification at present is called a third candidate source return ip address. The selected third candidate source return ip address is called a target third candidate source return ip address.

[0079] At step S106, one third candidate source return ip address can be randomly selected as the target third candidate source return ip address.

[0080] Reference Figure 2FIG. 1 shows a flowchart of one example of a process for obtaining a source IP address for retrieving video stream data corresponding to a target video stream identifier.

[0081] In this example, the target CDN node receives a request from a client. The target CDN node does not have cached video stream data corresponding to the target video stream identifier or the cached video stream data corresponding to the target video stream identifier is expired. The target CDN node determines whether the target source IP address is recorded. If the target source IP address is recorded, the target source IP address is determined to be the source IP address for retrieving video stream data corresponding to the target video stream identifier and the source IP address for retrieving video stream data corresponding to the target video stream identifier is obtained from a server having the target source IP address.

[0082] In this example, if the target source IP address is not recorded, it is determined whether there are other available source IP addresses. If there are other available source IP addresses, a source IP address is selected. If the selected source IP address is not in the abnormal IP address list, the source IP address is used to source. If the selected source IP address is in the abnormal IP address list, the source IP address is used to source if the time in the abnormal IP address list exceeds a threshold.

[0083] In this example, if the selected source IP address is normal, i.e., the status code corresponding to the received source IP address for retrieving video stream data corresponding to the target video stream identifier is normal and the rate corresponding to the received source IP address for retrieving video stream data corresponding to the target video stream identifier is greater than a rate threshold, the source IP address for retrieving video stream data corresponding to the target video stream identifier is added to the source IP address list recorded by the target CDN node.

[0084] In this example, if the selected source IP address is not normal, i.e., the status code corresponding to the received source IP address for retrieving video stream data corresponding to the target video stream identifier is abnormal and / or the rate corresponding to the received source IP address for retrieving video stream data corresponding to the target video stream identifier is not greater than a rate threshold, the source IP address for retrieving video stream data corresponding to the target video stream identifier is added to the abnormal source IP address list and it is determined whether there are other available source IP addresses, i.e., whether there are third candidate source IP addresses corresponding to the target acceleration domain name.

[0085] Embodiments of the present disclosure provide a source system. The system is configured to implement the above-described embodiments and preferred implementation, which have been described. As used below, the term "unit" can be a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware is also possible and contemplated.

[0086] The back-to-source system comprises a client, a target CDN node;

[0087] The target CDN node is configured to receive a request sent by the client, wherein the request indicates that video stream data corresponding to a target video stream identifier needs to be acquired, and the request comprises the target video stream identifier and a target acceleration domain name corresponding to the target video stream identifier; when it is determined that the video stream data corresponding to the target video stream identifier needs to be acquired through back-to-source, a back-to-source association operation is performed, and the back-to-source association operation comprises: when a target back-to-source IP address corresponding to the target acceleration domain name exists in a back-to-source IP address list recorded by the target CDN node and the target back-to-source IP address does not exist in an abnormal back-to-source IP address list, the target back-to-source IP address is determined as a back-to-source IP address used for acquiring the video stream data corresponding to the target video stream identifier; when it is determined that the target back-to-source IP address corresponding to the target acceleration domain name does not exist in the back-to-source IP address list recorded by the target CDN node and a first candidate back-to-source IP address corresponding to the target acceleration domain name exists, the target first candidate back-to-source IP address is selected, and it is determined whether the target first candidate back-to-source IP address exists in the abnormal back-to-source IP address list; when it is determined that the target first candidate back-to-source IP address does not exist in the abnormal back-to-source IP address list, the target first candidate back-to-source IP address is determined as the back-to-source IP address used for acquiring the video stream data corresponding to the target video stream identifier.

[0088] In a possible implementation, the target CDN node is further configured to, when it is determined that the target first candidate back-to-source IP address exists in the abnormal back-to-source IP address list, determine whether a duration of the target first candidate back-to-source IP address in the abnormal back-to-source IP address list is greater than a preset duration; when it is determined that the duration of the target first candidate back-to-source IP address in the abnormal back-to-source IP address list is greater than the preset duration, the target first candidate back-to-source IP address is deleted from the abnormal back-to-source IP address list, and the target first candidate back-to-source IP address is determined as the back-to-source IP address used for acquiring the video stream data corresponding to the target video stream identifier.

[0089] In a possible implementation, the target CDN node is further configured to, when it is determined that the duration of the first candidate back-to-source IP address in the abnormal back-to-source IP address list is not greater than the preset duration, determine whether a second candidate back-to-source IP address corresponding to the target acceleration domain name exists; when it is determined that the second candidate back-to-source IP address corresponding to the target acceleration domain name exists, the target second candidate back-to-source IP address is selected, and it is determined whether the target second candidate back-to-source IP address exists in the abnormal back-to-source IP address list; when it is determined that the target second candidate back-to-source IP address does not exist in the abnormal back-to-source IP address list, the target second candidate back-to-source IP address is determined as the back-to-source IP address used for acquiring the video stream data corresponding to the target video stream identifier.

[0090] In a possible implementation, the target CDN node is further configured to add the source ip address for obtaining the video stream data corresponding to the target video stream identifier into a source ip address list recorded by the target CDN node when the received status code corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is normal and the rate corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is greater than the rate threshold.

[0091] In a possible implementation, the target CDN node is further configured to determine whether the received status code corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is abnormal, determine whether the rate corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is greater than the rate threshold if it is determined that the received status code corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is not abnormal, add the source ip address for obtaining the video stream data corresponding to the target video stream identifier into an abnormal source ip address list if it is determined that the rate corresponding to the source ip address for obtaining the video stream data corresponding to the target video stream identifier is not greater than the rate threshold, and determine whether there is a third candidate source ip address corresponding to the target acceleration domain name, select a target third candidate source ip address if it is determined that there is a third candidate source ip address corresponding to the target acceleration domain name, and determine whether the target third candidate source ip address is in the abnormal source ip address list, and determine the target third candidate source ip address as the source ip address for obtaining the video stream data corresponding to the target video stream identifier when the target CDN node determines that the target third candidate source ip address is not in the abnormal source ip address list.

[0092] In a possible implementation, the video stream data corresponding to the target video stream identifier is live stream data.

[0093] The system in the embodiment is presented in the form of functional units, where the units refer to ASIC circuits, processors and memories executing one or more software or fixed programs, and / or other devices that can provide the above functions.

[0094] Further function descriptions of the above units are the same as those in the above corresponding embodiments, which will not be repeated here.

[0095] Reference Figure 3Fig. 1 shows a structural schematic diagram of a computer device provided by an embodiment of the present disclosure, which includes one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components communicate with each other using different buses, and can be installed on a common mainboard or in other manners as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of a GUI on an external input / output device, such as a display device coupled to the interface. In some optional embodiments, multiple processors and / or buses can be used with multiple memories and multiple memory, if needed. Also, multiple computer devices can be connected, each providing part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).

[0096] The processor 10 can be a central processor, a network processor, or a combination thereof. The processor 10 can further include a hardware chip. The hardware chip can be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device can be a complex programmable logic device, a field programmable logic device, a general array logic, or any combination thereof.

[0097] The memory 20 stores instructions executable by the at least one processor 10, so that the at least one processor 10 performs the method shown in the above embodiments.

[0098] The memory 20 can include a program storage area and a data storage area. The program storage area can store an operating system and application programs required by at least one function; the data storage area can store data created according to the use of the computer device, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state memory device. In some optional embodiments, the memory 20 can optionally include a memory disposed remotely with respect to the processor 10, which can be connected to the computer device through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0099] The memory 20 can include a volatile memory, such as a random access memory; the memory can also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state disk; the memory 20 can also include a combination of the above types of memories.

[0100] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30, and the output device 40 can be connected by a bus or other means.

[0101] Input device 30 can receive inputted digital or character information, as well as generate key signal inputs relating to user settings and function controls of the computer device, such as a touch screen, keypad, mouse, trackpad, touchpad, pointing stick, one or more mouse buttons, trackball, joystick, etc. Output device 40 can include a display device, auxiliary lighting device (e.g., LED), haptic feedback device (e.g., vibrating motor), etc. The display device includes, but is not limited to, a liquid crystal display, light emitting diode, display, and plasma display. In some alternative embodiments, the display device can be a touch screen.

[0102] The embodiments of the present disclosure further provide a computer readable storage medium, and the method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or recorded in a storage medium, or be implemented as computer code originally stored in a remote storage medium or non-transitory machine readable storage medium downloaded through a network and stored in a local storage medium, so that the method described herein can be processed by such software on a storage medium using a general purpose computer, a special purpose processor, or programmable or special hardware. The storage medium can be a disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid state disk, etc. Further, the storage medium can also include a combination of the above-mentioned memories. It can be understood that the computer, processor, microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the method shown in the above embodiments.

[0103] Part of the embodiments of the present disclosure can be applied as a computer program product, for example, computer program instructions, when executed by a computer, the operation of the computer can invoke or provide the method and / or technical solutions according to the present disclosure. Those skilled in the art should understand that the form of computer program instructions in computer readable medium includes but is not limited to source files, executable files, installation package files, etc. Correspondingly, the way of computer program instructions executed by computer includes but is not limited to: the computer directly executes the instructions, or the computer executes the corresponding compiled program after compiling the instructions, or the computer reads and executes the instructions, or the computer executes the corresponding installed program after reading and installing the instructions. Here, the computer readable medium can be any available computer readable storage medium or communication medium accessible to the computer.

[0104] Although the embodiments of the present disclosure are described in conjunction with the accompanying drawings, various modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the present disclosure, and such modifications and changes fall within the scope defined by the appended claims.

Claims

1. A source traversal method, characterized in that, The method includes: The target CDN node receives a request sent by the client, wherein the request indicates that video stream data corresponding to the target video stream identifier is needed, and the request includes: the target video stream identifier and the target acceleration domain name corresponding to the target video stream identifier; When the target CDN node determines that it needs to retrieve the video stream data corresponding to the target video stream identifier via origin pull, it performs an origin pull association operation, which includes: When the target CDN node's list of origin IP addresses contains a target origin IP address corresponding to the target accelerated domain name and the target origin IP address is not in the list of abnormal origin IP addresses, the target origin IP address is determined as the origin IP address used to obtain video stream data corresponding to the target video stream identifier. When the target CDN node determines that there is no target origin IP address corresponding to the target accelerated domain name in the origin IP address list recorded by the target CDN node, but there is a first candidate origin IP address corresponding to the target accelerated domain name, the target first candidate origin IP address is selected, and it is determined whether the target first candidate origin IP address is in the abnormal origin IP address list; if it is determined that the target first candidate origin IP address is not in the abnormal origin IP address list, the target first candidate origin IP address is determined as the origin IP address used to obtain the video stream data corresponding to the target video stream identifier.

2. The method according to claim 1, characterized in that, The method further includes: When the target CDN node determines that the target's first candidate origin IP address is in the list of abnormal origin IP addresses, it determines whether the duration for which the target's first candidate origin IP address has been in the list of abnormal origin IP addresses is greater than a preset duration. When the target CDN node determines that the duration of the target first candidate origin IP address in the list of abnormal origin IP addresses exceeds a preset duration, it will delete the target first candidate origin IP address from the list of abnormal origin IP addresses and determine the target first candidate origin IP address as the origin IP address used to obtain video stream data corresponding to the target video stream identifier.

3. The method according to claim 2, characterized in that, The method further includes: When the target CDN node determines that the duration of the first candidate origin IP address in the list of abnormal origin IP addresses is no greater than a preset duration, it then determines whether there is a second candidate origin IP address corresponding to the target accelerated domain name. When the target CDN node determines that there is a second candidate origin IP address corresponding to the target accelerated domain name, it selects the target second candidate origin IP address and determines whether the target second candidate origin IP address is in the list of abnormal origin IP addresses. When the target CDN node determines that the target second candidate origin IP address is not in the list of abnormal origin IP addresses, it will select the target second candidate origin IP address as the origin IP address for obtaining video stream data corresponding to the target video stream identifier.

4. The method according to any one of claims 1-3, characterized in that, The method further includes: When the status code of the source IP address used to retrieve the video stream data corresponding to the target video stream identifier is normal and the rate of the source IP address used to retrieve the video stream data corresponding to the target video stream identifier is greater than the rate threshold, the target CDN node adds the source IP address used to retrieve the video stream data corresponding to the target video stream identifier to the list of source IP addresses recorded by the target CDN node.

5. The method according to claim 4, characterized in that, The method further includes: The target CDN node determines whether the status code corresponding to the source IP address received for obtaining video stream data corresponding to the target video stream identifier is abnormal; If the target CDN node determines that the status code corresponding to the source IP address used to obtain the video stream data corresponding to the target video stream identifier is not abnormal, the target CDN node determines whether the rate corresponding to the source IP address used to obtain the video stream data corresponding to the target video stream identifier is greater than the rate threshold. If the target CDN node determines that the rate corresponding to the back-source IP address used to obtain video stream data corresponding to the target video stream identifier is not greater than the rate threshold, the back-source IP address used to obtain video stream data corresponding to the target video stream identifier will be added to the list of abnormal back-source IP addresses, and it will be determined whether there is a third candidate back-source IP address corresponding to the target accelerated domain name. When the target CDN node determines that there is a third candidate origin IP address corresponding to the target accelerated domain name, it selects the target third candidate origin IP address and determines whether the target third candidate origin IP address is in the list of abnormal origin IP addresses. When the target CDN node determines that the target third candidate origin IP address is not in the list of abnormal origin IP addresses, it will determine the target third candidate origin IP address as the origin IP address used to obtain the video stream data corresponding to the target video stream identifier.

6. The method according to any one of claims 1-5, characterized in that, The video stream data corresponding to the target video stream identifier is live stream data.

7. A source retrieval system, characterized in that, The system includes: a client and a target CDN node; A target CDN node is used to receive requests sent by clients, wherein the requests indicate a need to obtain video stream data corresponding to a target video stream identifier. The requests include: a target video stream identifier and a target acceleration domain name corresponding to the target video stream identifier. When it is determined that video stream data corresponding to the target video stream identifier needs to be obtained through origin pull, an origin pull association operation is performed. The origin pull association operation includes: when the origin pull IP address list recorded by the target CDN node contains a target origin pull IP address corresponding to the target acceleration domain name and the target origin pull IP address is not in the abnormal origin pull IP address list, the target origin pull IP address is determined as the origin pull IP address used to obtain the video stream data corresponding to the target video stream identifier; when it is determined that the origin pull IP address list recorded by the target CDN node does not contain a target origin pull IP address corresponding to the target acceleration domain name and a first candidate origin pull IP address corresponding to the target acceleration domain name exists, the first candidate origin pull IP address is selected, and it is determined whether the first candidate origin pull IP address is in the abnormal origin pull IP address list; when it is determined that the first candidate origin pull IP address is not in the abnormal origin pull IP address list, the first candidate origin pull IP address is determined as the origin pull IP address used to obtain the video stream data corresponding to the target video stream identifier.

8. A computer device, characterized in that, include: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of claims 1 to 6.

10. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • CDN node back-to-source scheduling system and method, server and storage medium

    CN115914398A

  • Redirection method, device and system based on HTTPS protocol

    CN116846972A