A service chain bypass method, apparatus, electronic device, and storage medium

By performing dialing tests and bypassing on the service chain nodes, the problem of not being able to respond to faults in a timely manner in traditional methods is solved, thus improving the network performance of the service chain.

CN119743374BActive Publication Date: 2025-11-14CHINA TELECOM NETWORK SECURITY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411750869.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-11-14
Estimated Expiration
2044-12-02

AI Technical Summary

Technical Problem

Traditional service chain bypass methods can only respond to faults passively and cannot trigger service chain bypass in a timely manner, resulting in a decline in network performance.

Method used

By generating test messages to test service nodes, it is determined whether they are in a bypass state. If a bypass state is detected, bypass processing is performed, including modifying path information and sending target messages to skip the faulty node.

Benefits of technology

It enables timely triggering of bypass when the service chain network quality is poor, thereby improving network performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119743374B_ABST
    Figure CN119743374B_ABST
Patent Text Reader

Abstract

This application provides a service chain bypass method, apparatus, electronic device, and storage medium, relating to the field of communication technology. In response to a first test request for a first service node in a service chain, a first test message is generated, and a test is performed on the first service node based on the first test message to obtain the test result of the first service node. If the test result indicates that the first service node is in a bypass state, the received first message is bypassed. By performing a test on the first service node, the network quality of the service chain can be actively detected, thereby triggering service chain bypass in a timely manner when the network quality of the service chain is poor, thus improving the network performance of the service chain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a service chain bypass method, apparatus, electronic device and storage medium. Background Technology

[0002] A service function chain (SFC) is a network service architecture that connects multiple service nodes in sequence to achieve complex network functions.

[0003] In related technologies, when a service chain fails, a service chain bypass can be triggered, thereby preventing traffic interruption due to link failure.

[0004] However, traditional service chain bypass methods can only respond passively to faults. Therefore, when network quality is poor, service chain bypass cannot be triggered in time, resulting in a decline in the network performance of the service chain. Summary of the Invention

[0005] To address the problems in the prior art, embodiments of this application provide a service chain bypass method, apparatus, electronic device, and storage medium for timely triggering of service chain bypass, thereby improving the network performance of the service chain.

[0006] In a first aspect, embodiments of this application provide a service chain bypass method, the method comprising:

[0007] In response to a first test request for the first service node in the service chain, a first test message is generated, wherein the first service node is the service node corresponding to the first proxy node.

[0008] The first service node is tested according to the first test message to obtain the first test result of the first service node. The first test result is used to indicate whether the first service node is in a bypass state.

[0009] Receive the first message and determine whether the first service node is in a bypass state;

[0010] If in bypass mode, the first message is bypassed based on the path information included in the first message.

[0011] In one possible implementation, after obtaining the first test result of the first service node, the method further includes:

[0012] If the first test result indicates that the first service node is in a bypass state, then add a bypass marker to the local agent segment identifier;

[0013] The step of determining whether the first service node is in a bypass state includes:

[0014] Determine whether the local proxy segment identifier has a bypass flag set. If so, determine that the first service node is in a bypass state.

[0015] In one possible implementation, the step of performing a dial-up test on the first service node based on the first dial-up test message to obtain a first dial-up test result for the first service node includes:

[0016] Within a preset time period, continuously send the first test message to the first service node and receive the first response message from the first service node in response to the first test message.

[0017] If the number of timeout messages in the first response message received is greater than a first number threshold, then the first test result is determined to be that the first service node is in a bypass state; wherein the time interval between the time of receiving the timeout message and the time of sending the first test message is greater than a first time threshold.

[0018] In one possible implementation, after adding a bypass flag to the local proxy segment identifier, the method further includes:

[0019] In response to the second test request for the first service node, a second test message is generated;

[0020] The first service node is tested according to the second test message to obtain the second test result of the first service node. The second test result is used to indicate whether the first service node is in a bypass state.

[0021] If the second test result indicates that the first service node is not in a bypass state, then delete the bypass flag of the local agent segment identifier.

[0022] In one possible implementation, the bypassing process for the first message based on the path information included in the first message includes:

[0023] Modify the target address field of the path information included in the first message to obtain a target message. The target address field of the target message includes the proxy segment identifier of the second proxy node. The second proxy node is the proxy node of the second service node. The second service node is the next service node adjacent to the first service node in the service chain.

[0024] The target message is sent according to the proxy segment identifier of the second proxy node.

