A method and corresponding apparatus for protection switching of data traffic in a transport network

By monitoring and generating a latency guarantee mechanism for primary and backup paths in real time, the problem of insufficient latency guarantee in data transmission networks is solved, ensuring reliable transmission of data services in latency-sensitive scenarios such as 5G networks.

CN116846819BActive Publication Date: 2026-07-21WUHAN FIBERHOME TECHNICAL SERVICES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WUHAN FIBERHOME TECHNICAL SERVICES CO LTD
Filing Date
2023-07-03
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

Existing technologies lack real-time guarantees for transmission link latency in data transmission networks, leading to network data transmission failures and failing to meet the increasingly latency-sensitive requirements of 5G networks and other technologies.

Method used

By monitoring the predicted latency of multiple transmission links in real time, a primary path and a backup path are generated. When the actual latency of the primary path exceeds the guarantee threshold, data services are switched to the backup path. Combined with the SR-TP protocol and other latency measurement protocols, latency guarantee for data services is achieved.

Benefits of technology

It achieves latency protection for data services, fills the gap in latency protection in existing technologies, and ensures the reliability of data transmission networks in latency-sensitive scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116846819B_ABST
    Figure CN116846819B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of communication data transmission, and provides a protection switching method for data service of a transmission network and a corresponding device. When data service is made, the predicted time delay of multiple transmission links is monitored in real time, a main path and a backup path are generated according to the predicted time delay and a preset guarantee threshold; during the use of the data service, the actual time delay of the main path is monitored in real time, and when the actual time delay of the main path exceeds the guarantee threshold, the data service is switched to the backup path. According to the application, the link time delay is monitored in real time and the protection switching of the data service is controlled based on the guarantee threshold of the transmission path time delay when the data service is made and during the use of the data service, the requirement of the data service on the transmission time delay is met, and the blank of the prior art for guaranteeing the transmission network time delay of the data service is made up.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data transmission technology, and in particular to a protection switching method and corresponding apparatus for data services in a transmission network. Background Technology

[0002] The data transmission network, or transmission network for short, typically carries services from 4G / 5G wireless base stations, OLTs (Optical Line Terminals), dedicated lines for large customers, and the Internet of Things (IoT). It is responsible for transmitting data communication information streams from wireless base stations, OLTs, dedicated lines for large customers, and IoT devices, and is the cornerstone of provincial, municipal, and county-level operator networks or industry-specific networks. Various data transmission services can be tailored to the data transmission network to meet the needs of different usage scenarios. During data transmission in a communication network, under normal circumstances, data services are transmitted along the planned path within the network. When a failure occurs on the current working path of a data service, the data service on the failed path needs to be switched to another path for transmission, thereby ensuring the reliability of service transmission. This process is called protection switching.

[0003] Currently, domestic operators and various industry-specific private networks have built a large number of data transmission networks. However, these networks typically rely on various protection mechanisms to ensure data transmission connectivity, but they do not monitor and guarantee data transmission latency in real time. With the large-scale deployment of 5G networks, the requirements for latency assurance in IoT, vehicle-to-everything (V2X) and other services will become increasingly stringent. Simply protecting against data transmission connectivity is insufficient to meet the growing sensitivity of new application scenarios to network data transmission latency.

[0004] Therefore, overcoming the shortcomings of the existing technology is an urgent problem to be solved in this technical field. Summary of the Invention

[0005] The technical problem to be solved by this invention is that the existing technology lacks protection against transmission link latency in the data transmission network when creating and using data services, which leads to network data transmission failures.

[0006] In order to overcome the technical deficiencies mentioned above, the present invention provides a protection switching method and corresponding apparatus for data services in a transmission network to achieve latency protection for data services.

[0007] The present invention adopts the following technical solution:

[0008] In a first aspect, the present invention provides a protection switching method for data services in a transmission network, the protection switching method comprising:

[0009] When creating data services, the predicted latency of multiple transmission links is monitored in real time, and a primary path and a backup path are generated based on the predicted latency and a preset guarantee threshold.

[0010] During the use of the data service, the actual latency of the primary path is monitored in real time. When the actual latency of the primary path exceeds the protection threshold, the data service is switched to the backup path.

[0011] Furthermore, the protection switching method further includes:

[0012] When the actual latency of the primary path exceeds the protection threshold, it is determined whether the actual latency of the backup path exceeds the protection threshold.

[0013] If the limit is not met, the data service will be switched to the backup path.

[0014] If the threshold is exceeded, a new path that meets the protection threshold is calculated, and the data service is switched to the new path.

[0015] Furthermore, the real-time monitoring of the actual latency of the primary path includes:

[0016] Deploy a corresponding first protocol on the interconnection interface of the transmission equipment, and enable the bidirectional delay measurement function of the first protocol to measure the delay of the corresponding transmission link in real time on the interconnection interface;

[0017] A second protocol is deployed on the transmission equipment, and the latency publication function of the second protocol is enabled so as to obtain the latency of the corresponding transmission link from the transmission equipment;

[0018] The actual delay of the primary path is calculated in real time based on the delay of the transmission link.

[0019] Furthermore, after generating a primary path and a backup path based on the predicted latency of multiple transmission links in real time during data service creation, the process also includes:

[0020] Send a first prompt message to the user and receive a first response message based on the first prompt message. Based on the first response message, determine whether it is necessary to send the primary path and the backup path to the corresponding transmission devices.

