Back-to-source path determination method, content distribution network, storage medium, and program product

By updating the flow graph and determining candidate return-to-source paths based on the transmission parameters of CDN nodes, the problem of high cost and poor quality of return-to-source paths in CDN is solved, and lower-cost and more efficient live streaming data transmission is achieved.

CN114945046BActive Publication Date: 2024-08-30ALIBABA (CHINA) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210546758.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2024-08-30
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

When performing live broadcast through a content distribution network (CDN), the existing technology fails to effectively take into account the fact that live broadcast data already exists in other CDN nodes except the CDN node corresponding to the push end, resulting in high cost and poor quality of the return path. question.

Method used

By updating the flow graph, determine the candidate back-to-source path from the pull end to the push end, and set the preset cost and actual cost according to the transmission cost in the flow graph, and select the optimal path to reduce the transmission cost of the back-to-source path and make full use of Stream hit characteristics between CDN nodes.

Benefits of technology

The transmission cost of the return-to-source path is reduced, making it more consistent with actual usage, and the transmission quality and efficiency of live streaming data are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114945046B
    Figure CN114945046B
Patent Text Reader

Abstract

The present application provides a method for determining a return-to-source path, a content distribution network, a storage medium, and a program product. The method for determining a return-to-source path includes: updating an original flow graph for representing a return-to-source path of a live stream to a new flow graph corresponding to the current live stream; determining CDN nodes corresponding to the pull-stream end and the push-stream end of the return-to-source path to be established; determining multiple candidate return-to-source paths from the CDN node corresponding to the pull-stream end to the CDN node corresponding to the push-stream end according to transmission parameters of several CDN nodes included in the content distribution network and a new flow graph corresponding to the live stream pulled by the pull-stream end; setting the transmission cost of a portion of the path in the candidate return-to-source path that exists in the new flow graph to a preset cost, and calculating the transmission cost of a portion of the path in the candidate return-to-source path that is outside the new flow graph, to obtain the transmission cost corresponding to the candidate return-to-source path; and determining a target return-to-source path from multiple candidate return-to-source paths according to at least the transmission cost of each of the multiple candidate return-to-source paths.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method for determining a back-to-source path, a content distribution network, a storage medium, and a program product. Background Art

[0002] When live streaming through a content distribution network (CDN), a return path between the streaming end and the streaming end needs to be established through CDN nodes. Generally, the optimal path from the streaming end to the streaming end is obtained as the return path based on the relevant parameters of each CDN node, such as the delay and packet loss rate between CDN nodes, the bandwidth, memory, and CPU of the CDN node itself.

[0003] However, the purpose of establishing the back-to-source path is to enable the CDN node at the pull-stream end to obtain the live streaming data in real time based on the back-to-source path. The above establishment method does not take into account the situation that in addition to the CDN node corresponding to the push-stream end, there are other CDN nodes that already have live streaming data. As a result, the back-to-source path established by the above solution has the problems of high cost and poor quality. Summary of the invention

[0004] In view of this, embodiments of the present application provide a method for determining a back-to-source path, a content distribution network, a storage medium, and a program product to at least partially solve the above-mentioned problems.

[0005] According to a first aspect of an embodiment of the present application, a method for determining a return-to-source path is provided, comprising: for a current live stream transmitted through a content distribution network, updating an original flow graph used to characterize a return-to-source path of the live stream to a new flow graph corresponding to the current live stream, wherein the edges in the flow graph are used to indicate the return-to-source path, and the nodes in the flow graph are used to indicate the CDN nodes through which the return-to-source path passes; determining the CDN nodes corresponding to the pull-stream end and the push-stream end for establishing the return-to-source path; determining multiple candidate return-to-source paths from the CDN node corresponding to the pull-stream end to the CDN node corresponding to the push-stream end according to transmission parameters of several CDN nodes included in the content distribution network and according to the new flow graph corresponding to the live stream pulled by the pull-stream end; setting the transmission cost of a portion of the path in the candidate return-to-source path that exists in the new flow graph to a preset cost, and calculating the transmission cost of a portion of the path in the candidate return-to-source path that is outside the new flow graph, to obtain the transmission cost corresponding to the candidate return-to-source path; and determining a target return-to-source path from the multiple candidate return-to-source paths according to at least the transmission costs of each of the multiple candidate return-to-source paths.

[0006] According to a second aspect of an embodiment of the present application, a content distribution network is provided, comprising: a central node and a service node, the service node comprising a stream pulling service node and a stream pushing service node; the stream pulling service node is used to send a live stream acquisition request to the central node to obtain the live stream data when receiving a pull request for a live stream that is not stored locally; the central node is used to determine the stream pushing end service node corresponding to the live stream according to the live stream acquisition request sent by the service node, and determine a return path from the stream pulling service node to the stream pushing service node by the method as described above; the stream pulling service node obtains the live stream through the return path.

