Path planning method, CDN connection establishment method, device and storage medium

The CDN node requests the routing device to dynamically plan the return-to-origin path and selects a suitable path according to the routing strategy. This solves the problem of breaking the CDN node hierarchy boundaries caused by the dispersed user groups, and improves the video content distribution speed and user experience.

CN113301364BActive Publication Date: 2024-09-06ALIBABA GROUP HOLDING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110007860.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-05
Publication Date
2024-09-06
Estimated Expiration
2041-01-05

AI Technical Summary

Technical Problem

In live broadcast and on-demand video applications, the dispersion of user groups has led to the breakdown of hierarchical boundaries between CDN nodes. The original static return-to-source path is not applicable. How to dynamically plan a suitable return-to-source path to improve the distribution speed and user experience of video content.

Method used

Provides a path planning method. The CDN node sends a path planning request to the routing device. The routing device dynamically plans and returns multiple return-to-origin path information based on multiple routing strategies. The CDN node establishes a connection with the origin site based on this information. Support Quality priority, cost priority and comprehensive routing strategy.

Benefits of technology

It realizes dynamic return-to-origin path planning when user groups are dispersed, improves the distribution speed and user experience of video content, and adapts routing strategy selection to different needs and scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113301364B
    Figure CN113301364B
Patent Text Reader

Abstract

The embodiments of the present application provide a path planning method, a CDN connection establishment method, a device and a storage medium. In the embodiments of the present application, a return path to the source station can be dynamically planned for the CDN node according to the path planning request initiated by the CDN node, and multiple routing strategies are supported. In the case of multiple return paths, a target routing strategy can be selected from multiple routing strategies, and the information of some return paths in the multiple return paths is returned to the CDN node that initiated the path planning request according to the target routing strategy, so that the CDN node can establish a connection with the source station based on the received return path information. Among them, in the process of dynamically planning the return path for the CDN node, it is allowed to select the target routing strategy from multiple routing strategies, and different routing strategies can be used according to different needs or application scenarios, so as to select a return path that better meets the application needs or scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a path planning method, a CDN connection establishment method, a device and a storage medium. Background Art

[0002] Content Delivery Network (CDN) is an intelligent virtual network built on the existing network. It relies on edge servers (i.e. CDN nodes) deployed in various places, allowing users to obtain the required content nearby, improving the response speed of user access. In addition, in the CDN network, CDN nodes use a two-level cache structure. When the first-level CDN node does not cache the content required by the user, it will request the corresponding content from its upper-level CDN node until the origin server (OriginServer), and return it to the user, improving the user's access success rate.

[0003] With the development of video applications such as live broadcast and on-demand, a large amount of video content has gradually become one of the most bandwidth-consuming transmission forms on the Internet, with problems such as long buffering time, slow startup time, and frequent interruptions, which seriously affect the user's viewing experience. In order to improve the user's viewing experience, video on demand, live broadcast and other service providers will rely more on CDN networks to speed up the distribution of video content.

[0004] However, in live broadcast, on-demand and other video applications, the user groups are dispersed, which will break the hierarchical boundaries between CDN nodes in the CDN network. The static back-to-source paths pre-configured according to the hierarchical relationship between the original CDN nodes will also be inapplicable. Therefore, how to plan the back-to-source path for the CDN node is the first problem to be solved when using the CDN network to accelerate dynamic content such as video. Summary of the invention

[0005] Multiple aspects of the present application provide a path planning method, a CDN connection establishment method, a device and a storage medium for dynamically planning a back-to-source path to a source station.

[0006] An embodiment of the present application provides a path planning method, including: receiving a path planning request sent by a first CDN node in a CDN network, the path planning request being used to request planning of a back-to-source path from the first CDN node to a source station; planning M back-to-source paths from the first CDN node to the source station based on the path planning request, and selecting a target routing strategy from a plurality of routing strategies, where M is a positive integer; returning information of N back-to-source paths among the M back-to-source paths to the first CDN node according to the target routing strategy, so that the first CDN node can establish a connection with the source station based on the N back-to-source paths; wherein N is a positive integer, and 1≤N≤M.

[0007] An embodiment of the present application also provides a CDN connection establishment method, which is applicable to a first CDN node in a CDN network, and the method includes: sending a path planning request to a routing device to request the routing device to plan a return path from the first CDN node to the source station; receiving information of N return paths returned by the routing device, where the N return paths are selected by the routing device from the planned M return paths according to a target routing strategy among multiple routing strategies; establishing a connection with the source station according to the information of the N return paths; M and N are positive integers, and 1≤N≤M.

[0008] The embodiment of the present application also provides a routing device, including: a memory and a processor; the memory is used to store a computer program; the processor is coupled to the memory and is used to execute the computer program, so as to: receive a path planning request sent by a first CDN node in a CDN network, the path planning request is used to request planning of a back-to-source path from the first CDN node to a source station; based on the path planning request, plan M back-to-source paths from the first CDN node to the source station, and select a target routing strategy from a plurality of routing strategies, where M is a positive integer; according to the target routing strategy, return information of N back-to-source paths out of the M back-to-source paths to the first CDN node, so that the first CDN node can establish a connection with the source station based on the N back-to-source paths; wherein N is a positive integer, and 1≤N≤M.

[0009] An embodiment of the present application also provides a CDN node, including: a memory and a processor; the memory is used to store a computer program; the processor is coupled to the memory and is used to execute the computer program, so as to: send a path planning request to a routing device to request the routing device to plan a return path from a first CDN node to a source station; receive information of N return paths returned by the routing device, where the N return paths are selected by the routing device from M planned return paths according to a target routing strategy among multiple routing strategies; establish a connection with the source station according to the information of the N return paths; M and N are positive integers, and 1≤N≤M.

[0010] The embodiment of the present application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the steps in the path planning method and CDN connection establishment method provided in the embodiment of the present application.

[0011] In an embodiment of the present application, a return path to the source station can be dynamically planned for the CDN node according to the path planning request initiated by the CDN node, and multiple routing strategies are supported. In the case of multiple return paths, a target routing strategy can be selected from multiple routing strategies, and information of some return paths in the multiple return paths is returned to the CDN node that initiated the path planning request according to the target routing strategy, so that the CDN node can establish a connection with the source station based on the received return path information. Among them, in the process of dynamically planning the return path for the CDN node, it is allowed to select the target routing strategy from multiple routing strategies, and different routing strategies can be used according to different needs or application scenarios, so as to select a return path that better meets the application needs or scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0013] Figure 1 A structural diagram of a CDN network system provided for an exemplary embodiment of the present application;

[0014] Figure 2a A schematic diagram of a process for selecting a back-to-source path based on a quality priority strategy provided for an exemplary embodiment of the present application;

[0015] Figure 2b A schematic diagram of a process for selecting a back-to-source path based on a cost priority strategy provided for an exemplary embodiment of the present application;

[0016] Figure 3 A state diagram of a CDN node connection process provided by an exemplary embodiment of the present application;

[0017] Figure 4a A schematic diagram of a flow chart of a path planning method provided for an exemplary embodiment of the present application;

[0018] Figure 4b A flowchart of a CDN connection establishment method provided for an exemplary embodiment of the present application;

[0019] Figure 5a A schematic diagram of the structure of a path planning device provided for an exemplary embodiment of the present application;

[0020] Figure 5b A schematic diagram of the structure of a routing device provided for an exemplary embodiment of the present application;

[0021] Figure 6a A schematic diagram of the structure of a CDN connection establishment device provided for an exemplary embodiment of the present application;

[0022] Figure 6b A schematic diagram of the structure of a CDN node provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0024] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0025] Figure 1 The following is a schematic diagram of the structure of a CDN network system provided by an exemplary embodiment of the present application. Figure 1 As shown, the system 100 includes: a source station 101, at least one CDN node 102, a terminal device 103 and a routing device 104.

[0026] In this embodiment, the source station 101 is the core of the CND network system 100, and is the source of the resource content provided by the service provider in the CND network system 100, that is, the resource content provided by the service provider is first uploaded to the source station 101, and the resource content on the CDN node 102 all comes from the source station 101; in physical implementation, the source station 101 can be any computer device with computing, storage and communication capabilities, such as a conventional server, cloud server, cloud host, virtual center or server array, etc. For example: if the service provider is a live video service provider, the source station 101 can be a server connected to the live user, responsible for storing the video content broadcast by the live user; if the service provider is a video on demand service provider, the source station 101 can be a server connected to the on-demand service provider, responsible for storing the on-demand content provided by the on-demand service provider. In the CDN network system 100, the number of source stations 101 can be one or more. Figure 1 In addition, in the CDN network system 100, the source station 101 can be dynamically changed, that is, the source station 101 can be dynamically generated when needed, and can also be dynamically cancelled when not needed.

[0027] In this embodiment, multiple CDN nodes 102 are distributed in different locations and can be any computer device with computing, communication and storage capabilities, such as edge servers, terminal devices, edge computing devices, etc. deployed in various places. These CDN nodes 102 are closer to users and are responsible for responding to resource requests initiated by user's terminal devices 103 and providing users with required resource content. After receiving the resource request initiated by the terminal device 103, the CDN node 102 can determine whether the local resource content requested by the terminal device 103 is available; if the CDN node 102 has the resource content requested by the terminal device 103 locally, it directly returns the required resource content to the terminal device 103; if the CDN node 102 does not have the resource content requested by the terminal device 103 locally, then the CDN node 102 needs to use the back-to-source mechanism to obtain the resource content from other CDN nodes 102 or the source station 101 and return it to the terminal device 103.