[0021] If it is necessary to distribute the primary path and the backup path to the corresponding transmission equipment, the primary path shall be used as the working path of the data service.

[0022] If it is not necessary to distribute the primary path and the backup path to the transmission device, the path specified by the user shall be used as the working path of the data service.

[0023] Furthermore, the step of monitoring the actual latency of the primary path in real time during the use of the data service, and switching the data service to the backup path when the actual latency of the primary path exceeds the protection threshold, further includes:

[0024] When the latency of the primary path recovers to the level that meets the protection threshold, a second prompt message is sent to the user, and a second response message based on the second prompt message is received. Based on the second response message, it is determined whether to choose to revert the data service.

[0025] If reversing, a first preset time for reversing is determined, and the data service is reversed back to the primary path according to the first preset time;

[0026] If you do not revert, maintain the current working path.

[0027] Furthermore, the step of monitoring the actual latency of the primary path in real time during the use of the data service, and switching the data service to the backup path when the actual latency of the primary path exceeds the protection threshold, further includes:

[0028] When the new path is the working path of the data service, the latency of the backup path is restored to meet the guarantee threshold, and the latency of the primary path exceeds the guarantee threshold, a third prompt message is sent to the user, and a third response message based on the third prompt message is received. The user then determines whether to choose to roll back the data service based on the third response message.

[0029] If reversal is required, a second preset time for reversal is determined, and the data service is reversed to the backup path according to the second preset time.

[0030] If you do not revert, maintain the current working path.

[0031] Furthermore, during the use of the data service, the actual latency of the primary path and the actual latency of the backup path are monitored in real time. When the actual latency of the primary path and the actual latency of the backup path do not exceed the protection threshold, a fourth prompt message is sent to the user, and a fourth response message based on the fourth prompt message is received. Based on the fourth response message, it is determined whether to send the data service on both the primary path and the backup path simultaneously.

[0032] Furthermore, the protection switching method further includes:

[0033] Based on the inflection point of the historical traffic of the transmission device, the inflection point of the historical traffic is used as the corresponding switching time for each of the transmission devices;

[0034] Based on the changes in historical traffic after the inflection point, a corresponding tag is set for each transmission device;

[0035] During the use of the data service, the data service may be selectively switched or not switched according to the corresponding switching time and corresponding tag.

[0036] Furthermore, during the use of the data service, selectively switching over the data service or not switching over the data service according to the corresponding switching time and corresponding tag includes:

[0037] Set the preset percentage value;

[0038] After the corresponding switching time, the transmission device of the primary path receives the actual delay of the primary path. The transmission device of the primary path calculates in real time the ratio of the delay of the transmission link it is in to the actual delay of the primary path to obtain the proportion of the primary path. When the proportion of the primary path is greater than the preset value of the proportion, the transmission device of the primary path reports a switchover message.

[0039] After the corresponding switching time, the transmission device of the backup path receives the actual delay of the backup path. The transmission device of the backup path calculates in real time the ratio of the delay of the transmission link it is in to the actual delay of the backup path to obtain the backup path ratio. When the backup path ratio is greater than the preset value of the ratio, the transmission device of the backup path reports a switchover message.

[0040] Based on the switching message and the tag corresponding to each of the transmission devices, the data service may be selectively switched or not switched.

[0041] Secondly, the present invention also provides a protection switching device for transmission network data services, used to implement the protection switching method for transmission network data services described in the first aspect, wherein the transmission network data service creation and protection switching device comprises:

[0042] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor for performing the protection switching method for data services in the transmission network as described in the first aspect.

[0043] Thirdly, the present invention also provides a non-volatile computer storage medium storing computer-executable instructions, which are executed by one or more processors to perform the protection switching method for transmission network data services described in the first aspect.

[0044] Unlike existing technologies, the present invention has at least the following beneficial effects:

[0045] This invention achieves protection switching for data services by real-time monitoring of the latency of each transmission link in the data transmission network and establishing a protection threshold based on the transmission path latency, thus filling the gap in the existing technology for ensuring latency of data service transmission networks.

[0046] Furthermore, by incorporating a certain manual selection mechanism during the service creation and protection switching process, space is reserved for manual adjustments; based on the latency of the transmission link, combined with relevant factors such as actual usage scenarios and historical traffic, data service protection switching is carried out, further ensuring latency during data service usage. Attached Figure Description

[0047] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments of the present invention will be briefly described below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0048] Figure 1 This is a flowchart illustrating a protection switching method for data services in a transmission network provided by an embodiment of the present invention;

[0049] Figure 2 This is a partial flowchart illustrating step 20 of an embodiment of the present invention;

[0050] Figure 3 A schematic diagram of a data service protection switching method provided in an embodiment of the present invention;

[0051] Figure 4 This is a schematic diagram of the data transmission network topology according to an embodiment of the present invention;

[0052] Figure 5 This is a partial flowchart illustrating step 20 of an embodiment of the present invention;

[0053] Figure 6 This is a schematic diagram of another part of the specific process of step 20 in an embodiment of the present invention;

[0054] Figure 7 This is a flowchart illustrating a protection switching method for data services in a transmission network, as provided in an embodiment of the present invention.

[0055] Figure 8 This is a flowchart illustrating another protection switching method for data services in a transmission network provided by an embodiment of the present invention;

