Path switching method and device, related equipment and storage medium

By initiating hop-by-hop flow detection and analysis of packet loss rate and delay data in the network, combined with network topology information, the automation and effectiveness of path switching in IOAM technology are realized, which solves the problem of IOAM being unable to trigger protection switching and improves efficiency. Business connectivity and operational management efficiency.

CN118573549APending Publication Date: 2024-08-30CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310183466.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing in-band OAM (IOAM) technology cannot automatically and effectively trigger path switching. As a result, protection switching cannot be performed in time when performance degrades, affecting service connectivity.

Method used

By determining the performance anomaly of the flow detection service, start the hop-by-hop flow detection function of the intermediate node on the path, obtain and analyze the packet loss rate and delay data, determine the abnormal path section, and find an alternative path based on network topology information and resource information. , to achieve path switching.

Benefits of technology

When performance deteriorates, protection switching can be triggered in time to avoid service damage, and fast path switching can be realized. Only problematic path sections can be adjusted, which improves the efficiency of network operation, management and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573549A
    Figure CN118573549A
Patent Text Reader

Abstract

The invention discloses a path switching method and device, control equipment, a node and a storage medium. The method comprises the following steps: a control device determines that first service performance detected along with a stream is abnormal; starting a first function of other nodes except a head node and a tail node in a first path of the first service, wherein the first function comprises obtaining stream detection data of the first service and reporting the stream detection data to the control equipment; determining at least one section of abnormal path in the first path; and for the at least one section of path, triggering a node to perform path switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of transmission and bearer networks, and in particular to a path switching method, apparatus, related equipment and storage medium. Background Art

[0002] Currently, the network operation, administration and maintenance (OAM) function is mainly implemented through the transmission of special OAM messages. Among them, connectivity OAM messages are sent periodically. When connectivity OAM messages are lost or performance degradation is detected, protection switching between devices will be triggered.

[0003] The in-band OAM (IOAM, In-Band OAM, also known as flow detection OAM) technology does not use special OAM message detection, but marks and dyes the service messages based on the cross-dyeing technology, so as to realize the performance measurement of the real service flow itself. By reporting the performance data by the first and last nodes, it can feedback the packet loss and delay data. It is a precise network performance detection technology that has just been proposed and developed by the Internet Engineering Task Force (IETF) and other standardization organizations in recent years.

[0004] However, IOAM performance measurement and protection switching are not related, so path switching cannot be triggered automatically and effectively. Summary of the invention

[0005] To solve the related technical problems, the embodiments of the present application provide a path switching method, apparatus, related equipment and storage medium.

[0006] The technical solution of the embodiment of the present application is implemented as follows:

[0007] The embodiment of the present application provides a path switching method, which is applied to a control device, including:

[0008] Determine that the performance of the first service detected during the flow is abnormal;

[0009] Initiate a first function of other nodes except a first node and an end node in a first path of the first service, wherein the first function includes acquiring along-flow detection data of the first service and reporting the along-flow detection data to the control device;

[0010] determining at least one abnormal path in the first path;

[0011] For the at least one path section, the node is triggered to perform path switching.

[0012] In the above solution, the first function of the other nodes except the first node and the last node in the first path of starting the first service includes:

[0013] Sending first information to the other node, where the first information indicates starting a first function.

[0014] In the above solution, the step of determining at least one abnormal path in the first path includes:

[0015] Receiving the flow detection data reported by the other nodes;

[0016] At least one abnormal section of the first path is determined by using the received flow detection data.

[0017] In the above solution, the step of using the received flow detection data to determine at least one abnormal path in the first path includes:

[0018] Determine a packet loss rate and / or a delay between two adjacent hops in the first path by using the received flow detection data;

[0019] At least one abnormal path in the first path is determined by using the determined packet loss rate and / or delay.

[0020] In the above solution, the triggering of the node to perform path switching for the at least one path segment includes:

[0021] For each path of the at least one path, determine a replacement path to obtain a second path of the first service;

[0022] Send path configuration information to the nodes of the second path.

[0023] In the above solution, determining the replacement path includes:

[0024] Based on the network topology information and resource information, an alternative path is determined.

[0025] In the above solution, for each path of the at least one path, a candidate replacement path is determined, and when the performance of the second service detected during the flow on the candidate replacement path is normal, the candidate replacement path is used as the replacement path.

[0026] In the above solution, the triggering of the node to perform path switching for the at least one path segment includes:

[0027] The first service is switched from the first path to a third path, where the third path includes a protection path for the first service.

