Ring protocol-oriented preset circle protection method in intelligent computing center optical network and related equipment

By constructing a pre-defined loop in the optical network of the intelligent computing center, optimizing the length difference of the optical path protection path, and dynamically expanding the optical path, the problem of high link failure risk in distributed training is solved, and the reliability and efficiency of the network are improved.

CN121508639APending Publication Date: 2026-02-10BEIJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511409050.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-29
Publication Date
2026-02-10

AI Technical Summary

Technical Problem

In the optical network of the intelligent computing center, as the model scale increases, the risk of link failure in distributed training increases. Existing technologies do not fully consider the difference in length between the working path and the protection path, resulting in increased parameter synchronization latency and affecting training efficiency and reliability.

Method used

By acquiring the set of optical paths to be protected, constructing a preset circle based on the optical path difference, determining the protection path, strictly limiting the length difference, dynamically expanding the optical path and constructing a shared protection path, optimizing network resource utilization, and ensuring optical path security.

Benefits of technology

It improves the reliability and efficiency of the optical network in the intelligent computing center under the ring protocol parameter synchronization service, avoids the increase in latency caused by excessively long protection paths, and realizes comprehensive optical path protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121508639A_ABST
    Figure CN121508639A_ABST
Patent Text Reader

Abstract

The invention provides a preset circle protection method for a circle protocol in an intelligent computing center optical network and related equipment. The method comprises the following steps: determining a second light path set based on the difference between adjacent light paths in a first light path set; constructing a first preset circle according to a service corresponding circle protocol direction; determining that the first preset circle corresponds to each light path protection path in the second light path set; according to a difference value between the length of each light path in the second light path set and the length of the protection path, determining whether the first preset circle meets a preset condition or not; if yes, expanding the adjacent light paths along the ring protocol direction, and reconstructing a second preset ring; if the second preset circle does not meet the preset condition, the first preset circle is reserved, the first light path set is updated, the protected light path is removed, a third light path set is obtained, and a new preset circle is continuously constructed based on the third light path set to achieve ring protection. The embodiment of the invention efficiently utilizes network resources, dynamically adjusts a protection scheme, comprehensively guarantees the reliability and stability of an optical path, and improves the operation efficiency of an intelligent calculation center optical network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of optical network reliability technology, and in particular to a pre-circle protection method and related equipment for ring-oriented protocols in an optical network of an intelligent computing center. Background Technology

[0002] With the rapid development of large-scale models, training relies on massive amounts of data to demonstrate powerful inference capabilities. During training, to improve efficiency, data parallelism is often used, which involves replicating the model multiple times and dividing the data for batch training. Circular reduction strategies are then used to synchronize parameter gradients to complete large-scale distributed training.

[0003] However, as model size increases and distributed data parallelism expands from a single computing center to multiple computing centers, ring reduction strategies require establishing cross-center optical paths for parameter transmission. This significantly increases the risk of link failures, potentially leading to training interruptions and substantial losses. For pre-defined ring structures, if the working path is a link within the ring, its protection path consists of other links within the ring. As the size of the pre-defined ring increases, the length difference between the working path and the protection path increases significantly. In the event of a link failure, parameter synchronization data must be switched to the protection path; a longer protection path increases parameter synchronization latency, thus reducing training efficiency. Furthermore, existing technologies do not fully consider the length difference between the working and protection paths when constructing pre-defined rings, potentially failing to meet the stringent synchronization latency requirements of ring reduction, thus impacting the reliability and efficiency of distributed training across multiple computing centers. Summary of the Invention

[0004] In view of this, the purpose of this application is to propose a pre-circle protection method and related equipment for ring-specific optical networks in intelligent computing centers.

[0005] To achieve the above objectives, this application provides a pre-circle protection method for ring-specific optical networks in intelligent computing centers, comprising:

[0006] Obtain the first set of optical paths to be protected in the service;

[0007] The second optical path set is determined based on the optical path difference between adjacent optical paths in the first optical path set;

[0008] Based on the second optical path set, a first preset circle is constructed according to the ring protocol direction corresponding to the service;

[0009] Determine the protection path for each optical path in the second optical path set corresponding to the first preset circle;

[0010] Based on the difference between the length of each optical path in the second optical path set and the length of the protection path, determine whether the first preset ring meets the preset conditions;

[0011] In response to the first preset ring satisfying the preset condition, an adjacent optical path is extended along the ring reduction direction, and the second preset ring is reconstructed;

[0012] In response to the second preset circle not meeting the preset conditions, the first preset circle is retained, and the first optical path set is updated to remove the optical paths that have been protected, resulting in a third optical path set. Based on the third optical path set, a new preset circle is constructed to provide ring protection for the service.

[0013] In one possible implementation, determining the second optical path set based on the optical path difference between adjacent optical paths in the first optical path set includes:

[0014] Calculate the optical path difference between every two adjacent optical paths in the first optical path set;

[0015] The two optical paths corresponding to the minimum value of the optical path difference are taken as the second set of optical paths.

[0016] In one possible implementation, constructing a first preset circle based on the second optical path set according to the ring protocol direction corresponding to the service includes:

[0017] Obtain the source node of each optical path in the second optical path set, and obtain the destination node of the last optical path;

[0018] Based on all the source nodes and the destination nodes, the shortest optical path between adjacent nodes is found using the wavelength plane in the direction opposite to the ring reduction direction to obtain the first shortest optical path, and the first link traversed by the first shortest optical path is deleted.

[0019] The shortest optical path between the next pair of adjacent nodes is found using the wavelength plane, resulting in the second shortest optical path. The second link traversed by the second shortest optical path is then deleted.