[0007] According to a third aspect of an embodiment of the present application, a central node of a content distribution network is provided, comprising: a flow information convergence unit, for updating, for a current live stream transmitted through the content distribution network, an original flow graph for characterizing a return path of a live stream into a new flow graph corresponding to the current live stream, wherein the edges in the flow graph are used to indicate the return path, and the nodes in the flow graph are used to indicate the CDN nodes through which the return path passes; a path planning unit, for determining the CDN nodes corresponding to the pull end and the push end of the return path to be established; determining, according to transmission parameters of several CDN nodes included in the content distribution network and according to the new flow graph corresponding to the live stream pulled by the pull end, a plurality of candidate return paths from the CDN node corresponding to the pull end to the CDN node corresponding to the push end; setting the transmission cost of a portion of the path in the candidate return path that exists in the new flow graph to a preset cost, and calculating the transmission cost of a portion of the path in the candidate return path that is outside the new flow graph, to obtain the transmission cost corresponding to the candidate return path; determining a target return path from the plurality of candidate return paths at least according to the transmission costs of each of the plurality of candidate return paths.

[0008] According to a fourth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described above is implemented.

[0009] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising computer instructions, wherein the computer instructions instruct a computing device to perform operations corresponding to the method described above.

[0010] According to the solution provided in the embodiment of the present application, for the current live stream transmitted through the content distribution network, the original flow graph used to characterize the return path of the live stream is updated to a new flow graph corresponding to the current live stream, the edges in the flow graph are used to indicate the return path, and the nodes in the flow graph are used to indicate the CDN nodes through which the return path passes. Thus, the return path corresponding to the current live stream can be reflected through the flow graph; the CDN nodes corresponding to the pull end and the push end of the return path to be established are determined; according to the transmission parameters of several CDN nodes included in the content distribution network and the new flow graph corresponding to the live stream pulled by the pull end, multiple candidate return paths from the CDN node corresponding to the pull end to the CDN node corresponding to the push end are determined; the transmission cost of the part of the path in the candidate return path that exists in the new flow graph is set to the preset cost, and the position of the candidate return path is calculated The transmission cost of some paths outside the new flow graph is used to obtain the transmission cost corresponding to the candidate return-to-source path. Therefore, the flow hit characteristics of the content distribution network can be considered, and the transmission cost of the candidate return-to-source path can be adjusted accordingly, so that the determined transmission cost is more in line with the transmission cost actually consumed when returning to the source; at least according to the transmission costs of each of the multiple candidate return-to-source paths, a target return-to-source path is determined from the multiple candidate return-to-source paths. Compared with the return-to-source path determined by the general method, the cost of the return-to-source path determined by the solution provided in this embodiment is lower and more in line with actual usage; in addition, in this embodiment, for the current live stream transmitted through the content distribution network, the original flow graph used to characterize the return-to-source path of the live stream is updated to a new flow graph corresponding to the current live stream, and the transmission status of the live stream transmitted in the content distribution network can be timely understood through the flow graph, and timely adjustments can be made. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0012] Figure 1 A schematic diagram of a content distribution network provided in an embodiment of the present application;

[0013] Figure 2 A structural block diagram of a central node and a service node of a content distribution network provided in an embodiment of the present application;

[0014] Figure 3 A schematic diagram of data processing of a central node provided in an embodiment of the present application;

[0015] Figure 4A flowchart of a method for determining a back-to-source path provided in an embodiment of the present application;

[0016] Figure 5 A schematic diagram of a flow chart provided in an embodiment of the present application;

[0017] Figure 6 A schematic diagram of a candidate back-to-source path provided in an embodiment of the present application;

[0018] Figure 7 A flowchart of another method for determining a back-to-source path provided in an embodiment of the present application;

[0019] Figure 8 A schematic diagram of replacing part of the candidate back-to-source paths provided in an embodiment of the present application;

[0020] Fig. 9 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.

[0022] In order to explain the solution provided by this embodiment in more detail, the principle of live broadcasting through the content distribution network CDN is first exemplified below.

[0023] like Figure 1 FIG. 1 is a schematic diagram of a content distribution network.

[0024] The nodes in the content distribution network can be divided into central nodes and service nodes. The central node is used to manage the service nodes to provide content transmission services through the service nodes. The nodes 1-25 in the figure can be service nodes, and the node 26 can be a central node.

[0025] Through the central node, node 1 can be controlled as a push-end node (i.e., the CDN node corresponding to the push-end), and other nodes 2-10 can be controlled as relay nodes and pull-end nodes (i.e., the CDN nodes corresponding to the pull-end). It should be noted that the pull-end node can also be used as a relay node.

[0026] The push end node is used to request live stream data from the push end, the pull end node is used to send live stream data to the pull end, the relay node can be used to forward the live stream data, the push end node can be predetermined, and the pull end node can be determined in real time each time a new pull end is added.

[0027] Content distribution networks can be used to transmit various content data such as video, audio, text, etc. The data transmitted by content distribution networks can be divided into two categories: one is the existing data that has been pre-stored in the network, and the other is the data that needs to be obtained in real time, such as live video data.

[0028] When transmitting existing data, the video data can be pre-cached in a CDN node that is closer to the streaming end; however, live video data is updated in real time and cannot be pre-cached.

[0029] In order to provide live video data to the streaming end, the CDN node corresponding to the streaming end needs to obtain the video stream from the streaming end in a timely manner. To this end, it is necessary to establish a return path from the CDN node corresponding to the streaming end to the CDN node of the streaming end. The CDN node corresponding to the streaming end can request the live stream in real time from the CDN node corresponding to the streaming end through the return path.

[0030] Generally, when establishing a specific back-to-source path, the back-to-source path is dynamically planned for the CDN node corresponding to the pull-stream end based on the relevant parameters of each CDN node in the content distribution network, such as the delay and packet loss rate between CDN nodes, the CDN node's own bandwidth, memory, CPU, etc. However, this method does not take into account the situation that in addition to the CDN node corresponding to the push-stream end, there are other CDN nodes that already have live broadcast data, resulting in a high cost for the back-to-source path established in the above manner.