[0028] In the above solution, the triggering of the node to perform path switching for the at least one path segment includes:

[0029] For each segment path of the at least one segment path, second information is sent to a node associated with the segment path, where the second information indicates that the segment path is abnormal.

[0030] In the above solution, the second information includes at least one of the following:

[0031] relevant information of the segment path;

[0032] The adjusted path calculation parameters of the segment path.

[0033] In the above solution, the first service includes a bidirectional service, and for the at least one segment path, a node is triggered to perform bidirectional path switching.

[0034] The embodiment of the present application further provides a path switching method, which is applied to a first node and includes:

[0035] receiving first information sent by a control device, where the first information indicates starting a first function, where the first node includes nodes other than a first node and an end node in a first service detected along the flow, and where the first function includes acquiring along the flow detection data of the first service and reporting the along the flow detection data to the control device;

[0036] Reporting the flow detection data to the control device, where the reported flow detection data is used to determine at least one abnormal path in the first path.

[0037] In the above scheme, the method further includes:

[0038] Second information sent by the control device is received, where the second information indicates that a path segment of the at least one path segment is abnormal.

[0039] In the above solution, the second information includes at least one of the following:

[0040] relevant information of the segment path;

[0041] The adjusted path calculation parameters of the segment path.

[0042] The embodiment of the present application further provides a path switching device, which is arranged in a control device and includes:

[0043] A starting unit, configured to determine that performance of a first service detected by a flow is abnormal; and start a first function of other nodes except a first node and an end node in a first path of the first service, wherein the first function includes obtaining flow detection data of the first service and reporting the flow detection data to the control device;

[0044] The switching unit is used to determine at least one abnormal path section in the first path; and trigger the node to perform path switching for the at least one abnormal path section.

[0045] The embodiment of the present application further provides a path switching device, which is arranged at a first node and includes:

[0046] a receiving unit, configured to receive first information sent by a control device, wherein the first information indicates starting a first function, the first node includes a node other than a head node and an end node in a first service detected along the flow, and the first function includes acquiring along the flow detection data of the first service and reporting the along the flow detection data to the control device;

[0047] A reporting unit is used to report the flow detection data to the control device, and the reported flow detection data is used to determine at least one abnormal path in the first path.

[0048] The embodiment of the present application further provides a control device, comprising: a first processor and a first communication interface; wherein,

[0049] The first processor is configured to:

[0050] Determine that the performance of the first service detected during the flow is abnormal;

[0051] Initiate a first function of other nodes except a first node and an end node in a first path of the first service, wherein the first function includes acquiring along-flow detection data of the first service and reporting the along-flow detection data to the control device;

[0052] determining at least one abnormal path in the first path; and,

[0053] For the at least one path section, trigger the node to perform path switching through the first communication interface.

[0054] The embodiment of the present application further provides a node, comprising: a second processor and a second communication interface; wherein,

[0055] The second communication interface is used to receive first information sent by the control device, the first information indicates to start a first function, the nodes include nodes other than the first node and the last node in the first service of the flow detection, and the first function includes obtaining the flow detection data of the first service and reporting the flow detection data to the control device; and reporting the flow detection data to the control device, and the reported flow detection data is used to determine at least one abnormal path in the first path.

[0056] The embodiment of the present application further provides a control device, comprising: a first processor and a first memory for storing a computer program that can be run on the processor,

[0057] Wherein, when the first processor is used to run the computer program, it executes the steps of any method on the control device side mentioned above.

[0058] The embodiment of the present application further provides a node, comprising: a second processor and a second memory for storing a computer program that can be run on the processor,

[0059] Wherein, the second processor is used to execute the steps of any one of the above-mentioned methods on the first node side when running the computer program.

[0060] An embodiment of the present application also provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned methods on the control device side are implemented, or the steps of any of the above-mentioned methods on the first node side are implemented.

[0061] The path switching method, device, related equipment and storage medium provided in the embodiment of the present application, the control device determines that the performance of the first service detected by the flow is abnormal; starts the first function of other nodes except the first node and the last node in the first path of the first service, the first function includes obtaining the flow detection data of the first service and reporting the flow detection data to the control device; determines at least one abnormal path in the first path; triggers the node to perform path switching for the at least one path. In the embodiment of the present application, when the control device determines that the performance of the flow detection service is abnormal, it starts the hop-by-hop flow detection function of the intermediate node on the path of the flow detection service, and learns the node section where performance degradation or failure occurs, so as to trigger the device node to switch for the section of the path with problems. The performance of the flow detection is combined with the protection switching, so that when the performance degrades, the corresponding protection switching can be triggered in time to avoid service damage. At the same time, only the problematic path sections are switched, so that fast switching can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 A schematic diagram of a path switching method according to an embodiment of the present application;