[0056] Figure 9This is a schematic diagram illustrating the historical traffic changes of a data service in a transmission network, provided by an embodiment of the present invention.

[0057] Figure 10 This is a schematic diagram illustrating the historical traffic changes of another data service in a transmission network provided by an embodiment of the present invention;

[0058] Figure 11 This is a schematic diagram of the architecture of a protection switching device for data services in a transmission network provided in an embodiment of the present invention. Detailed Implementation

[0059] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0060] In this invention, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0061] In this application, unless otherwise expressly specified and limited, the term "connection" shall be interpreted broadly. For example, "connection" may be a fixed connection, a detachable connection, or an integral part; it may be a direct connection or an indirect connection through an intermediate medium.

[0062] Furthermore, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0063] Example 1:

[0064] This invention, through real-time monitoring of the latency of each transmission link in the data transmission network, implements latency-based protection thresholds and performs protection switching for data services. This fills the gap in existing technologies regarding latency protection for data service transmission networks, solving the problem of network data transmission failures caused by the lack of latency protection. Specifically, as... Figure 1 As shown, this embodiment of the invention provides a protection switching method for data services in a transmission network, including:

[0065] Step 10: When creating data services, monitor the predicted latency of multiple transmission links in real time, and generate primary and backup paths based on the predicted latency and preset guarantee thresholds.

[0066] The predicted latency of a transmission link is the latency of that transmission link before the data service is fully configured. For example, before the data service is fully configured, there exists a transmission link in the data transmission network from transmission device A to transmission device B, where transmission device A and transmission device B are interconnected through this transmission link. The predicted latency of this transmission link is the latency from when transmission device A sends data to when transmission device B receives data. At least one transmission link in the data transmission network forms a transmission path. Based on the requirements of the data service, multiple transmission links in the data transmission network are selected and combined to generate a primary path and a backup path. The primary path is a transmission path that can reach the destination node from the source node; the backup path is another transmission path that can reach the destination node from the source node.

[0067] The protection threshold can be set according to the actual latency requirements, and no specific limit is set here.

[0068] Step 20: During the use of the data service, monitor the actual latency of the primary path in real time. When the actual latency of the primary path exceeds the protection threshold, switch the data service to the backup path.

[0069] The actual latency is the total latency of all transmission links in the data transmission network during the use of data services. This actual latency changes continuously with the communication status of the data transmission network.

[0070] During data service usage, each transmission device in the data transmission network reports the latency of its corresponding transmission links to the management and control system in real time. The management and control system calculates the total latency of the corresponding transmission path, i.e., the actual latency, based on the latency of each transmission link included in the transmission path. The management and control system monitors the actual latency of each transmission path in real time and controls the protection switching of data services to meet the latency requirements of data services on transmission links.

[0071] To better illustrate the protection switching method for data services in the transmission network of the present invention, step 10 of the protection switching method in the embodiment of the present invention will be further described below, specifically:

[0072] When creating data services, the predicted latency of each transmission link between the corresponding source and destination nodes in the data transmission network is monitored in real time, based on the source and destination nodes required for the data services. Specifically, this refers to the predicted latency of the transmission link between every two transmission devices between the source and destination nodes. Each transmission device between the corresponding source and destination nodes measures the predicted latency of its corresponding transmission link and sends it to the management and control system of this embodiment. The management and control system receives the predicted latency of each transmission link between the source and destination nodes.

[0073] At least one transmission link in the data transmission network can serve as a transmission path for a data service. At least two transmission links between source and destination nodes are selected and combined to generate at least two transmission paths between them. Based on the predicted delays of the transmission links corresponding to multiple transmission paths between source and destination nodes, the predicted total delay for each transmission path is calculated. If the predicted total delay meets a guarantee threshold, the two transmission paths with the shortest predicted total delay are selected. The transmission path with the shortest predicted total delay is designated as the primary path for the data service, and the transmission path with the second shortest predicted total delay is designated as the backup path for the data service. Those skilled in the art can specify the guarantee threshold for transmission path delay based on the specific circumstances of the data transmission network and the specific requirements of the data service.

[0074] Based on the manually designated source and destination nodes of the data service, the predicted total latency of each transmission path is calculated. Then, the data service is created based on latency guarantees, and routing is performed based on the shortest predicted total latency. After specifying the source and destination nodes, multiple transmission paths are available in the data transmission network. According to the latency guarantee threshold of the data service, the two transmission paths with the shortest predicted total latency that also meet the guarantee threshold are selected as the primary and backup paths for the data service. It should be noted that in this embodiment of the invention, source and destination nodes are abbreviations for source node and destination node. The source node is the starting point of the data service transmission, i.e., the network element sending information, and the destination node is the ending point of the data service transmission, i.e., the network element receiving information. For bidirectional communication, the source node also acts as the destination node, and vice versa. Existing technologies create services based on the shortest path or other rules. In this embodiment of the invention, data service creation is based on latency, prioritizing the latency of the transmission links.

[0075] After selecting the primary and backup paths for the data service, these two transmission paths need to be distributed to the transmission equipment of the data service source and destination nodes so that the transmission equipment can begin transmitting the data service. A manual distribution method is provided here. Step 10 and subsequent steps include:

[0076] Send a first prompt message to the user and receive a first response message based on the first prompt message. Based on the first response message, determine whether it is necessary to distribute the primary path and the backup path to the corresponding transmission devices. 。 If it is necessary to distribute the primary path and the backup path to the corresponding transmission equipment, the primary path shall be used as the working path of the data service; if it is not necessary to distribute the primary path and the backup path to the transmission equipment, the path specified by the user shall be used as the working path of the data service.

[0077] In this embodiment of the invention, the control system sends a first prompt message to the user, inquiring whether the primary and backup paths should be distributed to the transmission equipment. After the user manually selects the path on the front-end interface of the control system, the control system receives a first response message based on the first prompt message and determines the next step based on the first response message. If it is necessary to distribute the primary and backup paths to the transmission equipment, since this embodiment of the invention is based on the SR-TP (Segment Routing-Transport Profile) protocol, the primary and backup paths are distributed to the transmission equipment of the data service source and destination nodes. To enable the control system to control the transmission paths, the SR-TP protocol is deployed on each transmission equipment between the source and destination nodes in the data transmission network. This is used to indicate the forwarding transmission path at the source node, eliminating the need to maintain transmission path status information on the transmission equipment of intermediate nodes in the transmission path. The primary path is then used as the working path for the data service, and the backup path is used as the protection path for the data service. When protection switching is required, the backup path is preferentially selected as the working path. If it is not necessary to distribute the primary path and the backup path, then the two transmission paths specified by the user will be distributed to the transmission equipment of the data service source and destination nodes. The transmission path with the shortest predicted total latency will be used as the working path of the data service, and the other transmission path will be used as the protection path of the data service.

[0078] In practical applications, during the initial stages of data service creation, there is often a need to manually specify alternative transmission paths instead of the ones calculated by the management system, or to designate a particular transmission path as the primary or backup path. This invention incorporates a mechanism for manual setting, allowing selection of transmission paths generated by the management system and providing flexibility for manual adjustments.

[0079] When technicians activate a data service in a data transmission network—specifically, activate a data service on two particular ports—in addition to specifying the source and destination nodes and protection thresholds, many parameters require manual confirmation. For example, the management system automatically generates primary and backup paths, but these paths may not perfectly meet the data service requirements, necessitating manual adjustments and modifications. If no adjustments are needed, the transmission path is distributed to the corresponding source and destination nodes' transmission equipment. After distribution, this path becomes the working path for the data service, which can then be used on that path.

[0080] To better illustrate the protection switching method for data services in a transmission network according to the present invention, step 20 of the protection switching method in the embodiment of the present invention will be further refined below, such as... Figure 2 As shown, specifically, the protection switching method further includes:

[0081] Step 201: When the actual latency of the primary path exceeds the protection threshold, determine whether the actual latency of the backup path exceeds the protection threshold.

[0082] Step 202: If the number of cases does not exceed the limit, the data service will be switched to the backup path.

[0083] Step 203: If the threshold is exceeded, calculate a new path that meets the protection threshold and switch the data service to the new path.

[0084] During data service usage, the data transmission path is the working path. When the primary path is used as the working path for data services, data is transmitted on the primary path. Each transmission device on the primary path reports the latency of its respective transmission link in real time. Upon receiving this information, the management and control system calculates the actual latency of the primary path in real time, thereby monitoring the actual latency of the primary path and determining whether protection switching is necessary based on this actual latency. Simultaneously, the actual latency of other transmission paths in this data transmission network is also monitored by the management and control system using the same method as for the primary path.

[0085] like Figure 3 As shown, for example, when the actual latency of the primary path A for a data service exceeds the guarantee threshold, and the actual latency of the backup path B does not exceed the guarantee threshold (i.e., the requirements are met), the management and control system issues a data service switching command to switch the data service from the primary path A to the backup path B, ensuring that the actual latency of the data service working path meets the requirements. When the actual latency of both the primary path A and the backup path B exceeds the guarantee threshold (i.e., the requirements cannot be met), the management and control system calculates whether a new path meets the requirements based on the source and destination nodes required by the data service and the guarantee threshold. Based on the predicted latency of the transmission links corresponding to multiple transmission paths between the source and destination nodes, the predicted total latency corresponding to each transmission path is calculated. When a new path C with the same source and destination nodes exists, and its predicted total latency does not exceed the guarantee threshold, since this embodiment of the invention is based on the SR-TP protocol, the management and control system issues the new path C to the transmission equipment of the source and destination nodes and switches the data service protection to the new path C, ensuring that the latency of the data service meets the requirements.

[0086] It is important to note that when the actual latency of both the primary path and the backup path exceeds the protection threshold, the control system will recalculate the path. As long as a new path is found that does not exceed the protection threshold, the new path will be selected and sent to the transmission equipment for protection switching. This path calculation strategy can continue until no suitable transmission path is found. When no suitable new path is found, the control system's front-end interface will prompt the user that no suitable transmission path exists, allowing the user to manually decide on the next step.

[0087] The protection switching method for data services in the transmission network described in this embodiment of the invention is designed for data transmission networks where transmission devices are connected in ring, mesh, or MESH topologies. Other network connection types do not involve multiple transmission paths, therefore, protection switching cannot be performed during service usage to ensure latency by generating multiple transmission paths. This embodiment of the invention provides an example of a data transmission network, whose topology is as follows: Figure 4 As shown, S1 is the control system, S2 is the transmission equipment, S3 is the user equipment, S4 is the communication cable / optical cable, and S5 is the access user transmission equipment. The S3 user equipment is connected to the S5 access user transmission equipment through the communication cable / optical cable. The S2 transmission equipment is connected to other S2 transmission equipment through the communication cable / optical cable. The S2 transmission network equipment is connected to the S1 control system through the communication cable / optical cable.