[0025] In one possible implementation, after determining whether the first service node is in a bypass state, the method further includes:

[0026] If not in bypass mode, the payload portion of the first message is sent to the first service node.

[0027] Secondly, embodiments of this application provide a service chain bypass device, the device comprising:

[0028] The testing unit is used to generate a first testing message in response to a first testing request for a first service node in the service chain, wherein the first service node is the service node corresponding to the first proxy node; and to perform testing on the first service node according to the first testing message to obtain a first testing result of the first service node, wherein the first testing result is used to indicate whether the first service node is in a bypass state.

[0029] The receiving unit is used to receive the first message and determine whether the first service node is in a bypass state.

[0030] The processing unit is configured to perform bypass processing on the first message based on the path information included in the first message if it is in a bypass state.

[0031] In one possible implementation, the processing unit is further configured to:

[0032] If the first test result indicates that the first service node is in a bypass state, then add a bypass marker to the local agent segment identifier;

[0033] The step of determining whether the first service node is in a bypass state includes:

[0034] Determine whether the local proxy segment identifier has a bypass flag set. If so, determine that the first service node is in a bypass state.

[0035] In one possible implementation, the dialing unit is specifically used for:

[0036] Within a preset time period, continuously send the first test message to the first service node and receive the first response message from the first service node in response to the first test message.

[0037] If the number of timeout messages in the first response message received is greater than a first number threshold, then the first test result is determined to be that the first service node is in a bypass state; wherein the time interval between the time of receiving the timeout message and the time of sending the first test message is greater than a first time threshold.

[0038] In one possible implementation, the dialing unit is further configured to:

[0039] In response to the second test request for the first service node, a second test message is generated;

[0040] The first service node is tested according to the second test message to obtain the second test result of the first service node. The second test result is used to indicate whether the first service node is in a bypass state.

[0041] If the second test result indicates that the first service node is not in a bypass state, then delete the bypass flag of the local agent segment identifier.

[0042] In one possible implementation, the processing unit is specifically used for:

[0043] Modify the target address field of the path information included in the first message to obtain a target message. The target address field of the target message includes the proxy segment identifier of the second proxy node. The second proxy node is the proxy node of the second service node. The second service node is the next service node adjacent to the first service node in the service chain.

[0044] The target message is sent according to the proxy segment identifier of the second proxy node.

[0045] In one possible implementation, the processing unit is further configured to:

[0046] If not in bypass mode, the payload portion of the first message is sent to the first service node.

[0047] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and when the computer program is executed by the processor, it implements the method described in any one of the service chain bypass methods in the first aspect.

[0048] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method described in any one of the service chain bypass methods in the first aspect.

[0049] This application provides a service chain bypass method, apparatus, electronic device, and storage medium. In response to a first test request for a first service node in a service chain, a first test message is generated, and a test is performed on the first service node based on the first test message to obtain the test result of the first service node. If the test result indicates that the first service node is in a bypass state, the received first message is bypassed. By performing a test on the first service node, the network quality of the service chain can be actively detected, thereby triggering service chain bypass in a timely manner when the network quality of the service chain is poor, thus improving the network performance of the service chain. Attached Figure Description

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

[0051] Figure 1 A flowchart of a service chain bypass method provided in an embodiment of this application;

[0052] Figure 2 A schematic diagram of a service chain provided for an embodiment of this application;

[0053] Figure 3 An interactive flowchart of a service chain bypass method provided in an embodiment of this application;

[0054] Figure 4 A schematic diagram of another service chain provided for an embodiment of this application;

[0055] Figure 5 An interactive flowchart of another service chain bypass method provided in an embodiment of this application;

[0056] Figure 6 A schematic diagram of a service chain bypass device provided in an embodiment of this application;

[0057] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0058] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0059] It should be noted that the terms "comprising" and "having" and their variations used in this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.

[0060] SRv6 is a next-generation IP bearer protocol that simplifies and unifies traditional complex network protocols, serving as the foundation for building intelligent IP networks in the 5G and cloud era. SRv6 boasts advantages such as centralized control, stateless intermediate networks, and high scalability. Furthermore, SR is designed for Software Defined Network (SDN) architectures, integrating the advantages of device-autonomous forwarding and centralized programming control, enabling better application-driven networks.

[0061] A service function chain (SFC) is a network service architecture that connects multiple service nodes sequentially to achieve complex network functions. By leveraging the path orchestration capabilities of SRv6 Policy, service chains can provide different security value-added services and combined services as needed.