[0063] Figure 2 A schematic diagram of another method flow for path switching according to an embodiment of the present application;

[0064] Figure 3 This is a schematic diagram of the structure of a path switching device according to an embodiment of the present application;

[0065] Figure 4 This is a schematic diagram of the structure of another path switching device according to an embodiment of the present application;

[0066] Figure 5 This is a schematic diagram of the control device structure of the embodiment of the present application;

[0067] Figure 6 This is a schematic diagram of the node structure of an embodiment of the present application;

[0068] Figure 7This is a schematic diagram of the path switching system structure of an embodiment of the present application. DETAILED DESCRIPTION

[0069] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0070] Telecom-class transmission technology needs to support continuity check (CC) or connectivity verification (CV), alarm detection such as alarm indication and suppression (AIS), remote defect indication (RDI) or customer signal failure indication (CSF), and performance detection, so that the network has complete OAM functions. In other words, through the complete OAM function, link connectivity detection and performance detection can be realized, protection switching can be triggered in time, and the operation, management and maintenance functions of each layer of the network can be realized.

[0071] Currently, the OAM function of the network is mainly implemented through the transmission of special OAM messages, that is, through out-of-band OAM message testing. Among them, connectivity OAM messages are sent periodically. When connectivity OAM messages are lost or performance degradation is detected, protection switching between devices will be triggered.

[0072] Compared with the traditional out-of-band OAM message testing technology (i.e., traditional OAM technology), IOAM has higher test accuracy in packet loss rate and delay than traditional out-of-band OAM message testing technology. However, IOAM performance measurement is not associated with protection switching, so there will be a situation where performance degradation is found through IOAM, but traditional OAM detection does not find abnormalities. At this time, the service must still be transmitted on the original path, that is, it is impossible to automatically and effectively trigger switching to a path with better performance.

[0073] Based on this, in various embodiments of the present application, when the control device determines that the performance of the flow detection service is abnormal, the hop-by-hop flow detection function of the intermediate nodes on the path of the flow detection service is started, and the node sections where performance degradation or failure occurs are learned, so as to trigger the device node to switch for the problematic path sections. The performance of the flow detection is combined with the protection switching, so that when the performance degrades, the corresponding protection switching can be triggered in time to avoid service damage. At the same time, only the problematic path sections are switched, so that fast switching can be achieved.

[0074] The present application embodiment provides a path switching method, which is applied to a control device, such as Figure 1 As shown, the method includes:

[0075] Step 101: Determine that the performance of a first service detected during the flow is abnormal;

[0076] Step 102: Start a first function of other nodes except the first node and the last node in the first path of the first service, where the first function includes acquiring along-flow detection data of the first service and reporting the along-flow detection data to the control device;

[0077] Step 103: determining at least one abnormal path in the first path;

[0078] Step 104: triggering a node to perform path switching for the at least one path segment.

[0079] In actual application, the control device (such as a software defined network (SDN) controller, a network management system (also referred to as a network management)) may also be referred to as a network controller, a control device, a management device, or a control system, etc., and the present application embodiment does not limit this, as long as its functions are realized. The functions of the control device may include configuration delivery, information monitoring, path planning, etc. In SDN, the control device includes an SDN controller, and in non-SDN, the control device includes a network management system.

[0080] In the embodiment of the present application, the first service is a service detected along with the flow, that is, the first service message is marked and dyed, thereby realizing IOAM performance measurement.

[0081] In actual application, in step 101, the first node and the end node of the path of the first service report the data detected along the flow (such as the number of packets, timestamp, etc.) to the control device, and the control device can calculate the packet loss rate and delay of the first service based on the data reported by the first node and the end node. Here, the embodiment of the present application does not limit the specific process of how to calculate the packet loss rate and delay.

[0082] The control device determines whether the performance of the first service is abnormal according to the packet loss rate and / or delay of the first service. Specifically, when the packet loss rate and / or delay performance is abnormal, it is determined that the performance of the first service is abnormal. Exemplarily, the situation where the packet loss rate and / or delay performance is abnormal includes:

[0083] The packet loss rate is greater than a first threshold;

[0084] The delay is greater than a second threshold;

[0085] The two-way delay difference of the first service is greater than a third threshold, etc.

[0086] When at least one of the above situations exists, it can be determined that the performance of the first service is abnormal.

[0087] In actual application, the first threshold, the second threshold and the third threshold can be set as needed.