[0088] New 5G service types require low latency for data services, which first necessitates ensuring low latency of transmission links within the data transmission network. 5G service data using the SR-TP protocol traverses multiple SR-TP protocol transmission links during transmission. Each additional link increases latency; therefore, for 5G services, the transmission path must be kept within a certain latency range. Furthermore, for latency-sensitive services, the lowest possible latency transmission path should be selected. In existing technologies, data service transmission path calculation strategies typically prioritize minimizing the number of nodes traversed. This invention, however, considers selecting transmission paths based on latency guarantees, filling a gap in existing technologies regarding latency guarantees for data service transmission networks.

[0089] During the use of data services, the primary path has the highest priority. When data services are not transmitted on the primary path, this embodiment of the invention designs a return mechanism for two situations, as detailed below.

[0090] During data service usage, if the actual latency of the primary path exceeds the protection threshold, and the service has already been switched to another transmission path for protection, the primary path will be prioritized for service implementation once the actual latency of the primary path recovers to meet the protection threshold. Specifically, as follows: Figure 5 As shown, step 20 includes:

[0091] Step 204a: When the latency of the primary path recovers to the level that meets the protection threshold, a second prompt message is sent to the user, and a second response message based on the second prompt message is received. Based on the second response message, it is determined whether to choose to revert the data service.

[0092] Step 205a: If a rollback is required, determine the first preset time for the rollback, and roll back the data service to the primary path according to the first preset time.

[0093] Step 206a: If no reversal is required, maintain the current working path.

[0094] When the actual latency of the primary path fails to meet the protection threshold, triggering protection switching, if the actual latency of the primary path recovers to a normal level, the primary path is prioritized as the working path for the data service. The data service needs to be switched back to the primary path. This process allows for manual adjustment; the management system provides two different switchback strategies. The management system sends a second prompt message to the user, asking if they want to switch the data service back to the primary path. After the user makes a manual selection on the management system's front-end interface, the management system receives a second response message containing the user's selection information and determines the next step based on the second response message. If the user chooses to switch back to the primary path, a prompt message is sent to the user, asking them to confirm the first preset time for the switchback, and a response message containing the first preset time is received. Based on the user-set first preset time, the data service is switched back to the original primary path. The first preset time can be set by the user according to their needs and is not specifically limited here. If the user chooses not to switch back to the primary path, the current transmission path continues as the working path for data service transmission.

[0095] During data service usage, there may be situations where the actual latency of the primary path and the actual latency of the backup path simultaneously exceed the protection threshold, and data service protection has already been switched to the new path. When the actual latency of the backup path recovers to meet the protection threshold, if the actual latency of the primary path has not yet recovered, the backup path will be selected first for data service transmission, as detailed below. Figure 6 As shown, step 20 also includes:

[0096] Step 204b: When the new path is the working path of the data service, the latency of the backup path is restored to meet the guarantee threshold, and the latency of the primary path exceeds the guarantee threshold, a third prompt message is sent to the user, and a third response message based on the third prompt message is received. Based on the third response message, it is determined whether to choose to revert the data service.

[0097] Step 205b: If reversal is required, determine the second preset time for reversal, and revert the data service to the backup path according to the second preset time.

[0098] Step 206b: If no reversal is required, maintain the current working path.

[0099] When the actual latency of both the primary path and the backup path fails to meet the protection threshold, triggering protection switching, if the actual latency of the backup path recovers to a normal level while the actual latency of the primary path has not yet recovered, the backup path is prioritized as the working path for the data service. The management system provides two different rollback strategies. The management system sends a third prompt message to the user, asking whether to roll back the data service to the backup path. After the user makes a manual selection on the management system's front-end interface, the management system receives a third response message containing the user's selection information and determines the next step based on the third response message. If the user chooses to roll back to the backup path, a prompt message is sent to the user, prompting them to confirm a second preset rollback time, and a response message containing the second preset time is received. Based on the second preset time determined by the user, the data service is switched back to the original backup path. The second preset time can be set by the user according to their needs and is not specifically limited here. If the user chooses not to roll back to the backup path, the current transmission path continues as the working path for data service transmission.

[0100] In summary, the protection switching method for data services in the transmission network according to embodiments of the present invention is as follows: Figure 7 As shown.

[0101] The protection switching method of this invention also incorporates a certain manual selection mechanism during the use of data services, reserving space for manual adjustments. Specifically, during the use of the data services, the actual latency of the primary path and the actual latency of the backup path are monitored in real time. When the actual latency of the primary path and the actual latency of the backup path do not exceed the protection threshold, a fourth prompt message is sent to the user, and a fourth response message based on the fourth prompt message is received. Based on the fourth response message, it is determined whether to send data services simultaneously on the primary path and the backup path.

[0102] During data service usage, if both the primary and backup path latency meet requirements, the management system sends a fourth prompt message to the user and receives a fourth response message based on the fourth prompt message. The system then determines whether to simultaneously transmit data services on both the primary and backup paths based on the fourth response message. In actual data service usage, to ensure maximum utilization of transmission link resources and balance data traffic, some users may prefer to transmit data using load balancing. This application scenario is considered. Users are provided with the option to use either single-channel data transmission or multi-channel load balancing to transmit data.