[0062] In related technologies, when a service chain fails, service chain bypass can be triggered to prevent traffic interruption due to link failure. However, traditional service chain bypass methods can only passively respond to faults. Therefore, when network quality is poor, service chain bypass cannot be triggered in a timely manner, leading to a decline in the network performance of the service chain.

[0063] Based on this, embodiments of this application provide a service chain bypass method, apparatus, electronic device, and storage medium. In response to a first test request for a first service node in a service chain, a first test message is generated, and a test is performed on the first service node based on the first test message to obtain the test result of the first service node. If the test result indicates that the first service node is in a bypass state, the received first message is bypassed. By performing a test on the first service node, the network quality of the service chain can be actively detected, thereby triggering service chain bypass in a timely manner when the network quality of the service chain is poor, thus improving the network performance of the service chain.

[0064] To further illustrate the technical solutions provided in the embodiments of this application, a detailed description is provided below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiments of this application provide method operation steps as shown in the following embodiments or drawings, the method may include more or fewer operation steps based on conventional or non-inventive methods. In steps where there is no logically necessary causal relationship, the execution order of these steps is not limited to the execution order provided in the embodiments of this application. In actual processing or when the device executes the method, it may be executed in the order shown in the embodiments or drawings, or in combination.

[0065] Figure 1 A flowchart of a service chain bypass method provided in an embodiment of this application is shown, as follows: Figure 1 As shown, the method includes the following steps:

[0066] Step S101: In response to the first test request for the first service node in the service chain, generate the first test message.

[0067] Figure 2 An exemplary schematic diagram of a service chain is shown. Since the service nodes in the service chain are SRv6-unaware SFs (service nodes that cannot recognize path information in packets), in order to implement the service chain, it is necessary to configure a corresponding proxy node for each service node and assign an SRv6 SID (proxy segment identifier) ​​to each proxy node.

[0068] After receiving a packet from a user network, the SRv6 head node encapsulates the packet with a list of SRv6 service chain segments, i.e., path information: SF1 Proxy -> SF2 Proxy -> SF3 Proxy -> SRv6 tail node. Then, each proxy node in the service chain forwards the packet according to this path information. When the packet reaches the SRv6 tail node, the SRv6 tail node decapsulates the packet. Finally, the SRv6 tail node sends the decapsulated packet to another user network.

[0069] The following explanation uses SF2 as the first service node and SF2 Proxy as the proxy node corresponding to the first service node.

[0070] In response to the first dial-up request for the first service node SF2, the first proxy node SF2 can generate a first dial-up message, thereby preparing for subsequent dial-up testing of the first service node SF2.

[0071] Step S102: Perform a dial test on the first service node according to the first dial test message, and obtain the first dial test result of the first service node.

[0072] The first test result is used to indicate whether the first service node is in a bypass state.

[0073] Figure 3 An exemplary flowchart illustrates an interaction process in which a first proxy node performs a dial-up test on a first service node based on a first dial-up test message, and obtains the first dial-up test result from the first service node. Figure 3 As shown, the process may include the following steps:

[0074] Step S1021: The first agent node continuously sends the first test message to the first service node within a preset time period.

[0075] For example, the preset duration can be 3 seconds. The first proxy node SF2 Proxy can continuously send the first wave of test messages to the first service node SF2 within 3 seconds. At the same time, the first proxy node SF2 Proxy can record the sending timestamp of the first wave of test messages.

[0076] Step S1022: The first service node sends a first response message to the first agent node in response to the first test message.

[0077] After receiving the first wave of test packets from the first proxy node SF2, the first service node SF2 can process the first wave of test packets and then send the first response packet to the first proxy node SF2.

[0078] Step S1023: If the number of timeout messages in the first response message received by the first agent node is greater than the first number threshold, then the first test result is determined to be that the first service node is in a bypass state.

[0079] After receiving the first response message, the first proxy node SF2 records the timestamp of the first response message. This allows it to determine the time interval between the time the first response message was received and the time the first test message was sent. If this time interval is greater than a preset first time interval, the first response message is considered to be an overdue message. Furthermore, if the number of overdue messages exceeds a first number threshold within a preset time period, the first test result indicates that the network quality of the first service node SF2 is poor. In this case, the first service node SF2 is in a bypass state.

[0080] If the number of timeout messages is less than or equal to the first threshold within the preset time period, the network quality of the first service node SF2 is considered to be normal, and the messages can be processed.