[0028] Among them, the CDN network system can also include: a DNS server and a load balancing device; before the resource request reaches the CDN node 102, the DNS server can be responsible for providing domain name resolution services for the user, and the resource request initiated by the user's terminal device 103 first reaches the DNS server; the DNS server performs DNS resolution on the user's resource request and returns the IP address of the load balancing device to the user; the user initiates a resource request to the load balancing device; the load balancing device selects a suitable CDN node 102 for the user to provide services for the user, and returns the IP address of the CDN node 102 to the user, so that the user can initiate a resource request to the CDN node 102.

[0029] Optionally, the DNS server of this embodiment includes a local DNS server and a root DNS server; the local DNS server is the DNS server of the user end; the root DNS server is the DNS server dedicated to the CDN network. Specifically, the domain name resolution request initiated by the user first reaches the local DNS server, and the local DNS server will hand over the domain name resolution right to the root DNS server; the root DNS server returns the IP address of the load balancing device to the user.

[0030] Among them, the basis on which the load balancing device selects a CDN node 102 for a user includes but is not limited to the following: based on the user's IP address, selecting a CDN node 102 that is closest to or closer to the user to provide services to the user; based on the content name carried in the URL in the resource request, selecting a CDN node 102 that has the resource content required by the user to provide services to the user; querying the load status of each CDN node 102, and selecting a CDN node 102 that still has service capabilities to provide services to the user; and so on.

[0031] In this embodiment, there may be multiple paths between CDN nodes 102 and between CDN nodes 102 and source station 101. Then, when CDN node 102 executes the back-to-source mechanism, the problem of path planning will be involved. Path planning refers to the process of finding the back-to-source path between CDN node 102 that initiates the request and source station 101. Further, when multiple back-to-source paths are planned, the problem of selecting the target back-to-source path from multiple back-to-source paths will also be involved. In addition, when the CDN network system 100 is applied to dynamic resource scenarios such as live video and video on demand, due to the dispersion of user groups in these scenarios, any CDN node 102 may become the CDN node closest to the user, and the hierarchical relationship between CDN nodes 102 cannot be set in advance according to the distance between the CDN node 102 and the user. Even if the hierarchical relationship between CDN nodes 102 is pre-configured, the hierarchical boundaries between CDN nodes 102 will be broken due to the dispersion of user groups. That is to say, when the CDN network system 100 is applied to dynamic resource scenarios such as live video and video on demand, the CDN nodes 102 are actually in a peer-to-peer relationship and are not limited by the hierarchical relationship. The return path between the CDN node 102 and the source station 101 will change dynamically due to the dispersion of the user group. In view of this, it is impossible to determine the return path between the CDN node 102 and the source station 101 through the hierarchical relationship between the CDN nodes 102.

[0032] In this embodiment, a routing device 104 is added to the CDN network system 100, and the CDN node 102 sends a path planning request to the routing device 104, and the routing device 104 performs dynamic path planning for the CDN node 102 according to the path planning request of the CDN node 102. For any CDN node 102, if it receives a resource request initiated by a user and finds that there is no resource content requested by the user locally, it can initiate a path planning request to the routing device 104 to request the routing device 104 to plan M back-to-source paths to the source station 101 for it, so as to obtain the resource content from other CDN nodes or the source station 101 on the M back-to-source paths and return it to the user. For the convenience of description and distinction, in the embodiment of the present application, the CDN node that receives the resource request initiated by the user in the CDN network system 100 is called the initial CDN node 103a. In addition to this situation, in the CDN network system 100, there will actually be some access paths between some starting CDN nodes 102 and the source station 101, and these access paths will usually include other CDN nodes. In the embodiment of the present application, other CDN nodes on an actually existing access path except the starting CDN node are called relay CDN nodes. In actual use, the relay CDN node may be disconnected from its next hop due to factors such as link failure and network failure. At this time, the relay CDN node can also initiate a path planning request to the routing device 104 to request the routing device 104 to plan a return path to the source station 101 for it, so that the starting CDN node can continue to obtain the resource content requested by the user from the relay CDN node or the source station on the return path and return it to the user. Among them, for the convenience of description and distinction, the CDN node that initiates the path planning request is recorded as the first CDN node. In this embodiment, the first CDN node can be the starting CDN node, or it can be a relay CDN node on the access path that actually exists between the starting CDN node and the source station.

[0033] In this embodiment, the routing device 104 can receive a path planning request initiated by the first CDN node 103a, and the path planning request is used to request planning of a return path from the first CDN node 103a to the source station 101. The routing device 104 can plan M return paths from the first CDN node 103a to the source station 101 based on the path planning request, where M is a positive integer, and its value can be 1 or greater than 1.

[0034] In this embodiment, the routing device 104 may plan a return path for the first CDN node (i.e., M=1), or may plan multiple return paths for the first CDN node (i.e., M>1). In the case of planning multiple return paths, the routing device 104 may provide all the information of the multiple return paths to the first CDN node by default; or it may select from the multiple return paths according to the routing strategy, and provide the information of the selected return path to the first CDN node. Among them, the selected return path may be a part of the multiple return paths, or it may be all of the multiple return paths. In this embodiment, the routing device 104 pre-maintains multiple routing strategies; the routing strategy refers to the strategy based on which the return path is selected, and different routing strategies require the return path to be selected according to different path performance evaluation indicators. Optionally, the multiple routing strategies may include, but are not limited to: a quality-first routing strategy, a cost-first routing strategy, and a comprehensive routing strategy. The quality-first routing strategy refers to a routing strategy that gives priority to the quality of the path. The path quality can be, but is not limited to, the network delay or packet loss rate of the return path, etc. The cost-first routing strategy refers to a routing strategy that gives priority to the path cost. The path cost can be the bandwidth cost of the return path, etc. The comprehensive routing strategy refers to a routing strategy that comprehensively considers the path quality and the path cost. The routing device 104 can flexibly or on demand select the target routing strategy to be used from a variety of routing strategies, and return the information of N return paths out of M return paths to the first CDN node 102a according to the target routing strategy, where N is a positive integer and 1≤N≤M. Optionally, the information of the return path includes: identification information of each hop on the return path and the jump relationship.

[0035] In this embodiment, the execution order of planning M back-to-source paths from the first CDN node 103a to the source station 101 and selecting a target routing strategy from a plurality of routing strategies is not limited. For example, the M back-to-source paths from the first CDN node 103a to the source station 101 may be planned first, and then the target routing strategy may be selected from a plurality of routing strategies; or the target routing strategy may be selected from a plurality of routing strategies first, and then the M back-to-source paths from the first CDN node 103a to the source station 101 may be planned; or the M back-to-source paths from the first CDN node 103a to the source station 101 may be planned and the target routing strategy may be selected from a plurality of routing strategies at the same time, and there is no limitation on this.

[0036] In the embodiment of the present application, a target routing strategy is selected from a plurality of routing strategies, and N back-to-source paths are selected from the planned M back-to-source paths according to the target routing strategy and returned to the CDN node, and the CDN node establishes a connection with the source station based on the N back-to-source paths. Among them, the target routing strategy is selected from a plurality of routing strategies, and different routing strategies can be used according to different requirements or application scenarios to select a back-to-source path that meets the requirements.

[0037] In this embodiment, the implementation method of selecting a target routing strategy from a plurality of routing strategies is not limited.

[0038] In an optional embodiment, the service provider corresponding to the source station 101 may provide the routing device 104 with the service quality parameters contracted with the routing device 104. Optionally, the service quality parameters are the overall service delay and / or average packet loss rate required by the service provider.

[0039] Alternatively, if Figure 1 As shown, the routing device 104 can provide a human-computer interaction interface to the service provider corresponding to the source station 101, and the service provider can configure the service quality parameters through the human-computer interaction interface; for example, the overall service delay or packet loss rate can be set; the service provider provides the configured service quality parameters to the routing device 104 through the submission control on the human-computer interaction interface. Alternatively, the electronic contract signed by the service provider for using the CDN network acceleration service includes the service quality parameters required by the service provider, such as the overall service delay and / or average packet loss rate required by the service provider; in this regard, the routing device 104 can also obtain the service quality parameters required by the service provider from the electronic contract signed by the service provider.

[0040] In this embodiment, the routing device 104 receives the service quality parameter and selects a target routing strategy from a plurality of routing strategies according to the service quality parameter; specifically, the routing device 104 selects a target routing strategy from a plurality of routing strategies according to the service quality parameter, including: if the service quality parameter is the overall service delay or the average packet loss rate, the routing device 104 can determine whether the overall service delay or the average packet loss rate exceeds a set threshold value. If the overall service delay or the average packet loss rate exceeds the set threshold value, it indicates that the service provider has low requirements for path quality, and the routing device 104 adopts a cost-first routing strategy; if the overall service delay or the average packet loss rate does not exceed the set threshold value, it indicates that the service provider has high requirements for path quality, and the routing device 104 adopts a quality-first routing strategy. The priority routing strategy can take both path quality and path cost into consideration and adopt a comprehensive routing strategy when the overall service delay or average packet loss rate is not equal to the set threshold. If the service quality parameters are the overall service delay and the average packet loss rate, and both the overall service delay and the average packet loss rate exceed the set threshold, it indicates that the service provider does not have high requirements for path quality, and the routing device 104 adopts a cost-priority routing strategy. If both the overall service delay and the average packet loss rate do not exceed the set threshold, it indicates that the service provider has high requirements for path quality, and the routing device 104 adopts a quality-priority routing strategy. When both the overall service delay and the average packet loss rate are equal to the set threshold, both path quality and path cost can be taken into consideration and a comprehensive routing strategy can be adopted.