[0020] In response to finding the shortest optical path between the last pair of adjacent nodes using the wavelength plane, a third shortest optical path is obtained, and the first shortest optical path, the second shortest optical path and the third shortest optical path are combined to obtain the first preset loop, and the first link and the second link are restored.

[0021] In one possible implementation, determining whether the first preset ring meets the preset condition based on the difference between the length of each optical path in the second optical path set and the length of the protection path includes:

[0022] Calculate the difference between the length of each optical path in the second optical path set and the length of the protection path, and determine whether the difference is less than a preset threshold, so as to determine whether the first preset circle meets the preset condition.

[0023] In one possible implementation, an adjacent optical path extending along the ring protocol direction is the optical path to be protected.

[0024] In one possible implementation, the step of constructing a new preset circle based on the third optical path set to provide ring protection for the service includes:

[0025] In response to the second preset circle not meeting the preset conditions, a new preset circle is cyclically constructed based on the third optical path set;

[0026] In response to the cyclic construction of the new preset circle, the third optical path set is cyclically updated until the optical paths in the third optical path set are not adjacent, at which point the construction of the new preset circle stops, and a risk-disjoint shared protection path is constructed for each non-adjacent optical path in the third optical path set.

[0027] In response to the third optical path set being an empty set, ring protection for the service is completed.

[0028] Based on the same inventive concept, this application also provides a pre-circle protection device for ring-protocol-oriented optical networks in intelligent computing centers, comprising:

[0029] The acquisition module is configured to acquire the first set of optical paths to be protected in the service.

[0030] The first determining module is configured to determine the second optical path set based on the optical path difference between adjacent optical paths in the first optical path set;

[0031] The construction module is configured to construct a first preset circle based on the second optical path set and according to the ring protocol direction corresponding to the service;

[0032] The second determining module is configured to determine the protection path of each optical path in the second optical path set corresponding to the first preset circle;

[0033] The third determining module is configured to determine whether the first preset ring meets the preset conditions based on the difference between the length of each optical path in the second optical path set and the length of the protection path.

[0034] The extension module is configured to extend an adjacent optical path along the ring reduction direction and reconstruct the second pre-loop in response to the first pre-loop satisfying a preset condition.

[0035] The ring protection module is configured to, in response to the second preset ring not meeting the preset conditions, retain the first preset ring, update the first optical path set, remove the optical paths that have been protected, obtain a third optical path set, and continue to construct a new preset ring based on the third optical path set to perform ring protection for the service.

[0036] Based on the same inventive concept, embodiments of this application also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the preset loop protection method for ring-oriented protocols in the optical network of the intelligent computing center as described in any of the above claims.

[0037] Based on the same inventive concept, embodiments of this application also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute any of the above-described methods for pre-circle protection of ring-oriented protocols in intelligent computing center optical networks.

[0038] Based on the same inventive concept, this application also provides a computer program product, which includes computer program instructions, the computer instructions being used to cause the computer program product to execute any of the above-described methods for pre-circle protection of ring-oriented protocols in intelligent computing center optical networks.

[0039] As can be seen from the above, the pre-set circle protection method and related equipment for ring protocol-oriented optical networks in intelligent computing centers provided in this application obtain a first set of optical paths to be protected in a service; determine a second set of optical paths based on the optical path difference between adjacent optical paths in the first set of optical paths; construct a first pre-set circle based on the second set of optical paths according to the ring protocol direction corresponding to the service; determine the protection path of each optical path in the second set of optical paths corresponding to the first pre-set circle; determine whether the first pre-set circle meets a preset condition based on the difference between the length of each optical path in the second set of optical paths and the length of the protection path; in response to the first pre-set circle meeting the preset condition, extend an adjacent optical path along the ring protocol direction and reconstruct the second pre-set circle; in response to the second pre-set circle not meeting the preset condition, retain the first pre-set circle and update the first set of optical paths, removing the optical paths that have been protected to obtain a third set of optical paths, and continue to construct a new pre-set circle based on the third set of optical paths to perform ring protection for the service. This application's embodiments accurately identify the optical paths requiring protection by modeling the network and services, and optimize the initial candidate set by using the optical path length difference to construct a pre-defined circle with the minimum length to reduce resource usage and network latency. By strictly limiting the length difference between the working path and the protection path, the method effectively avoids the efficiency degradation caused by excessively long protection paths, meeting actual service requirements. For feasible pre-defined circles, optical paths are dynamically expanded and the protection structure is improved; for cases where it is not feasible or cannot be constructed, flexible strategies such as fallback or independent construction of shared protection paths are adopted to ensure that all optical paths are protected. Ultimately, through cyclic protection and comprehensive coverage, the method significantly improves the reliability, stability, and operational efficiency of the intelligent computing center's optical network under ring protocol parameter synchronization services. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is a schematic flowchart of a pre-circle protection method for ring-specific optical networks in intelligent computing centers, as described in an embodiment of this application.

[0042] Figure 2 This is a schematic diagram of the optical network topology of the intelligent computing center according to an embodiment of this application;

[0043] Figure 3 This is a schematic diagram of the ring protocol parameter synchronization service in an embodiment of this application;

[0044] Figure 4 This is a schematic diagram of the pre-formed loops constructed for optical paths c→d and d→a in an embodiment of this application.

[0045] Figure 5 A schematic diagram of the preset loops constructed for optical paths c→d, d→a, and a→b in embodiments of this application;

[0046] Figure 6 This is a schematic diagram of all the pre-built circles constructed in the embodiments of this application;

[0047] Figure 7 This is a schematic diagram of the pre-circle protection device for ring-specific optical networks in intelligent computing centers according to an embodiment of this application.

[0048] Figure 8 This is a schematic diagram of the electronic device structure according to an embodiment of this application. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0050] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0051] It is understood that before using the technical solutions of the various embodiments in this disclosure, users will be informed of the type, scope of use, and usage scenarios of the personal information involved in an appropriate manner, and user authorization will be obtained.