[0081] For example, the preset duration can be set to 3 seconds, the first time interval can be set to 100 milliseconds, and the first quantity threshold can be set to 10.

[0082] Furthermore, if the first test result indicates that the first service node SF2 is in a bypass state, a bypass flag can be added to the local proxy segment identifier pre-stored in the first proxy node SF2 Proxy. This bypass flag indicates that the network quality of the first service node SF2 is poor or has failed, and it cannot perform normal business processing.

[0083] Step S103: Receive the first message and determine whether the first service node is in a bypass state.

[0084] After receiving the first message, the first agent node SF2 can determine whether the pre-stored local agent segment identifier has a bypass flag. If the local agent segment identifier of the first agent node SF2 has a bypass flag, it can be determined that the first service node SF2 is in a bypass state.

[0085] Step S104: If in bypass mode, the first message is bypassed according to the path information included in the first message.

[0086] In one optional implementation, after the first proxy node SF2 Proxy determines that the first service node SF2 is in a bypass state, it can modify the target address field of the path information included in the first message.

[0087] In practice, the first proxy node SF2 Proxy can modify the target address field of the path information to the proxy segment identifier of the second service node SF3 Proxy, which is adjacent to the first service node SF2 in the service chain. Then, the target packet can be sent based on the proxy segment identifier SF3 Proxy of the second service node's proxy node.

[0088] The following explanation will continue using SF2 as the first service node and SF2 Proxy as the proxy node corresponding to the first service node.

[0089] Once the first proxy node SF2 determines that the first service node SF2 is in a bypass state, it can modify the destination address field of the received first packet to the proxy segment identifier of SF3 Proxy, thus obtaining the target packet. Then, it can send the target packet to the second proxy node SF3 Proxy, thereby bypassing the first service node SF2 which is in a bypass state and handing the target packet over to the second proxy node SF3 Proxy for processing.

[0090] Figure 4 An exemplary diagram of another service chain is shown, such as... Figure 4 As shown, after receiving the first packet, the first proxy node SF2 Proxy will not send the first packet to the first service node SF2 for business processing. Instead, it will modify the target address field to the target packet of SF3 Proxy and send it to the second proxy node SF3 Proxy, which will then carry out the subsequent processing.

[0091] In another optional implementation, after the first proxy node determines that the first service node is not in a bypass state, the first proxy node can send the payload part of the first message to the first service node for service processing.

[0092] In some embodiments, if the network quality of the first service node SF2 returns to normal, the bypass flag of the local agent segment can be deleted accordingly, thereby indicating that the first service node SF2 has returned from the bypass state to the normal service processing state.

[0093] Figure 5 An exemplary flowchart illustrates an interaction process in which a first proxy node performs a second test on a first service node based on a second test message, and obtains the second test result from the first service node. Figure 5 As shown, the process may include the following steps:

[0094] Step S1041: The first agent node continuously sends a second batch of test messages to the first service node within a preset time period.

[0095] In some embodiments, the preset duration can be the same as that set when testing the first service node SF2 according to the first test message. For example, the first proxy node SF2 Proxy can continuously send a second wave of test messages to the first service node SF2 within 3 seconds. At the same time, the first proxy node SF2 Proxy can record the sending timestamp of the second test message.

[0096] In other embodiments, the preset duration may be different from the duration set when testing the first service node SF2 according to the first test message. For example, the preset duration may be set to 4 seconds.

[0097] In step S1042, the first service node sends a second response message to the first proxy node in response to the second test message.

[0098] After receiving the second wave of test packets from the first proxy node SF2 Proxy, the first service node SF2 processes the first wave of test packets and then sends a second response packet to the first proxy node SF2 Proxy.

[0099] Step S1043: If the number of timeout messages in the second response message received by the first agent node is less than the second quantity threshold, then the second test result is determined to be that the first service node is not in a bypass state.

[0100] After receiving the second response message, the first proxy node SF2 Proxy records the timestamp of the second response message. This determines the time interval between the reception time of the second response message and the transmission time of the second test message. If this time interval is greater than a preset second time interval, the second response message is considered a timeout message. If the number of timeout messages is less than a second threshold within a preset time period, the second test result indicates that the network quality of the first service node SF2 has returned to normal. In this case, the first service node SF2 is not in a bypass state.