[0103] In steps 10 and 20 of the protection switching method of this embodiment of the invention, the method for real-time monitoring of the actual latency of the primary path is as follows: the real-time monitoring of the actual latency of the primary path includes:

[0104] A first protocol is deployed on the interconnect interface of the transmission equipment, and the bidirectional latency measurement function of the first protocol is enabled to measure the latency of the corresponding transmission link in real time at the interconnect interface. A second protocol is deployed on the transmission equipment, and the latency publication function of the second protocol is enabled to obtain the latency of the corresponding transmission link from the transmission equipment. Based on the latency of the transmission link, the actual latency of the primary path is calculated in real time.

[0105] Those skilled in the art can specify the corresponding transmission links to be measured in real time as all transmission links in the data transmission network, or as all transmission links between the source and destination nodes of a specified data service, based on the specific circumstances of the data transmission network and the specific needs of the data service. The specific measurement method can be based on existing technology and will not be elaborated here.

[0106] The first protocol is the VS-OAM protocol and the Flexe-OAM protocol. Through a management and control system, the VS-OAM and Flexe-OAM protocols are deployed on the interconnect interfaces of transmission devices requiring latency protection. Specifically, the VS-OAM protocol is deployed on Ethernet interface links, and the Flexe-OAM protocol is deployed on Flexe interface links. The OAM functions of these protocols support monitoring, detection, and measurement of network packet loss rate, latency, and other performance metrics. The bidirectional latency measurement function of the VS-OAM and Flexe-OAM protocols is enabled. This bidirectional latency measurement function is used to detect the latency of message transmission between ports, enabling real-time latency measurement at the interconnect interfaces of transmission devices. Utilizing the bidirectional latency measurement function of the VS-OAM / Flexe-OAM link layer in the data transmission network, the latency of each transmission link in the network can be collected in real-time at the transmission devices. Each transmission device reports the latency of each transmission link to the management and control system in real time. The management and control system receives the latency of each transmission link and calculates the predicted total latency of each transmission path in the data transmission network before the data service is completed. During the use of the data service, it calculates the actual latency of each transmission path in the data transmission network, thereby realizing real-time monitoring of the predicted total latency and actual latency of each transmission path in the data transmission network.

[0107] The second protocol is the IS-IS protocol and the BGP-LS protocol. Through the management and control system, the IS-IS and BGP-LS protocols are deployed on the transmission equipment where latency needs to be guaranteed. The latency publishing function of the IS-IS and BGP-LS protocols is then enabled, and the latency and data transmission network topology are uploaded to the management and control system.

[0108] On the transmission equipment acting as the source node, latency measurement is initiated on the transmission link in the sending direction to obtain the latency between the data sent from the port of the source node transmission equipment and the data received from the port of the destination node transmission equipment. In an optional embodiment, the transmission equipment collects latency data on the order of microseconds, thereby achieving microsecond-level latency protection for data services; the latency data received in real time by the management and control system is visualized, making it easier for technicians to combine it with other influencing factors of the data transmission network to operate data services. The method used to monitor the latency of all transmission paths on the candidate transmission links is the same as the method for monitoring the latency of the primary path described above, and will not be repeated here.

[0109] Example 2:

[0110] Embodiment 2 of the present invention is a further preferred embodiment of the protection switching method for data services in the transmission network of Embodiment 1. Based on the protection switching method for data services in the transmission network of Embodiment 1, an additional protection switching mechanism for data services is added. This mechanism determines whether to perform protection switching for the data service based on the region and time period to which the data service belongs, and on the basis of latency. Specifically, as follows... Figure 8 As shown, the protection switching method further includes:

[0111] Step 301: Based on the inflection point of the historical traffic of the transmission device, use the inflection point of the historical traffic as the corresponding switching time for each transmission device.

[0112] Step 302: Based on the changes in historical traffic after the inflection point, set a corresponding tag for each transmission device.

[0113] In this context, the transmission equipment refers to all transmission equipment in the data transmission network that serves the primary and backup paths for the data service. In an optional embodiment, considering a scenario where both the primary and backup paths for the data service in Embodiment 1 are unavailable, requiring the calculation of a new path based on a protection threshold, the transmission equipment can be any transmission equipment in the data transmission network. This facilitates subsequent protection switching of the data service based on corresponding tags and handover times.

[0114] Before the data service is used, the historical traffic changes of the transmission equipment are obtained. The historical traffic refers to the historical traffic of the transmission equipment when transmitting other data services. The protection switching method of this embodiment determines the tag of the transmission equipment based on the historical traffic changes of each transmission equipment. The time interval of the historical traffic is set by those skilled in the art according to the specific use case. In an optional embodiment, the tag of the transmission equipment is determined based on the daily historical traffic changes; the tag is divided into work area and living area. Figure 9As shown, if the historical traffic of the transmission device has an inflection point each day, and the historical traffic of the corresponding transmission device decreases in a step-like manner after the switching time each day, then the label of the transmission device is determined to be the working area; if... Figure 10 As shown, if the historical traffic of the transmission device has an inflection point each day, and the historical traffic of the corresponding transmission device increases in a step-like manner after the switching time each day, then the label of the transmission device is determined to be a residential area. If the historical traffic of the transmission device does not have an inflection point each day, that is, the historical traffic of the corresponding transmission device does not change in a step-like manner, then the label of the transmission device cannot be determined, and the transmission device cannot trigger the protection switching of data services subsequently. The label, once determined, does not change and is an inherent attribute of the corresponding transmission device. In an optional embodiment, the label of the transmission device can also be a school area; those skilled in the art can classify according to specific data service requirements, referring to the above process.