[0052] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose, based on the prompt message, whether to provide personal information to the software or hardware such as electronic devices, applications, servers, or storage media performing the operations of this disclosed technical solution.

[0053] As an optional but not limited implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0054] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0055] As described in the background section, with the rapid development of large-scale models, massive amounts of data are required for training to demonstrate powerful inference capabilities, necessitating distributed training through data parallelism mechanisms and ring reduction strategies. However, as model scale increases, distributed training expands from a single computing center to multiple computing centers. Ring reduction requires establishing cross-center optical paths to transfer parameters, but the risk of link failures increases significantly, potentially leading to training interruptions and substantial losses. While pre-defined rings provide protection, the difference in length between the working path and the protection path increases significantly with scale, resulting in noticeable fault switching delays and reduced training efficiency. Furthermore, existing technologies do not adequately consider length difference limitations, affecting the synchronization efficiency of ring reduction and the reliability of distributed training.

[0056] Based on the above considerations, this application proposes a pre-set circle protection method for ring protocols in an optical network of an intelligent computing center. The method involves: obtaining a first set of optical paths to be protected in a service; determining a second set of optical paths based on the optical path differences between adjacent optical paths in the first set; constructing a first pre-set circle based on the second set of optical paths according to the ring protocol direction corresponding to the service; determining the protection path for each optical path in the second set of optical paths corresponding to the first pre-set circle; determining whether the first pre-set circle meets a preset condition based on the difference between the length of each optical path in the second set and the length of the protection path; in response to the first pre-set circle meeting the preset condition, extending an adjacent optical path along the ring protocol direction and reconstructing the second pre-set circle; in response to the second pre-set circle not meeting the preset condition, retaining the first pre-set circle and updating the first set of optical paths, removing the protected optical paths to obtain a third set of optical paths, and continuing to construct a new pre-set circle based on the third set of optical paths to provide ring protection for the service. This application's embodiments, by synchronizing network and ring protocol parameters with service modeling, can accurately abstract actual topology and service requirements, precisely locate the optical paths requiring protection in complex network environments, and lay the foundation for the design of protection mechanisms. By calculating the optical path length difference to screen the optimal candidate optical path set, the initial optical path selection is optimized, avoiding resource waste and prioritizing the protection of important optical paths. Based on this, a minimum-length pre-defined circle is constructed, and the shortest path is found through wavelength plane analysis and link usage is optimized to maximize resource utilization and reduce network latency. The length difference between the working path and the protection path is strictly limited to ensure the effectiveness and training efficiency of the protection path, avoiding increased latency and decreased efficiency due to excessively long protection paths. When the pre-defined circle is feasible, optical paths are dynamically expanded and the protection structure is optimized to adapt to network and service changes; when it is not feasible or a pre-defined circle cannot be constructed, flexible strategies such as fallback or independent construction of shared protection paths are used to ensure that all optical paths are protected, avoiding omissions. By cyclically protecting the remaining optical paths, this method achieves comprehensive protection; even in extreme cases, shared protection paths with non-overlapping risks can ensure optical path security. Overall, this application significantly improves the reliability, stability, and operational efficiency of the optical network in the intelligent computing center under ring protocol parameter synchronization services.

[0057] The technical solutions of the embodiments of this application will be described in detail below through specific examples.

[0058] refer to Figure 1 The pre-circle protection method for ring-specific optical networks in intelligent computing centers according to embodiments of this application includes the following steps:

[0059] Step S101: Obtain the first set of optical paths to be protected in the service;

[0060] Step S102: Determine the second optical path set based on the optical path difference between adjacent optical paths in the first optical path set;

[0061] Step S103: Based on the second optical path set, construct a first preset circle according to the ring protocol direction corresponding to the service;

[0062] Step S104: Determine the protection path of each optical path in the second optical path set corresponding to the first preset circle;

[0063] Step S105: Determine whether the first preset ring meets the preset conditions based on the difference between the length of each optical path in the second optical path set and the length of the protection path.

[0064] Step S106: In response to the first preset ring satisfying the preset condition, extend an adjacent optical path along the ring reduction direction and reconstruct the second preset ring;

[0065] Step S107: In response to the second preset circle not meeting the preset conditions, the first preset circle is retained, and the first optical path set is updated to remove the optical paths that have been protected, resulting in a third optical path set. Based on the third optical path set, a new preset circle is constructed to provide ring protection for the service.

[0066] For step S101, firstly, the optical network of the intelligent computing center is modeled. The optical network of the intelligent computing center is abstracted as a directed graph G(V, E), where V is the set of all nodes (including ordinary optical nodes and intelligent computing center nodes), the set of intelligent computing center nodes is denoted by AD, and the set of ordinary optical nodes is V / AD; E is the set of all fiber optic links, where for any fiber optic link e∈E, length(e) represents the length of fiber optic link e in km. The set of all wavelengths on each fiber optic link is denoted by W.

[0067] refer to Figure 2 This is a schematic diagram of the optical network topology of the intelligent computing center according to an embodiment of this application.

[0068] In this embodiment, Figure 2Let G(V,E) be the generated optical network topology of the intelligent computing center, where V is {a, b, c, d, g}, and V contains intelligent computing center nodes and optical nodes, with the set of intelligent computing center nodes being {a, b, c, d} and the set of optical nodes being {g}. E is the set of all optical fiber links, where E is {ad, da, ab, ba, ag, ga, cb, bc, cd, dc, cg, gc}, and the length of each optical fiber link is length(ad) = 10km, length(da) = 10km, length(ab) = 20km, length(ba) = 20km, length(ag) = 8km, length(ga) = 8km, length(cb) = 8km, length(bc) = 20km, length(cd) = 10km, length(dc) = 10km, length(cg) = 8km, and length(gc) = 8km. The set of all wavelengths on each fiber optic link is W = {λ1, λ2}, which means that it is assumed that only two wavelengths are available.