[0088] In actual application, when the performance of the first service is found to be abnormal, the control device starts the hop-by-hop flow detection function of the intermediate node on the path, that is, starts the intermediate node to obtain the flow detection data of the first service and report the flow detection data to the control device.

[0089] Here, it should be noted that the control device starts the flow detection function of all intermediate nodes except the first node (also called the head node) and the end node on the path of the first service, thereby realizing the hop-by-hop flow detection function of the intermediate nodes on the path.

[0090] Specifically, the control device starts the hop-by-hop flow detection function of the intermediate node by sending information (which can also be understood as sending instructions). That is, in one embodiment, the specific implementation of step 102 may include:

[0091] Sending first information to the other nodes, where the first information indicates starting a first function.

[0092] When the hop-by-hop flow detection function is started, the intermediate nodes on the path of the first service will report the flow detection data to the control device, and the problematic sections can be determined by using the reported data.

[0093] Based on this, in one embodiment, the specific implementation of step 103 may include:

[0094] Receiving the flow detection data reported by the other nodes;

[0095] At least one abnormal section of the first path is determined by using the received flow detection data.

[0096] In actual application, the control device can use the reported data to calculate the packet loss rate and / or delay between every two hops on the path, so as to determine the problematic section (a section where every two hops correspond to a minimum unit of the path, which can also be understood as a section where a minimum unit of the path is formed between every two nodes, that is, a problematic section contains a section formed by at least two nodes).

[0097] Specifically, in one embodiment, the step of using the received flow detection data to determine at least one abnormal path in the first path includes:

[0098] Determine a packet loss rate and / or a delay between two adjacent hops in the first path by using the received flow detection data;

[0099] At least one abnormal path in the first path is determined by using the determined packet loss rate and / or delay.

[0100] Here, in actual application, when the packet loss rate and / or delay performance is abnormal, it is determined that there is a problem with the corresponding segment, that is, the performance is abnormal. Exemplarily, the abnormal packet loss rate and / or delay performance includes:

[0101] The packet loss rate is greater than a fourth threshold;

[0102] The delay is greater than the fifth threshold;

[0103] The two-way delay difference is greater than the sixth threshold, etc.

[0104] Among them, when at least one of the above situations exists, it can be determined that the performance of the corresponding paragraph is abnormal.

[0105] In actual application, the sizes of the fourth threshold, the fifth threshold and the sixth threshold can be set as needed.

[0106] The control device triggers the node to perform path switching for the problematic section.

[0107] Specifically, when the control device sends a forwarding path for the first service, the control device searches for other reachable paths for the problematic path segments and sends them to the nodes for path switching.

[0108] Based on this, in one embodiment, the specific implementation of step 104 may include:

[0109] For each path of the at least one path, determine a replacement path to obtain a second path of the first service;

[0110] Send path configuration information to the nodes of the second path.

[0111] In actual application, the control device can find out whether there are other reachable paths for the problematic paragraph based on the network topology and resource information, that is, the control device determines the replacement path based on the network topology information and resource information. Exemplarily, the control device can summarize the relevant information of each node obtained to obtain the topology and resource information of the network. The embodiment of the present application does not limit the specific implementation process of the control device obtaining the network topology and resource information.

[0112] Here, when the control device finds another path to replace, the control device can first detect whether the flow detection data of the service that is performing flow detection through the other path is normal. If it is normal, it means that the path is reachable (it can also be understood that the path is feasible), so that the normal operation of the service after the path switching can be guaranteed. That is to say, for each path in the at least one path, a candidate replacement path is determined, and when the performance of the second service of the flow detection on the candidate replacement path is normal, the candidate replacement path is used as the replacement path.

[0113] Exemplarily, when the two nodes of the other path are the first node and the last node of the second service path, the control device can determine whether the second service performance is normal through the flow detection data reported by the two nodes. When the two nodes of the other path are intermediate nodes of the second service path, the control device can determine whether the second service performance is normal through the flow detection data reported by the first node and the last node of the second service path. The specific implementation of detecting whether the second service performance is normal in the embodiment of the present application is not limited.

[0114] In actual application, the path configuration information may include a forwarding label, an IP routing table, etc., which is not limited in the embodiment of the present application. The control device may send the corresponding path configuration information to each node of the second path, or may send the corresponding path configuration information to different nodes on the second path from the nodes involved in the first path, which is not limited in the embodiment of the present application.

[0115] After receiving the path configuration information, the node of the second path will transmit the first service based on the path configuration information, thereby realizing path switching.