[0041] In another optional embodiment, the routing device 104 maintains a correspondence between routing strategies and their identification information. The service provider corresponding to the source station may also specify a certain routing strategy to be used, and provide the identification information of the designated routing strategy to the routing device 104. The routing device 104 obtains the identification information and selects the routing strategy corresponding to the identification information from a plurality of routing strategies as the target routing strategy based on the maintained correspondence between the routing strategies and their identification information.

[0042] In the above optional embodiment, the selection of the target routing strategy is determined by the service provider corresponding to the source station 101, but it is not limited to this. For example, in another optional embodiment, the first CDN node that initiates the path planning request can also provide the policy selection parameters in real time, and the routing device 104 selects the target routing strategy according to the policy selection parameters provided by the first CDN node 102a. Optionally, the policy selection parameters are the path delay and / or packet loss rate required by the first CDN node. Among them, the policy selection parameters provided by the first CDN node 102a can be carried in the path planning request, and the routing device 104 can parse the policy selection parameters from the path planning request; in addition, the first CDN node 102a can send the policy selection parameters to the routing device 104 through another communication process.

[0043] In this embodiment, the routing device 104 selects an implementation method of the target routing strategy according to the strategy selection parameter provided by the first CDN node 102a, including: if the strategy selection parameter is the path delay or the packet loss rate, the routing device 104 can determine whether the path delay or the packet loss rate exceeds the set threshold. When the path delay or the packet loss rate exceeds the set threshold, it means that the service provider does not have high requirements for the path quality. Then the routing device 104 adopts a cost-first routing strategy. When the path delay or the packet loss rate is equal to the set threshold, both the path quality and the path cost can be taken into consideration and a comprehensive routing strategy can be adopted. When the path delay or the packet loss rate does not exceed the set threshold, In this case, it means that the service provider has high requirements for path quality, and the routing device 104 adopts a quality-first routing strategy; if the strategy selection parameters are path delay and packet loss rate, and both the path delay and the packet loss rate exceed the set thresholds, it means that the service provider does not have high requirements for path quality, and the routing device 104 adopts a cost-first routing strategy; when at least one of the path delay and the packet loss rate does not exceed the set threshold, it means that the service provider has high requirements for path quality, and the routing device 104 adopts a quality-first routing strategy. When both the path delay and the packet loss rate are equal to the set thresholds, both the path quality and the path cost can be taken into consideration, and a comprehensive routing strategy can be adopted.

[0044] In an optional embodiment, information on N out of M origin return paths is returned to the first CDN node according to the target routing policy, including: selecting N origin return paths with performance meeting the requirements from the M origin return paths according to the path performance evaluation metrics required by the target routing policy, and returning the information on the N origin return paths sorted by performance to the first CDN node 102a. Among them, the path performance evaluation metrics include but are not limited to: path quality and / or path cost, etc.

[0045] In this embodiment, the implementation manner of selecting N origin return paths with performance meeting the requirements from the M origin return paths according to the path performance evaluation metrics required by the target routing policy is not limited, and will be described in detail below.

[0046] In an optional embodiment, if the target routing policy is a routing policy with quality priority, and the path performance evaluation metrics required by the routing policy with quality priority give priority to path quality, the routing device 104 may calculate the path quality of the M origin return paths, and perform an initial sorting according to the path quality of the M origin return paths. Among them, the path quality may be measured by packet loss rate or network delay, etc.; if there are origin return paths with the same or similar path quality among the M origin return paths after the initial sorting, then perform a secondary sorting on the origin return paths with the same or similar path quality according to the path cost; select the top N origin return paths from the M origin return paths after the secondary sorting. Among them, similar path quality means that the difference in path quality is less than the set threshold T. If the path quality is measured by network delay, the set threshold T may be 5ms, 10ms or 50ms, etc.; if the path quality is measured by packet loss rate, the set threshold may be 5%, 10% or 50%, etc., and this is not limited.

[0047] For example, the routing device 104 plans 3 origin return paths from the first CDN node 102a to the origin server 101, which are: origin return path A1, origin return path A2, origin return path A3; the path quality of origin return path A1 is b1, the path quality of origin return path A2 is b2; the path quality of origin return path A3 is b3, where b2 < b1 < b3. The smaller the path quality, the better the performance of the origin return path; after the initial sorting of the 3 origin return paths according to the path quality in terms of performance superiority and inferiority, we get: origin return path A2, origin return path A1, origin return path A3. Since the difference in path quality between origin return path A1 and origin return path A2 is less than the set threshold, it is considered that the path quality of origin return path A1 and origin return path A2 is similar, and then perform a secondary sorting on origin return path A1 and origin return path A2 according to the path cost. The path cost c1 of origin return path A1 is less than the path cost c2 of origin return path A2. The lower the path cost, the better the performance of the origin return path. Therefore, the result after the secondary sorting is: origin return path A1, origin return path A2, origin return path A3.

[0048] In this embodiment, in addition to initially sorting and secondarily sorting the M return paths and selecting N return paths from the sorted M return paths, this embodiment further provides a method for selecting N return paths, that is, an implementation manner of judging and selecting return paths while initially sorting the M return paths. Specifically as follows:

[0049] If the target routing policy is a routing policy with quality priority, initially sort according to the path quality of the M return paths; set a threshold T, and in the order of the M return paths after initial sorting, successively judge whether the path quality between two adjacent return paths is similar, and divide the return paths with similar path quality into one group until return paths with different path quality appear; for the return paths divided into the same group, secondarily sort these return paths in ascending order of path cost. If N is less than the number of return paths in this group, return the information of the top N return paths in this group to the first CDN node 102a; if N is equal to the number of return paths in this group, return the information of all the return paths in this group to the first CDN node 102a in the order of secondary sorting; if N is greater than the number of return paths in this group, return the information of all the return paths in this group to the first CDN node 102a in the order of secondary sorting, and starting from the above-mentioned return paths with different path quality, continue to judge whether the path quality between the subsequent two adjacent return paths is similar, and repeat the above grouping, sorting, and selection operations until N return paths are selected.

[0050] Next, taking M = 3 and N = 1 as an example, a detailed description will be given of the implementation manner in which the routing device 104 uses a routing policy with quality priority to return 1 return path from 3 return paths.

[0051] Suppose the path qualities of the three return paths B1, B2, and B3 are d1, d2, and d3, and d1 < d2 < d3. The smaller the path quality, the better the performance of the return path. Set the threshold as T1. As Figure 2aAs shown, first determine whether d2-d1>T1 is established. If so, it means that the path quality of the return-to-source path B2 is not similar to that of the return-to-source path B1, and then return a return-to-source path with lower path quality (better performance parameters) to the first CDN node 102a, that is, the return-to-source path B1; if d2-d1>T1 is not established, it means that the path quality of the return-to-source path B2 is the same as or similar to that of the return-to-source path B1, and then further determine whether the path quality of the return-to-source path B3 is similar to that of the return-to-source path B2, that is, determine whether d3-d2>T1 is established. If d3-d2>T1 is established, >T1 is true, it means that the back-to-source path B3 is not similar to the back-to-source path B2, and the back-to-source path with the lowest path cost among the back-to-source path B1 and the back-to-source path B2 is selected and returned to the first CDN node 102a; if d3-d2>T1 is not true, it means that the back-to-source path B3 is the same as or similar to the back-to-source path B2, and further, the back-to-source path B1, the back-to-source path B3 and the back-to-source path B2 are the same or similar, and the back-to-source path with the lowest path cost among the back-to-source path B1, the back-to-source path B2 and the back-to-source path B3 is selected and returned to the first CDN node 102a.

[0052] In another optional embodiment, if the target routing strategy is a cost-priority routing strategy, and the path performance evaluation index required by the cost-priority routing strategy gives priority to the path cost, the routing device 104 can calculate the path cost of M return-to-source paths, and perform initial sorting according to the path cost of the M return-to-source paths, wherein the path cost can be measured by the bandwidth cost; if there are return-to-source paths with the same or similar path costs among the M return-to-source paths after the initial sorting, the return-to-source paths with the same or similar path costs are sorted again according to the path quality; from the M return-to-source paths after the secondary sorting, select the N return-to-source paths with the highest sorting. Among them, similar path costs refer to that the difference in path costs is less than the set threshold T.

[0053] In this embodiment, in addition to the above-mentioned initial sorting and secondary sorting of the M back-to-source paths, and selecting N back-to-source paths from the sorted M back-to-source paths, this embodiment also provides a method for selecting N back-to-source paths, that is, after the M back-to-source paths are initially sorted, the implementation method of selecting the back-to-source paths while judging is as follows:

[0054] If the target routing policy is a cost - priority routing policy, the initial sorting is performed according to the path costs of the M return - source paths; a threshold T is set, and in the order of the M return - source paths after the initial sorting, it is successively determined whether the path costs between two adjacent return - source paths are similar. The return - source paths with similar path costs are grouped into one group until there are return - source paths with different path costs; for the return - source paths grouped into the same group, a secondary sorting is performed on these return - source paths in ascending order of path quality. If N is less than the number of return - source paths in this group, the information of the top N return - source paths in this group is returned to the first CDN node 102a; if N is equal to the number of return - source paths in this group, the information of all the return - source paths in this group is returned to the first CDN node 102a in the order of the secondary sorting; if N is greater than the number of return - source paths in this group, the information of all the return - source paths in this group is returned to the first CDN node 102a in the order of the secondary sorting, and starting from the above - mentioned return - source paths with different path costs, it continues to be determined whether the path costs between the subsequent two - by - two return - source paths are similar, and the above grouping, sorting, and selection operations are repeated until N return - source paths are selected.