[0069] Furthermore, the ring reduction parameter synchronization service is modeled. The parameter synchronization service involved in the ring reduction strategy for large-scale data parallelism is modeled as r(N, L), where N represents the set of intelligent computing center nodes included in the parameter synchronization service, and L represents the set of optical paths constructed for the parameter synchronization service. For example, a parameter synchronization service includes a set of intelligent computing center nodes {a, b, c}, where a, b, and c all belong to set AD. The ring reduction strategy requires establishing optical paths for adjacent intelligent computing center nodes, that is, establishing an optical path from intelligent computing center node a to intelligent computing center node b, an optical path from intelligent computing center node b to intelligent computing center node c, and an optical path from intelligent computing center node c to intelligent computing center node a, forming a ring, i.e., from a to b to c and back to a. The direction of ring reduction is also from a to b to c and back to a. Now, suppose that the optical path established from intelligent computing center node a to intelligent computing center node b is a→b, the optical path established between intelligent computing center node b and intelligent computing center node c is b→c, and the optical path established between intelligent computing center node c and intelligent computing center node a is c→a. Then the optical paths contained in the set L are {a→b, b→c, c→a}, where optical paths a→b and b→c are adjacent, optical paths b→c and c→a are adjacent, and optical paths c→a and a→b are adjacent.

[0070] refer to Figure 3 This is a schematic diagram of the ring protocol parameter synchronization service in an embodiment of this application.

[0071] In this embodiment, as Figure 3As shown, a large model is currently being trained in parallel across four nodes (a, b, c, and d) in a smart computing center. The ring reduction direction is counterclockwise. For this parameter, the synchronous service model is r(N, L), where N is {a, b, c, d}, and L is {a→b, b→c, c→d, d→a}. L contains four optical paths, each occupying one wavelength, assumed to be λ1. Furthermore, it can be seen that optical paths a→b and b→c are adjacent, optical paths b→c and c→d are adjacent, optical paths c→d and d→a are adjacent, and optical paths d→a and a→b are adjacent.

[0072] Furthermore, the maximum length difference between the working path and the protection path specified by the ring protocol can be determined in advance to prepare for subsequent steps. In the optical path set L of the parameter synchronization service r(N, L), all optical paths are working paths. To avoid training termination due to interruption of the working path in case of a fault, a corresponding protection path needs to be found for each working path. However, since the lengths of the working path and the protection path are not the same, if the length of the protection path is much greater than the length of the working path, the training efficiency will decrease. Therefore, the length difference between the protection path and the working path must be limited. Here, the maximum length difference between the protection path and the working path is denoted as DIFF, and this value needs to be determined based on the specific training scenario. It should be noted that this step is not limited to this step and can be calculated when the length difference is required; it is explained in advance for ease of explanation.

[0073] In this embodiment, the maximum length difference between the working path and the protection path specified by the ring protocol is determined. Here, it is assumed that the maximum length difference (DIFF) between the working path and the protection path specified by the ring protocol is 30 km. Note that the DIFF value given here is only for illustrative purposes; the specific value needs to be determined based on the actual network conditions.

[0074] Furthermore, in step S101, the first set of optical paths to be protected in the service is obtained.

[0075] Specifically, identify the optical paths to be protected in the parameter synchronization service r(N, L), i.e., those that have not yet been protected. Update r(N, L) so that L contains only the optical paths that have not yet been protected. For some optical paths in L of the parameter synchronization service r(N, L), if they are already protected by risk-disjoint optical paths or by pre-built circles already constructed in the intelligent computing center optical network, then there is no need to construct pre-built circles for these optical paths. For each optical path e in L, traverse the pre-built circles already constructed in the intelligent computing center optical network and check if there exists at least one pre-built circle such that optical path e is a link on the circle or a bridging link of the pre-built circle, and the length difference between the protection path corresponding to e and e in the pre-built circle is less than DIFF. Then the pre-built circle can protect optical path e, and the construction of subsequent protection circles does not need to consider optical path e again. Find all the optical paths in L that have been protected and remove them from L. Then, the updated r(N, L) will be obtained, at which point L contains only the optical paths that have not yet been protected, i.e., the first set of optical paths is obtained.

[0076] In this embodiment, since the network has not yet built any pre-set ring structure, all optical paths in the parameter synchronization service r(N, L) are optical paths that have not yet been protected. That is, a pre-set ring protection structure needs to be built for the optical paths {a→b, b→c, c→d, d→a}.

[0077] Furthermore, in step S102, a second optical path set is determined based on the optical path difference between adjacent optical paths in the first optical path set.

[0078] In some embodiments, determining the second optical path set based on the optical path difference between adjacent optical paths in the first optical path set includes: calculating the optical path difference between every two adjacent optical paths in the first optical path set; and taking the two optical paths corresponding to the minimum value of the optical path difference as the second optical path set.

[0079] In this embodiment, for each optical path in the optical path set L of the parameter synchronization service r(N,L), its length is calculated. The length of an optical path is the sum of the lengths of each fiber link it traverses. Then, the length differences between two adjacent optical paths are compared, and the two adjacent optical paths with the smallest length difference are identified as the second optical path set. For example, assuming the first optical path set L in the parameter synchronization service r(N,L) is {a→b, b→c, c→a}, the lengths of optical paths a→b, b→c, and c→a are calculated and denoted as length(a→b), length(b→c), and length(c→a), respectively. It can be seen that optical paths a→b and b→c are adjacent, optical paths b→c and c→a are adjacent, and optical paths c→a and a→b are adjacent. Then, by comparing the length difference between length(a→b) and length(b→c), length(b→c) and length(c→a), and length(c→a) and length(a→b), we find the adjacent optical path with the smallest length difference and add this adjacent optical path to the second optical path set.