[0101] Furthermore, if the second test result indicates that the first service node SF2 is not in a bypass state, the bypass flag of the local agent segment can be deleted, thereby indicating that the first service node SF2 has resumed normal business processing and is able to perform business processing.

[0102] It should be noted that the above description only uses SF2 Proxy as the first proxy node. In some embodiments, the first proxy node in the service chain bypass method provided in this application can be any of SF1 Proxy, SF2 Proxy, and SF3 Proxy, and the corresponding first service node is the service node corresponding to the proxy node. In specific implementation, some or all service nodes in the service chain can be configured according to actual usage requirements, and this application does not limit this.

[0103] The service chain bypass method provided in this application, in response to a first test request for a first service node in a service chain, generates a first test message and performs a test on the first service node based on the first test message to obtain the test result of the first service node. If the test result indicates that the first service node is in a bypass state, the received first message is bypassed. By performing a test on the first service node, the network quality of the service chain can be actively detected. Therefore, service chain bypass can be triggered not only when a service node in the service chain fails, but also when the network quality of the service chain is poor, thereby improving the network performance of the service chain.

[0104] Based on the same inventive concept, this embodiment of the invention also provides a structural schematic diagram of a service chain bypass device, such as... Figure 6 As shown, the service chain bypass device includes:

[0105] The testing unit 601 is used to generate a first testing message in response to a first testing request for a first service node in the service chain, wherein the first service node is the service node corresponding to the first proxy node; and to perform testing on the first service node according to the first testing message to obtain a first testing result of the first service node, wherein the first testing result is used to indicate whether the first service node is in a bypass state.

[0106] The receiving unit 602 is used to receive the first message and determine whether the first serving node is in a bypass state.

[0107] The processing unit 603 is configured to perform bypass processing on the first message based on the path information included in the first message if it is in a bypass state.

[0108] In one possible implementation, the processing unit 603 is further configured to:

[0109] If the first test result indicates that the first service node is in a bypass state, then add a bypass marker to the local agent segment identifier;

[0110] Determining whether the first service node is in a bypass state includes:

[0111] Determine whether the local agent segment identifier has a bypass flag set. If so, determine that the first service node is in a bypass state.

[0112] In one possible implementation, the detection unit 601 is specifically used for:

[0113] Within a preset time period, continuously send the first wave of test messages to the first service node and receive the first response message from the first service node in response to the first wave of test messages.

[0114] If the number of timeout messages in the received first response message is greater than the first number threshold, then the first test result is determined to be that the first service node is in a bypass state; wherein the time interval between the time of receiving the timeout message and the time of sending the first test message is greater than the first time threshold.

[0115] In one possible implementation, the detection unit 601 is further configured to:

[0116] In response to the second test request for the first service node, a second test message is generated;

[0117] The first service node is tested according to the second test message, and the second test result of the first service node is obtained. The second test result is used to indicate whether the first service node is in a bypass state.

[0118] If the second test result indicates that the first service node is not in a bypass state, then delete the bypass flag of the local agent segment.

[0119] In one possible implementation, the processing unit 603 is specifically used for:

[0120] Modify the target address field of the path information included in the first message to obtain the target message. The target address field of the target message includes the proxy segment identifier of the second proxy node. The second proxy node is the proxy node of the second service node. The second service node is the next service node adjacent to the first service node in the service chain.

[0121] Send the target message based on the proxy segment identifier of the second proxy node.

[0122] In one possible implementation, the processing unit 603 is further configured to:

[0123] If not in bypass mode, the payload portion of the first message is sent to the first serving node.

[0124] Based on the same inventive concept, embodiments of this application also provide an electronic device, which includes at least a memory for storing data and a processor. The processor for data processing can be implemented using a microprocessor, CPU, GPU (Graphics Processing Unit), DSP, or FPGA during processing. The memory stores operation instructions, which can be computer-executable code, to implement the various steps in the service chain bypass construction method described in the embodiments of this application.

[0125] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. This electronic device can be the first proxy node in an embodiment of this application. Figure 7 As shown, the electronic device 700 includes a memory 701, a processor 702, a data acquisition module 703, and a bus 704. The memory 701, processor 702, and data acquisition module 703 are all connected via the bus 704, which is used for data transmission between the memory 701, processor 702, and data acquisition module 703.

[0126] The memory 701 can be used to store software programs and modules. The processor 702 executes various functional applications and data processing of the electronic device 700 by running the software programs and modules stored in the memory 701, such as the service chain bypass method in the embodiments of this application. The memory 701 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs of at least one application, etc.; the data storage area may store data created according to the use of the electronic device 700, etc. In addition, the memory 701 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 volatile solid-state storage device.