[0055] Next, taking M = 3 and N = 1 as an example, the implementation method of the routing device 104 using the cost - priority routing policy to return 1 return - source path from 3 return - source paths is described in detail.

[0056] Suppose the path costs of the three return - source paths G1, G2, and G3 are g1, g2, and g3, and g1 < g2 < g3. The smaller the path cost, the better the performance of the return - source path. The threshold is set as T2. As Figure 2b shown, first, it is determined whether g2 - g1 > T2 holds. If it holds, it means that the path costs of the return - source path G2 and the return - source path G1 are not similar, then the return - source path with a lower path cost (better performance parameter), that is, the return - source path G1, is returned to the first CDN node 102a; if g2 - g1 > T2 does not hold, it means that the path qualities of the return - source path G2 and the return - source path G1 are the same or similar, then it is further determined whether the path qualities of the return - source path G3 and the return - source path G2 are similar, that is, whether g3 - g2 > T2 holds. If g3 - g2 > T2 holds, it means that the return - source path G3 and the return - source path G2 are not similar, then the return - source path with the lowest path quality among the return - source path G1 and the return - source path G2 is selected and returned to the first CDN node 102a; if g3 - g2 > T2 does not hold, it means that the return - source path G3 and the return - source path G2 are the same or similar. Further, the return - source path G1, the return - source path G3, and the return - source path G2 are the same or similar, then the return - source path with the lowest path quality among the return - source path G1, the return - source path G2, and the return - source path G3 is selected and returned to the first CDN node 102a.

[0057] In another optional embodiment, if the target routing strategy is a comprehensive routing strategy, the path performance evaluation index required by the comprehensive routing strategy will comprehensively consider the path quality and path cost, then the routing device 104 can calculate the path quality and path cost of the M return-to-source paths, and calculate the comprehensive performance scores of the M return-to-source paths based on the path quality and path cost of the M return-to-source paths; select the N return-to-source paths with the highest comprehensive performance scores from the M return-to-source paths. For example, when calculating the comprehensive performance score, a weight w can be set for the path quality, then the path cost can be 1-w, and the comprehensive performance score is: path quality*w+path cost*(1-w).

[0058] Optionally, in order to ensure the fairness of path quality and path cost calculation, the path quality and path cost can be normalized first. For example, the path quality of the return paths C1, C2 and C3 is e1, e2 and e3, and a reference value e0 can be selected. e0 can be one of e1, e2 and e3, or the mean or median of e1, e2 and e3, etc., without limitation; the normalization parameters of path quality are e1 / e0, e2 / e0 and e3 / e0; the path cost of the return paths C1, C2 and C3 is f1, f2 and f3, and a reference value f0 can be selected. f0 can be one of f1, f2 and f3, or the mean or median of f1, f2 and f3, etc., without limitation; the normalization parameters of path quality are f1 / f0, f2 / f0 and f3 / f0. Further optionally, the path quality and path cost can be uniformly normalized. For example, the path quality can be multiplied by the coefficient k. Then the comprehensive performance scores of the back-to-source paths C1, C2, and C3 are respectively: e1 / e0*k*w+f1 / f0*(1-w), e2 / e0*k*w+f2 / f0*(1-w), and e3 / e0*k*w+f3 / f0*(1-w).

[0059] In this embodiment, no matter which target routing strategy is adopted by the routing device 104, the information of N return-to-source paths can be returned to the first CDN node 102a according to the path planning request of the first CDN node 102a. In the embodiment of the present application, N represents the number of return-to-source paths that the routing device 104 needs to return to the first CDN node 102a. As long as N satisfies 1≤N≤M and is a positive integer, the specific value of N is not limited. In an optional embodiment, the value of N can be determined by the routing device 104 according to the adopted target routing strategy. For example, the number of return-to-source paths N corresponding to each routing strategy can be pre-configured. For example, for a routing strategy with quality priority, all planned return-to-source paths can be returned, that is, N=M. For a routing strategy with cost priority, 50% of the planned return-to-source paths can be returned, that is, N=M / 2. For a comprehensive routing strategy, the top two of the planned return-to-source paths can be returned, that is, N=2. In another optional embodiment, the value of N can be a default value.

[0060] In another optional embodiment, the routing device 104 may also determine the number N of return-to-source paths that need to be returned to the first CDN node 102a based on the user's attribute information and / or the attribute information of the source station, so that different numbers of return-to-source paths can be returned for different users and / or source stations. For example, for paying users or VIP users, a larger number of return-to-source paths can be returned to ensure the service quality for paying users or VIP users. For another example, if the content provider corresponding to the source station is a VIP customer or has purchased a return-to-source path value-added service, a larger number of return-to-source paths can also be returned to ensure the service quality for the content provider and to ensure the service quality provided by the content provider to its downstream users.

[0061] In another optional embodiment, a configuration interface may also be provided to relevant management personnel, and the configuration interface is used for the management personnel to configure, manage and maintain information related to the routing strategy. For example, the management personnel may configure the available routing strategy through the configuration interface, or may change the available routing strategy through the configuration interface, or may configure the number N of return-to-source paths that need to be returned under the available routing strategy through the configuration interface. For example, the proportional relationship between the number N of return-to-source paths that need to be returned and the number M of planned return-to-source paths may be configured, such as 20%, 50% or 100%, or the specific value of N may be directly configured, such as 1, 2 or 3. Based on this, the routing device 104 may also display the configuration interface, and in response to the configuration operation on the configuration interface, obtain the number N of return-to-source paths that need to be returned configured by the configuration operation.

[0062] Regardless of which of the above methods for determining the number N of return-to-source paths that need to be returned, for the first CDN node 102a, after sending a path planning request to the routing device 104, the first CDN node 102a can receive information about N return-to-source paths selected by the routing device 104 from the planned M return-to-source paths using the target routing strategy, and the information about each return-to-source path includes the identification information and jump relationship of each jump on the return-to-source path; further, according to the information of the N return-to-source paths, a connection can be established with the source station. Among them, establishing a connection with the source station can be establishing a connection to the source station according to the return-to-source path, or establishing a connection to a relay CDN node on the return-to-source path that has resource content provided by the source station.

[0063] In this embodiment, the first CDN node 102a can select the information of the target return-to-source path to be used from the information of N return-to-source paths; establish a connection with the adjacent next-hop CDN node according to the information of the target return-to-source path; provide the path information after the next-hop CDN node to the next-hop CDN node, so that the next-hop CDN node can establish a connection with its next hop until the return-to-source path is established. Among them, the information of the target return-to-source path can be one or more, for example, 2, 3 or 5, which is not limited to this. In the case where there are multiple information of the target return-to-source path, the first CDN node 102a can establish multiple connections with the source station 101, that is, establish multiple target return-to-source paths for backup or disaster recovery, thereby ensuring the security of the CDN network system. Among them, the next hop of the next-hop CDN node can be a CDN node or a source station 101, depending on the specific situation.

[0064] In an optional embodiment, the information of the N back-to-source paths received by the first CDN node 102a may not be sorted, and the first CDN node 102a may randomly select the information of the target back-to-source path from the information of the N back-to-source paths. In another optional embodiment, the information of the N back-to-source paths may be sorted in descending order of path performance, and the first CDN node 102a may select the information of at least one back-to-source path with the highest sorting from the information of the N back-to-source paths as the information of the target back-to-source path. In addition, the first CDN node 102a may also select the information of the target back-to-source path from the information of the N back-to-source paths according to other parameters or strategies. The information of the target back-to-source path may be one or more. Further, in the case where there are multiple target back-to-source paths, the first CDN node 102a may establish a corresponding target back-to-source path with the source station according to the information of each target back-to-source path, and then there will be multiple target back-to-source paths between the first CDN node 102a and the source station.

[0065] In actual use, multiple target return-to-source paths can be grouped according to certain conditions, parameters or strategies, and multiple target return-to-source paths can be divided into multiple groups; for example, multiple target return-to-source paths can be divided into multiple groups according to at least one parameter such as the quality of the target return-to-source path, the path length, whether it contains a specified CDN node, and the load of the CDN node passed through, so that the target return-to-source paths can be divided and used according to the group. Optionally, in different time periods, target return-to-source paths in different groups can be used to request resource content from the source station, so that load balancing between target return-to-source paths can be achieved, and multiple target return-to-source paths can be fully utilized, reducing the waste of redundant transmission resources, improving utilization, and ensuring the transmission rate and quality of resource content. Alternatively, according to the network status, target return-to-source paths in different groups can be used to request resource content from the source station under different network conditions. For example, when the network is in good condition, you can use some relatively low-cost target back-to-source paths to request resource content from the source site to save costs; when the network is in poor condition, you can use target back-to-source paths with better path quality or better path performance to request resource content from the source site, which can ensure that resource content is obtained in a timely manner and provided to users, giving priority to the user experience.