[0080] In this embodiment, for the optical path set {a→b, b→c, c→d, d→a} in L, the lengths of optical paths a→b, b→c, c→d, and d→a are all 20km, 10km, and 10km respectively. The length difference between optical paths a→b and b→c is 0, and the length difference between optical paths c→d and d→a is also 0. Since their length differences are minimal, we choose optical paths c→d and d→a as the starting points for constructing the second optical path set {c→d, d→a}.

[0081] Furthermore, in step S103, based on the second optical path set, a first preset circle is constructed according to the ring protocol direction corresponding to the service.

[0082] In some embodiments, constructing a first preset circle based on the second optical path set according to the ring reduction direction corresponding to the service includes: obtaining the source node of each optical path in the second optical path set and obtaining the destination node of the last optical path; based on all the source nodes and the destination nodes, using a wavelength plane to find the shortest optical path between adjacent nodes in a direction opposite to the ring reduction direction to obtain a first shortest optical path, and deleting the first link traversed by the first shortest optical path; using a wavelength plane to find the shortest optical path between the next pair of adjacent nodes to obtain a second shortest optical path, and deleting the second link traversed by the second shortest optical path; in response to using a wavelength plane to find the shortest optical path between the last pair of adjacent nodes to obtain a third shortest optical path, and combining the first shortest optical path, the second shortest optical path, and the third shortest optical path to obtain the first preset circle, and restoring the first link and the second link.

[0083] In this embodiment, for the second set of optical paths, the source node of the first optical path is first obtained, then the source node of the second optical path is obtained, and so on until the source node and destination node of the last optical path are obtained. Then, a first preset circle containing all the above nodes and having the minimum length is constructed in the optical network of the intelligent computing center. The direction of the first preset circle is opposite to the direction of the ring reduction. The direction of the first preset circle with the minimum length can be used to construct the direction of the wavelength plane. After obtaining all the source nodes and destination nodes, the first preset circle is obtained based on all the aforementioned nodes. Then, the first shortest optical path is found using the wavelength plane, and the first link traversed by this optical path is deleted from the optical network G(V,E). Then, the second shortest optical path is found using the wavelength plane, and the second link is deleted. Finally, the last shortest optical path, i.e., the third shortest optical path, is found using the wavelength plane. All optical paths form a preset circle protection structure. The deleted first and second links are added back to the optical network G(V,E), and finally the first preset circle is obtained. Assuming the candidate optical path set is {a→b, b→c}, the source node of the first optical path is a, and the source and destination nodes of the last optical path are b and c, respectively, a first pre-circle with the minimum length needs to be constructed. Since the direction of the ring reduction is a→b→c, the direction of the third pre-circle is opposite, so the constructed third pre-circle should be b→a→c→b. First, the shortest optical path from node b to node a is found using the wavelength plane, and the links traversed by this optical path are removed from the optical network of the intelligent computing center. Then, the shortest optical path from node a to node c is found using the wavelength plane, and the links traversed by this optical path are removed from the optical network of the intelligent computing center. Finally, the shortest optical path from node c to node b is found using the wavelength plane. The constructed optical paths form the protection structure of the first pre-circle, and the deleted links are added back.

[0084] refer to Figure 4 This is a schematic diagram of the preset rings constructed for optical paths c→d and d→a in an embodiment of this application.

[0085] The optical paths found in the first set of optical paths in the preceding steps are optical path c→d and optical path d→a. The source node of the first optical path c→d is c, and the source and destination nodes of the second optical path d→a are d and a, respectively. Since the direction of the ring reduction is c→d→a, the direction of the preset ring is opposite. First, the optical path d→c from node d to node c is found using the wavelength plane, and the wavelength is assigned to λ1. Then, the fiber link dc traversed by optical path d→c is deleted. Next, the optical path c→g→a from node c to node a is found using the wavelength plane, and the wavelength is assigned to λ1. Then, the fiber links cg and ga traversed by optical path c→g→a are deleted. Finally, the optical path a→d from node a to node d is found using the wavelength plane, and the wavelength is assigned to λ1. The deleted fiber links dc, cg, and ga are then added back. Figure 4 As shown, this is a pre-set ring protection structure constructed for optical paths c→d and d→a, where the pre-set ring is a→d→c→g→a.

[0086] It should be noted that the above steps describe the situation where a pre-set circle can be constructed. If a pre-set circle cannot be constructed, it is necessary to determine whether a feasible pre-set circle can be found. If no feasible pre-set circle can be found, then a risk-disjoint shared protection path is directly constructed for each optical path in the second optical path set.

[0087] Furthermore, for steps S104 and S105, the protection path of each optical path in the second optical path set corresponding to the first preset circle is determined; based on the difference between the length of each optical path in the second optical path set and the length of the protection path, it is determined whether the first preset circle meets the preset conditions.

[0088] In some embodiments, determining whether the first preset ring meets the preset condition based on the difference between the length of each optical path in the second optical path set and the length of the protection path includes: calculating the difference between the length of each optical path in the second optical path set and the length of the protection path, and determining whether the difference is less than a preset threshold, so as to determine whether the first preset ring meets the preset condition.

[0089] In this embodiment, it is determined whether the first preset circle constructed in the aforementioned steps is a feasible preset circle, i.e., whether it meets the preset conditions. The protection path corresponding to each optical path in the second optical path set is found on the first preset circle structure. If the length difference between the working path and the protection path of all optical paths does not exceed the DIFF set in the aforementioned steps, then the first preset circle is a feasible preset circle, and this first preset circle can provide protection for all optical paths in the second optical path set, and the subsequent steps continue. If the length difference between the working path and the protection path of a certain optical path exceeds the DIFF, then the first preset circle is not feasible, and a risk-disjoint shared protection path is directly constructed for each optical path in the second optical path set.