[0031] To this end, an embodiment of the present application provides a solution for determining a return-to-source path, which can reduce the cost of transmitting live streaming data along the planned return-to-source path.

[0032] It should be noted that the content distribution network includes a central node and a service node, the service node is a CDN node, and the service node includes a pull stream service node and a push stream service node; the pull stream service node is used to send a live stream acquisition request to the central node to obtain the live stream data when receiving a pull request for a live stream that is not stored locally; the central node is used to determine the push stream service node corresponding to the live stream according to the live stream acquisition request sent by the service node, and determine the return path from the pull stream service node to the push stream service node through the method provided in subsequent embodiments; the pull stream service node obtains the live stream through the return path.

[0033] Specifically, see Figure 2, shows a structural block diagram of a central node and a service node of a content distribution network. As shown in the figure, the central node may include: a flow information aggregation unit and a path planning unit.

[0034] The stream information aggregation unit is used to update the original stream graph used to characterize the back-to-source path of the live stream transmitted through the content distribution network to a new stream graph corresponding to the current live stream, wherein the edges in the stream graph are used to indicate the back-to-source path, and the nodes in the stream graph are used to indicate the CDN nodes through which the back-to-source path passes.

[0035] In this embodiment, the CDN node can report the live stream information of its own transmission to the central node. After the stream information aggregation unit of the central node receives the live stream information reported by each CDN node, it can obtain the live stream transmitted by each CDN node and the transmission direction of the live stream, and aggregate the information corresponding to the same live stream into a group based on the live stream. Then, based on the information corresponding to each live stream, the original flow graph used to characterize the return path of the live stream can be updated to a new flow graph corresponding to the current live stream.

[0036] A path planning unit is used to determine the CDN nodes corresponding to the pull end and the push end of the back-to-source path to be established; determine multiple candidate back-to-source paths from the CDN node corresponding to the pull end to the CDN node corresponding to the push end according to the transmission parameters of the multiple CDN nodes included in the content distribution network and the new flow graph corresponding to the live stream pulled by the pull end; set the transmission cost of the part of the path in the candidate back-to-source path that exists in the new flow graph to the preset cost, and calculate the transmission cost of the part of the path of the candidate back-to-source path that is outside the new flow graph to obtain the transmission cost corresponding to the candidate back-to-source path; determine the target back-to-source path from the multiple candidate back-to-source paths at least according to the transmission cost of each of the multiple candidate back-to-source paths.

[0037] Optionally, in this embodiment, the path planning unit may include multiple parallel path planning processes LDRM, which are used to process live stream acquisition requests sent by service nodes of several content distribution networks to obtain the live stream data; one of the multiple path planning processes obtains a new flow graph corresponding to the current live stream from the flow information aggregation unit and updates it to the storage unit; the other path planning processes among the multiple path planning processes except the path planning process used to update the flow graph obtain the new flow graph from the storage unit.

[0038] Specifically, since the central node manages multiple service nodes, the central node may simultaneously receive live stream acquisition requests for obtaining live stream data sent by multiple service nodes. In order to increase the speed of processing requests, the path planning unit may include multiple parallel path planning processes LDRM. Then, among the multiple path planning processes, except for a path planning process used to update the flow graph, the other path planning processes obtain the new flow graph from the storage unit.

[0039] Further, see Figure 3 The central node may have one or more central computer rooms. The figure takes two as examples for illustrative explanation. The dotted box outside a path planning process corresponds to a central computer room. Among the multiple path planning processes running in the same central computer room, the other path planning processes except the one for updating the flow graph obtain the new flow graph from the storage unit. The storage unit may be a Redis database in the figure, and each central computer room corresponds to a Redis database.

[0040] like Figure 3 As shown, the central node may also include a detection process, which can be used to send detection messages to each CDN node to detect the delay or packet loss rate, and obtain the delay and packet loss rate of the CDN node. One of the multiple path planning processes LDRM can be used for the detection process to detect the delay and packet loss rate of the CDN node, and can be used to obtain the flow graph from the flow information aggregation unit, and update the delay, packet loss rate and flow graph to the Redis database by writing (for example, set). Other path planning processes LDRM can obtain the delay, packet loss rate and flow graph from the Redis database by reading (for example, get), and determine the return path accordingly.

[0041] The following is a detailed description of the steps for the central node to determine the back-to-source path.

[0042] Figure 4 The flowchart of a method for determining a back-to-source path provided in an embodiment of the present application is as follows. The following steps S401-S405 are performed by a central node, as shown in the figure, and include:

[0043] S401: For a current live stream transmitted through a content distribution network, an original stream graph used to represent a back-to-source path of the live stream is updated to a new stream graph corresponding to the current live stream.

[0044] When a live stream is transmitted through a content distribution network, each live stream may correspond to a live stream ID, and the corresponding live stream data may be located in the content distribution network through the live stream ID.

[0045] In this embodiment, the flow graph corresponding to the live stream can be maintained, and the flow graph can be updated for the current live stream transmitted by the content distribution network. The original flow graph used to represent the return-to-source path of the live stream can be updated to a new flow graph corresponding to the current live stream, so that the new flow graph can represent the return-to-source path of the current live stream.