[0066] Further, in the case where there are multiple target return-to-source paths between the first CDN node and the source station, one of the multiple target return-to-source paths can be set as the main return-to-source path, and the other target return-to-source paths can be set as the secondary return-to-source path. In this embodiment, it is not limited which target return-to-source path is used as the main return-to-source path. For example, a target return-to-source path can be randomly selected as the main return-to-source path, or a target return-to-source path with the best path performance can be selected as the main return-to-source path, or a target return-to-source path with the shortest path length can be selected as the main return-to-source path, or a target return-to-source path with the lowest cost can be selected as the main return-to-source path, or a target return-to-source path containing a specified CDN node can be selected as the main return-to-source path, and so on. When the primary return-to-source path is in a normal state, the primary return-to-source path is preferentially used to request resource content from the source station. When the primary return-to-source path is abnormal or disconnected, it can be switched to the secondary return-to-source path, and the secondary return-to-source path can be used to continue to request resource content from the source station, so as to ensure that the resource content can be continuously requested and the resource content request process is not interrupted.

[0067] Further, in the above-mentioned embodiments of the present application, the method for determining the number of target return-to-source paths is not limited. For example, it can be a pre-set fixed value, such as 2, 3 or 5, which indicates the number of target return-to-source paths that need to be established with the source station. Alternatively, it can also be a pre-set percentage, such as 50%, 100%, which indicates that when the return-to-source path information returned by the routing device is received, it is necessary to select at least one target return-to-source path information according to the percentage so as to establish at least one target return-to-source path with the source station. In addition, an interactive interface can also be provided, through which the user configures the number of target return-to-source paths that need to be established. Optionally, a path quantity configuration item is displayed on the interactive interface, and the user configures the number of paths. The path quantity configuration item can be in the form of a drop-down list, and the user can select one from the numbers displayed in the drop-down list as the number of paths to be configured, or the path quantity configuration item can also be a text input box, in which the user can enter the number of paths to be configured. Based on this, after receiving the information of N back-to-source paths returned by the routing device, the first CDN node can also display an interactive interface to the user, and display the path quantity configuration item on the interactive interface; the user performs an operation to configure the number of paths through the path quantity configuration item, and the first CDN node responds to the configuration operation on the path quantity configuration item, obtains the number of paths configured by the user, recorded as L, where L is a positive integer and 1≤L≤N; then, from the information of the N back-to-source paths, selects the information of L back-to-source paths as the information of the target back-to-source paths, and displays the information of the selected L back-to-source paths on the interactive interface.

[0068] In this embodiment, the CDN node can request the routing device to dynamically plan a return path to the source station for it by sending a path planning request to the routing device; wherein the routing device selects a target routing strategy from a plurality of routing strategies, and returns the return path information to the CDN node based on the target routing strategy; after obtaining the return path information, the CDN node establishes a connection with the adjacent next hop on the one hand, and sends down the subsequent path information in sequence on the other hand, so that the next hop can continue to establish a connection with its next hop according to the subsequent path information until the CDN connection is established, which can ensure that the CDN nodes along the way can accurately establish connections according to the return path, thereby ensuring the availability of the CDN network system.

[0069] The following takes the process of establishing a CDN connection between node E1 and node S4 as an example. Figure 3As shown, node E1 sends a path planning request to the routing device 104, and the routing device 104 dynamically plans two back-to-source paths for node E1 and returns the information of the two back-to-source paths to node E1. The two back-to-source paths are P1: E1—>R2—>R3—>S4 and P2: E1—>R5—>S4. Assume that node E1 selects path P1 and establishes a CDN connection with node S4 according to the information of the back-to-source path. The process is: node E1 establishes a connection with node R2 and sends the path information R3->S4 after node R2 to node R2; node R2 establishes a connection with node R3 and sends the path information S4 after node R3 to node R3; node R3 establishes a connection with node S4.

[0070] It is explained here that in this example, the routing device 104 provides all the information of the two return paths dynamically planned for the node E1 to the node E1 as an example, but it is not limited to this. For example, the selection device 104 can also adopt a path selection strategy to select one or part of the return paths from the planned return paths, and return the information of the selected return paths to the node E1. Correspondingly, in this example, when node E1 obtains information of multiple return paths, it chooses to establish a CDN connection with the source station according to the information of one of the return paths, but it is not limited to this. For example, node E1 can also choose to establish two or more CDN connections with the source station according to the information of two or more return paths, and can even choose to establish multiple CDN connections with the source station according to the information of multiple return paths received. In the case where there are two or more CDN connections between node E1 and the source station, one of the CDN connections can be selected to transmit the resource content, and the remaining CDN connections can be used as standby; or, two or more CDN connections can be used simultaneously to transmit the resource content at the same time, without limitation.

[0071] Further optionally, in the process of returning N back-to-source paths to the first CDN node 102a, the routing device 104 may also return identification information of the target routing strategy used to the first CDN node 102a, so that users or network administrators can know the routing strategy currently used; the identification information of the target routing strategy used by the first CDN node 102a may also be output to the service provider so that the service provider can confirm the routing strategy adopted.

[0072] Figure 4a A schematic diagram of a path planning method provided by an exemplary embodiment of the present application; Figure 4a As shown, the method includes:

[0073] 401a. Receive a path planning request sent by a first CDN node in the CDN network, where the path planning request is used to request planning of a back-to-source path from the first CDN node to the source station;

[0074] 402a. Based on the path planning request, M back-to-source paths are planned from the first CDN node to the source station, and a target routing strategy is selected from multiple routing strategies, where M is a positive integer.

[0075] 403a. Return information of N back-to-source paths among the M back-to-source paths to the first CDN node according to the target routing strategy, so that the first CDN node can establish a connection with the source station based on the N back-to-source paths; wherein N is a positive integer, and 1≤N≤M.

[0076] In an optional embodiment, a target routing strategy is selected from a plurality of routing strategies, including: obtaining service quality parameters contracted by a service provider corresponding to the source station, and selecting a target routing strategy from a plurality of routing strategies based on the service quality parameters; obtaining identification information of a routing strategy specified for use by a service provider corresponding to the source station, and selecting a routing strategy corresponding to the identification information as a target routing strategy from a plurality of routing strategies; or obtaining a policy selection parameter provided by the first CDN node, and selecting a target routing strategy from a plurality of routing strategies based on the policy selection parameter.

[0077] In an optional embodiment, the service quality parameter is the overall service delay and / or average packet loss rate required by the service provider; and the policy selection parameter is the path delay and / or packet loss rate required by the first CDN node.

[0078] In an optional embodiment, information of N back-to-source paths among M back-to-source paths is returned to the first CDN node according to the target routing strategy, including: selecting N back-to-source paths whose performance meets the requirements from the M back-to-source paths according to the path performance evaluation index required by the target routing strategy, and returning the information of the N back-to-source paths sorted by performance to the first CDN node.

[0079] In an optional embodiment, according to the path performance evaluation index required by the target routing strategy, N back-to-source paths whose performance meets the requirements are selected from M back-to-source paths, including: if the target routing strategy is a quality-first routing strategy, the M back-to-source paths are initially sorted according to their path qualities; if there are back-to-source paths with the same or similar path qualities among the M back-to-source paths after the initial sorting, the back-to-source paths with the same or similar path qualities are secondary sorted according to the path cost; and from the M back-to-source paths after the secondary sorting, the top N back-to-source paths are selected.

[0080] In an optional embodiment, according to the path performance evaluation index required by the target routing strategy, N return-to-source paths whose performance meets the requirements are selected from M return-to-source paths, including: if the target routing strategy is a cost-first routing strategy, the M return-to-source paths are initially sorted according to their path costs; if there are return-to-source paths with the same or similar path costs among the M return-to-source paths after the initial sorting, the return-to-source paths with the same or similar path costs are secondary sorted according to the path quality; from the M return-to-source paths after the secondary sorting, the top N return-to-source paths are selected.

[0081] In an optional embodiment, according to the path performance evaluation index required by the target routing strategy, N return-to-source paths whose performance meets the requirements are selected from M return-to-source paths, including: if the target routing strategy is a comprehensive routing strategy, the comprehensive performance scores of the M return-to-source paths are calculated according to the path quality and path cost of the M return-to-source paths; and N return-to-source paths with the highest comprehensive performance scores are selected from the M return-to-source paths.

[0082] In an optional embodiment, before selecting N back-to-source paths with performance meeting the requirement from the M back-to-source paths, the method further includes:

[0083] Determine the number N of back-to-source paths that need to be returned based on the user's attribute information and / or the source station's attribute information;

[0084] or

[0085] A configuration interface is displayed, and in response to a configuration operation on the configuration interface, the number N of back-to-source paths that need to be returned is obtained.

[0086] In an optional embodiment, the multiple routing strategies include: a quality-first routing strategy, a cost-first routing strategy, and a comprehensive routing strategy.

[0087] In an embodiment of the present application, a return path to the source station can be dynamically planned for the CDN node according to the path planning request initiated by the CDN node, and multiple routing strategies are supported. In the case of multiple return paths, a target routing strategy can be selected from multiple routing strategies, and information of some return paths in the multiple return paths is returned to the CDN node that initiated the path planning request according to the target routing strategy, so that the CDN node can establish a connection with the source station based on the received return path information. Among them, in the process of dynamically planning the return path for the CDN node, it is allowed to select the target routing strategy from multiple routing strategies, and different routing strategies can be used according to different needs or application scenarios, so as to select a return path that better meets the application needs or scenarios.

[0088] Figure 4b A flow chart of a CDN connection establishment method provided for an exemplary embodiment of the present application; applicable to a first CDN node in a CDN network, such as Figure 4b As shown, the method includes:

[0089] 401b. Send a path planning request to the routing device to request the routing device to plan a back-to-source path from the first CDN node to the source station;

[0090] 402b. Receive information about N back-to-source paths returned by the routing device, where the N back-to-source paths are selected by the routing device from the planned M back-to-source paths according to a target routing strategy among multiple routing strategies;