[0090] In this embodiment, the preconfigured loop constructed for the optical path c→d and the optical path d→a is a→d→c→g→a. For the optical path c→d, the corresponding protection path on the preconfigured loop is c→g→a→d, and the length difference between them is length(c→g→a→d) - length(c→d) = 26 km - 10 km = 16 km < DIFF. For the optical path d→a, the corresponding protection path on the preconfigured loop is d→c→g→a, and the length difference between them is length(d→c→g→a) - length(d→a) = 26 km - 10 km = 16 km < DIFF. Since the length differences between the working paths and the protection paths of the optical paths c→d and d→a do not exceed DIFF, then this preconfigured loop is a feasible preconfigured loop, and this preconfigured loop can provide protection for these two adjacent optical paths.

[0091] Further, for step S106, in response to the first preconfigured loop satisfying the preset condition, expand an adjacent optical path along the loop规约 direction, and reconstruct the second preconfigured loop.

[0092] In some embodiments, the adjacent optical path expanded along the loop规约 direction is the optical path to be protected.

[0093] In this embodiment, for the first preconfigured loop constructed in the foregoing step, if it is feasible, add an adjacent optical path (the optical path to be protected in the parameter synchronization service r(N, L)) along the loop规约 direction to its corresponding second optical path set to obtain the third optical path set, and then reconstruct the second preconfigured loop to provide protection for the third optical path set. If no adjacent optical path can be found in the optical path set L that has not been protected in the parameter synchronization service r(N, L) or the optical path set that has not been protected in the parameter synchronization service r(N, L) is an empty set, then retain the first preconfigured loop constructed in the foregoing step as the protection structure, and then re-determine the optical path to be protected, and further determine a new preconfigured loop.

[0094] Further, for step S107, in response to the second preconfigured loop not satisfying the preset condition, retain the first preconfigured loop, and update the first optical path set, and剔除 the optical paths that have obtained protection from it to obtain the third optical path set, and continue to construct a new preconfigured loop based on the third optical path set to perform loop protection on the service.

[0095] It should be noted that the "loop规约" in the text seems to be an incorrect or unclear expression. It may need to be further clarified or corrected in the original context.In some embodiments, the step of continuing to construct new preset circles based on the third optical path set to perform ring protection for the service includes: in response to the second preset circle not meeting a preset condition, cyclically constructing new preset circles based on the third optical path set; in response to cyclically constructing the new preset circles, cyclically updating the third optical path set until the optical paths in the third optical path set are not adjacent, stopping the construction of new preset circles, and constructing a risk-disjoint shared protection path for each non-adjacent optical path in the third optical path set; in response to the third optical path set being an empty set, completing the ring protection for the service.

[0096] In this embodiment, if the second preset ring is not feasible, the last newly added optical path is removed from the third optical path set, and the corresponding feasible first preset ring is found. The first preset ring is retained as a protection structure, and then the optical path to be protected is re-determined, that is, the optical path that has been protected in the first optical path set is removed to obtain the third optical path set. Furthermore, a new preset ring is constructed based on the third optical path set to achieve ring protection for the service.

[0097] refer to Figure 5 This is a schematic diagram of the preset loop constructed by optical paths c→d, d→a, and a→b in an embodiment of this application.

[0098] refer to Figure 6 This is a schematic diagram of all the pre-built circles constructed in the embodiments of this application.

[0099] Specifically, regarding the aforementioned steps, if feasible, an adjacent optical path (an optical path in the parameter synchronization service r(N, L) that has not yet been protected) is added to its corresponding candidate optical path set along the direction of the ring reduction, and a new preset circle is constructed to provide protection for the new candidate optical path set. The first preset circle constructed is a feasible preset circle, which provides protection for optical paths c→d and d→a. The optical paths that have not yet been protected are {a→b, b→c}. An adjacent optical path that has not yet been protected is added along the direction of the ring reduction, and this optical path is a→b. The set of optical paths at this time is {c→d, d→a, a→b}, as shown below. Figure 5As shown, the second preset circle constructed for optical paths c→d, d→a, and a→b is a→d→c→b→a. Next, it is determined whether the second preset circle a→d→c→b→a is a feasible preset circle. For optical path d→a, the corresponding protection path on the second preset circle is d→c→b→a, and the length difference between them is length(d→c→g→a) - length(d→a) = 50km - 10km = 40km > DIFF. This is not a feasible preset circle, so the previous feasible preset circle, namely the first preset circle a→d→c→g→a, is retained to provide protection for optical paths c→d and d→a. Then, a new set of optical paths to be protected is searched. The first preset circle already constructed is a→d→c→g→a, and the optical paths already protected in the first set of optical paths are {c→d, d→a}. Therefore, the third set of optical paths not yet protected is {a→b, b→c}. Because optical paths a→b and b→c are neither bridging links nor links within the first preset loop a→d→c→g→a, the first preset loop a→d→c→g→a cannot provide protection for optical paths a→b and b→c. Therefore, other preset loops need to be constructed to provide protection for optical paths a→b and b→c. For example... Figure 6 As shown, the new preset loop constructed for the optical path {a→b, b→c} that has not yet been protected is a→g→c→b→a, which is a feasible preset loop. Figure 6 All the pre-set circles for the construction are also given. For the parameter synchronization service model r(N,L), all optical paths in L are protected by pre-set circles. The first pre-set circle a→d→c→g→a protects optical paths c→d and d→a. The new pre-set circle a→g→c→b→a protects optical paths a→b and b→c. Each link has a corresponding protection path, and the lengths of the working path and the protection path are both less than DIFF.