[0046] Specifically, the flow graph may include nodes and edges, the edges in the flow graph are used to indicate the back-to-source path, and the nodes in the flow graph are used to indicate the CDN nodes that the back-to-source path passes through.

[0047] For example, see Figure 5 , shows a schematic diagram of a flow graph, as shown in the figure, the flow graph may include a CDN node S corresponding to the push end, a relay node R, and a node E corresponding to the pull end. The relay node is used to forward data. In addition, as shown in the figure, the CDN node E corresponding to the pull end can also be used as a relay node.

[0048] pass Figure 5 In the back-to-source path shown in the flow graph, the node E corresponding to the stream pulling end can request the live stream data in real time from the node S corresponding to the stream pushing end.

[0049] In this step, the original flow graph used to represent the return path of the live stream can be updated to a new flow graph corresponding to the current live stream at a preset interval; the original flow graph used to represent the return path of the live stream can also be updated to a new flow graph corresponding to the current live stream in real time; or, when the live stream transmitted by a certain CDN node changes, the changed current live stream can be reported, and the central node can update the original flow graph used to represent the return path of the live stream to a new flow graph corresponding to the current live stream based on the data reported by the CDN node.

[0050] For ease of understanding, the CDN nodes other than the CDN node corresponding to the streaming end in the flow graph are referred to as flow graph nodes. That is, the relay nodes R other than the CDN node S corresponding to the streaming end and the node E corresponding to the streaming end in the flow graph are all referred to as flow graph nodes.

[0051] S402: Determine the CDN nodes corresponding to the stream pulling end and the stream pushing end of the back-to-source path to be established.

[0052] In this step, the CDN node corresponding to the stream pulling end is used to send live stream data to the stream pulling end, and the CDN node corresponding to the stream pushing end is used to request live stream data from the stream pushing end. The CDN node corresponding to the stream pushing end can be determined when the live broadcast is started, and the CDN node corresponding to the stream pulling end can be determined each time a new stream pulling end is added.

[0053] In this step, the CDN node that is closer to the stream pulling end or the stream pushing end can be determined as its corresponding CDN node according to the location information of the stream pulling end or the stream pushing end. Of course, the above is only an example, and other methods for determining the CDN nodes corresponding to the stream pulling end and the stream pushing end are also within the protection scope of this application.

[0054] When a new stream pulling end requests to obtain live stream data, the CDN node corresponding to the stream pulling end can be determined. If the CDN node corresponding to the stream pulling end stores the live stream data requested by the stream pulling end (that is, the CDN node already exists in the new stream graph corresponding to the current live stream), the live stream data can be directly pushed to the stream pulling end. If the CDN node does not store the live stream data requested by the stream pulling end (that is, the CDN node does not exist in the new stream graph corresponding to the current live stream), a back-to-source path needs to be established for the CDN node.

[0055] After the back-to-source path is established, the CDN node can perform back-to-source based on the back-to-source path. That is, when the CDN node does not have the data requested by the stream-pulling end, it will read the data from the live broadcast source (the CDN node corresponding to the stream-pushing end) according to the back-to-source path.

[0056] S403: According to the transmission parameters of several CDN nodes included in the content distribution network and the new flow graph corresponding to the live stream pulled by the stream pulling end, determine multiple candidate back-to-source paths from the CDN node corresponding to the stream pulling end to the CDN node corresponding to the stream pushing end.

[0057] When it is determined that a return path needs to be established, the transmission parameters of several CDN nodes included in the content distribution network can be obtained first, and a new flow graph corresponding to the live stream pulled by the stream pulling end can be determined. The transmission parameters of the CDN nodes can be used to select CDN nodes that can serve as nodes on the return path. The new flow graph can be used to characterize the current return path of the live stream. The live stream data exists in all CDN nodes included in the new flow graph.

[0058] There is a flow hit feature in the content distribution network, that is, during the process of returning to the source along the return path, if the requested data already exists in a CDN node, the data in the CDN node is directly obtained without executing the subsequent return path.

[0059] If the general solution is followed to determine the return path based on the various parameter information of the CDN node, but the flow hit characteristics of the content distribution network are not taken into consideration, the determined return path may be too long or it may require the addition of relay nodes that do not exist in the new flow graph, which in turn may lead to high costs when returning to the source according to the determined return path.

[0060] In this step, since the new flow graph can be used to characterize the return path of the current live stream, the multiple candidate return paths determined according to the new flow graph can fully consider the established return paths corresponding to the current live stream. Combined with the subsequent step of determining the transmission cost, the transmission cost of the determined target return path can be reduced.

[0061] S404: Set the transmission cost of the partial path of the candidate back-to-source path that exists in the new flow graph as a preset cost, and calculate the transmission cost of the partial path of the candidate back-to-source path that is outside the new flow graph to obtain the transmission cost corresponding to the candidate back-to-source path.

[0062] The candidate back-to-source path is the path from the CDN node corresponding to the stream pulling end to the CDN node corresponding to the stream pushing end. Part of the candidate back-to-source path may belong to the new stream graph.

[0063] like Figure 6 As shown, the CDN node corresponding to the stream pulling end, that is, the node that needs to create a new return path, is shown, marked as E (NEW) in the figure, and the three candidate return paths are determined, marked as candidate return paths 1, 2, and 3 respectively.