[0091] 403b. Establish a connection with the source station according to the information of N back-to-source paths; M and N are positive integers, and 1≤N≤M.

[0092] In an optional embodiment, a connection is established with the source station based on information of N back-to-source paths, including: selecting information of a target back-to-source path to be used from the information of the N back-to-source paths; establishing a connection with an adjacent next-hop CDN node based on the information of the target back-to-source path; and providing the path information after the next-hop CDN node to the next-hop CDN node so that the next-hop CDN node can establish a connection with its next hop.

[0093] In an optional embodiment, information of the N back-to-source paths is sorted from high to low according to path performance, and information of a target back-to-source path to be used is selected from the information of the N back-to-source paths, including: from the information of the N back-to-source paths, information of at least one back-to-source path with the highest sorting is selected as the information of the target back-to-source path.

[0094] In an optional embodiment, there are multiple target back-to-source paths, and the method further includes: dividing the multiple target back-to-source paths into multiple groups; and using the target back-to-source paths in different groups to request resource content from the source station in different time periods or under different network conditions.

[0095] In an optional embodiment, there are multiple target back-to-source paths, and the method further includes: setting one of the multiple target back-to-source paths as a primary back-to-source path, and setting the other target back-to-source paths as secondary back-to-source paths.

[0096] Further optionally, the above setting one of the multiple target back-to-source paths as the primary back-to-source path includes: setting one of the multiple target back-to-source paths with the best path performance, the shortest path length, or containing a specified CDN node as the primary back-to-source path.

[0097] In an optional embodiment, the above-mentioned selecting information of a target back-to-source path to be used from information of N back-to-source paths includes: displaying an interactive interface, on which a path quantity configuration item is displayed; in response to a configuration operation on the path quantity configuration item, obtaining a user-configured path quantity L, where L is a positive integer and 1≤L≤N; selecting information of L back-to-source paths from the information of N back-to-source paths as information of the target back-to-source path, and displaying information of the selected L back-to-source paths on the interactive interface.

[0098] In this embodiment, the CDN node can request the routing device to dynamically plan a return path to the source station for it by sending a path planning request to the routing device; wherein the routing device selects a target routing strategy from a plurality of routing strategies, and returns the return path information to the CDN node based on the target routing strategy; after obtaining the return path information, the CDN node establishes a connection with the adjacent next hop on the one hand, and sends down the subsequent path information in sequence on the other hand, so that the next hop can continue to establish a connection with its next hop according to the subsequent path information until the CDN connection is established, which can ensure that the CDN nodes along the way can accurately establish connections according to the return path, thereby ensuring the availability of the CDN network system.

[0099] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 401a to 403a can be device A; for another example, the execution subject of steps 401a and 402a can be device A, and the execution subject of step 403a can be device B; and so on.

[0100] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as 401a, 402a, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0101] Figure 5a The following is a schematic diagram of a path planning device provided by an exemplary embodiment of the present application. Figure 5a As shown, the device includes: a receiving module 51a, a planning module 52a, a selecting module 53a and a returning module 54a.

[0102] The receiving module 51a is used to: receive a path planning request sent by a first CDN node in the CDN network, where the path planning request is used to request planning of a back-to-source path from the first CDN node to the source station;

[0103] The planning module 52a is used to: plan M back-to-source paths from the first CDN node to the source station based on the path planning request;

[0104] The selection module 53a is used to: select a target routing strategy from a plurality of routing strategies, where M is a positive integer;

[0105] The return module 54a is used to return information of N back-to-source paths among M back-to-source paths to the first CDN node according to the target routing strategy, so that the first CDN node can establish a connection with the source station based on the N back-to-source paths; wherein N is a positive integer and 1≤N≤M.

[0106] In an optional embodiment, the receiving module 51a is used to: obtain the service quality parameters contracted by the service provider corresponding to the source station, and the selection module 53a is specifically used to: select the target routing strategy from the multiple routing strategies according to the service quality parameters when selecting the target routing strategy from the multiple routing strategies; or, the receiving module 51a is used to: obtain the identification information of the routing strategy specified for use by the service provider corresponding to the source station, and the selection module 53a is specifically used to: select the routing strategy corresponding to the identification information as the target routing strategy from the multiple routing strategies when selecting the target routing strategy from the multiple routing strategies; or, the receiving module 51a is used to: obtain the policy selection parameters provided by the first CDN node, and the selection module 53a is specifically used to: select the target routing strategy from the multiple routing strategies according to the policy selection parameters when selecting the target routing strategy from the multiple routing strategies.

[0107] In an optional embodiment, the service quality parameter is the overall service delay and / or average packet loss rate required by the service provider; and the policy selection parameter is the path delay and / or packet loss rate required by the first CDN node.

[0108] In an optional embodiment, the selection module 53a is used to: select N back-to-source paths whose performance meets the requirements from M back-to-source paths according to the path performance evaluation index required by the target routing strategy, and the return module 54a is used to: return the information of the N back-to-source paths sorted by performance to the first CDN node.

[0109] In an optional embodiment, the device also includes: a sorting module, the sorting module is used to: if the target routing strategy is a quality-first routing strategy, perform initial sorting according to the path quality of the M return-to-source paths; if there are return-to-source paths with the same or similar path quality among the M return-to-source paths after the initial sorting, perform secondary sorting on the return-to-source paths with the same or similar path quality according to the path cost; the selection module 53a is used to: select the top N return-to-source paths from the M return-to-source paths after the secondary sorting.

[0110] In an optional embodiment, the sorting module is used to: if the target routing strategy is a cost-first routing strategy, perform an initial sorting according to the path costs of the M return-to-source paths; if there are return-to-source paths with the same or similar path costs among the M return-to-source paths after the initial sorting, perform a secondary sorting on the return-to-source paths with the same or similar path costs according to the path quality; the selection module 53a is used to: select the top N return-to-source paths from the M return-to-source paths after the secondary sorting.

[0111] In an optional embodiment, the device also includes: a calculation module, which is used to: if the target routing strategy is a comprehensive routing strategy, calculate the comprehensive performance scores of the M return-to-source paths based on the path quality and path cost of the M return-to-source paths; the selection module 53a is used to: select N return-to-source paths with the highest comprehensive performance scores from the M return-to-source paths.

[0112] In an optional embodiment, the selection module 53a is also used to: before selecting N return-to-source paths whose performance meets the requirements from M return-to-source paths, determine the number N of return-to-source paths that need to be returned based on the user's attribute information and / or the attribute information of the source station; or, display a configuration interface, and obtain the configured number N of return-to-source paths that need to be returned in response to the configuration operation on the configuration interface.

[0113] In an optional embodiment, the multiple routing strategies include: a quality-first routing strategy, a cost-first routing strategy, and a comprehensive routing strategy.

[0114] The above describes the internal functions and structure of the path planning device. Figure 5b As shown, in practice, the path planning device can be implemented as a routing device, including: a memory 54b, a processor 55b and a communication component 56b.

[0115] The memory 54b is used to store computer programs and can be configured to store various other data to support operations on the routing device, such as instructions for any application or method used to operate on the routing device.

[0116] The memory 54b may be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0117] The processor 55b is coupled to the memory 54b and is used to execute the computer program in the memory 54b, so as to: receive a path planning request sent by the first CDN node in the CDN network through the communication component 56b, where the path planning request is used to request planning of a back-to-source path from the first CDN node to the source station; based on the path planning request, plan M back-to-source paths from the first CDN node to the source station, and select a target routing strategy from multiple routing strategies, where M is a positive integer; and return information of N back-to-source paths out of the M back-to-source paths to the first CDN node according to the target routing strategy, so that the first CDN node can establish a connection with the source station based on the N back-to-source paths; wherein N is a positive integer, and 1≤N≤M.

[0118] In an optional embodiment, when the processor 55b selects a target routing strategy from a plurality of routing strategies, it is specifically used to: obtain the service quality parameters contracted by the service provider corresponding to the source station, and select the target routing strategy from a plurality of routing strategies according to the service quality parameters; or obtain the identification information of the routing strategy specified for use by the service provider corresponding to the source station, and select the routing strategy corresponding to the identification information as the target routing strategy from a plurality of routing strategies; or obtain the policy selection parameters provided by the first CDN node, and select the target routing strategy from a plurality of routing strategies according to the policy selection parameters.

[0119] In an optional embodiment, the service quality parameter is the overall service delay and / or average packet loss rate required by the service provider; and the policy selection parameter is the path delay and / or packet loss rate required by the first CDN node.

[0120] In an optional embodiment, when the processor 55b returns information of N back-to-source paths out of M back-to-source paths to the first CDN node according to the target routing strategy, it is specifically used to: select N back-to-source paths whose performance meets the requirements from the M back-to-source paths according to the path performance evaluation index required by the target routing strategy, and return the information of the N back-to-source paths sorted by performance to the first CDN node.

[0121] In an optional embodiment, when the processor 55b selects N return-to-source paths whose performance meets the requirements from M return-to-source paths according to the path performance evaluation index required by the target routing strategy, it is specifically used to: if the target routing strategy is a quality-first routing strategy, perform initial sorting according to the path quality of the M return-to-source paths; if there are return-to-source paths with the same or similar path quality among the M return-to-source paths after the initial sorting, perform secondary sorting on the return-to-source paths with the same or similar path quality according to the path cost; and select the N return-to-source paths with the highest sorting from the M return-to-source paths after the secondary sorting.