[0115] In network performance monitoring technology, network traffic and latency are two closely related parameters. Network traffic refers to the maximum amount of data that the network can transmit per second. The protection switching method in this invention combines the historical traffic of the transmission device with the latency of its transmission link. Based on the differences in traffic across different real-world usage scenarios, the actual usage scenario of the transmission device is determined. In real-world scenarios, the communication data traffic of networks covering work areas and networks covering residential areas often differs significantly across different time periods and exhibits inflection points. Work areas are generally industrial networks, where users typically use small-volume ordinary files for data communication. During working hours, users' data transmission needs are high; during non-working hours, users' data transmission needs and actual traffic decrease significantly, and there may be an inflection point. Residential areas are generally home networks, where users typically use large-volume video files for data communication. During working hours, users' data transmission needs are low; during non-working hours, users' data transmission needs and actual traffic increase significantly, and there may be an inflection point. The label of the transmission device is determined based on the aforementioned changes in historical traffic. When certain transmission devices are located at the intersection of work and living areas, it is impossible to determine whether their label is work or living area, and there is no inflection point in their traffic. Subsequently, the transmission device only reports the predicted latency and the latency of the corresponding link. Except for data services that may be sent to the transmission device, the transmission device does not participate in other operations.

[0116] Step 303: During the use of the data service, the data service may be selectively switched or not switched according to the corresponding switching time and corresponding tag.

[0117] After determining the tag of the actual usage scenario of the transmission device, the transmission device determines whether protection switching is required for its primary or backup path at each switching time based on the tag.

[0118] Because the protection switching method for data services in the transmission network of Embodiment 1 of this invention determines whether the working path of the data service needs protection switching based on the protection threshold. However, in actual use cases, when the data service uses the primary path as the working path, the latency of the transmission link where a certain transmission device in the primary path is located may suddenly increase in a step-like manner due to the increased demand for data transmission. At this time, the actual latency of the primary path may not necessarily exceed the protection threshold, but there is a trend of exceeding the protection threshold. There are transmission links in the primary path that significantly increase the actual latency. The backup path not only has an actual latency that does not exceed the protection threshold, but the latency of all transmission links in the backup path is in a stable state, that is, there is no step-like increase. In this case, if the working path of the data service is switched to the backup path, lower latency data service transmission can be achieved, and there is an incentive for protection switching.

[0119] Step 303 includes:

[0120] A preset percentage value is set. After the corresponding switchover time, the transmission device of the primary path receives the actual latency of the primary path. The primary path transmission device calculates in real time the ratio of the latency of its current transmission link to the actual latency of the primary path to obtain the primary path percentage. When the primary path percentage is greater than the preset percentage value, the primary path transmission device reports a switchover message. After the corresponding switchover time, the transmission device of the backup path receives the actual latency of the backup path. The backup path transmission device calculates in real time the ratio of the latency of its current transmission link to the actual latency of the backup path to obtain the backup path percentage. When the backup path percentage is greater than the preset percentage value, the backup path transmission device reports a switchover message.

[0121] Based on the switching message and the tag corresponding to each of the transmission devices, the data service may be selectively switched or not switched.

[0122] Specifically, the control system sends the actual latency of the primary path to the transmission equipment of the primary path in real time, and sends the actual latency of the backup path to the transmission equipment of the backup path in real time.

[0123] The preset percentage is set by those skilled in the art based on the specific use case of the data service.

[0124] In an optional embodiment, since the data transmission demand of the working area is large at the switching time, the working path of the data service before the switching time is the primary path; since the data transmission demand of the living area is small at the switching time, the working path of the data service before the switching time is the backup path; if the transmission device tag sending the switchover message is the working area, then after receiving the corresponding switchover message, the management and control system issues an instruction to switch the data service to the backup path; if the transmission device tag sending the switchover message is the living area, then after receiving the corresponding switchover message, the management and control system issues an instruction to switch the data service to the primary path.

[0125] Example 3:

[0126] Based on the protection switching method for transmission network data services provided in Embodiments 1 and 2 above, the present invention also provides a protection switching device for transmission network data services that can be used to implement the above methods. For example... Figure 11 The diagram shown is an architectural schematic of a protection switching device for transmission network data services according to an embodiment of the present invention. The protection switching device for transmission network data services in this embodiment includes one or more processors 31 and a memory 32. Figure 11 Take a processor 31 as an example.

[0127] Processor 31 and memory 32 can be connected via a bus or other means. Figure 11 Taking the example of a connection between China and Israel via a bus.

[0128] The memory 32, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs and non-volatile computer-executable programs, such as the protection switching method for transmission network data services in Embodiments 1 and 2. The processor 31 executes the protection switching method for transmission network data services by running the non-volatile software programs and instructions stored in the memory 32.

[0129] Memory 32 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 32 may optionally include memory remotely located relative to processor 31, which can be connected to processor 31 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0130] The program instructions / modules are stored in the memory 32. When executed by one or more processors 31, they perform the protection switching method for transmission network data services described in Embodiments 1 and 2 above. For example, they perform the methods described above. Figures 1-2 and Figures 5-8The steps shown.