[0064] The solid lines in the figure correspond to the flow graph, and the dotted lines correspond to the partial paths that need to be added. Candidate return-to-source path 1 can go directly back to the CDN node corresponding to the streaming end after passing through the relay node R that does not exist in the flow graph; candidate return-to-source path 2 can go back to the CDN node corresponding to the streaming end through the flow graph nodes and paths that exist in the flow graph; candidate return-to-source path 3 can go back to the CDN node corresponding to the streaming end after passing through a relay node R that does not exist in the flow graph, and then through the flow graph nodes and paths that exist in the flow graph.

[0065] Transmission cost refers to the cost of transmitting live streaming data between CDN nodes along the path, such as the bandwidth and traffic consumed in transmitting live streaming data.

[0066] When determining the transmission cost corresponding to the candidate return-to-source path, due to the stream hit feature in the content distribution network, that is, the live stream data requested by the stream pulling end already exists in the stream graph node, and can be directly hit and returned to the stream pulling end without continuing to return to the source according to the return-to-source path. Therefore, the transmission cost of some paths in the candidate return-to-source path that exist in the new stream graph can be directly set to the preset cost, so that the determined transmission cost is more in line with the actual transmission cost consumed when returning to the source.

[0067] The preset cost may be determined by a person skilled in the art according to the cost incurred by allocating a new back-to-source path to a CDN node. Preferably, if no cost is incurred, the preset cost may be zero cost.

[0068] For the partial paths in the candidate back-to-source paths that do not exist in the new flow graph, normal back-to-source operations are still required. Therefore, the transmission costs corresponding to the partial paths in the candidate back-to-source paths that do not exist in the new flow graph can be calculated.

[0069] The transmission cost of the candidate back-to-source path may be the sum of a preset cost and the transmission costs corresponding to some paths that do not exist in the new flow graph.

[0070] S405: Determine a target back-to-source path from the multiple candidate back-to-source paths at least according to the transmission costs of the multiple candidate back-to-source paths.

[0071] According to the transmission costs of the multiple candidate back-to-source paths, a target back-to-source path can be determined from the multiple candidate back-to-source paths and sent to the CDN node corresponding to the stream pulling end.

[0072] It should be noted that there may be multiple target return-to-source paths, and all of them are sent to the CDN node corresponding to the stream pulling end. The CDN node can determine the actual return-to-source path to be used based on the actual return-to-source situation and perform return-to-source.

[0073] The present application is illustrated below through a specific scenario.

[0074] The central node of the content distribution network can receive information about the live stream data transmitted by each CDN node. The central node can update the original flow graph used to represent the return path of the live stream to a new flow graph corresponding to the current live stream for each current live stream transmitted through the content distribution network. Each live stream can correspond to a flow graph.

[0075] When users watch live broadcasts through their mobile phones, the mobile phones (i.e., the streaming end) can pull live streaming data from nearby CDN nodes. If the live streaming data requested by the mobile phone does not exist in the CND node, the CDN node can request the central node to establish a back-to-source path to obtain the live streaming data.

[0076] When the central node receives a request to establish a back-to-source path from the CDN node corresponding to the stream pulling end, it can determine the CDN node at the streaming end corresponding to the live stream based on the live stream information carried in the request, and start determining the back-to-source path between the CDN node corresponding to the stream pulling end that sent the request and the CDN node corresponding to the streaming end of the live stream.

[0077] When specifically determining the return-to-source path, you can first obtain a new flow graph corresponding to the live stream requested by the CDN node corresponding to the stream pulling end to determine which CDN nodes currently have live stream data, and then determine multiple candidate return-to-source paths.

[0078] After determining multiple candidate return-to-source paths, the transmission cost of the partial paths in the candidate return-to-source paths that exist in the new flow graph can be set to a preset cost, and the transmission cost of the partial paths of the candidate return-to-source paths that are outside the new flow graph can be calculated to obtain the transmission cost corresponding to the candidate return-to-source path. Since setting the transmission cost of the partial paths that exist in the new flow graph separately is more in line with the flow hit characteristics of the content distribution network, the transmission cost of the candidate return-to-source path determined by the solution provided by this embodiment is more in line with the actual transmission cost consumed when returning to the source.

[0079] The transmission cost of the partial paths existing in the new flow graph may be smaller than that of the partial paths located outside the new flow graph.

[0080] After determining the transmission costs of each of the multiple candidate return-to-source paths, you can also determine the transmission time, packet loss rate and other data corresponding to each of the candidate return-to-source paths, and determine the target return-to-source path from the multiple candidate return-to-source paths based on the transmission cost, transmission time, packet loss rate and other data.

[0081] The central node can send the determined target return path to the CDN node corresponding to the stream pulling end. The CDN node corresponding to the stream pulling end can obtain the live stream data by returning to the source according to the target return path, and provide it to the user's mobile phone, etc. for the user to watch the live broadcast.

[0082] For the specific method of returning to the source, please refer to the relevant technology and will not be described in detail here.