[0116] When the path of the first service is automatically generated between nodes, the control device may inform relevant nodes of information related to problematic sections, and perform path switching at the device level.

[0117] Based on this, in one embodiment, the specific implementation of step 104 may include:

[0118] For each segment path of the at least one segment path, second information is sent to a node associated with the segment path, where the second information indicates that the segment path is abnormal.

[0119] Here, in actual application, the control device can inform relevant devices of the problematic segment, such as the source node, destination node, intermediate nodes, etc. of the problematic segment path, and adjust the path calculation parameters at the device level. The control device can also directly inform the adjusted path calculation parameters of the problematic segment.

[0120] Based on this, in one embodiment, the second information includes at least one of the following:

[0121] relevant information of the segment path;

[0122] The adjusted path calculation parameters of the segment path.

[0123] In actual application, the relevant information of the segment path may include information that can identify the segment path, such as node information, segment path ID, etc., which is not limited in this embodiment of the present application.

[0124] The path calculation parameters may include parameters that enable switching from the segment path to a segment with better performance when performing path calculation. Exemplarily, when the minimum weight algorithm is used for path calculation, the path calculation parameters of the segment path may include a path calculation weight, and adjusting the path calculation parameters of the segment path may include increasing the path calculation weight of the segment path, so that the device level will be able to switch to a segment with better performance when performing path calculation. The embodiments of the present application are not limited to this.

[0125] When the device layer receives the relevant information of the segment path, the path calculation parameters of the segment path can be adjusted so that when performing the path calculation process, it will be able to switch to a segment with better performance.

[0126] In actual application, when the first service is configured with a protection path, the control device can directly switch the first service to the protection path. Exemplarily, the control device can send information to the node of the protection path to instruct the first service to be switched to the protection path for transmission. The embodiment of the present application does not limit the specific implementation of switching the first service to the protection path.

[0127] When the first service includes a bidirectional service, that is, the transmission is bidirectional, the trigger node performs bidirectional path switching. In actual application, the two directions of the bidirectional service can be detected separately, and the problematic segment path can be determined; when switching, when a segment in a certain direction is determined to have a problem, regardless of whether the same segment in the other direction is a problematic segment, both directions of the bidirectional service perform path switching.

[0128] Accordingly, the embodiment of the present application also provides a path switching method, which is applied to a first node, such as Figure 2 As shown, the method includes:

[0129] Step 201: receiving first information sent by a control device, where the first information indicates starting a first function, where the first node includes nodes other than a first node and an end node in a first service detected along the flow, and where the first function includes acquiring along the flow detection data of the first service and reporting the along the flow detection data to the control device;

[0130] Step 202: reporting the flow detection data to the control device, where the reported flow detection data is used to determine at least one abnormal path in the first path.

[0131] In actual application, the first node first obtains the flow detection data, and then reports the flow detection data to the control device. The embodiment of the present application does not limit the specific processing process of the first node obtaining the flow detection data.

[0132] In the embodiments of the present application, a node may be referred to as a device, a device node, a network node, etc. The embodiments of the present application do not limit this, as long as its function is realized.

[0133] In one embodiment, the method may further include:

[0134] Second information sent by the control device is received, where the second information indicates that a path segment of the at least one path segment is abnormal.

[0135] The path switching method provided in the embodiment of the present application is that the control device determines that the performance of the first service detected by the flow is abnormal; starts the first function of other nodes except the first node and the end node in the first path of the first service, and the first function includes obtaining the flow detection data of the first service and reporting the flow detection data to the control device; determines at least one abnormal path in the first path; triggers the node to perform path switching for the at least one path. In the embodiment of the present application, when the control device determines that the performance of the flow detection service is abnormal, it starts the hop-by-hop flow detection function of the intermediate node on the path of the flow detection service, and learns the node section where performance degradation or failure occurs, so as to trigger the device node to switch for the section of the path with problems. The performance of the flow detection is combined with the protection switching, so that when the performance degrades, the corresponding protection switching can be triggered in time to avoid service damage. At the same time, only the problematic path sections are switched, so that fast switching can be achieved.

[0136] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a path switching device, which is arranged on a control device, such as Figure 3 As shown, the device comprises:

[0137] A starting unit 301 is configured to determine that performance of a first service detected by a flow is abnormal; and start a first function of other nodes except a first node and an end node in a first path of the first service, wherein the first function includes obtaining flow detection data of the first service and reporting the flow detection data to the control device;

[0138] The switching unit 302 is configured to determine at least one abnormal path section in the first path; and trigger a node to perform path switching for the at least one abnormal path section.

