Source return processing method and device
By identifying dedicated line traffic in the CDN network and scheduling it to the target convergence node or converting it into central node traffic for origin routing, the problem of inaccurate scheduling in the global dynamic origin routing method is solved, achieving efficient origin routing and cost reduction for dedicated line traffic.
Patent Information
- Application Number
- CN202410933266.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Existing global dynamic origin routing methods cannot accurately schedule traffic to a specific dedicated data center. Traffic from dedicated networks needs to be routed back to the origin via the public network, which cannot guarantee the quality of the origin routing. Furthermore, the live streaming room has many dispersed nodes, resulting in high costs.
By determining whether the current origin request traffic is dedicated line traffic, it can be routed to the corresponding target convergence node for origin reconnection, or, in the absence of caching, converted to central node traffic for origin reconnection, utilizing a ring network for origin reconnection, thus avoiding access through the public network.
It enables precise routing of dedicated line traffic to dedicated data centers, ensuring network speed and origin return quality, while reducing origin return links and lowering traffic costs.
Smart Images

Figure CN118972459A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of content distribution network, and in particular to a back-to-source processing method, device, computer equipment and storage medium. Background Art
[0002] CDN (Content Delivery Network) live downlink is mainly responsible for the distribution of streaming audio and video streams. It distributes the live streams of the upstream push points into a tree structure to meet the requests of large-scale users. In this distribution process, the edge nodes can go back to the source, that is, the edge nodes pull the live streams that users need to access in real time from the source station or the secondary source station.
[0003] As the business grows, CDN networks need to continue to expand in size to cover more users and regions. In addition, different businesses and application scenarios have different requirements for CDN networks, making the construction of self-built CDN networks increasingly complex.
[0004] In the construction of self-built CDN networks, there are usually dedicated lines of small operators (such as China Media Group and Feixiang) that need to be accessed. In this case, the original global dynamic back-to-source method cannot accurately dispatch to a certain dedicated line room. The corresponding traffic of small operators can only be accessed through the public network to the original ring network for back-to-source. However, due to the large number of users on the public network, the back-to-source quality of small operators cannot be guaranteed. At the same time, due to the large number of dispersed nodes in the live broadcast room, the cost is relatively high. Summary of the invention
[0005] The purpose of this application is to provide a back-to-source processing method, device, computer equipment and storage medium to solve the following technical problems: the current existing global dynamic back-to-source method cannot be accurately dispatched to a dedicated line computer room, the traffic back-to-source of the dedicated line network needs to be back-to-source through the public network, the back-to-source quality cannot be guaranteed, and there are many scattered nodes in the live broadcast room, and the cost is high.
[0006] One aspect of an embodiment of the present application provides a back-to-source processing method, including: determining whether first traffic of a current back-to-source request is dedicated line traffic, the back-to-source request is initiated by an edge node and is used to request a target resource, the edge node includes a dedicated line edge node, the traffic corresponding to the dedicated line edge node is dedicated line traffic, and the network segment corresponding to the dedicated line traffic is a first network segment; in the case of determining that the first traffic is dedicated line traffic, determining a target dedicated line and a corresponding target convergence node corresponding to the first traffic, wherein different dedicated lines correspond to different convergence nodes in a ring network, the ring network is composed of central nodes of a content distribution network, and the convergence node is a central node in the ring network; scheduling the first traffic to the target convergence node, so as to return the target resource through the target convergence node if the target resource has a cache, or convert the first traffic from the first network segment to a second network segment corresponding to a first central node through the target convergence node if the target resource does not have a cache, to obtain a second traffic, and back-source according to the second traffic through the ring network, the first central node being the remaining central nodes in the ring network except the convergence node.
[0007] Optionally, the retrieval through the ring network according to the second traffic includes: when the target resource is obtained through the first central node, the target resource is converted from the second network segment to the first network segment through the first central node and then transmitted to the target convergence node.
[0008] Optionally, performing tracing back to the source through the ring network according to the second traffic includes: when it is determined that the second traffic meets a preset condition, determining that the second traffic is unpopular traffic; when it is determined that the second traffic is unpopular traffic, performing tracing back to the source according to a preset single-line relay in the ring network.
[0009] Optionally, the method also includes: when it is determined that the second traffic does not meet the preset condition, determining that the second traffic is not unpopular traffic; when it is determined that the second traffic is not unpopular traffic, returning to the source in the ring network according to a preset multi-line relay.
[0010] Optionally, the method further includes: when it is determined that the first traffic is not dedicated line traffic, scheduling the first traffic to the first central node for back-to-source.
[0011] Optionally, the method further includes: when the target convergence node is abnormal, scheduling the first traffic to the first central node for back-to-source.
[0012] One aspect of an embodiment of the present application provides a back-to-source processing device, including: a first determination module, used to determine whether the first traffic of the current back-to-source request is a dedicated line traffic, the back-to-source request is initiated by an edge node and is used to request a target resource, the edge node includes a dedicated line edge node, the traffic corresponding to the dedicated line edge node is a dedicated line traffic, and the network segment corresponding to the dedicated line traffic is a first network segment; a second determination module, used to determine the target dedicated line and the corresponding target convergence node corresponding to the first traffic when it is determined that the first traffic is a dedicated line traffic, wherein different dedicated lines correspond to different convergence nodes in a ring network, and the ring network is composed of content distribution The first traffic is composed of a central node of the ring network, the convergence node is a central node in the ring network; a scheduling module is used to schedule the first traffic to the target convergence node, so as to return the target resource through the target convergence node if the target resource is cached, or to convert the first traffic from the first network segment to the second network segment corresponding to the first central node through the target convergence node if the target resource is not cached, to obtain the second traffic, and to return the second traffic to the source through the ring network, the first central node is the remaining central nodes in the ring network except the convergence node.
[0013] Optionally, the back-to-source processing device is further used for: when the target resource is acquired through the first central node, converting the target resource from the second network segment to the first network segment through the first central node and then transmitting it to the target convergence node.
[0014] One aspect of an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to implement the steps of the above-mentioned back-to-source processing method when executing the computer program.
[0015] One aspect of an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the above-mentioned back-to-source processing method.
[0016] The back-to-source processing method, apparatus, computer device, and storage medium provided in the embodiments of the present application include the following advantages: By determining whether the first traffic of the current return-to-source request is dedicated line traffic, when it is determined that the first traffic is dedicated line traffic, determining the target dedicated line and the corresponding target convergence node corresponding to the first traffic, scheduling the first traffic to the target convergence node, and returning the target resource through the target convergence node when the target resource has a cache, or converting the first traffic into the second traffic corresponding to the first central node when the target resource does not have a cache, and returning to the source through the ring network according to the second traffic, the dedicated line traffic can be accurately scheduled to the dedicated line computer room, so that the dedicated line edge node does not need to access the ring network through the public network for return to the source, but accesses the convergence node in the ring network through the dedicated line for return to the source, which can ensure the network speed and return to the source quality of the dedicated line edge node; at the same time, returning to the source through the convergence node can reduce the return to the source link, thereby reducing the traffic cost generated by returning to the source. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is the tree structure in CDN live broadcast; Figure 2 A schematic diagram of a CDN network without a small operator's convergence node; Figure 3 This is an example diagram of returning to the source in a live broadcast scenario; Figure 4 A schematic diagram of a CDN network with convergence nodes of small operators; Figure 5 A specific example diagram for building a CDN network with convergence nodes of small operators; Figure 6 The flowchart of the back-to-source processing method of the first embodiment of the present application is schematically shown; Figure 7 This is a specific example diagram of the back-to-source processing method; Figure 8 for Figure 6 Flow chart of the sub-steps of step S230; Fig. 9 for Figure 6 Flowchart of newly added steps; Fig.10 This is a flowchart of the back-to-source processing method; Fig.11 A block diagram of a back-to-source processing device according to Embodiment 2 of the present application is schematically shown; Fig.12 The hardware architecture diagram of the computer device of the third embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0019] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0020] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.
[0021] The following is an explanation of the terms involved in this application: Static backhaul refers to backhauling data via a pre-planned path without considering other circumstances.
[0022] Dynamic back-to-source refers to the process in which, in CDN or other content distribution systems, when the edge node (cache server) cannot satisfy user requests from the local cache, the system can dynamically select the best data source for back-to-source requests based on multiple factors such as real-time network conditions, load conditions, and source station status, and redistribute the acquired content to users.
[0023] Small operators refer to operators other than China Telecom, China Mobile and China Unicom.
[0024] CDN live streaming is mainly responsible for the distribution of streaming media audio and video streams. It distributes the live streams of the upstream push point into a tree structure to meet the requests of large-scale users. In this distribution process, the edge node can go back to the source, that is, the edge node pulls the live streams that users need to access in real time from the source station or the secondary source station. A similar tree structure is as follows Figure 1 shown.
[0025] Please refer to Figure 2, which is a schematic diagram of a CDN network without a small operator's convergence node, where 110 is the source station, 120 is the ring network, 121 is each central node in the ring network, 130 is a general edge node, and 140 is an edge node corresponding to a small operator. Figure 2 As shown, due to the use of global dynamic backhaul, the edge node 140 corresponding to the small operator is the same as the general edge node 130, and accesses the ring network 120 through the public network for backhaul. Since the edge node 140 corresponding to the small operator needs to share the public network with the edge node 130 of the public network, and there are many users on the public network, the speed is difficult to guarantee and there is a tendency for intermittent jitter problems. The backhaul quality of the edge node corresponding to the small operator cannot be guaranteed, which may cause users to experience lag when accessing the live stream.
[0026] Please refer to Figure 3 , which is an example diagram of back-to-source in a live broadcast scenario. As shown in the figure, the link corresponding to the arc arrow represents the traffic transmission path back to the source. It can be seen that the more nodes a live broadcast room has, the more links corresponding to the arc arrow, and the higher the traffic cost.
[0027] Please refer to Figure 4 , which is a schematic diagram of a CDN network with a convergence node of a small operator. Among them, 122 is the convergence node corresponding to the small operator. As shown in the figure, the edge node 140 corresponding to the small operator is first dispatched to the convergence node 122 in the ring network 120 through static back-to-source, and then back-to-source is performed through the ring network 120 through the logic of dynamic back-to-source. Since there is no need to share the public network, the network speed and back-to-source quality of the edge node corresponding to the small operator can be guaranteed. At the same time, since all edge nodes 140 corresponding to the small operator can go to the convergence node 122 for back-to-source, the convergence node 122 only needs to obtain a resource from the source station 110. When other back-to-source requests reach the convergence node 122 later, since the convergence node 122 has the corresponding resources and will hit the cache, the convergence node 122 will directly return the cache of the resource to the edge node 140, thereby greatly reducing the back-to-source link and reducing the cost of back-to-source.
[0028] Please refer to Figure 5 , which is a specific example diagram of a CDN network built with convergence nodes of small operators. As shown in the figure, the edge nodes of small operator gd (Radio and Television) can be back-sourced through the convergence nodes of gd in the ring network, and the edge nodes of small operator fx (Feixian) can be back-sourced through the convergence nodes of fx in the ring network, thereby ensuring the back-source quality of the corresponding edge nodes of small operators gd and fx, reducing the links of the back-source, and thus reducing the cost of the back-source.
[0029] The following will introduce the back-to-source processing solution of the embodiment of the present application through several embodiments.
[0030] Embodiment 1 Figure 6 The flowchart of the back-to-source processing method of the first embodiment of the present application is schematically shown. As shown in the figure, it can include steps S210 to S230, which are specifically described as follows: Step S210, determine whether the first traffic of the current back-to-source request is dedicated line traffic. The back-to-source request is initiated by an edge node and is used to request target resources. The edge node includes a dedicated line edge node. The traffic corresponding to the dedicated line edge node is dedicated line traffic. The network segment corresponding to the dedicated line traffic is the first network segment.
[0031] The execution subject corresponding to steps S210~S230 may be the dispatching center of the content distribution network, and the dispatching center receives the return-to-source requests initiated by all edge nodes, wherein the edge nodes include general edge nodes and dedicated edge nodes. The dispatching center may judge the network segment of the first traffic. If the network segment of the first traffic belongs to the network segment of the general edge node, the first traffic is determined to be ordinary traffic, not dedicated traffic; if the network segment of the first traffic belongs to the first network segment corresponding to the dedicated edge node, the first traffic is determined to be dedicated traffic. Dedicated traffic may include several types, and accordingly, the first network segment may include several types. For example, dedicated traffic may include two dedicated traffics, namely, radio and television and Feixiang. Accordingly, the first network segment may include the network segment corresponding to radio and television and the network segment corresponding to Feixiang.
[0032] Step S220, when it is determined that the first traffic is dedicated line traffic, determine the target dedicated line and the corresponding target convergence node corresponding to the first traffic, wherein different dedicated lines correspond to different convergence nodes in the ring network, the ring network is composed of the central node of the content distribution network, and the convergence node is a central node in the ring network.
[0033] The ring network can be connected to the edge node and the source station respectively. The number of convergence nodes can correspond to the number of dedicated lines. For example, if the number of dedicated lines is 2, the number of convergence nodes is also 2, corresponding to two different dedicated lines. When the first flow is determined to be dedicated line flow, the target dedicated line corresponding to the first flow can be determined according to the network segment corresponding to the first flow, and then the corresponding target convergence node can be determined according to the target dedicated line.
[0034] For example, the ring network includes the convergence node of radio and television and the convergence node of Feixiang. The radio and television dedicated line corresponds to the convergence node of radio and television, and the Feixiang dedicated line corresponds to the convergence node of radio and television. The dispatch center can first determine whether the first traffic is the traffic corresponding to radio and television or Feixiang. When it is determined to be the traffic corresponding to radio and television or Feixiang, it is determined that the first traffic is dedicated line traffic, and then the dedicated line corresponding to the first traffic is further determined according to whether the network segment corresponding to the first traffic belongs to the network segment corresponding to radio and television or the network segment corresponding to Feixiang. Assuming that the network segment corresponding to the first traffic is the network segment corresponding to radio and television, it can be determined that the target dedicated line corresponding to the first traffic is radio and television, corresponding to the convergence node of radio and television in the ring network.
[0035] Step S230, schedule the first traffic to the target convergence node to return the target resource through the target convergence node if the target resource has a cache, or convert the first traffic from the first network segment to the second network segment corresponding to the first central node through the target convergence node if the target resource does not have a cache to obtain the second traffic, and return to the source through the ring network according to the second traffic, the first central node being the remaining central nodes in the ring network except the convergence node.
[0036] After the first traffic is scheduled to the target convergence node, the convergence node can determine whether it hits the cache. If it is determined that the cache is hit, the target resource is directly returned to the dedicated edge node that initiated the back-to-source request; if the cache is not hit, the first traffic is converted from the first network segment to the second network segment corresponding to the first central node to obtain the second traffic, and then the back-to-source is performed through the ring network according to the second traffic, such as obtaining the target resource through the first central node or from the source station.
[0037] It is understandable that after the convergence node obtains the target resource, the convergence node will cache the target resource. If other dedicated edge nodes of the same dedicated line are dispatched to the convergence node for back-to-source, since the cache will be hit, the target resource will be returned directly by the convergence node without going through the subsequent network segment conversion and back-to-source processing through the ring network.
[0038] Please refer to Figure 7, which is a specific example diagram of the back-to-source processing method. As shown in the figure, if the first traffic is Feixiang's dedicated line traffic, and the network segment corresponding to the first central node is 192, then after the Feixiang edge node is dispatched to the Feixiang convergence node (target convergence node) according to the back-to-source request, if the Feixiang convergence node has a cache of the target resource, it will hit the cache, directly obtain the target resource from the cache and return it to the Feixiang edge node; if the Feixiang convergence node does not have a cache of the target resource, the first traffic of the Feixiang network segment can be converted to the 192 network segment corresponding to the first central node, and then back-to-source through the ring network. Similarly, if the first traffic is the dedicated line traffic of radio and television, and its corresponding network segment is 103, after the radio and television edge node is dispatched to the radio and television convergence node (target convergence node), if the radio and television convergence node has a cache of the target resource, it will hit the cache, and directly obtain the target resource from the cache and return it to the radio and television edge node; if the radio and television convergence node does not have a cache of the target resource, the first traffic of the 103 network segment can be converted to the 192 network segment corresponding to the first central node, and then returned to the source through the ring network.
[0039] In actual applications, taking the radio and television dedicated line as an example, all the radio and television machine rooms are built with a dedicated line network inside, and then a city A radio and television machine room is built in a certain city A. This machine room is connected to the radio and television network. At the same time, the city A radio and television machine room is also on the original ring network. Through this machine room, any radio and television machine room → city A radio and television machine room (network segment switching) → ring network source station can be used for backhaul.
[0040] In an optional embodiment, returning to the source through the ring network according to the second traffic in step S230 may include: when the target resource is obtained through the first central node, converting the target resource from the second network segment to the first network segment through the first central node and then transmitting it to the target convergence node.
[0041] The target resource is obtained through the first central node, which may be a cache hit of the first central node, or the first node obtains the target resource from the source station. When the target resource is obtained, the first central node converts the target resource from the second network segment to the first network segment and transmits it to the target convergence node, and then the target convergence node returns the target resource to the dedicated line edge node corresponding to the first traffic.
[0042] The retrieval processing method provided in the embodiment of the present application determines whether the first traffic of the current retrieval request is dedicated line traffic. When it is determined that the first traffic is dedicated line traffic, the target dedicated line and the corresponding target convergence node corresponding to the first traffic are determined, and the first traffic is scheduled to the target convergence node. The target convergence node returns the target resource when the target resource is cached, or converts the first traffic into the second traffic corresponding to the first central node when the target resource is not cached. The retrieval is performed through the ring network according to the second traffic, and the dedicated line traffic can be accurately scheduled to the dedicated line computer room, so that the dedicated line edge node does not need to access the ring network through the public network for retrieval, but accesses the convergence node in the ring network through the dedicated line for retrieval, which can ensure the network speed and retrieval quality of the dedicated line edge node; at the same time, by retrieval through the convergence node, the retrieval link can be reduced, thereby reducing the traffic cost generated by retrieval.
[0043] In an exemplary embodiment, the back-to-source processing method of the embodiment of the present application may further include: if it is determined that the first traffic is not dedicated line traffic, scheduling the first traffic to the first central node for back-to-source.
[0044] By scheduling the first traffic to other central nodes in the ring network except the target convergence node for back-to-source when the first traffic is not dedicated line traffic, the original non-dedicated line traffic can be back-to-source through the original back-to-source logic.
[0045] In an exemplary embodiment, the back-to-source processing method of the embodiment of the present application may further include: in the case where the target convergence node is abnormal, scheduling the first traffic to the first central node for back-to-source.
[0046] By dispatching the first traffic to the first central node for return to the source when the target convergence node is abnormal, the return to the source of the dedicated line traffic can be guaranteed when the target convergence node is abnormal.
[0047] In an exemplary embodiment, if Figure 8 As shown, in step S230, returning to the source through the ring network according to the second traffic may include steps S231 to S232: Step S231, when it is determined that the second flow meets the preset condition, it is determined that the second flow is a cold flow.
[0048] The preset condition can be set according to the access frequency of the access content, the traffic peak, the traffic period, the geographical source of the traffic corresponding request, the content type of the access content, etc., and the specific set conditions are not limited here. For example, the preset condition can be that the access frequency of the access content is lower than a certain threshold, and when the access frequency of the access content corresponding to the second traffic is lower than the threshold, it is determined that the second traffic is unpopular traffic.
[0049] Step S232: When it is determined that the second traffic is unpopular traffic, back-to-source traffic is performed in the ring network according to a preset single-line relay.
[0050] Please continue to refer to Figure 7 For example, if the second traffic is the unpopular traffic corresponding to Yangzhou, Jiangsu, the preset single-line relay can be the single-line relay of Yangzhou, Jiangsu in the figure for back-to-source.
[0051] In this embodiment, by determining that the second traffic meets the preset conditions, it is determined that the second traffic is unpopular traffic. When it is determined that the second traffic is unpopular traffic, it is returned to the source according to the preset single-line relay in the ring network. Since there are fewer users corresponding to the unpopular traffic, returning to the source through the preset single-line relay can reduce the occupation of CDN network resources while meeting the return-to-source requirements.
[0052] In an exemplary embodiment, Fig. 9 As shown, the back-to-source processing method of the embodiment of the present application may also include steps S233 and S234: Step S233: when it is determined that the second flow rate does not meet the preset condition, determine that the second flow rate is not a cold flow rate.
[0053] Step S234: When it is determined that the second traffic is not unpopular traffic, a back-to-source method is performed in the ring network according to a preset multi-line relay.
[0054] Please continue to refer to Figure 7 For example, if the second traffic is traffic from Yangzhou, Jiangsu, which is not a cold traffic, it can be returned to the source based on a three-line relay in the ring network.
[0055] Please refer to Fig.10 , which is a flowchart of the back-to-source processing method. As shown in the figure, it can first be determined whether it is the dedicated line traffic corresponding to the radio and television or Feixiang node. If not, it is back-to-source according to the dynamic back-to-source logic (the original back-to-source logic); if so, the second hop relay is first generated according to the four-layer tree logic; then, it is determined whether the current back-to-source traffic is unpopular traffic. If not, the third hop selects a multi-line relay, and then generates a path from the fourth hop to the source station; if so, the third hop selects a single-line relay, and then generates a path from the fourth hop to the source station.
[0056] In this embodiment, by determining that the second traffic does not meet the preset conditions, it is determined that the second traffic does not belong to the unpopular traffic. When it is determined that the second traffic does not belong to the unpopular traffic, it is returned to the source according to the preset multi-line relay in the ring network. When the second traffic does not belong to the unpopular traffic, since the corresponding users may be large, it is effectively guaranteed that the return to the source demand is met by returning to the source through the preset multi-line relay.
[0057] Embodiment 2 Fig.11 The block diagram of the back-to-source processing device 300 according to the second embodiment of the present application is schematically shown. The back-to-source processing device 300 can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment.
[0058] like Fig.11 As shown, the back-to-source processing device 300 may include a first determination module 310 , a second determination module 320 , and a scheduling module 330 .
[0059] A first determination module 310 is used to determine whether the first traffic of the current back-to-source request is dedicated line traffic, the back-to-source request is initiated by an edge node and is used to request a target resource, the edge node includes a dedicated line edge node, the traffic corresponding to the dedicated line edge node is dedicated line traffic, and the network segment corresponding to the dedicated line traffic is the first network segment; A second determination module 320 is used to determine a target dedicated line and a corresponding target convergence node corresponding to the first flow when it is determined that the first flow is dedicated line flow, wherein different dedicated lines correspond to different convergence nodes in a ring network, the ring network is composed of central nodes of a content distribution network, and the convergence node is a central node in the ring network; The scheduling module 330 is used to schedule the first traffic to the target convergence node so as to return the target resource through the target convergence node if the target resource has a cache, or to convert the first traffic from the first network segment to the second network segment corresponding to the first central node through the target convergence node if the target resource has no cache, to obtain the second traffic, and to return the traffic to the source through the ring network according to the second traffic. The first central node is the remaining central nodes in the ring network except the convergence node.
[0060] In an exemplary embodiment, the back-to-source processing device 300 is also used to: when the target resource is acquired through the first central node, convert the target resource from the second network segment to the first network segment through the first central node and then transmit it to the target convergence node.
[0061] In an exemplary embodiment, the back-to-source processing device 300 is also used to: when it is determined that the second traffic meets a preset condition, determine that the second traffic belongs to unpopular traffic; when it is determined that the second traffic belongs to unpopular traffic, perform back-to-source according to a preset single-line relay in the ring network.
[0062] In an exemplary embodiment, the back-to-source processing device 300 is also used to: when it is determined that the second traffic does not meet the preset conditions, determine that the second traffic does not belong to unpopular traffic; when it is determined that the second traffic does not belong to unpopular traffic, perform back-to-source according to the preset multi-line relay in the ring network.
[0063] In an exemplary embodiment, the back-to-source processing device 300 is further used to: when it is determined that the first traffic is not dedicated line traffic, schedule the first traffic to the first central node for back-to-source.
[0064] In an exemplary embodiment, the back-to-source processing device 300 is further used to: when the target convergence node is abnormal, schedule the first traffic to the first central node for back-to-source.
[0065] Embodiment 3 Fig.12 The hardware architecture diagram of a computer device 400 suitable for the back-to-source processing method according to the third embodiment of the present application is schematically shown. The computer device 400 can be a device that can automatically perform numerical calculations and / or data processing according to pre-set or stored instructions. For example, it can be a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of multiple servers), a gateway, etc. Fig.12 As shown, the computer device 400 includes at least but is not limited to: a memory 410, a processor 420, and a network interface 430 which can communicate with each other through a system bus. Among them: The memory 410 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 410 can be an internal storage module of the computer device 400, such as a hard disk or memory of the computer device 400. In other embodiments, the memory 410 can also be an external storage device of the computer device 400, such as a plug-in hard disk equipped on the computer device 400, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card, etc. Of course, the memory 410 can also include both the internal storage module of the computer device 400 and its external storage device. In this embodiment, the memory 410 is generally used to store the operating system and various application software installed on the computer device 400, such as the program code of the back-to-source processing method, etc. In addition, the memory 410 can also be used to temporarily store various types of data that have been output or are to be output.
[0066] In some embodiments, the processor 420 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 420 is generally used to control the overall operation of the computer device 400, such as performing control and processing related to data interaction or communication with the computer device 400. In this embodiment, the processor 420 is used to run the program code stored in the memory 410 or process data.
[0067] The network interface 430 may include a wireless network interface or a wired network interface, and the network interface 430 is generally used to establish a communication link between the computer device 400 and other computer devices. For example, the network interface 430 is used to connect the computer device 400 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 400 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0068] It should be pointed out that Fig.12 Only a computer device having components 410 - 430 is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0069] In this embodiment, the back-to-source processing method stored in the memory 410 may also be divided into one or more program modules and executed by one or more processors (processor 420 in this embodiment) to complete the embodiment of the present application.
[0070] Embodiment 4 The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the back-to-source processing method in the embodiment are implemented.
[0071] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card, etc. equipped on the computer device. Of course, the computer-readable storage medium may also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device, such as the program code of the back-to-source processing method in the embodiment. In addition, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
[0072] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0073] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A back-to-source processing method, It is characterized in that include: Determine whether the first traffic of the current back-to-source request is dedicated line traffic, the back-to-source request is initiated by an edge node and is used to request a target resource, the edge node includes a dedicated line edge node, the traffic corresponding to the dedicated line edge node is dedicated line traffic, and the network segment corresponding to the dedicated line traffic is the first network segment; In the case where it is determined that the first traffic is dedicated line traffic, determining a target dedicated line and a corresponding target convergence node corresponding to the first traffic, wherein different dedicated lines correspond to different convergence nodes in a ring network, the ring network is composed of central nodes of a content distribution network, and the convergence node is a central node in the ring network; The first traffic is dispatched to the target convergence node to return the target resource through the target convergence node if the target resource has a cache, or if the target resource does not have a cache, the first traffic is converted from the first network segment to the second network segment corresponding to the first central node through the target convergence node to obtain the second traffic, and the second traffic is returned to the source through the ring network. The first central node is the remaining central node in the ring network except the convergence node.
2. The back-to-source processing method according to claim 1, It is characterized in that The returning the second traffic to the source through the ring network includes: In the case where the target resource is acquired through the first central node, the target resource is converted from the second network segment to the first network segment through the first central node and then transmitted to the target convergence node.
3. The back-to-source processing method according to claim 1, It is characterized in that The returning the second traffic to the source through the ring network includes: In the case where it is determined that the second flow meets the preset condition, determining that the second flow is a cold flow; When it is determined that the second traffic is unpopular traffic, a return to the source is performed in the ring network according to a preset single-line relay.
4. The back-to-source processing method according to claim 3, It is characterized in that The method further comprises: In the case where it is determined that the second flow rate does not meet the preset condition, determining that the second flow rate is not a cold flow rate; When it is determined that the second traffic is not unpopular traffic, a back-to-source method is performed in the ring network according to a preset multi-line relay.
5. The method for returning to the source according to any one of claims 1 to 4, It is characterized in that The method further comprises: When it is determined that the first traffic is not dedicated line traffic, the first traffic is dispatched to the first central node for back-to-source.
6. The back-to-source processing method according to claim 5, It is characterized in that The method further comprises: When the target convergence node is abnormal, the first traffic is dispatched to the first central node for back-source operation.
7. A back-to-source processing device, It is characterized in that include: A first determination module is used to determine whether the first traffic of the current back-to-source request is dedicated line traffic, the back-to-source request is initiated by an edge node and is used to request a target resource, the edge node includes a dedicated line edge node, the traffic corresponding to the dedicated line edge node is dedicated line traffic, and the network segment corresponding to the dedicated line traffic is the first network segment; A second determination module is used to determine a target dedicated line and a corresponding target convergence node corresponding to the first flow when it is determined that the first flow is dedicated line flow, wherein different dedicated lines correspond to different convergence nodes in a ring network, the ring network is composed of a central node of a content distribution network, and the convergence node is a central node in the ring network; A scheduling module is used to schedule the first traffic to the target convergence node so as to return the target resource through the target convergence node if the target resource has a cache, or to convert the first traffic from the first network segment to the second network segment corresponding to the first central node through the target convergence node if the target resource does not have a cache to obtain the second traffic, and to return the traffic to the source through the ring network according to the second traffic, wherein the first central node is the remaining central nodes in the ring network except the convergence node.
8. The back-to-source processing device according to claim 7, It is characterized in that The return-to-source processing device is also used for: In the case where the target resource is acquired through the first central node, the target resource is converted from the second network segment to the first network segment through the first central node and then transmitted to the target convergence node.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, it is used to implement the steps of the back-to-source processing method described in any one of claims 1 to 6.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program can be executed by at least one processor, so that the at least one processor executes the steps of the back-to-source processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Data sending method and device, storage medium and electronic device
CN111182022A
Source return request transmission method, electronic equipment and storage medium
CN114726859A
Scheduling method and system for live broadcast back-to-source and back-to-source server
CN115002497A
Data transmission method and device, electronic equipment and computer readable storage medium
CN117640638A
Resource back-to-source scheduling method and device
CN117750052A