[0083] The solution provided by this embodiment is to update the original flow graph used to characterize the return path of the live stream to a new flow graph corresponding to the current live stream, with respect to the current live stream transmitted through the content distribution network, wherein the edges in the flow graph are used to indicate the return path, and the nodes in the flow graph are used to indicate the CDN nodes through which the return path passes. Thus, the return path corresponding to the current live stream can be reflected through the flow graph; the CDN nodes corresponding to the pull end and the push end of the return path to be established are determined; according to the transmission parameters of several CDN nodes included in the content distribution network and the new flow graph corresponding to the live stream pulled by the pull end, multiple candidate return paths from the CDN node corresponding to the pull end to the CDN node corresponding to the push end are determined; the transmission cost of the part of the path in the candidate return path that exists in the new flow graph is set to the preset cost, and the location of the candidate return path in the return path is calculated. The transmission cost of some paths outside the new flow graph is obtained to obtain the transmission cost corresponding to the candidate back-to-source path. Therefore, the flow hit characteristics of the content distribution network can be considered, and the transmission cost of the candidate back-to-source path can be adjusted accordingly, so that the determined transmission cost is more consistent with the transmission cost actually consumed when returning to the source; at least according to the transmission costs of each of the multiple candidate back-to-source paths, a target back-to-source path is determined from the multiple candidate back-to-source paths. Compared with the back-to-source path determined by the general method, the back-to-source path determined by the solution provided by this embodiment has a lower cost and is more consistent with actual usage. In addition, in this embodiment, for the current live stream transmitted through the content distribution network, the original flow graph used to characterize the back-to-source path of the live stream is updated to a new flow graph corresponding to the current live stream, and the transmission status of the live stream transmitted in the content distribution network can be timely understood through the flow graph, and timely adjustments can be made.

[0084] The method for determining the back-to-source path of this embodiment may be executed by any appropriate electronic device with data processing capability, including but not limited to: a server, a mobile terminal (such as a mobile phone, a PAD, etc.) and a PC, etc.

[0085] See also Figure 7 , shows a flow chart of a method for determining a back-to-source path, the following steps S701-S707 are executed by the central node, as shown in the figure, which includes:

[0086] S701: For a current live stream transmitted through a content distribution network, an original stream graph used to represent a back-to-source path of the live stream is updated to a new stream graph corresponding to the current live stream.

[0087] Optionally, in this embodiment, step S701 may include: obtaining the live stream information of each CDN node's own transmission reported in real time, the live stream information including the live stream transmitted by the CDN node and the transmission direction of the live stream; performing information aggregation on the obtained live stream information to obtain the CDN node corresponding to the current live stream and the transmission path of the live stream between the CDN nodes; and updating the original flow graph used to characterize the return path of the live stream to a new flow graph corresponding to the current live stream according to the CDN node corresponding to the current live stream and the transmission path of the live stream between the CDN nodes.

[0088] Specifically, the stream information aggregation unit of the central node can obtain the live stream information reported by the CDN node, aggregate the information based on the live stream, and update the original stream graph corresponding to the live stream to a new stream graph corresponding to the current live stream based on the aggregated information.

[0089] S702: Determine the CDN nodes corresponding to the stream pulling end and the stream pushing end for establishing the back-to-source path.

[0090] S703: Based on a pre-set routing strategy, multiple candidate back-to-source paths from the stream pulling end to the stream pushing end are determined according to transmission parameters of several CDN nodes included in the content distribution network.

[0091] In this embodiment, the pre-set routing strategy can be determined by those skilled in the art according to requirements, and this embodiment does not limit this.

[0092] It should be noted that step S703 may be executed by the central node or by other nodes, and the determined candidate back-to-source path is sent to the central node, which is not limited in this embodiment.

[0093] Optionally, in this embodiment, the determined candidate return paths may be three, which may be specifically as follows: Figure 8 As shown by the dashed and dotted lines on the left side, Figure 8 The single solid lines in are the edges of the new flow graph.

[0094] S704: Determine, according to the new flow graph corresponding to the live stream pulled by the stream pulling end, the first CND node in the candidate back-to-source path that exists in the new flow graph.

[0095] Optionally, step S704 may specifically include: traversing the CDN nodes in the candidate back-to-source path along the direction from the pull end to the push end, and determining whether the CDN node exists in the new flow graph; and determining the first CDN node determined to exist in the new flow graph as the first CDN node.

[0096] Since there is a stream hit feature in the content distribution network, that is, when tracing back to the source along the tracing back path, if there is live streaming data in a certain CDN node on the tracing back path, the tracing back to the source will not be continued. Therefore, the first CDN node determined to exist in the new stream graph in the tracing back path from the stream pulling end to the stream pushing end can be determined as the first CDN node, and the candidate tracing back path is divided into two parts based on this. The tracing back path after the first CDN node is no longer executed during the actual tracing back to the source.

[0097] S705: Replace a portion of the path between the first CDN node and the streaming end node in the candidate back-to-source path with a path existing in the new flow graph, so as to adjust the candidate back-to-source path.

[0098] Since the actual return to source will not continue after returning to the first CDN node, and the live streaming data in the first CDN node is obtained according to the return to source path that has been established in the new flow graph, it can be considered that part of the candidate return to source path after the first CDN node in the candidate return to source path is the established return to source path. In this step, the part of the path between the first CDN node and the streaming end node in the candidate return to source path is replaced with the path existing in the new flow graph to adjust the candidate return to source path, and the adjusted candidate return to source path is closer to the path when the return to source is actually performed.

[0099] The adjusted candidate back-to-source paths can be Figure 8 As shown on the right, the partial path indicated by the dashed line is replaced by the existing path in the flow graph.

[0100] S706: Set the transmission cost of the partial path of the candidate back-to-source path that exists in the new flow graph as a preset cost, and calculate the transmission cost of the partial path of the candidate back-to-source path that is outside the new flow graph to obtain the transmission cost corresponding to the candidate back-to-source path.