[0100] Finally, check whether L of the final parameter synchronization service r(N, L) is an empty set. If it is not an empty set, determine whether all optical paths in the set are adjacent. If there are adjacent optical paths, continue to build a pre-formed circle for the adjacent optical paths and update the third optical path set, that is, remove all optical paths that have been protected by the pre-formed circle until all optical paths in the third optical path set are not adjacent. At this time, a risk-disjoint shared protection path is built for each optical path in L. If it is an empty set, it proves that each optical path has a corresponding pre-formed circle or a shared protection path to protect it. At this time, the ring protection of the service is completed.

[0101] As can be seen from the above embodiments, the pre-set circle protection method for ring protocol-oriented optical networks in intelligent computing centers described in this application involves: obtaining a first set of optical paths to be protected in a service; determining a second set of optical paths based on the optical path difference between adjacent optical paths in the first set of optical paths; constructing a first pre-set circle based on the second set of optical paths according to the ring protocol direction corresponding to the service; determining the protection path for each optical path in the second set of optical paths corresponding to the first pre-set circle; determining whether the first pre-set circle meets a preset condition based on the difference between the length of each optical path in the second set of optical paths and the length of the protection path; responding to the first pre-set circle meeting the preset condition, extending an adjacent optical path along the ring protocol direction and reconstructing the second pre-set circle; responding to the second pre-set circle not meeting the preset condition, retaining the first pre-set circle and updating the first set of optical paths, removing the optical paths that have already been protected to obtain a third set of optical paths, and continuing to construct a new pre-set circle based on the third set of optical paths to perform ring protection for the service. This application first models the optical network of the intelligent computing center as a directed graph and models the ring protocol parameter synchronization service, thus clearly abstracting the structural characteristics and service requirements of the actual network topology. In this way, this application can accurately locate the optical paths requiring protection in complex network environments and lay a solid foundation for subsequent protection mechanism design.

[0102] Secondly, by calculating the length difference between adjacent optical paths and finding the adjacent optical path with the smallest length difference to add to the candidate optical path set, this application can effectively screen the optimal initial set of optical paths, thereby avoiding unnecessary waste of computational resources. This optimization can ensure that, under the condition of limited network resources, the optical paths of most concern are protected first.

[0103] Furthermore, constructing a pre-defined loop with the minimum length for the candidate optical path set can significantly reduce the use of redundant resources. By utilizing the wavelength plane to find the shortest path and progressively removing already used links, this application ensures that each generated pre-defined loop is as close as possible to optimal in terms of length and resource usage. This design maximizes network resource utilization while reducing network latency.

[0104] In determining the feasibility of a pre-defined circle, the effectiveness of the protection path and training efficiency are ensured by strictly limiting the difference in length between the working path and the protection path. If the path length difference exceeds the set maximum threshold, the strategy is adjusted promptly. This mechanism effectively avoids the efficiency degradation caused by excessively long protection paths, thus meeting actual business needs.

[0105] When a pre-defined ring is verified to be feasible, the strategy of expanding new optical paths along the ring protocol direction and reconstructing the pre-defined ring can dynamically adapt to changes in the network and services, continuously improving the protection structure. Simultaneously, when no new adjacent optical paths can be found or the set of unprotected optical paths is empty, this application can promptly retain the currently constructed pre-defined ring as a protection structure, ensuring the stability and effectiveness of the existing protection scheme. For infeasible pre-defined rings or situations where pre-defined rings cannot be constructed, this application provides a flexible response mechanism. By reverting to the previous optical path state or directly constructing risk-disjoint shared protection paths for each non-adjacent optical path, this application ensures that optical paths receive appropriate protection in various scenarios, without neglecting any optical path. This design improves the robustness and reliability of the system.

[0106] By cyclically protecting the remaining optical paths throughout the network, this application ensures that all optical paths are ultimately protected. Even in extreme cases, each optical path can be protected by constructing shared protection paths with non-overlapping risks. This comprehensive protection strategy further enhances the security of the entire intelligent computing center's optical network.

[0107] In summary, this application, through a series of optimization strategies and flexible response mechanisms, has achieved efficient resource utilization, dynamic adjustment of protection schemes, and comprehensive optical path protection, significantly improving the reliability, stability, and operational efficiency of the optical network in the intelligent computing center under ring protocol parameter synchronization services.

[0108] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.

[0109] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0110] Based on the same inventive concept, and corresponding to any of the above embodiments, this application also provides a pre-circle protection device for ring-specific protocols in an intelligent computing center optical network.

[0111] refer to Figure 7The pre-circle protection device for ring-protocol orientation in the optical network of the intelligent computing center includes:

[0112] The acquisition module 71 is configured to acquire the first set of optical paths to be protected in the service.

[0113] The first determining module 72 is configured to determine the second optical path set based on the optical path difference between adjacent optical paths in the first optical path set;

[0114] The construction module 73 is configured to construct a first preset circle based on the second optical path set and according to the ring protocol direction corresponding to the service;

[0115] The second determining module 74 is configured to determine the protection path of each optical path in the second optical path set corresponding to the first preset circle;

[0116] The third determining module 75 is configured to determine whether the first preset ring meets the preset conditions based on the difference between the length of each optical path in the second optical path set and the length of the protection path.

[0117] The extension module 76 is configured to extend an adjacent optical path along the ring reduction direction and reconstruct the second preset ring in response to the first preset ring satisfying a preset condition;

[0118] The ring protection module 77 is configured to, in response to the second preset ring not meeting the preset conditions, retain the first preset ring, update the first optical path set, remove the optical paths that have been protected, obtain a third optical path set, and continue to construct a new preset ring based on the third optical path set to perform ring protection for the service.