[0139] In one embodiment, the startup unit 301 is used to send first information to the other nodes, where the first information indicates starting a first function.

[0140] In one embodiment, the switching unit 302 is used to:

[0141] Determine a packet loss rate and / or a delay between two adjacent hops in the first path by using the received flow detection data;

[0142] At least one abnormal path in the first path is determined by using the determined packet loss rate and / or delay.

[0143] In one embodiment, the switching unit 302 is used to:

[0144] For each path of the at least one path, determine a replacement path to obtain a second path of the first service;

[0145] Send path configuration information to the nodes of the second path.

[0146] In one embodiment, the switching unit 302 determines the replacement path based on the network topology information and resource information.

[0147] In one embodiment, for each path of the at least one path, the switching unit 302 determines a candidate replacement path, and when the performance of the second service detected in-line on the candidate replacement path is normal, the candidate replacement path is used as the replacement path.

[0148] In one embodiment, the switching unit 302 is used to switch the first service from the first path to a third path, where the third path includes a protection path for the first service.

[0149] In one embodiment, the switching unit 302 is configured to send second information to a node associated with each segment path of the at least one segment path, wherein the second information indicates that the segment path is abnormal.

[0150] In one embodiment, the first service includes a bidirectional service, and for the at least one segment path, the switching unit 302 triggers the node to perform bidirectional path switching.

[0151] In actual application, the starting unit 301 and the switching unit 302 can be implemented by a processor in the path switching device in combination with a communication interface.

[0152] In order to implement the method on the first node side of the embodiment of the present application, the embodiment of the present application further provides a path switching device, which is arranged at the first node, such as Figure 4As shown, the device comprises:

[0153] A receiving unit 401 is configured to receive first information sent by a control device, where the first information indicates starting a first function, where the first node includes a node other than a first node and an end node in a first service detected along the flow, and where the first function includes acquiring along the flow detection data of the first service and reporting the along the flow detection data to the control device;

[0154] The reporting unit 402 is configured to report the accompanying flow detection data to the control device, where the reported accompanying flow detection data is used to determine at least one abnormal path in the first path.

[0155] In one embodiment, the receiving unit 401 is further configured to receive second information sent by the control device, where the second information indicates that a path segment in the at least one path segment is abnormal.

[0156] In one embodiment, the device may further include:

[0157] The acquisition unit is used to acquire the flow detection data.

[0158] In actual application, the receiving unit 401 and the reporting unit 402 may be implemented by a communication interface in the path switching device, and the obtaining unit may be implemented by a processor in the path switching device.

[0159] It should be noted that: the path switching device provided in the above embodiment only uses the division of the above program modules as an example when performing path switching. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the path switching device provided in the above embodiment and the path switching method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0160] Based on the hardware implementation of the above program modules, and in order to implement the method of controlling the device side in the embodiment of the present application, the embodiment of the present application also provides a control device, such as Figure 5 As shown, the control device 500 includes:

[0161] The first communication interface 501 is capable of exchanging information with the node;

[0162] A first processor 502 is connected to the first communication interface 501 to implement information interaction with the node, and is used to execute the method provided by one or more technical solutions of the control device side when running a computer program;

[0163] A first memory 503 , on which the computer program is stored.

[0164] Specifically, the first processor 502 is configured to:

[0165] Determine that the performance of the first service detected during the flow is abnormal;

[0166] Initiate a first function of other nodes except a first node and an end node in a first path of the first service, wherein the first function includes acquiring along-flow detection data of the first service and reporting the along-flow detection data to the control device;

[0167] determining at least one abnormal path in the first path; and,

[0168] For the at least one path, the node is triggered to perform path switching through the first communication interface 501 .

[0169] In one embodiment, the first communication interface 501 is used to send first information to the other nodes, where the first information indicates starting a first function.

[0170] In one embodiment, the first processor 502 is configured to:

[0171] Determine a packet loss rate and / or a delay between two adjacent hops in the first path by using the received flow detection data;

[0172] At least one abnormal path in the first path is determined by using the determined packet loss rate and / or delay.

[0173] In one embodiment, the first processor 502 is configured to:

[0174] For each path of the at least one path, determine a replacement path to obtain a second path of the first service;

[0175] The path configuration information is sent to the nodes of the second path through the first communication interface 501 .

[0176] In one embodiment, the first processor 502 determines a replacement path based on network topology information and resource information.

[0177] In one embodiment, for each path of the at least one path, the first processor 502 determines a candidate replacement path, and uses the candidate replacement path as a replacement path when the performance of the second service detected in-flight on the candidate replacement path is normal.