[0101] Optionally, in this embodiment, the transmission cost of the partial path in the candidate return-to-source path that exists in the new flow graph can be set to zero cost; and the transmission cost of the partial path of the candidate return-to-source path that is outside the new flow graph can be calculated as the transmission cost corresponding to the candidate return-to-source path.

[0102] Specifically, the transmission cost can be calculated based on the bandwidth and traffic consumed by the CDN node to send or receive live streaming data. The calculation method can be referred to related technologies and will not be repeated here.

[0103] S707: Determine a target back-to-source path from the multiple candidate back-to-source paths at least according to the transmission costs of the multiple candidate back-to-source paths.

[0104] Optionally, in any embodiment of the present application, the method further includes: sending a detection message to the CDN node, obtaining transmission quality information returned by the CDN node, and determining the transmission quality of each of the multiple candidate return-to-source paths based on the transmission quality information. Then step S707 may include: determining a target return-to-source path from the multiple candidate return-to-source paths based on the transmission cost and transmission quality of each of the multiple candidate return-to-source paths.

[0105] In this embodiment, the central node can send a detection message to each CDN node through the detection process, and receive the transmission quality information returned by each CDN node, which may include latency and packet loss rate, etc. The path planning unit of the central node can calculate the transmission quality of the candidate back-to-source path based on this.

[0106] Specifically according to the transmission cost and transmission quality of each of the multiple candidate return-to-source paths, when determining the target return-to-source path from the multiple candidate return-to-source paths, different weights can be set for the transmission cost and the transmission quality according to a preset scoring strategy, and the transmission cost and the transmission quality are specifically weighted and summed to obtain the scores of the respective candidate return-to-source paths, and the target return-to-source path is determined according to the scores.

[0107] The specific weights can be determined by technicians in this field according to needs. If the emphasis is on transmission cost, the weight of transmission cost is set higher; if the emphasis is on transmission quality, the weight of transmission quality is set higher.

[0108] The solution provided in this embodiment uses a flow graph to adjust the candidate planned paths based on the existing routing strategy to reduce the transmission cost of the candidate return-to-source paths, and can make the determined candidate return-to-source paths more consistent with the actual return-to-source situation, and can minimize the length of the return-to-source path to improve the playback quality.

[0109] It should also be noted that, for the current live stream transmitted through the content distribution network, the original flow graph used to represent the return path of the live stream is updated to a new flow graph corresponding to the current live stream. The flow graph can also be used to timely understand the transmission status of the live stream transmitted in the content distribution network, and the topological structure of the return path reflected in the flow graph can be used to re-plan the existing return path, such as reducing the delay of the return path, reducing the number of relay nodes, etc.

[0110] Reference Fig. 9 , shows a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.

[0111] like Fig. 9As shown, the electronic device may include: a processor (processor) 902 , a communication interface (Communications Interface) 904 , a memory (memory) 906 , and a communication bus 908 .

[0112] in:

[0113] The processor 902 , the communication interface 904 , and the memory 906 communicate with each other via a communication bus 908 .

[0114] The communication interface 904 is used to communicate with other electronic devices or servers.

[0115] The processor 902 is used to execute the program 910, and specifically can execute the relevant steps in the above-mentioned method for determining the back-to-source path embodiment.

[0116] Specifically, the program 910 may include program codes, which include computer operation instructions.

[0117] The processor 902 may be a processor CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0118] The memory 906 is used to store the program 910. The memory 906 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0119] The specific implementation of each step in program 910 can refer to the corresponding description of the corresponding steps and units in the above-mentioned method for determining the back-to-source path, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.

[0120] An embodiment of the present application further provides a computer program product, including computer instructions, which instruct a computing device to execute operations corresponding to any method for determining a back-to-source path in the above-mentioned multiple method embodiments.

[0121] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.

[0122] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method for determining the return source path described herein is implemented. In addition, when a general-purpose computer accesses code for implementing the method for determining the return source path shown here, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method for determining the return source path shown here.

[0123] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0124] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.

Claims

1. A method for determining a back-to-source path, comprising: For the current live stream transmitted through the content distribution network, the original flow graph used to represent the back-to-source path of the live stream is updated to a new flow graph corresponding to the current live stream, where the edges in the flow graph are used to indicate the back-to-source path, and the nodes in the flow graph are used to indicate the CDN nodes that the back-to-source path passes through; Determine the CDN nodes corresponding to the pull end and the push end of the back-to-source path to be established; Determine, according to the transmission parameters of several CDN nodes included in the content distribution network and according to the new flow graph corresponding to the live stream pulled by the stream pulling end, multiple candidate back-to-source paths from the CDN node corresponding to the stream pulling end to the CDN node corresponding to the stream pushing end; The transmission cost of the partial path in the candidate back-to-source path that exists in the new flow graph is set as a preset cost, and the transmission cost of the partial path in the candidate back-to-source path that is outside the new flow graph is calculated to obtain the transmission cost corresponding to the candidate back-to-source path; A target back-to-source path is determined from the plurality of candidate back-to-source paths at least according to the transmission costs of the plurality of candidate back-to-source paths.