[0131] It is worth noting that the information interaction and execution process between the modules and units in the above-mentioned device and system are based on the same concept as the processing method embodiment of the present invention. For details, please refer to the description in the method embodiment of the present invention, and will not be repeated here.

[0132] Those skilled in the art will understand that all or part of the steps in the various methods of the embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.

[0133] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A protection switching method for data services in a transmission network, characterized in that, The protection switching method includes: When creating data services, the predicted latency of multiple transmission links is monitored in real time, and a primary path and a backup path are generated based on the predicted latency and a preset guarantee threshold. During the use of the data service, the actual latency of the primary path is monitored in real time. When the actual latency of the primary path exceeds the protection threshold, the data service is switched to the backup path. The method further includes: Based on the inflection point of the historical traffic of the transmission device, the inflection point of the historical traffic is used as the corresponding switching time for each of the transmission devices; Based on the changes in historical traffic after the inflection point, a corresponding tag is set for each transmission device; Set the preset percentage value; After the corresponding switching time, the transmission device of the primary path receives the actual delay of the primary path. The transmission device of the primary path calculates in real time the ratio of the delay of the transmission link it is in to the actual delay of the primary path to obtain the proportion of the primary path. When the proportion of the primary path is greater than the preset value of the proportion, the transmission device of the primary path reports a switchover message. After the corresponding switching time, the transmission device of the backup path receives the actual delay of the backup path. The transmission device of the backup path calculates in real time the ratio of the delay of the transmission link it is in to the actual delay of the backup path to obtain the backup path ratio. When the backup path ratio is greater than the preset value of the ratio, the transmission device of the backup path reports a switchover message. Based on the switching message and the tag corresponding to each of the transmission devices, the data service may be selectively switched or not switched.

2. The protection switching method for data services in a transmission network according to claim 1, characterized in that, The protection switching method further includes: When the actual latency of the primary path exceeds the protection threshold, it is determined whether the actual latency of the backup path exceeds the protection threshold. If the limit is not met, the data service will be switched to the backup path. If the threshold is exceeded, a new path that meets the protection threshold is calculated, and the data service is switched to the new path.

3. The protection switching method for data services in a transmission network according to claim 1, characterized in that, The real-time monitoring of the actual latency of the primary path includes: Deploy a corresponding first protocol on the interconnection interface of the transmission equipment, and enable the bidirectional delay measurement function of the first protocol to measure the delay of the corresponding transmission link in real time on the interconnection interface; A second protocol is deployed on the transmission equipment, and the latency publication function of the second protocol is enabled so as to obtain the latency of the corresponding transmission link from the transmission equipment; The actual delay of the primary path is calculated in real time based on the delay of the transmission link.

4. The protection switching method for data services in a transmission network according to claim 1, characterized in that, The process of generating a primary path and a backup path by real-time monitoring of the predicted latency of multiple transmission links during data service creation, based on the predicted latency and a preset guarantee threshold, further includes: Send a first prompt message to the user and receive a first response message based on the first prompt message. Based on the first response message, determine whether it is necessary to send the primary path and the backup path to the corresponding transmission devices. If it is necessary to distribute the primary path and the backup path to the corresponding transmission equipment, the primary path shall be used as the working path of the data service. If it is not necessary to distribute the primary path and the backup path to the transmission device, the path specified by the user shall be used as the working path of the data service.

5. The protection switching method for data services in a transmission network according to claim 1, characterized in that, During the use of the data service, the actual latency of the primary path is monitored in real time. When the actual latency of the primary path exceeds the protection threshold, the data service is switched to the backup path. This process further includes: When the latency of the primary path recovers to the level that meets the protection threshold, a second prompt message is sent to the user, and a second response message based on the second prompt message is received. Based on the second response message, it is determined whether to choose to revert the data service. If reversing, a first preset time for reversing is determined, and the data service is reversed back to the primary path according to the first preset time; If you do not revert, maintain the current working path.

6. The protection switching method for data services in a transmission network according to claim 2, characterized in that, The step of monitoring the actual latency of the primary path in real time during the use of the data service, and switching the data service to the backup path when the actual latency of the primary path exceeds the protection threshold, further includes: When the new path is the working path of the data service, the latency of the backup path is restored to meet the guarantee threshold, and the latency of the primary path exceeds the guarantee threshold, a third prompt message is sent to the user, and a third response message based on the third prompt message is received. The user then determines whether to choose to roll back the data service based on the third response message. If reversal is required, a second preset time for reversal is determined, and the data service is reversed to the backup path according to the second preset time. If you do not revert, maintain the current working path.

7. The protection switching method for data services in a transmission network according to claim 2, characterized in that, During the use of the data service, the actual latency of the primary path and the actual latency of the backup path are monitored in real time. When the actual latency of the primary path and the actual latency of the backup path do not exceed the protection threshold, a fourth prompt message is sent to the user, and a fourth response message based on the fourth prompt message is received. Based on the fourth response message, it is determined whether to send the data service on both the primary path and the backup path at the same time.

8. A protection switching device for data services in a transmission network, characterized in that, It includes at least one processor and a memory, which are connected via a data bus. The memory stores instructions that can be executed by the at least one processor. After being executed by the processor, the instructions are used to complete the protection switching method for data services in the transmission network as described in any one of claims 1-7.