[0127] The processor 702 is the control center of the electronic device 700. It connects various parts of the electronic device 700 via a bus 704 and various interfaces and lines. It executes various functions and processes data of the electronic device 700 by running or executing software programs and / or modules stored in the memory 701, and by calling data stored in the memory 701. Optionally, the processor 702 may include one or more processing units, such as a CPU, GPU (Graphics Processing Unit), or digital processing unit.

[0128] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, can be used to implement the service chain bypass method described in any embodiment of this application.

[0129] In some possible implementations, various aspects of the service chain bypass construction method provided in this application can also be implemented as a program product comprising program code. When the program product is run on a computer device, the program code causes the computer device to perform the service chain bypass construction steps described above according to the various exemplary embodiments of this application. For example, the computer device can perform actions such as... Figure 1 The process of the service chain bypass method is shown.

[0130] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0131] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0132] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0133] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0134] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A service chain bypass method, characterized in that, Applied to the first proxy node, the method includes: In response to a first test request for the first service node in the service chain, a first test message is generated, wherein the first service node is the service node corresponding to the first proxy node. Within a preset time period, continuously send the first test message to the first service node and receive the first response message from the first service node in response to the first test message. If the number of timeout messages in the first response message received is greater than a first number threshold, then the first test result is determined to be that the first service node is in a bypass state; wherein the time interval between the time of receiving the timeout message and the time of sending the first test message is greater than a first time threshold. Receive the first message and determine whether the first service node is in a bypass state; If in bypass state, modify the target address field of the path information included in the first message to obtain the target message. The target address field of the target message includes the proxy segment identifier of the second proxy node. The second proxy node is the proxy node of the second service node. The second service node is the next service node adjacent to the first service node in the service chain. The target message is sent according to the proxy segment identifier of the second proxy node.

2. The method according to claim 1, characterized in that, After obtaining the first test result of the first service node, the process further includes: If the first test result indicates that the first service node is in a bypass state, then add a bypass marker to the local agent segment identifier; The step of determining whether the first service node is in a bypass state includes: Determine whether the local proxy segment identifier has a bypass flag set. If so, determine that the first service node is in a bypass state.

3. The method according to claim 2, characterized in that, After adding a bypass flag to the local proxy segment identifier, the method further includes: In response to the second test request for the first service node, a second test message is generated; The first service node is tested according to the second test message to obtain the second test result of the first service node. The second test result is used to indicate whether the first service node is in a bypass state. If the second test result indicates that the first service node is not in a bypass state, then delete the bypass flag of the local agent segment identifier.

4. The method according to claim 1, characterized in that, After determining whether the first service node is in a bypass state, the method further includes: If not in bypass mode, the payload portion of the first message is sent to the first service node.

5. A service chain bypass device, characterized in that, The device includes: The testing unit is configured to generate a first testing message in response to a first testing request for a first service node in the service chain, wherein the first service node is the service node corresponding to the first proxy node; continuously send the first testing message to the first service node within a preset time period, and receive a first response message from the first service node in response to the first testing message; if the number of timeout messages in the received first response message is greater than a first number threshold, then determine that the first testing result is that the first service node is in a bypass state; wherein the time interval between the time of receiving the timeout message and the time of sending the first testing message is greater than a first time threshold. The receiving unit is used to receive the first message and determine whether the first service node is in a bypass state. The processing unit is configured to, if in a bypass state, modify the target address field of the path information included in the first message to obtain a target message, wherein the target address field of the target message includes the proxy segment identifier of the second proxy node, the second proxy node is the proxy node of the second service node, and the second service node is the next service node adjacent to the first service node in the service chain; and send the target message according to the proxy segment identifier of the second proxy node.

6. The apparatus according to claim 5, characterized in that, The processing unit is further configured to: If the first test result indicates that the first service node is in a bypass state, then add a bypass marker to the local agent segment identifier; The step of determining whether the first service node is in a bypass state includes: Determine whether the local proxy segment identifier has a bypass flag set. If so, determine that the first service node is in a bypass state.

7. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that can run on the processor, and when the computer program is executed by the processor, it implements the method of any one of claims 1 to 4.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method, device and bypass networking structure for locally sharing bypass flow

    CN102904827A

  • Centralized segment routing dataplane based backup path validation

    US20180359176A1