2. The method according to claim 1, wherein: The determining, according to the transmission parameters of the plurality of CDN nodes included in the content distribution network and the new flow graph corresponding to the live stream pulled by the stream pulling end, a plurality of candidate back-to-source paths from the CDN node corresponding to the stream pulling end to the CDN node corresponding to the stream pushing end includes: Based on a pre-set routing strategy, multiple candidate back-to-source paths from the stream pulling end to the stream pushing end are determined according to transmission parameters of several CDN nodes included in the content distribution network; Determine, according to a new stream graph corresponding to the live stream pulled by the stream pulling end, a first CDN node in the candidate back-to-source path that exists in the new stream graph; A portion of the path between the first CDN node and the streaming end node in the candidate back-to-source path is replaced with a path existing in the new flow graph, so as to adjust the candidate back-to-source path.

3. The method according to claim 2, wherein: The determining, according to the new flow graph corresponding to the live stream pulled by the stream pulling end, a first CDN node in the candidate back-to-source path that exists in the new flow graph includes: Traversing the CDN nodes in the candidate back-to-source path along the direction from the stream pulling end to the stream pushing end, and determining whether the CDN node exists in the new stream graph; A first CDN node determined to exist in the new flow graph is determined as the first CDN node.

4. The method according to claim 1, wherein: The step of setting the transmission cost of a portion of the candidate return-to-source path that exists in the new flow graph as a preset cost, and calculating the transmission cost of a portion of the candidate return-to-source path that is outside the new flow graph to obtain the transmission cost corresponding to the candidate return-to-source path includes: Setting the transmission cost of some paths in the candidate back-to-source paths that exist in the new flow graph to zero cost; The transmission cost of the partial path of the candidate back-to-source path outside the new flow graph is calculated as the transmission cost corresponding to the candidate back-to-source path.

5. The method according to claim 1, wherein: The updating of the original flow graph used to represent the back-to-source path of the live stream to a new flow graph corresponding to the current live stream, for the current live stream transmitted through the content distribution network, includes: Obtaining live streaming information transmitted by each CDN node reported in real time, wherein the live streaming information includes the live streaming transmitted by the CDN node and the transmission direction of the live streaming; Aggregating the obtained live stream information to obtain a CDN node corresponding to the current live stream and a transmission path of the live stream between CDN nodes; According to the CDN node corresponding to the current live stream and the transmission path of the live stream between the CDN nodes, the original flow graph used to characterize the return path of the live stream is updated to a new flow graph corresponding to the current live stream.

6. The method according to claim 1, wherein: The method further comprises: Sending a detection message to the CDN node to obtain transmission quality information returned by the CDN node, and determining the transmission quality of each of the plurality of candidate back-to-source paths according to the transmission quality information; The step of determining a target back-to-source path from the plurality of candidate back-to-source paths at least according to the transmission costs of the plurality of candidate back-to-source paths, comprises: According to the transmission costs and transmission qualities of the multiple candidate back-to-source paths, a target back-to-source path is determined from the multiple candidate back-to-source paths.

7. A content distribution network, comprising: Central nodes and service nodes, wherein the service nodes include stream pulling service nodes and stream pushing service nodes; The stream pulling service node is used for sending a live stream acquisition request for acquiring the live stream data to the central node when receiving a pull request for a live stream that is not stored locally; The central node is used to determine the streaming service node corresponding to the live stream according to the live stream acquisition request sent by the service node, and determine the back-to-source path from the streaming service node to the streaming service node by the method according to any one of claims 1 to 6; The stream pulling service node obtains the live stream through the back-to-source path.

8. A central node of a content distribution network, comprising: A stream information aggregation unit, for updating, for a current live stream transmitted through a content distribution network, an original stream graph used to characterize a back-to-source path of the live stream into a new stream graph corresponding to the current live stream, wherein the edges in the stream graph are used to indicate the back-to-source path, and the nodes in the stream graph are used to indicate CDN nodes that the back-to-source path passes through; A path planning unit, used to determine the CDN nodes corresponding to the pull end and the push end of the back-to-source path to be established; According to the transmission parameters of several CDN nodes included in the content distribution network and the new flow graph corresponding to the live stream pulled by the stream pulling end, multiple candidate return-to-source paths from the CDN node corresponding to the stream pulling end to the CDN node corresponding to the stream pushing end are determined; the transmission cost of the partial path in the candidate return-to-source path that exists in the new flow graph is set to a preset cost, and the transmission cost of the partial path of the candidate return-to-source path that is outside the new flow graph is calculated to obtain the transmission cost corresponding to the candidate return-to-source path; A target back-to-source path is determined from the plurality of candidate back-to-source paths at least according to the transmission costs of the plurality of candidate back-to-source paths.

9. The central node according to claim 8, wherein: The path planning unit includes a plurality of parallel path planning processes, which are used to process live stream acquisition requests sent by service nodes of a plurality of content distribution networks to acquire the live stream data; One of the plurality of path planning processes obtains a new flow graph corresponding to the current live stream from the flow information aggregation unit, and updates the new flow graph to the storage unit; The other path planning processes among the plurality of path planning processes except the path planning process for updating the flow graph obtain the new flow graph from the storage unit.

10. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

11. A computer program product, comprising computer instructions, wherein the computer instructions instruct a computing device to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Source return optimization method and device, and electronic equipment

    CN111555918A

  • Data back-to-source method, server and storage medium

    CN113542058A

  • Live broadcast source returning method and device

    CN114501073A

  • Stream pulling control method, device and system

    WO2017096841A1