[0122] In an optional embodiment, when the processor 55b selects N return-to-source paths whose performance meets the requirements from M return-to-source paths according to the path performance evaluation index required by the target routing strategy, it is specifically used to: if the target routing strategy is a cost-first routing strategy, perform initial sorting according to the path costs of the M return-to-source paths; if there are return-to-source paths with the same or similar path costs among the M return-to-source paths after the initial sorting, perform secondary sorting on the return-to-source paths with the same or similar path costs according to the path quality; and select the N return-to-source paths with the highest sorting from the M return-to-source paths after the secondary sorting.

[0123] In an optional embodiment, when the processor 55b selects N return-to-source paths whose performance meets the requirements from M return-to-source paths according to the path performance evaluation index required by the target routing strategy, it is specifically used to: if the target routing strategy is a comprehensive routing strategy, calculate the comprehensive performance scores of the M return-to-source paths according to the path quality and path cost of the M return-to-source paths; and select N return-to-source paths with the highest comprehensive performance scores from the M return-to-source paths.

[0124] In an optional embodiment, the processor 55b is also used to: before selecting N return-to-source paths whose performance meets the requirements from M return-to-source paths, determine the number N of return-to-source paths that need to be returned based on the user's attribute information and / or the attribute information of the source station; or, display a configuration interface, and obtain the configured number N of return-to-source paths that need to be returned in response to the configuration operation on the configuration interface.

[0125] In an optional embodiment, the multiple routing strategies include: a quality-first routing strategy, a cost-first routing strategy, and a comprehensive routing strategy.

[0126] The routing device provided in the embodiment of the present application can dynamically plan a return path to the source station for the CDN node according to the path planning request initiated by the CDN node, and supports multiple routing strategies. In the case of multiple return paths, a target routing strategy can be selected from multiple routing strategies, and some of the return path information in the multiple return paths are returned to the CDN node that initiated the path planning request according to the target routing strategy, so that the CDN node can establish a connection with the source station based on the received return path information. Among them, in the process of dynamically planning the return path for the CDN node, it is allowed to select the target routing strategy from multiple routing strategies, and different routing strategies can be used according to different needs or application scenarios, so as to select a return path that better meets the application needs or scenarios.

[0127] Further, if Figure 5b As shown, the routing device also includes: a display 57b, a power supply component 58b, an audio component 59b and other components. Figure 5b Only some components are shown schematically, which does not mean that the routing device only includes Figure 5b It should be noted that Figure 5b The components in the dotted box are optional components, not mandatory components, and the specific components depend on the product form of the routing device.

[0128] Accordingly, the present application also provides a computer-readable storage medium storing a computer program, which can achieve Figure 4a The steps in the method embodiment shown may be executed by a routing device.

[0129] Figure 6a A schematic diagram of a CDN connection establishment device provided in an exemplary embodiment of the present application, the device can be implemented as a first CDN node in a CDN network, such as Figure 6a As shown, the device includes: a sending module 61a, a receiving module 62a and a connecting module 63a.

[0130] The sending module 61a is used to: send a path planning request to the routing device to request the routing device to plan a back-to-source path from the first CDN node to the source station;

[0131] The receiving module 62a is used to: receive information of N back-to-source paths returned by the routing device, where the N back-to-source paths are selected by the routing device from the planned M back-to-source paths according to a target routing strategy among multiple routing strategies;

[0132] The connection establishment module 63a is used to establish a connection with the source station according to the information of N back-to-source paths; M and N are positive integers, and 1≤N≤M.

[0133] In an optional embodiment, the device also includes: a selection module; the selection module is used to: select information of a target return-to-source path to be used from information of N return-to-source paths; a connection establishment module 63a is used to: establish a connection with an adjacent next-hop CDN node based on the information of the target return-to-source path; and a sending module 61a is used to: provide the path information after the next-hop CDN node to the next-hop CDN node, so that the next-hop CDN node can establish a connection with its next hop.

[0134] In an optional embodiment, the information of the N back-to-source paths is sorted from high to low according to the path performance. When the selection module selects the information of the target back-to-source path to be used from the information of the N back-to-source paths, it is specifically used to: select the information of at least one back-to-source path with the highest sorting from the information of the N back-to-source paths as the information of the target back-to-source path.

[0135] In an optional embodiment, there are multiple target back-to-source paths, and the device also includes: a grouping module, used to divide the multiple target back-to-source paths into multiple groups; and a resource acquisition module, used to request resource content from the source station using the target back-to-source paths in different groups in different time periods or under different network conditions.

[0136] In an optional embodiment, there are multiple target back-to-source paths, and the device further includes: a setting module, which is used to set one of the multiple target back-to-source paths as a primary back-to-source path, and set other target back-to-source paths as secondary back-to-source paths.

[0137] Further optionally, the setting module is specifically used to: set a back-to-source path with the best path performance, the shortest path length, or containing a specified CDN node among the multiple target back-to-source paths as the primary back-to-source path.

[0138] In an optional embodiment, the selection module is specifically used to: display an interactive interface, on which a path quantity configuration item is displayed; in response to a configuration operation on the path quantity configuration item, obtain a user-configured path quantity L, where L is a positive integer and 1≤L≤N; from the information of N back-to-source paths, select information of L back-to-source paths as information of target back-to-source paths, and display the information of the selected L back-to-source paths on the interactive interface.

[0139] The above describes the internal functions and structure of the CDN connection establishment device. Figure 6b As shown, in practice, the CDN connection establishment device can be implemented as a first CDN node in the CDN network, including: a memory 64b, a processor 65b and a communication component 66b.

[0140] The memory 64b is used to store computer programs and can be configured to store various other data to support operations on the first CDN node. Examples of such data include instructions for any application or method operating on the first CDN node, contact data, phone book data, messages, pictures, videos, etc.

[0141] The memory 64b may be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0142] The processor 65b is coupled to the memory 64b and is used to execute the computer program in the memory 64b, so as to: send a path planning request to the routing device to request the routing device to plan a return path from the first CDN node to the source station; receive information on N return paths returned by the routing device through the communication component 66b, where the N return paths are selected by the routing device from the planned M return paths according to the target routing strategy among multiple routing strategies; establish a connection with the source station according to the information on the N return paths; M and N are positive integers, and 1≤N≤M.

[0143] In an optional embodiment, when the processor 65b establishes a connection with the source station based on the information of N back-to-source paths, it is specifically used to: select the information of the target back-to-source path to be used from the information of the N back-to-source paths; establish a connection with the adjacent next-hop CDN node based on the information of the target back-to-source path; and provide the path information after the next-hop CDN node to the next-hop CDN node so that the next-hop CDN node can establish a connection with its next hop.

[0144] In an optional embodiment, the information of the N back-to-source paths is sorted from high to low according to the path performance. When the processor 65b selects the information of the target back-to-source path to be used from the information of the N back-to-source paths, it is specifically used to: select the information of at least one back-to-source path with the highest sorting from the information of the N back-to-source paths as the information of the target back-to-source path.

[0145] In an optional embodiment, there are multiple target back-to-source paths, and the processor 65b is further used to divide the multiple target back-to-source paths into multiple groups; and use the target back-to-source paths in different groups to request resource content from the source station in different time periods or under different network conditions.

[0146] In an optional embodiment, there are multiple target back-to-source paths, and the processor 65b is further configured to set one of the multiple target back-to-source paths as a primary back-to-source path, and set the other target back-to-source paths as secondary back-to-source paths.

[0147] Further optionally, when setting the primary back-to-source path, the processor 65b is specifically configured to: set a back-to-source path with the best path performance, the shortest path length, or containing a specified CDN node among multiple target back-to-source paths as the primary back-to-source path.

[0148] In an optional embodiment, when selecting information of a target back-to-source path, the processor 65b is specifically used to: display an interactive interface, on which a path quantity configuration item is displayed; in response to a configuration operation on the path quantity configuration item, obtain a user-configured path quantity L, where L is a positive integer and 1≤L≤N; select information of L back-to-source paths from information of N back-to-source paths as information of the target back-to-source path, and display information of the selected L back-to-source paths on the interactive interface.

[0149] The CDN node provided in the embodiment of the present application can request the routing device to dynamically plan a return path to the source station for it by sending a path planning request to the routing device; wherein the routing device selects a target routing strategy from a plurality of routing strategies, and returns the information of the return path to the CDN node based on the target routing strategy; after obtaining the return path information, the CDN node establishes a connection with the adjacent next hop on the one hand, and sends down the subsequent path information in sequence on the other hand, so that the next hop can continue to establish a connection with its next hop according to the subsequent path information until the CDN connection is established, which can ensure that the CDN nodes along the way can accurately establish connections according to the return path, thereby ensuring the availability of the CDN network system.

[0150] Further, if Figure 6b As shown, the first CDN node also includes: a display 67b, a power component 68b, an audio component 69b and other components. Figure 6b Only some components are shown schematically, which does not mean that the first CDN node only includes Figure 6b Components shown.

[0151] Accordingly, the present application also provides a computer-readable storage medium storing a computer program, which can achieve Figure 4b The steps in the method embodiment shown may be executed by the first CDN node.

[0152] Above Figure 5b and Figure 6bThe communication component in is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0153] Above Figure 5b and Figure 6b The display in the embodiment includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0154] Above Figure 5b and Figure 6b The power supply component in the device provides power to various components of the device where the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply component is located.

[0155] Above Figure 5b and Figure 6b The audio component in can be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal.