[0119] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.

[0120] The apparatus described above is used to implement the pre-circle protection method for ring-specific optical networks in the corresponding intelligent computing centers in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.

[0121] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the preset loop protection method for ring-oriented protocols in the optical network of the intelligent computing center described in any of the above embodiments.

[0122] Figure 8This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.

[0123] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0124] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0125] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.

[0126] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0127] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.

[0128] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0129] The electronic devices described above are used to implement the pre-circle protection method for ring-specific optical networks in the corresponding intelligent computing centers in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0130] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium storing computer instructions, which are used to cause the computer to execute the preset ring protection method for ring-oriented protocols in the optical network of the intelligent computing center as described in any of the above embodiments.

[0131] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0132] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the pre-circle protection method for ring-oriented protocols in the optical network of the intelligent computing center as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0133] Based on the same inventive concept, corresponding to the pre-circle protection method for ring-protocol oriented optical networks in intelligent computing centers described in any of the above embodiments, this disclosure also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer to cause the computer and / or the processor to execute the pre-circle protection method for ring-protocol oriented optical networks in intelligent computing centers. Corresponding to the execution entity for each step in each embodiment of the pre-circle protection method for ring-protocol oriented optical networks in intelligent computing centers, the processor executing the corresponding step can belong to the corresponding execution entity.

[0134] The computer program product of the above embodiments is used to enable the computer and / or the processor to execute the pre-circle protection method for ring-oriented protocols in the optical network of the intelligent computing center as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0135] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.

[0136] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0137] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0138] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A pre-set loop protection method for ring-specific optical networks in intelligent computing centers, characterized in that, include: Obtain the first set of optical paths to be protected in the service; The second optical path set is determined based on the optical path difference between adjacent optical paths in the first optical path set; Based on the second optical path set, a first preset circle is constructed according to the ring protocol direction corresponding to the service; Determine the protection path for each optical path in the second optical path set corresponding to the first preset circle; Based on the difference between the length of each optical path in the second optical path set and the length of the protection path, determine whether the first preset ring meets the preset conditions; In response to the first preset ring satisfying the preset condition, an adjacent optical path is extended along the ring reduction direction, and the second preset ring is reconstructed; In response to the second preset circle not meeting the preset conditions, the first preset circle is retained, and the first optical path set is updated to remove the optical paths that have been protected, resulting in a third optical path set. Based on the third optical path set, a new preset circle is constructed to provide ring protection for the service.

2. The method according to claim 1, characterized in that, Determining the second optical path set based on the optical path difference between adjacent optical paths in the first optical path set includes: Calculate the optical path difference between every two adjacent optical paths in the first optical path set; The two optical paths corresponding to the minimum value of the optical path difference are taken as the second set of optical paths.

3. The method according to claim 1, characterized in that, The construction of a first preset circle based on the second optical path set and according to the ring protocol direction corresponding to the service includes: Obtain the source node of each optical path in the second optical path set, and obtain the destination node of the last optical path; Based on all the source nodes and the destination nodes, the shortest optical path between adjacent nodes is found using the wavelength plane in the direction opposite to the ring reduction direction to obtain the first shortest optical path, and the first link traversed by the first shortest optical path is deleted. The shortest optical path between the next pair of adjacent nodes is found using the wavelength plane, resulting in the second shortest optical path. The second link traversed by the second shortest optical path is then deleted. In response to finding the shortest optical path between the last pair of adjacent nodes using the wavelength plane, a third shortest optical path is obtained, and the first shortest optical path, the second shortest optical path and the third shortest optical path are combined to obtain the first preset loop, and the first link and the second link are restored.

4. The method according to claim 1, characterized in that, The step of determining whether the first preset ring meets the preset conditions based on the difference between the length of each optical path in the second optical path set and the length of the protection path includes: Calculate the difference between the length of each optical path in the second optical path set and the length of the protection path, and determine whether the difference is less than a preset threshold to determine whether the first preset ring meets the preset condition.

5. The method according to claim 1, characterized in that, The adjacent optical path extending along the ring specification direction is the optical path to be protected.

6. The method according to claim 1, characterized in that, The step of constructing a new preset circle based on the third optical path set to provide ring protection for the service includes: In response to the second preset circle not meeting the preset conditions, a new preset circle is cyclically constructed based on the third optical path set; In response to the cyclic construction of the new preset circle, the third optical path set is cyclically updated until the optical paths in the third optical path set are not adjacent, at which point the construction of the new preset circle stops, and a risk-disjoint shared protection path is constructed for each non-adjacent optical path in the third optical path set. In response to the third optical path set being an empty set, ring protection for the service is completed.

7. A pre-circle protection device for ring-protocol-oriented optical networks in intelligent computing centers, characterized in that, include: The acquisition module is configured to acquire the first set of optical paths to be protected in the service. The first determining module is configured to determine the second optical path set based on the optical path difference between adjacent optical paths in the first optical path set; The construction module is configured to construct a first preset circle based on the second optical path set and according to the ring protocol direction corresponding to the service; The second determining module is configured to determine the protection path of each optical path in the second optical path set corresponding to the first preset circle; The third determining module is configured to determine whether the first preset ring meets the preset conditions based on the difference between the length of each optical path in the second optical path set and the length of the protection path. The extension module is configured to extend an adjacent optical path along the ring reduction direction and reconstruct the second pre-loop in response to the first pre-loop satisfying a preset condition. The ring protection module is configured to, in response to the second preset ring not meeting the preset conditions, retain the first preset ring, update the first optical path set, remove the optical paths that have been protected, obtain a third optical path set, and continue to construct a new preset ring based on the third optical path set to perform ring protection for the service.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 6.

10. A computer program product comprising computer program instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 6.