[0178] In one embodiment, the first processor 502 is configured to switch the first service from the first path to a third path, where the third path includes a protection path for the first service.

[0179] In one embodiment, the first communication interface 501 is used to send second information to a node associated with each segment of the at least one path, wherein the second information indicates that the segment is abnormal.

[0180] In one embodiment, the first service includes a bidirectional service, and for the at least one segment path, the first processor 502 triggers the node to perform bidirectional path switching.

[0181] It should be noted that the specific processing process of the first processor 502 and the first communication interface 501 can be understood by referring to the above method.

[0182] Of course, in actual application, the various components in the control device 500 are coupled together through the bus system 504. It can be understood that the bus system 504 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 504 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 5 Various buses are labeled as bus system 504 .

[0183] The first memory 503 in the embodiment of the present application is used to store various types of data to support the operation of the control device 500. Examples of such data include: any computer program used to operate on the control device 500.

[0184] The method disclosed in the above embodiment of the present application can be applied to the first processor 502, or implemented by the first processor 502. The first processor 502 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the first processor 502. The above-mentioned first processor 502 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 502 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 503, and the first processor 502 reads the information in the first memory 503 and completes the steps of the above method in combination with its hardware.

[0185] In an exemplary embodiment, the control device 500 can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0186] Based on the hardware implementation of the above program module, and in order to implement the method of the first node side of the embodiment of the present application, the embodiment of the present application also provides a node, such as Figure 6 As shown, the node 600 includes:

[0187] The second communication interface 601 is capable of exchanging information with the control device;

[0188] A second processor 602 is connected to the second communication interface 601 to implement information interaction with the control device, and is used to execute the method provided by one or more technical solutions of the first node side when running the computer program;

[0189] A second memory 603 , on which the computer program is stored.

[0190] Specifically, the second communication interface 601 is used to receive first information sent by the control device, the first information indicates to start a first function, the node includes a node other than a head node and an end node in a first service of the flow detection, and the first function includes obtaining flow detection data of the first service and reporting the flow detection data to the control device; and reporting the flow detection data to the control device, and the reported flow detection data is used to determine at least one abnormal path in the first path.

[0191] In one embodiment, the second communication interface 601 is further used to receive second information sent by the control device, and the second information indicates that a path segment in the at least one path segment is abnormal.

[0192] In one embodiment, the second processor 602 is used to obtain flow detection data.

[0193] It should be noted that the specific processing process of the second processor 602 and the second communication interface 601 can be understood by referring to the above method.

[0194] Of course, in actual application, the various components in the node 600 are coupled together through the bus system 604. It can be understood that the bus system 604 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 604 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 6 Various buses are labeled as bus system 604 .

[0195] The second memory 603 in the embodiment of the present application is used to store various types of data to support the operation of the node 600. Examples of such data include: any computer program used to operate on the node 600.

[0196] The method disclosed in the above embodiment of the present application can be applied to the second processor 602, or implemented by the second processor 602. The second processor 602 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the second processor 602. The above-mentioned second processor 602 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 602 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the second memory 603. The second processor 602 reads the information in the second memory 603 and completes the steps of the above method in combination with its hardware.

[0197] In an exemplary embodiment, the node 600 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned methods.

[0198] It can be understood that the memory (first memory 503, second memory 603) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a ferromagnetic random access memory, a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0199] The present application also provides a path switching system. Figure 7 As shown, the system includes: a control device 701 and a node 702.

[0200] Here, it should be noted that the specific processing process of the control device 701 and the node 702 has been described in detail above and will not be repeated here.

[0201] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 503 storing a computer program, the computer program can be executed by the first processor 502 of the control device 500 to complete the steps of the control device side method, and for another example, including a second memory 603 storing a computer program, the computer program can be executed by the second processor 602 of the node 600 to complete the steps of the first node side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.

[0202] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0203] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0204] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A path switching method, characterized in that: Applied to control equipment, including: Determine that the performance of the first service detected during the flow is abnormal; Initiate a first function of other nodes except a first node and an end node in a first path of the first service, wherein the first function includes acquiring along-flow detection data of the first service and reporting the along-flow detection data to the control device; determining at least one abnormal path in the first path; For the at least one path section, the node is triggered to perform path switching.

2. The method according to claim 1, characterized in that The first function of the other nodes except the first node and the last node in the first path of starting the first service includes: Sending first information to the other nodes, where the first information indicates starting a first function.

