A method for dynamically selecting a source return exit of a CDN regional autonomous cluster
By combining business performance with physical device status, logical origin exits affected by physical faults in CDN regional autonomous clusters are identified and excluded, and candidate exits are selected for switching. This solves the problem of invalid exit switching in existing technologies and improves the stability and effectiveness of origin performance.
Patent Information
- Application Number
- CN202611658435.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies do not fully consider the physical bearer relationship between logical origin exits in CDN regional autonomous clusters, resulting in invalid exit switching in the event of physical failures and failing to effectively improve origin performance.
By associating changes in business performance with the status of physical devices, persistent back-to-origin anomalies are identified, target abnormal devices are determined, and affected logical back-to-origin exits are eliminated in conjunction with the mapping relationship between logical back-to-origin exits and physical bearer paths. Candidate exits are selected from the remaining candidate exits for switching, and the switching effect is verified through real business traffic.
It improves the effectiveness and stability of the back-to-origin exit switching, avoids unnecessary switching caused by instantaneous network fluctuations, and ensures that the back-to-origin task is not affected by the same physical failure.
Smart Images

Figure CN123145262A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of content delivery network technology, specifically to a method for dynamically selecting the origin exit point of a CDN regional autonomous cluster. Background Technology
[0002] A Content Delivery Network (CDN) distributes content from an origin server to the network edge closer to users by deploying edge nodes globally, thereby reducing user access latency and improving content service quality. When the content requested by a user is not cached on the edge node, i.e., a cache miss occurs, the edge node needs to initiate a request to the upstream node or the origin server to retrieve the corresponding content.
[0003] In large-scale CDN architectures, to improve the availability and efficiency of origin pull services, multiple logical origin pull egress points are typically configured within a Regional Autonomous Cluster (GAC). A GAC can be a set of CDN nodes deployed in the same data center or regional network. These multiple logical origin pull egress points are usually configured as independent origin pull paths at the software level to carry origin pull requests initiated by edge nodes to upstream nodes or the origin server. However, in actual network deployments, the physical bearer paths corresponding to different logical origin pull egress points are not necessarily independent. Multiple logical origin pull egress points may share the same physical device or physical link, such as the same switch, the same uplink network device, or the same physical link.
[0004] Existing technologies typically use logical origin exit points as independent evaluation objects when selecting origin exit points. They collect performance data such as network latency, packet loss rate, available bandwidth, and server load for each logical origin exit point in real-time or historically to evaluate and compare their current performance. Based on the evaluation results, they select the logical origin exit point with the better performance as the current origin path. This approach can improve origin performance by switching logical origin exit points when origin performance is reduced due to factors such as degraded egress point performance or local network congestion.
[0005] However, the aforementioned method of selecting the origin return exit primarily assesses the performance status of the logical origin return exit itself, without fully considering the physical bearer relationships between different logical origin return exits. When a physical bearer device shared by multiple logical origin return exits malfunctions, that device may simultaneously affect the actual origin return capability of multiple logical origin return exits. In this case, if exit switching is still based solely on the performance status of each logical origin return exit, the origin return task may be switched from the currently malfunctioning logical origin return exit to another logical origin return exit. However, the switched logical origin return exit still passes through the same malfunctioning physical device, thus causing the origin return task to continue to be affected by the same physical fault, resulting in the exit switching failing to effectively improve the origin return anomaly.
[0006] Therefore, in a regional autonomous CDN cluster, when the abnormal origin return performance is caused by the physical bearer equipment that multiple logical origin return exits depend on, how to combine the correlation between the logical origin return exits and the physical bearer paths to identify and eliminate multiple logical origin return exits affected by the same physical fault, and select the exit that can actually restore the origin return service from other logical origin return exits that have not been affected by the physical fault, has become a technical problem to be solved. Summary of the Invention
[0007] To address the issue of invalid exit switching caused by the lack of consideration for physical sharing relationships in existing technologies, this invention provides a dynamic selection method for origin exit in CDN regional autonomous clusters. This method can accurately locate shared fault points by associating changes in service performance with the status of physical devices, and then coordinate and avoid them, thereby achieving more reliable and intelligent origin autonomy.
[0008] This invention provides a method for dynamic selection of origin exit points for CDN regional autonomous clusters, including: Based on the source retrieval performance data during the continuous source retrieval process, persistent source retrieval anomalies are identified. After identifying the persistent back-source anomaly, the target abnormal device causing the persistent back-source anomaly is determined based on the correlation between the occurrence sequence of the back-source anomaly and the state change sequence of the physical device carrying the back-source traffic. Based on the target abnormal device, and using the preset mapping relationship between logical back-to-source exit and physical bearer path, all logical back-to-source exits sharing the target abnormal device are determined, and all logical back-to-source exits sharing the target abnormal device are excluded from the candidate exits in a coordinated manner. Select a candidate exit from the remaining candidate exits after the linkage elimination; During the interval between the completion of the current data unit transmission and the start of the next data unit transmission, the source return exit is switched to the candidate exit, and the subsequent data units of the current source return task are used to perform actual source return through the candidate exit. Based on the actual source return result, it is determined whether the candidate exit passes the verification and whether the switching is effective. The identification of persistent source retrieval anomalies includes: The continuous back-to-source task is decomposed into a series of data units with a sequential order, and the back-to-source performance data corresponding to each data unit is obtained. The source retrieval performance indicators of a series of data units are monitored. When the source retrieval performance indicators are continuously in an abnormal state or deteriorate in the same direction on multiple consecutive data units, it is determined to be a continuous source retrieval anomaly. Specifically, when a single data unit malfunctions and subsequent data units recover, the determination of the target malfunctioning device and the switching of the return-to-source exit are not triggered.
[0009] Furthermore, the identified target anomalous device causing the persistent source retrieval anomaly includes: Get the physical device path corresponding to the current source return exit; Obtain the state change events and corresponding event times of each physical device on the physical device path; The time of each state change event is compared with the start time of the continuous source return anomaly, and candidate abnormal devices are determined from the physical device path based on the time correspondence between the state change events and the continuous source return anomaly. When the state anomaly of the candidate abnormal device continuously overlaps with the continuous process of the source retrieval anomaly, the candidate abnormal device is identified as the target abnormal device.
[0010] Furthermore, identifying the target anomalous device also includes: Obtain source return performance data for other logical source return outlets that pass through the candidate abnormal device during the continuous source return anomaly. When at least one other logical return-to-source outlet that shares the candidate abnormal device with the current return-to-source outlet simultaneously experiences a corresponding return-to-source abnormality, while logical return-to-source outlets that do not pass through the candidate abnormal device remain normal, the candidate abnormal device is confirmed as the target abnormal device.
[0011] Furthermore, the linked exclusion of all logical back-to-source exits for the target abnormal device includes: Based on the mapping relationship between the logical back-to-source exit and the physical bearer path, traverse the candidate logical back-to-source exits to determine the set of affected exits of the physical bearer path that includes the target abnormal device; Set each logical return-to-source exit in the affected exit set to a temporarily unselectable state, and prohibit the logical return-to-source exits in the affected exit set from being used as alternative exits until the target abnormal device is restored.
[0012] Furthermore, the step of selecting candidate exits from the remaining candidate exits after linkage elimination includes: Exclude from the remaining candidate exits the exits whose physical bearer paths pass through the target abnormal device again, as well as exits that are in an unavailable or fault avoidance state. When there are multiple candidate exits that meet the conditions, the real business verification is carried out sequentially through the subsequent data units of the current back-to-source task according to the preset exit selection order. When any candidate exit passes the real business verification, that candidate exit is designated as the alternative exit, and verification of other candidate exits is stopped.
[0013] Furthermore, the step of switching the source return exit to the candidate exit during the interval when the current data unit has completed transmission and the next data unit has not yet started transmission, and using the subsequent data units of the current source return task to perform actual source return through the candidate exit, includes: When the current data unit has completed transmission and the next data unit has not yet started transmission, the source return exit corresponding to the current source return task is updated to the candidate exit, so that the next data unit performs actual source return through the candidate exit. Based on the transmission completion status, timeout status, connection interruption status and retransmission status of the next data unit and its subsequent data units, it is determined whether the candidate exit has passed the verification.
[0014] Furthermore, determining whether the switching is effective based on the actual source retrieval results includes: After switching to the alternative exit, the back-to-source performance data of subsequent data units is continuously collected; When the subsequent data unit returns to normal, the source return exit switch is confirmed to be effective; If the subsequent data unit continues to be abnormal, the alternative exit will be used as the new current return-to-source exit. The physical device path corresponding to the new current return-to-source exit will be re-acquired, and the target abnormal device will be re-identified, the affected exit will be eliminated, the alternative exit will be verified, and the return-to-source exit will be switched.
[0015] Furthermore, the method also includes: Monitor the recovery status of the target abnormal device. When the target abnormal device recovers to normal and remains stable, set the excluded logic return-to-source exit associated with the target abnormal device to a state pending recovery verification. The logical source return exit in the pending recovery verification state is actually verified using real source return data. When the actual source return verification is normal, the logical source return exit is added back to the candidate exit set. When there are no available alternative exits, all candidate exits fail verification, or the return-to-source anomaly is not resolved after a preset number of exit switching operations, the current automatic switching process is stopped and the current anomaly status and exit processing information are retained.
[0016] Furthermore, the preset mapping relationship between the logical back-to-source exit and the physical bearer path is stored in an association table, which at least records the correspondence between the logical back-to-source exit identifier and the server, network interface, switch and uplink device; The association is established based on the physical network topology and is updated when a topology change is detected in the server network interface, switch port, device connection relationship or uplink, so as to keep the physical bearer path corresponding to the logical back-to-source exit consistent with the current network topology.
[0017] Compared with the prior art, the present invention has the following beneficial effects: By combining the service anomalies in the continuous back-to-origin process with the physical bearer relationship corresponding to the logical back-to-origin exit, the present invention further determines the physical device affecting the anomaly after identifying the continuous back-to-origin anomaly, and performs linkage elimination on multiple affected logical back-to-origin exits according to the physical sharing relationship, then selects a candidate exit from the remaining candidate exits, performs exit switching at the data unit transmission boundary, and uses the real service traffic after the switch for verification, thereby avoiding switching the back-to-origin task to a logical back-to-origin exit that is still affected by the same physical fault, reducing unnecessary switching caused by instantaneous network fluctuations, and improving the effectiveness and stability of back-to-origin exit switching. Attached Figure Description
[0018] Figure 1 This is an overall flowchart of a dynamic selection method for the source return outlet provided in an embodiment of the present invention; Figure 2 A detailed flowchart of a target abnormal device location method provided in an embodiment of the present invention; Figure 3 A detailed flowchart of a shared exit linkage exclusion and alternative exit verification method provided in an embodiment of the present invention; Figure 4 A detailed flowchart of a method for verifying the effect after switching and restoring abnormal exits, provided in an embodiment of the present invention. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0020] This invention relates to the fields of Content Delivery Network (CDN) and intelligent network operation and maintenance technology, specifically to a method for dynamic selection of origin exit for regional autonomous CDN clusters.
[0021] In a CDN system, when an edge node misses the local cache of the target content, it needs to initiate a back-to-origin request to the upstream node or origin server to obtain the required content. In a Regional Autonomous CDN cluster, multiple logical back-to-origin exits are typically configured, such as E1, E2, and E3, to provide different back-to-origin paths for back-to-origin tasks, thereby improving the reliability of the back-to-origin process. However, although these multiple logical back-to-origin exits are logically independent, they may share some physical bearer equipment in actual network deployments, such as servers, network interfaces, switches, uplink devices, or physical links. Therefore, when a shared physical device malfunctions, multiple logical back-to-origin exits passing through that physical device may be affected simultaneously.
[0022] For example, suppose the physical bearer paths of logical origin exits E1 and E2 both pass through uplink device X, while the physical bearer path of logical origin exit E3 does not pass through uplink device X. When uplink device X fails, the origin exit processes corresponding to E1 and E2 may experience anomalies such as increased transmission duration, data retransmission, or transmission timeouts, while the origin exit process corresponding to E3 can remain normal. In this case, if the exit selection is based solely on the performance status of each logical origin exit, after detecting an anomaly in E1, the origin exit task may be switched from E1 to E2, which also passes through device X. This would cause the origin exit traffic to still pass through the malfunctioning physical device, resulting in the exit switching failing to eliminate the original origin exit anomaly.
[0023] In response to the above situation, the present invention associates the changes in service performance during the continuous back-to-source process with the physical bearer relationship corresponding to the logical back-to-source exit, and determines the abnormal devices affecting the back-to-source process based on the changes in the physical device status. Specifically, firstly, the back-to-source performance data during the continuous back-to-source process is analyzed to identify persistent back-to-source anomalies, distinguishing them from transient anomalies generated by a single data unit. After identifying persistent back-to-source anomalies, the physical bearer path corresponding to the current back-to-source exit is obtained, and the changes in the device status on this physical bearer path are correlated with the timing of the persistent back-to-source anomalies to determine the target anomalous device. After determining the target anomalous device, based on the mapping relationship between the logical back-to-source exit and the physical bearer path, other logical back-to-source exits that also pass through the target anomalous device are determined, and the determined logical back-to-source exits are excluded from the candidate exit range. Subsequently, a candidate exit is selected from the remaining candidate exits that have not passed through the target anomalous device. During the interval between the completion of the current data unit transmission and the start of the next data unit transmission, the back-to-source exit is switched to the candidate exit, and the subsequent data units of the current back-to-source task are used to perform actual back-to-source through the candidate exit. Based on the actual back-to-source results, it is determined whether the candidate exit passes verification and whether the switching is effective.
[0024] Specifically, this invention combines service anomalies during continuous back-to-origin processes with the physical bearer relationships corresponding to logical back-to-origin exits. After identifying persistent back-to-origin anomalies, it further determines the physical devices affecting the anomalies and, based on physical sharing relationships, performs coordinated elimination of multiple affected logical back-to-origin exits. Then, it selects candidate exits from the remaining candidate exits, performs exit switching at the data unit transmission boundary, and verifies the switch using real service traffic after the switch. This avoids switching back-to-origin tasks to logical back-to-origin exits that are still affected by the same physical fault, reduces unnecessary switching caused by instantaneous network fluctuations, and improves the effectiveness and stability of back-to-origin exit switching.
[0025] In this embodiment, for the convenience of explaining the subsequent technical processes, the relevant terms are explained as follows.
[0026] The term "persistent source retrieval anomaly" refers to a situation where, within the same consecutive source retrieval task, the source retrieval performance metrics corresponding to multiple sequentially ordered data units are continuously in an abnormal state, or the source retrieval performance metrics exhibit a continuous deterioration in the same direction across multiple consecutive data units. This term "persistent source retrieval anomaly" is used to distinguish it from anomalies in a single data unit caused by factors such as instantaneous network jitter.
[0027] The target abnormal device refers to a physical device located on the physical bearer path corresponding to the current return source exit, whose device status change occurs at a time and lasts for a duration that corresponds to the occurrence and duration of the continuous return source abnormality, and which is determined to have a corresponding relationship with the continuous return source abnormality through correlation analysis.
[0028] The logical origin exit refers to the logical exit identifier or logical origin path used at the CDN logical layer to establish origin connections and initiate origin requests to upstream nodes or origin servers. For example, E1, E2, and E3 represent three logical origin exits that can be selected by origin tasks.
[0029] The physical bearer path refers to the physical devices and connections that the back-source traffic corresponding to a logical back-source exit traverses during actual network transmission. For example, the physical bearer path corresponding to a logical back-source exit may include servers, server network interfaces, switches, and uplink devices.
[0030] The linkage exclusion refers to determining all logical back-source exits that pass through the target abnormal device after identifying the target abnormal device, based on the physical bearer path corresponding to each logical back-source exit, and uniformly setting the determined logical back-source exits to a temporarily unselectable state, so as to avoid subsequent alternative exit selections from using the back-source path affected by the same target abnormal device again.
[0031] The alternative exit refers to the logical origin exit selected from the candidate exits after the linkage exclusion is completed, and which is used to replace the current origin exit after being verified by the real business traffic of the current origin task.
[0032] The interval between continuous source data transmissions refers to the time window during continuous source transmission where the current data unit has completed transmission, but the next data unit has not yet started transmission. Performing a source exit update within this time window allows the currently transmitting data unit to continue transmission through the original source exit, and enables the next data unit to be transmitted through the updated source exit.
[0033] Please see Figure 1The diagram shows the overall flowchart of a dynamic origin-pull selection method provided in an embodiment of the present invention. The method first examines the business performance during the continuous origin-pull process, continuously monitoring the current origin-pull task to identify any ongoing origin-pull anomalies requiring further processing. When a CDN edge node detects that target content has not hit its local cache, a corresponding continuous origin-pull task is established for the target content, and the continuous origin-pull task is divided into multiple continuous data units according to the actual data transmission order. Each data unit can correspond to different data segments in the continuous origin-pull process, and the origin-pull performance data for each data unit is recorded.
[0034] For example, for a video file C001 that is not cached, the CDN edge node obtains the video file from the upstream node through the current logical origin-following exit E1, and divides the continuous acquisition process into data units D1, D2, D3, D4, D5, D6, etc. For each data unit, the system records the transmission duration from the start of the origin-following process to the completion of the transmission, as well as the origin-following performance status during the transmission process, such as whether retransmissions, timeouts, connection interruptions, and data reception were completed. This forms an origin-following performance data sequence arranged according to the transmission order of the data units.
[0035] After obtaining the back-to-source performance data sequence, the system does not immediately perform device location and exit switching when any data unit experiences an anomaly. Instead, it determines the persistence of the current anomaly based on the continuous changes between adjacent data units. Specifically, the back-to-source performance indicators corresponding to each data unit are continuously monitored. When the back-to-source performance of a single data unit is abnormal, but its subsequent data units recover to normal, the anomaly is treated as a transient fluctuation and does not trigger subsequent target anomaly device location and back-to-source exit switching. For example, if the transmission duration of data units D1 to D3 remains between 80ms and 90ms, and the transmission duration of data unit D4 suddenly increases to 163ms, but the transmission durations of data units D5 and D6 return to the normal range, it indicates that the anomaly has not formed a continuous anomaly process. In this case, the current back-to-source exit continues to be maintained for subsequent data transmission.
[0036] Conversely, when the back-to-source performance indicators remain abnormal across multiple consecutive data units, or change continuously along the same abnormal direction, a persistent back-to-source anomaly is determined to be occurring in the current back-to-source process. For example, if data units D4, D5, and D6 all experience retransmissions, or if the transmission durations of data units D4, D5, and D6 increase sequentially from 163ms to 181ms and 188ms, it indicates that the current back-to-source performance anomaly is not a momentary fluctuation in a single data unit, but rather persists throughout the continuous back-to-source process. Therefore, the system determines the time of the anomaly corresponding to data unit D4 as the start time of the persistent back-to-source anomaly and triggers the subsequent target anomaly device determination process.
[0037] Please see Figure 2 The diagram shows a detailed flowchart of a target abnormal device location method provided in an embodiment of the present invention. In this embodiment, during the location of the target abnormal device, the system first determines the current logical origin exit that generates the continuous origin anomaly. For example, in this embodiment, data units D1 to D6 perform origin return through logical origin exit E1, so E1 is determined as the current origin exit, and the physical bearer path corresponding to E1 is obtained. The physical bearer path describes the physical devices and their connection relationships that E1 actually passes through when carrying origin return traffic. For example, it can be represented as server A, network interface A, switch A, and uplink device X connected in sequence. The physical bearer path is not temporarily inferred based on current service performance, but is determined based on a pre-established correspondence between logical origin exits and physical bearer paths.
[0038] After obtaining the physical bearer path corresponding to the current back-to-source exit, the system further acquires the status change events of each physical device along that physical bearer path and records the occurrence time and duration of each status change event. These status change events may include changes in device operating status from normal to abnormal, network interface changes from connected to abnormal, switch port generating abnormal alarms, and changes in uplink status. Other operational and maintenance data that can reflect changes in device status can also be used as the basis for these status change events.
[0039] Subsequently, the system uses the start time of the continuous origin-following anomaly as the time base for the service anomaly, and associates the state change time of each physical device on the physical bearer path with this time base. Taking the continuous anomaly starting from data unit D4 as an example, if the anomaly start time of data unit D4 is T1, the system determines whether the state changes of server A, network interface A, switch A, and uplink device X have a temporal correspondence with the start time of the continuous origin-following anomaly corresponding to T1, and further determines whether the corresponding anomaly state continues to exist during the continuous origin-following anomaly period corresponding to D4, D5, and D6.
[0040] In this embodiment, if the uplink device X changes from a normal state to a port abnormal state near T1, and this abnormal state continuously covers the abnormal process corresponding to D4, D5, and D6, while other physical devices do not experience any state changes corresponding to the continuous back-to-source anomaly within the corresponding time period, then the uplink device X is identified as a candidate abnormal device. Therefore, device location is not based solely on the single condition that the device has issued an alarm, but rather considers the correspondence between the occurrence time and duration of the device state change and the service anomaly.
[0041] Furthermore, to avoid misjudging the root cause of the fault based solely on the time proximity between a single back-source exit and a single device alarm, the system performs cross-validation on the candidate abnormal devices. Specifically, after identifying candidate abnormal device X, based on the mapping relationship between logical back-source exits and physical bearer paths, other logical back-source exits passing through device X are searched, and back-source performance data corresponding to these logical back-source exits during the continuous back-source anomaly occurs are obtained.
[0042] For example, if logical back-source exit E2 and current back-source exit E1 both pass through upstream device X, the system further obtains the performance data of the back-source tasks carried by E2 during the corresponding time period. If E2 also experiences back-source performance anomalies at the same time as or during the corresponding duration of device X's state anomaly, while logical back-source exit E3, which does not pass through device X, remains normal during the corresponding time period, it indicates a clearer correspondence between the back-source anomaly and device X. In this case, the system identifies candidate abnormal device X as the target abnormal device causing the current persistent back-source anomaly.
[0043] Please see Figure 3 As shown, it is a detailed flowchart of a shared exit linkage exclusion and alternative exit verification method provided in an embodiment of the present invention. After determining the target abnormal device, the system further performs linkage exclusion on the logical return-to-source exit that has a physical sharing relationship with the target abnormal device according to the mapping relationship between the logical return-to-source exit and the physical bearer path.
[0044] Specifically, the system iterates through the current candidate logical back-to-source exits and obtains the physical bearer path corresponding to each logical back-to-source exit, determining whether each physical bearer path contains the target abnormal device. Taking the target abnormal device as the uplink device X as an example, if the physical bearer paths corresponding to logical back-to-source exits E1 and E2 both pass through uplink device X, while logical back-to-source exits E3 and E4 pass through uplink devices Y and Z respectively, then E1 and E2 are determined as logical back-to-source exits affected by the target abnormal device, forming a corresponding set of affected exits.
[0045] After determining the set of affected exits, the system sets the logical back-to-source exits in the affected exit set to a temporarily unselectable state and prohibits these logical back-to-source exits from being used as alternative exits until the target faulty device recovers. Therefore, when the current back-to-source exit E1 experiences a persistent back-to-source anomaly and the uplink device X is determined to be the target faulty device, even if E2 itself has not yet shown obvious back-to-source anomalies, the system will not use E2 as a substitute exit for E1 because E2 shares the uplink device X with E1. This avoids the back-to-source task switching from one exit affected by a physical fault to another exit also affected by the same physical fault.
[0046] After completing the linkage elimination, the system further filters the remaining candidate exits. First, based on the current status of each candidate exit, exits that are currently unavailable or in a fault avoidance state are eliminated. For the multiple candidate exits remaining after filtering, real service verification is performed sequentially according to the preset exit selection order. During the actual service verification of the candidate exits, the system uses data units that have not yet been transmitted in the current back-to-origin task to perform actual back-to-origin verification on the candidate exits. Specifically, when the current data unit D6 completes transmission through the original back-to-origin exit E1 and the next data unit D7 has not yet started transmission, the system selects candidate exit E3 and updates the back-to-origin exit corresponding to the current back-to-origin task within the transmission interval between D6 and D7, so that D7 performs actual back-to-origin verification through E3. The system determines whether E3 has the conditions to continue carrying the current back-to-origin task based on the actual transmission result of D7. The transmission result includes whether the data unit has been completely transmitted, whether a transmission timeout has occurred, connection interruption, and data retransmission.
[0047] If D7 can complete the transmission normally via E3 without transmission timeout, connection interruption, or abnormal retransmission, the system continues to use D8 for verification. When both D7 and D8 complete the transmission normally via E3, E3 is designated as the alternative egress point and remains the origin-back egress point for subsequent data units. If D7 or D8 encounters an anomaly, E3 is determined to have failed the real service verification, and the next candidate egress point is verified according to the preset egress selection order. If all remaining candidate egress points fail the real service verification, no egress switching is performed, and the current abnormal handling status of the origin-back task is retained.
[0048] In the above process, the exit switchover occurs during the time interval between the completion of the current data unit transmission and the commencement of the next data unit transmission. Specifically, after D6 completes transmission via E1, the system updates the current origin-back exit to E3 during the transmission interval between D6 and D7, making D7 the first data unit after the switchover to be transmitted via E3. D7 and subsequent data units are then used to verify the actual service on E3. Thus, candidate exit verification and origin-back exit switchover are executed seamlessly at the boundary of consecutive origin-back data units.
[0049] Since the exit switching occurs between adjacent data units, rather than during data unit transmission, it can avoid interruption of the current data unit transmission due to changes in the return path midway, while maintaining the transmission order of each data unit in the continuous return task.
[0050] Please see Figure 4 As shown, it is a detailed flowchart of the method for verifying the effect after switching and restoring the abnormal exit provided in an embodiment of the present invention. After the switching of the return-to-source exit is completed, the system does not directly end the current abnormal handling process, but continues to collect the return-to-source performance data corresponding to the data unit after switching, in order to verify whether the alternative exit can continue to carry the current return-to-source task.
[0051] Specifically, after determining the alternative exit point E3 and switching subsequent data units to E3, the system continues to acquire the back-to-source performance data corresponding to D9 and subsequent data units, and makes continuous judgments according to the transmission order of the data units. When all the switched consecutive data units can complete the transmission normally, and there are no continuous back-to-source performance anomalies such as transmission timeouts, connection interruptions, or abnormal retransmissions, the back-to-source exit switch is determined to be valid, and the exit switch processing for the current continuous back-to-source anomalies ends.
[0052] For example, if data unit D9 and subsequent data units are transmitted normally through E3 and their transmission duration returns to the normal range, and there are no continuous retransmissions or connection interruptions, it indicates that the anomaly corresponding to the original source return exit E1 has been effectively avoided by switching to E3. At this time, the system keeps E3 as the current source return exit and continues to execute the subsequent normal source return process.
[0053] If subsequent data units continue to experience source return performance anomalies after the switchover, the current egress switchover is not considered valid. Instead, the physical bearer path corresponding to the alternative egress E3 is re-analyzed. For example, after confirming that E3 has passed availability verification and is used as the alternative egress, if D9 and subsequent data units continue to experience timeouts and retransmissions during transmission through E3, E3 is used as the new current source return egress, and the physical bearer path corresponding to E3 is obtained. If the physical bearer path corresponding to E3 is server C, network interface C, switch C, and uplink device Y, the status change information of device Y is further obtained, and the timing of device Y's status change is correlated with the timing of the continuous source return anomalies corresponding to D7, D8, and D9.
[0054] When it is determined that the state change of device Y corresponds to the continuous back-source anomaly in terms of occurrence time and duration, device Y is identified as the new target anomaly device. Based on the mapping relationship between the logical back-source exit and the physical bearer path, the set of affected exits passing through device Y is re-determined. Subsequently, logical back-source exits affected by device Y are excluded according to the aforementioned processing procedure, and alternative exits are re-selected and verified from the remaining candidate exits. Therefore, when an exit switch fails to eliminate the continuous back-source anomaly, the system can continue physical device location and exit exclusion from the current back-source exit after the switch as the new analysis starting point, without having to revert to the original anomaly exit for reprocessing.
[0055] Furthermore, for the aforementioned logical return-to-source exits E1 and E2, which were temporarily unavailable due to the abnormal target device X, the system performs recovery processing after device X returns to normal. The system continuously monitors the operating status of device X, and when device X returns to normal, it does not immediately remove the temporary unavailable status of E1 and E2, but continues to determine whether the normal state of device X remains stable.
[0056] In this embodiment, after device X recovers and remains stable for a preset period of time, E1 and E2 are changed from a temporarily unselectable state to a state awaiting recovery verification. For example, after device X has been running normally for 30 minutes, the system considers the recovery state of device X to have sufficient stability, and at this time, E1 and E2 are allowed to enter the recovery verification process. The stabilization period can be set according to the operating characteristics of the physical device and the historical fault recovery situation.
[0057] For example, after device X stabilizes, the system first sets E1 to a state pending recovery verification, and then uses subsequent data units to perform actual recovery verification on E1 in a new back-to-source task. When E1 continuously completes the preset number of data unit transmissions without any persistent back-to-source performance anomalies, E1 is added back to the candidate egress set; for E2, recovery verification is performed in the same way. If a certain egress experiences a persistent back-to-source anomaly again during the recovery verification process, the egress remains unselectable, and the target abnormal device location is re-executed based on the actual anomaly situation.
[0058] When the system cannot determine an available alternative exit point, or when none of the remaining candidate exit points pass real business verification, the invalid exit point switching will not continue, and the abnormal handling status corresponding to the current back-to-origin task, as well as the identified abnormal devices, affected exit points, and candidate exit point handling information, will be retained. When the preset number of consecutive switching attempts reaches the limit and the back-to-origin performance still has not returned to normal, automatic switching will also stop, and the current abnormal handling status will be retained for subsequent manual processing or waiting for physical equipment recovery.
[0059] Specifically, this invention continues to verify the switching effect using real back-to-origin service results after the exit switch, and re-locates abnormal devices and excludes affected exits based on the physical bearer path corresponding to the current back-to-origin exit when the switch is invalid; at the same time, for logical back-to-origin exits excluded due to physical device abnormalities, their candidate status is gradually restored through stability confirmation and real service verification after the corresponding device recovers, so that exits excluded during the abnormal period will not immediately re-participate in exit selection due to the temporary recovery of the device status, and will be put back into use only after their actual back-to-origin capability is confirmed to have been restored.
[0060] To more clearly illustrate the technical solution of the present invention, the dynamic selection process of the return-source outlet of the present invention will be described below with reference to specific embodiments.
[0061] In this embodiment, four logical origin exits are configured within a CDN regional autonomous data center, denoted as E1, E2, E3, and E4. The physical bearer paths of E1 and E2 both pass through uplink device X, the physical bearer path of E3 passes through uplink device Y, and the physical bearer path of E4 passes through uplink device Z. Therefore, E1 and E2 are logically independent origin exits, but they share uplink device X at the physical bearer level; E3 and E4 carry origin traffic through physical devices different from X.
[0062] Initially, video content C001 is not cached on the current CDN node, thus generating a back-to-origin task. The system selects logical back-to-origin exit E1 to continuously back-to-origin upstream, and divides the continuous transmission process corresponding to this back-to-origin task into data units D1, D2, D3, D4, D5, D6, and subsequent data units transmitted sequentially. After each data unit completes its back-to-origin process, the system records the corresponding back-to-origin performance data.
[0063] In this embodiment, the transmission durations of data units D1, D2, and D3 are 82ms, 84ms, and 85ms, respectively, and no retransmissions occur, thus their corresponding source-following performance is normal. Starting with data unit D4, the source-following performance changes, with the transmission duration of D4 being 165ms, D5 181ms, and D6 188ms, and data retransmissions occurring in D4, D5, and D6. Based on the source-following performance data corresponding to multiple consecutive data units, the system determines that the anomaly in the current source-following process is not a momentary anomaly of a single data unit, but rather a continuous source-following anomaly.
[0064] After determining that D4 to D6 constitute a persistent back-to-origin anomaly, the system enters the anomaly device localization process. The system first obtains the physical bearer path corresponding to the currently used logical back-to-origin exit E1. In this embodiment, the physical bearer path corresponding to E1 includes server A, network interface A, switch A, and uplink device X. The system further obtains the state change events and event times corresponding to each physical device in the aforementioned physical bearer path.
[0065] Upon checking the device status records, it was found that uplink device X experienced a port status anomaly around the time when the back-to-source performance anomaly began at D4, and this anomaly persisted until the end of the anomaly back-to-source process corresponding to D6. The system correlated the status change time of uplink device X with the start time and duration of the continuous back-to-source anomaly. When it was determined that the duration of the anomaly state of uplink device X covered the continuous back-to-source anomaly process corresponding to D4 to D6, uplink device X was identified as a candidate anomaly device.
[0066] To further confirm the correspondence between the candidate abnormal devices and the persistent back-to-origin anomalies, the system continues to acquire back-to-origin performance data from other logical back-to-origin exits. In this embodiment, logical back-to-origin exit E2 also passes through uplink device X. During the time period corresponding to D4 to D6, other back-to-origin tasks carried by E2 also exhibited anomalies such as increased transmission duration and data retransmission. However, the physical bearer path of logical back-to-origin exit E3 does not pass through uplink device X, and its corresponding back-to-origin tasks remained normal during the same time period.
[0067] Therefore, the following correspondence is established in this embodiment: Currently, the source return outlet E1 experiences a continuous source return anomaly; the uplink device X experiences a status anomaly during the corresponding time period; E2, which shares the uplink device X with E1, also experiences a source return anomaly; while E3, which does not pass through the uplink device X, remains normal. Based on the above correspondence, the system confirms that the uplink device X is the target abnormal device causing the current continuous source return anomaly.
[0068] After identifying the uplink device X as the target abnormal device, the system further traverses the candidate logical back-source exits based on the mapping relationship between logical back-source exits and physical bearer paths. By comparing the physical bearer paths corresponding to each logical back-source exit, it is determined that the physical bearer paths of E1 and E2 both contain uplink device X. Therefore, E1 and E2 are identified as logical back-source exits affected by uplink device X.
[0069] The system sets E1 and E2 to a temporarily unselectable state, and will no longer consider E1 and E2 as candidate exits for subsequent exit switching until the uplink device X recovers. At this time, the range of candidate exits is narrowed down from the original E1, E2, E3, and E4 to E3 and E4.
[0070] Among the remaining candidate exits, the system further checks the current status of each candidate exit. In this embodiment, the network interface corresponding to E4 has experienced a link interruption and is unavailable, therefore E4 is excluded from the remaining candidate exits. At this time, E3 becomes the remaining candidate exit and enters the real service verification process.
[0071] The system uses the data units in the current video content C001 that have not yet been transmitted to perform actual service verification on E3. In this embodiment, after D6 completes transmission through the original source return exit E1, D7 has not yet started transmission. At this time, during the transmission interval between D6 and D7, the system updates the current source return exit from E1 to E3, enabling D7 to perform actual source return through E3, and verifies E3 based on the actual transmission result of D7. D7 completes transmission through E3, and no timeout, connection interruption, or retransmission occurs during the transmission process; subsequently, D8 also completes transmission normally through E3. Based on the actual source return results of D7 and D8, the system determines that E3 passes the availability verification and keeps E3 as the source return exit for subsequent data units.
[0072] Subsequently, the system continues to acquire source return performance data for D9 and subsequent data units. In this embodiment, the transmission duration of D9 and subsequent data units remains at approximately 80ms, and no data retransmission, timeout, or connection interruption occurs. Based on the subsequent source return results after the switchover, the system determines that the current egress switchover is valid and continues to complete the subsequent source return process of C001 via E3.
[0073] In another implementation, if D9 and subsequent data units continue to experience source return anomalies after switching to E3, E3 is used as the new current source return exit. Its physical bearer path and corresponding physical device status are reacquired, and a correlation analysis is performed based on the duration and process of the continuous source return anomalies and device status changes. If the uplink device Y traversed by E3 corresponds to the aforementioned anomaly process, and other logical source return exits passing through Y simultaneously experience anomalies, while logical source return exits not passing through Y remain normal, then Y is identified as the new target anomaly device, and the affected exit exclusion and alternative exit verification are re-executed.
[0074] In another implementation, after the uplink device X completes maintenance and returns to normal, the system continues to monitor its operating status without immediately removing the temporarily unselectable status of E1 and E2. In this embodiment, 30 minutes can be set as the observation period for device recovery and stabilization. After the uplink device X maintains a normal state for 30 consecutive minutes, E1 and E2 are adjusted to a state awaiting recovery verification. Subsequently, in a new back-to-source task, E1 and E2 are verified using actual data units. When the corresponding exit passes the actual back-to-source verification and no continuous back-to-source anomalies occur, it is added back to the candidate exit set.
[0075] When a new back-to-source task is generated, the system selects an exit from the exits in the pending recovery verification state for recovery verification. For example, E1 is selected for actual back-to-source, and the actual back-to-source result corresponding to E1 is obtained using multiple consecutive data units in the back-to-source task. When E1 continuously completes the transmission of a preset number of data units, and none of the data units show a continuous back-to-source anomaly, the system confirms that E1 meets the conditions for re-adding to the candidate exit set, and adds E1 back to the candidate exit set.
[0076] For E2, the system can perform recovery verification in the same way. After E2 passes the actual back-to-source verification, E2 will be added back to the candidate egress set.
[0077] During the above processing, if all remaining candidate exits are unavailable, or if all candidate exits fail the real business verification, the system will no longer continue to execute the automatic exit switching of the current back-to-origin task. Instead, it will retain the current abnormal status and the exit processing information that has already been executed, so that it can continue to process according to the device recovery status or new back-to-origin performance data.
[0078] To implement the above-described dynamic origin exit selection method, this invention also provides a dynamic origin exit selection system. The system can be deployed in CDN edge nodes, regional management center servers, or network management devices capable of acquiring origin performance data and physical device status information, and is used to execute the aforementioned dynamic origin exit selection process.
[0079] In this embodiment, the system includes a back-source monitoring unit, a back-source anomaly identification unit, an exit device association unit, an anomaly device location unit, a shared exit identification unit, a candidate exit verification unit, a dynamic migration unit, and a feedback recovery unit.
[0080] The origin tracking monitoring unit is used to establish a corresponding origin tracking task after a cache miss is detected, record the data units transmitted sequentially in the origin tracking task, and obtain the origin tracking performance data corresponding to each data unit. The origin tracking anomaly identification unit determines whether the origin tracking performance is continuously abnormal based on the origin tracking performance data of each data unit, and triggers subsequent abnormal device location processing when the continuous abnormality condition is met.
[0081] The export device association unit stores the correspondence between logical back-to-source export and physical bearer path, and queries the corresponding physical bearer path based on the currently used logical back-to-source export. The abnormal device location unit obtains the physical device status change information on the physical bearer path, and correlates the time of physical device status change with the occurrence time of continuous back-to-source anomalies to identify candidate abnormal devices. Based on this, the unit can further confirm the candidate abnormal devices by combining the back-to-source performance of other logical back-to-source exports that share the candidate abnormal devices and the logical back-to-source exports that do not share the candidate abnormal devices.
[0082] The shared egress identification unit queries the physical bearer path corresponding to each logical back-to-origin egress based on the identified target abnormal device, identifies logical back-to-origin egresses whose physical bearer paths pass through the target abnormal device as affected egresses, and sets the affected egresses to a temporarily unavailable state. The candidate egress verification unit then filters from the candidate egresses that have not been excluded and uses the subsequent data units in the current back-to-origin task to perform actual back-to-origin verification on the candidate egresses.
[0083] Once a candidate egress passes verification, the dynamic migration unit updates the egress corresponding to the current data unit's back-to-origin task during the period between the completion of the current data unit's transmission and the start of the next data unit's transmission. This allows subsequent data units to use the verified alternative egress for back-to-origin transmission. After the egress switch, the feedback recovery unit continues to acquire back-to-origin performance data for subsequent data units and determines the effectiveness of the switch based on the subsequent back-to-origin results. If back-to-origin anomalies persist after the switch, the unit re-locates the abnormal device and excludes affected egresses using the physical bearer path corresponding to the current back-to-origin egress. Once the target abnormal device corresponding to the excluded egress returns to normal and remains stable, the feedback recovery unit can also set the corresponding egress to a pending recovery verification state and determine whether to re-add it to the candidate egress set through actual back-to-origin verification.
[0084] In the above system, the correspondence between logical back-to-source exits and physical bearer paths can be stored in an association table. This association table records the correspondence between logical back-to-source exits and the physical devices they actually pass through, so that after identifying a target faulty device, other logical back-to-source exits passing through that physical device can be queried in reverse order.
[0085] The association table is established based on the actual network topology of the CDN regional autonomous cluster and can be updated as the physical network topology changes. For example, when a server changes its network interface, a switch port is adjusted, the connection relationship between physical devices changes, or the uplink changes, the correspondence between the corresponding logical origin exit and physical bearer path in the association table is updated so that the physical bearer path used by the system when performing abnormal device location and affected exit elimination corresponds to the current network connection relationship.
[0086] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for dynamically selecting the origin exit point of a CDN regional autonomous cluster, characterized in that, include: Based on the source retrieval performance data during the continuous source retrieval process, persistent source retrieval anomalies are identified. After identifying the persistent back-source anomaly, the target abnormal device causing the persistent back-source anomaly is determined based on the correlation between the occurrence sequence of the back-source anomaly and the state change sequence of the physical device carrying the back-source traffic. Based on the target abnormal device, and using the preset mapping relationship between logical back-to-source exit and physical bearer path, all logical back-to-source exits sharing the target abnormal device are determined, and all logical back-to-source exits sharing the target abnormal device are excluded from the candidate exits in a coordinated manner. Select a candidate exit from the remaining candidate exits after the linkage elimination; During the interval between the completion of the current data unit transmission and the start of the next data unit transmission, the source return exit is switched to the candidate exit, and the subsequent data units of the current source return task are used to perform actual source return through the candidate exit. Based on the actual source return result, it is determined whether the candidate exit passes the verification and whether the switching is effective. The identification of persistent source retrieval anomalies includes: The continuous back-to-source task is decomposed into a series of data units with a sequential order, and the back-to-source performance data corresponding to each data unit is obtained. The source retrieval performance indicators of a series of data units are monitored. When the source retrieval performance indicators are continuously in an abnormal state or deteriorate in the same direction on multiple consecutive data units, it is determined to be a continuous source retrieval anomaly. Specifically, when a single data unit malfunctions and subsequent data units recover, the determination of the target malfunctioning device and the switching of the return-to-source exit are not triggered.
2. The method according to claim 1, characterized in that, The identified target abnormal device causing the persistent source return anomaly includes: Get the physical device path corresponding to the current source return exit; Obtain the state change events and corresponding event times of each physical device on the physical device path; The time of each state change event is compared with the start time of the continuous source return anomaly, and candidate abnormal devices are determined from the physical device path based on the time correspondence between the state change events and the continuous source return anomaly. When the state anomaly of the candidate abnormal device continuously overlaps with the continuous process of the source retrieval anomaly, the candidate abnormal device is identified as the target abnormal device.
3. The method according to claim 2, characterized in that, Identifying the target anomalous device also includes: Obtain source return performance data for other logical source return outlets that pass through the candidate abnormal device during the continuous source return anomaly. When at least one other logical return-to-source outlet that shares the candidate abnormal device with the current return-to-source outlet simultaneously experiences a corresponding return-to-source abnormality, while logical return-to-source outlets that do not pass through the candidate abnormal device remain normal, the candidate abnormal device is confirmed as the target abnormal device.
4. The method according to claim 1, characterized in that, The linked logic back-to-source exit that excludes all shared target abnormal devices includes: Based on the mapping relationship between the logical back-to-source exit and the physical bearer path, traverse the candidate logical back-to-source exits to determine the set of affected exits of the physical bearer path that includes the target abnormal device; Set each logical return-to-source exit in the affected exit set to a temporarily unselectable state, and prohibit the logical return-to-source exits in the affected exit set from being used as alternative exits until the target abnormal device is restored.
5. The method according to claim 1, characterized in that, The process of selecting candidate exits from the remaining candidate exits after the linkage elimination includes: Exclude from the remaining candidate exits the exits whose physical bearer paths pass through the target abnormal device again, as well as exits that are in an unavailable or fault avoidance state. When there are multiple candidate exits that meet the conditions, the real business verification is carried out sequentially through the subsequent data units of the current back-to-source task according to the preset exit selection order. When any candidate exit passes the real business verification, that candidate exit is designated as the alternative exit, and verification of other candidate exits is stopped.
6. The method according to claim 1, characterized in that, The step of switching the source return exit to the candidate exit during the interval when the current data unit has completed transmission and the next data unit has not yet started transmission, and using the subsequent data units of the current source return task to perform actual source return through the candidate exit, includes: When the current data unit has completed transmission and the next data unit has not yet started transmission, the source return exit corresponding to the current source return task is updated to the candidate exit, so that the next data unit performs actual source return through the candidate exit. Based on the transmission completion status, timeout status, connection interruption status and retransmission status of the next data unit and its subsequent data units, it is determined whether the candidate exit has passed the verification.
7. The method according to claim 5, characterized in that, Determining the effectiveness of the switching based on the actual source retrieval results includes: After switching to the alternative exit, the back-to-source performance data of subsequent data units is continuously collected; When the subsequent data unit returns to normal, the source return exit switch is confirmed to be effective; If the subsequent data unit continues to be abnormal, the alternative exit will be used as the new current return-to-source exit. The physical device path corresponding to the new current return-to-source exit will be re-acquired, and the target abnormal device will be re-identified, the affected exit will be eliminated, the alternative exit will be verified, and the return-to-source exit will be switched.
8. The method according to claim 5, characterized in that, Also includes: Monitor the recovery status of the target abnormal device. When the target abnormal device recovers to normal and remains stable, set the excluded logic return-to-source exit associated with the target abnormal device to a state pending recovery verification. The logical source return exit in the pending recovery verification state is actually verified using real source return data. When the actual source return verification is normal, the logical source return exit is added back to the candidate exit set. When there are no available alternative exits, all candidate exits fail verification, or the return-to-source anomaly is not resolved after a preset number of exit switching operations, the current automatic switching process is stopped and the current anomaly status and exit processing information are retained.
9. The method according to claim 1, characterized in that, The preset mapping relationship between logical back-to-source exit and physical bearer path is stored in an association table. The association table records at least the correspondence between the logical back-to-source exit identifier and the server, network interface, switch and uplink device. The association is established based on the physical network topology and is updated when a topology change is detected in the server network interface, switch port, device connection relationship or uplink, so as to keep the physical bearer path corresponding to the logical back-to-source exit consistent with the current network topology.