[0156] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0157] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0158] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0159] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0160] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0161] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0162] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0163] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0164] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A path planning method, characterized in that: include: Receiving a path planning request sent by a first CDN node in a content delivery network CDN network, wherein the path planning request is used to request planning of a back-to-source path from the first CDN node to an origin station; The source station is dynamically changing, being dynamically generated when needed and dynamically cancelled when not needed; Based on the path planning request, M back-to-source paths are planned from the first CDN node to the source station, and a target routing strategy is selected from multiple routing strategies, where M is a positive integer; Return information of N back-to-source paths among the M back-to-source paths to the first CDN node according to the target routing strategy, so that the first CDN node can establish a connection with the source station based on the N back-to-source paths; wherein N is a positive integer, and 1≤N≤M; Returning information of N back-to-source paths among the M back-to-source paths to the first CDN node according to the target routing strategy includes: If the target routing strategy is a quality / cost priority routing strategy, an initial sorting is performed according to the path quality / path cost of the M back-to-source paths; according to the initial sorting, back-to-source paths with the same or similar path quality / path cost are determined in turn and divided into a group until back-to-source paths with different and dissimilar path quality / path cost appear; the back-to-source paths in the group are secondary sorted according to the path cost / path quality; if N is greater than the number of back-to-source paths in the group, all back-to-source paths in the group are returned according to the secondary sorting order, and starting from the back-to-source paths with different and dissimilar path quality / path cost, back-to-source paths with the same or similar path quality / path cost are continued to be determined, and the above grouping, sorting and selection operations are repeated until N back-to-source paths are selected; and information on the N back-to-source paths is returned to the first CDN node.

2. The method according to claim 1, characterized in that Select a target routing strategy from a variety of routing strategies, including: Obtaining the service quality parameters contracted by the service provider corresponding to the source station, and selecting a target routing strategy from a plurality of routing strategies according to the service quality parameters; or Obtain identification information of a routing strategy specified by a service provider corresponding to the source station, and select a routing strategy corresponding to the identification information from multiple routing strategies as a target routing strategy; or Acquire a policy selection parameter provided by the first CDN node, and select a target routing strategy from a plurality of routing strategies according to the policy selection parameter.

3. The method according to claim 2, characterized in that The service quality parameter is the overall service delay and / or average packet loss rate required by the service provider; the policy selection parameter is the path delay and / or packet loss rate required by the first CDN node.

4. The method according to claim 1, characterized in that: The method further comprises: If the target routing strategy is a comprehensive routing strategy, the comprehensive performance scores of the M back-to-source paths are calculated based on the path quality and path cost of the M back-to-source paths; Select N back-to-source paths with the highest comprehensive performance scores from the M back-to-source paths.

5. The method according to claim 1, characterized in that Before returning information of N back-to-source paths among the M back-to-source paths to the first CDN node according to the target routing strategy, the method further includes: Determine the number N of back-to-source paths that need to be returned based on the user's attribute information and / or the source station's attribute information; or A configuration interface is displayed, and in response to a configuration operation on the configuration interface, the number N of back-to-source paths that need to be returned is obtained.

6. The method according to any one of claims 1 to 5, characterized in that: The multiple routing strategies include: a quality-first routing strategy, a cost-first routing strategy and a comprehensive routing strategy.

7. A method for establishing a content distribution network CDN connection, applicable to a first CDN node in a CDN network, characterized in that: The method comprises: Sending a path planning request to a routing device to request the routing device to plan a back-to-source path from the first CDN node to the source station; the source station is dynamically changing, dynamically generated when needed, and dynamically cancelled when not needed; receiving information of N back-to-source paths returned by the routing device, where the N back-to-source paths are selected by the routing device from the planned M back-to-source paths according to a target routing strategy among multiple routing strategies; Establish a connection with the source station according to the information of the N back-to-source paths; M and N are positive integers, and 1≤N≤M; Among them, the method of selecting N return-to-source paths from the planned M return-to-source paths is implemented by the following steps: if the target routing strategy is a quality / cost priority routing strategy, then the M return-to-source paths are initially sorted according to their path quality / path cost; according to the initial sorting, the return-to-source paths with the same or similar path quality / path cost are determined in turn and divided into a group until return-to-source paths with different and dissimilar path quality / path cost appear; the return-to-source paths in the group are secondary sorted according to the path cost / path quality; if N is greater than the number of return-to-source paths in the group, all return-to-source paths in the group are returned according to the secondary sorting order, and starting from the return-to-source paths with different and dissimilar path quality / path cost, return-to-source paths with the same or similar path quality / path cost are continued to be determined, and the above grouping, sorting and selection operations are repeated until N return-to-source paths are selected.

8. The method according to claim 7, characterized in that Establishing a connection with the source station according to the information of the N back-to-source paths includes: Selecting information of a target back-to-source path to be used from the information of the N back-to-source paths; Establishing a connection with an adjacent next-hop CDN node based on the target back-to-source path information; The path information after the next-hop CDN node is provided to the next-hop CDN node, so that the next-hop CDN node can establish a connection with its next-hop.

9. The method according to claim 8, characterized in that The information of the N back-to-source paths is sorted from high to low according to the path performance. Then, the information of the target back-to-source path to be used is selected from the information of the N back-to-source paths, including: From the information of the N back-to-source paths, information of at least one back-to-source path that is ranked the highest is selected as information of the target back-to-source path.

10. The method according to claim 8 or 9, characterized in that: There are multiple target return-to-source paths, and the method further includes: Dividing the multiple target back-to-source paths into multiple groups; and In different time periods or under different network conditions, resource content is requested from the source site using target back-to-source paths in different groups.

11. The method according to claim 8 or 9, characterized in that: There are multiple target return-to-source paths, and the method further includes: One of the multiple target back-to-source paths is set as a primary back-to-source path, and the other target back-to-source paths are set as secondary back-to-source paths.

12. The method according to claim 11, characterized in that Setting one of the multiple target back-to-source paths as the primary back-to-source path includes: A back-to-source path with the best path performance, the shortest path length, or containing a specified CDN node among the multiple target back-to-source paths is set as a primary back-to-source path.

13. The method according to claim 8 or 9, characterized in that: Selecting information of a target back-to-source path to be used from the information of the N back-to-source paths includes: Displaying an interactive interface, wherein the interactive interface displays a path quantity configuration item; In response to the configuration operation on the path quantity configuration item, obtaining the path quantity L configured by the user, where L is a positive integer and 1≤L≤N; From the information of the N back-to-source paths, information of L back-to-source paths is selected as information of target back-to-source paths, and the information of the selected L back-to-source paths is displayed on the interactive interface.

14. A routing device, characterized in that: include: Memory and processor; The memory is used to store computer programs; The processor, coupled to the memory, is configured to execute the computer program to: Receiving a path planning request sent by a first CDN node in a content delivery network CDN network, wherein the path planning request is used to request planning of a back-to-source path from the first CDN node to an origin station; The source station is dynamically changing, being dynamically generated when needed and dynamically cancelled when not needed; Based on the path planning request, M back-to-source paths are planned from the first CDN node to the source station, and a target routing strategy is selected from multiple routing strategies, where M is a positive integer; Return information of N back-to-source paths among the M back-to-source paths to the first CDN node according to the target routing strategy, so that the first CDN node can establish a connection with the source station based on the N back-to-source paths; wherein N is a positive integer, and 1≤N≤M; When the processor returns information of N back-to-source paths among the M back-to-source paths to the first CDN node according to the target routing strategy, the processor is specifically configured to: If the target routing strategy is a quality / cost priority routing strategy, an initial sorting is performed according to the path quality / path cost of the M back-to-source paths; according to the initial sorting, back-to-source paths with the same or similar path quality / path cost are determined in turn and divided into a group until back-to-source paths with different and dissimilar path quality / path cost appear; the back-to-source paths in the group are secondary sorted according to the path cost / path quality; if N is greater than the number of back-to-source paths in the group, all back-to-source paths in the group are returned according to the secondary sorting order, and starting from the back-to-source paths with different and dissimilar path quality / path cost, back-to-source paths with the same or similar path quality / path cost are continued to be determined, and the above grouping, sorting and selection operations are repeated until N back-to-source paths are selected; and information on the N back-to-source paths is returned to the first CDN node.

15. A content distribution network CDN node, characterized in that: include: Memory and processor; The memory is used to store computer programs; The processor, coupled to the memory, is configured to execute the computer program to: Sending a path planning request to a routing device to request the routing device to plan a back-to-source path from the first CDN node to the source station; the source station is dynamically changing, dynamically generated when needed, and dynamically cancelled when not needed; receiving information of N back-to-source paths returned by the routing device, where the N back-to-source paths are selected by the routing device from the planned M back-to-source paths according to a target routing strategy among multiple routing strategies; Establish a connection with the source station according to the information of the N back-to-source paths; M and N are positive integers, and 1≤N≤M; Among them, the method of selecting N return-to-source paths from the planned M return-to-source paths is implemented in the following manner: if the target routing strategy is a quality / cost priority routing strategy, the M return-to-source paths are initially sorted according to their path qualities / path costs; according to the initial sorting, the return-to-source paths with the same or similar path qualities / path costs are determined in turn and divided into a group until return-to-source paths with different and dissimilar path qualities / path costs appear; the return-to-source paths in the group are secondary sorted according to the path cost / path quality; if N is greater than the number of return-to-source paths in the group, all return-to-source paths in the group are returned in the secondary sorting order, and starting from the return-to-source paths with different and dissimilar path qualities / path costs, return-to-source paths with the same or similar path qualities / path costs are continued to be determined, and the above grouping, sorting and selection operations are repeated until N return-to-source paths are selected.

16. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is caused to implement the steps in the method according to any one of claims 1 to 13.