3. The method according to claim 1, characterized in that The determining of at least one abnormal path in the first path comprises: Receiving the flow detection data reported by the other nodes; At least one abnormal section of the first path is determined by using the received flow detection data.

4. The method according to claim 3, characterized in that The step of using the received flow detection data to determine at least one abnormal path in the first path includes: Determine a packet loss rate and / or a delay between two adjacent hops in the first path by using the received flow detection data; At least one abnormal path in the first path is determined by using the determined packet loss rate and / or delay.

5. The method according to claim 1, characterized in that: The triggering a node to perform path switching for the at least one path segment includes: For each path of the at least one path, determine a replacement path to obtain a second path of the first service; Send path configuration information to the nodes of the second path.

6. The method according to claim 5, characterized in that The determining of the replacement path comprises: Based on the network topology information and resource information, an alternative path is determined.

7. The method according to claim 4, characterized in that For each path of the at least one path, a candidate replacement path is determined, and when the performance of the second service detected in the flow on the candidate replacement path is normal, the candidate replacement path is used as the replacement path.

8. The method according to claim 1, characterized in that The triggering a node to perform path switching for the at least one path segment includes: The first service is switched from the first path to a third path, where the third path includes a protection path for the first service.

9. The method according to claim 1, characterized in that: The triggering a node to perform path switching for the at least one path segment includes: For each segment path of the at least one segment path, second information is sent to a node associated with the segment path, where the second information indicates that the segment path is abnormal.

10. The method according to claim 9, characterized in that The second information includes at least one of the following: relevant information of the segment path; The adjusted path calculation parameters of the segment path.

11. The method according to any one of claims 1 to 10, characterized in that: The first service includes a bidirectional service, and for the at least one segment path, a node is triggered to perform bidirectional path switching.

12. A path switching method, characterized in that: Applied to the first node, including: receiving first information sent by a control device, where the first information indicates starting a first function, where the first node includes nodes other than a first node and an end node in a first service detected along the flow, and where the first function includes acquiring along the flow detection data of the first service and reporting the along the flow detection data to the control device; Reporting the flow detection data to the control device, where the reported flow detection data is used to determine at least one abnormal path in the first path.

13. The method according to claim 12, characterized in that The method further comprises: Second information sent by the control device is received, where the second information indicates that a path segment of the at least one path segment is abnormal.

14. The method according to claim 13, characterized in that The second information includes at least one of the following: relevant information of the segment path; The adjusted path calculation parameters of the segment path.

15. A path switching device, characterized in that: Set in the control equipment, including: A starting unit, configured to determine that performance of a first service detected by a flow is abnormal; and start a first function of other nodes except a first node and an end node in a first path of the first service, wherein the first function includes obtaining flow detection data of the first service and reporting the flow detection data to the control device; The switching unit is used to determine at least one abnormal path section in the first path; and trigger the node to perform path switching for the at least one abnormal path section.

16. A path switching device, characterized in that: Set up at the first node, including: a receiving unit, configured to receive first information sent by a control device, wherein the first information indicates starting a first function, the first node includes a node other than a head node and an end node in a first service detected along the flow, and the first function includes acquiring along the flow detection data of the first service and reporting the along the flow detection data to the control device; A reporting unit is used to report the flow detection data to the control device, and the reported flow detection data is used to determine at least one abnormal path in the first path.

17. A control device, characterized in that: include: A first processor and a first communication interface; wherein, The first processor is configured to: Determine that the performance of the first service detected during the flow is abnormal; Initiate a first function of other nodes except a first node and an end node in a first path of the first service, wherein the first function includes acquiring along-flow detection data of the first service and reporting the along-flow detection data to the control device; determining at least one abnormal path in the first path; and, For the at least one path section, trigger the node to perform path switching through the first communication interface.

18. A node, characterized in that: include: A second processor and a second communication interface; wherein, The second communication interface is used to receive first information sent by the control device, the first information indicates starting a first function, the nodes include nodes other than a first node and an end node in a first service detected with the flow, and the first function includes obtaining with-flow detection data of the first service and reporting the with-flow detection data to the control device; And reporting the flow detection data to the control device, where the reported flow detection data is used to determine at least one abnormal path in the first path.

19. A control device, characterized in that: include: a first processor and a first memory for storing a computer program executable on the processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 1 to 11 are executed.

20. A node, characterized in that: include: a second processor and a second memory for storing a computer program executable on the processor, Wherein, when the second processor is used to run the computer program, the steps of the method described in any one of claims 12 to 14 are executed.

21. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 11, or implements the steps of the method according to any one of claims 12 to 14.