Service chain bypass method and device, electronic equipment and storage medium
By actively dialing the service nodes in the service chain, judging their bypass status and triggering bypass processing, the problem of network performance degradation caused by traditional methods is solved, and the network performance improvement of the service chain is achieved.
Patent Information
- Application Number
- CN202411750869.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-12-02
AI Technical Summary
The traditional service chain bypass method can only passively respond to failures and cannot trigger service chain bypass in time, resulting in a degradation of network performance.
By actively dialing the service nodes in the service chain, we can determine whether they are in a bypass state, and promptly trigger the service chain bypass processing when the network quality is poor.
It realizes timely triggering bypass when the network quality of the service chain is poor, and improves the network performance of the service chain.
Smart Images

Figure CN119743374A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a service chain bypass method, device, electronic device and storage medium. Background Art
[0002] Service function chain (SFC) is a network service architecture that implements complex network functions by connecting multiple service nodes in sequence.
[0003] In the related art, when a service chain fails, a service chain bypass can be triggered to avoid traffic interruption due to the link failure.
[0004] However, the traditional service chain bypass method can only respond to faults passively. Therefore, when the network quality is poor, the service chain bypass cannot be triggered in time, resulting in the degradation of the network performance of the service chain. Summary of the invention
[0005] In order to solve the above-mentioned problems in the prior art, the embodiments of the present application provide a service chain bypass method, device, electronic device and storage medium for timely triggering service chain bypass and improving the network performance of the service chain.
[0006] In a first aspect, an embodiment of the present application provides a service chain bypass method, the method comprising:
[0007] In response to a first dial test request for a first service node in the service chain, generating a first dial test message, the first service node being a service node corresponding to the first proxy node;
[0008] Performing a dial test on the first service node according to the first dial test message to obtain a first dial test result of the first service node, where the first dial test result is used to indicate whether the first service node is in a bypass state;
[0009] receiving a first message, and determining whether the first service node is in a bypass state;
[0010] If it is in the bypass state, bypass processing is performed on the first message according to the path information included in the first message.
[0011] In a possible implementation manner, after obtaining the first dialing result of the first service node, the method further includes:
[0012] If the first dial test result indicates that the first service node is in a bypass state, adding a bypass mark to the local agent segment identifier;
[0013] The determining whether the first service node is in a bypass state includes:
[0014] It is determined whether the local proxy segment identifier is set with a bypass flag, and if so, it is determined that the first service node is in a bypass state.
[0015] In a possible implementation manner, the dialing the first service node according to the first dialing message to obtain a first dialing result of the first service node includes:
[0016] Continue to send the first dial test message to the first service node within a preset time period, and receive a first response message from the first service node to the first dial test message;
[0017] If the number of timeout messages in the received first response message is greater than a first number threshold, it is determined that the first dial test result is that the first service node is in a bypass state; wherein the time interval between the reception time of the timeout message and the sending time of the first dial test message is greater than a first time threshold.
[0018] In a possible implementation manner, after adding a bypass mark to the local proxy segment identifier, the method further includes:
[0019] In response to a second dial test request for the first service node, generating a second dial test message;
[0020] Performing a dial test on the first service node according to the second dial test message to obtain a second dial test result of the first service node, where the second dial test result is used to indicate whether the first service node is in a bypass state;
[0021] If the second dial test result indicates that the first service node is not in a bypass state, the bypass mark of the local agent segment identifier is deleted.
[0022] In a possible implementation manner, the bypass processing of the first message according to 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, wherein the target address field of the target message includes a proxy segment identifier of a second proxy node, the second proxy node is a proxy node of a second service node, and the second service node is a 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 a possible implementation manner, after determining whether the first service node is in a bypass state, the method further includes:
[0026] If it is not in the bypass state, sending the payload part of the first message to the first service node.
[0027] In a second aspect, an embodiment of the present application provides a service chain bypass device, the device comprising:
[0028] A dialing unit, configured to generate a first dialing message in response to a first dialing request for a first service node in a service chain, wherein the first service node is a service node corresponding to the first proxy node; perform a dialing test on the first service node according to the first dialing message to obtain a first dialing result of the first service node, wherein the first dialing result is used to indicate whether the first service node is in a bypass state;
[0029] A receiving unit, configured to receive a first message and determine whether the first service node is in a bypass state;
[0030] A processing unit is used to perform bypass processing on the first message according to the path information included in the first message if it is in the bypass state.
[0031] In a possible implementation manner, the processing unit is further configured to:
[0032] If the first dial test result indicates that the first service node is in a bypass state, adding a bypass mark to the local agent segment identifier;
[0033] The determining whether the first service node is in a bypass state includes:
[0034] It is determined whether the local proxy segment identifier is set with a bypass flag, and if so, it is determined that the first service node is in a bypass state.
[0035] In a possible implementation manner, the dial testing unit is specifically configured to:
[0036] Continue to send the first dial test message to the first service node within a preset time period, and receive a first response message from the first service node to the first dial test message;
[0037] If the number of timeout messages in the received first response message is greater than a first number threshold, it is determined that the first dial test result is that the first service node is in a bypass state; wherein the time interval between the reception time of the timeout message and the sending time of the first dial test message is greater than a first time threshold.
[0038] In a possible implementation manner, the dial testing unit is further used for:
[0039] In response to a second dial test request for the first service node, generating a second dial test message;
[0040] Performing a dial test on the first service node according to the second dial test message to obtain a second dial test result of the first service node, where the second dial test result is used to indicate whether the first service node is in a bypass state;
[0041] If the second dial test result indicates that the first service node is not in a bypass state, the bypass mark of the local agent segment identifier is deleted.
[0042] In a possible implementation manner, the processing unit is specifically configured to:
[0043] 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 a proxy segment identifier of a second proxy node, the second proxy node is a proxy node of a second service node, and the second service node is a 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 a possible implementation manner, the processing unit is further configured to:
[0046] If it is not in the bypass state, sending the payload part of the first message to the first service node.
[0047] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the computer program is executed by the processor, any one of the service chain bypass methods of the first aspect is implemented.
[0048] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the service chain bypass methods of the first aspect is implemented.
[0049] The embodiments of the present application provide a service chain bypass method, device, electronic device, and storage medium, which generate a first dial test message in response to a first dial test request for a first service node in a service chain, and perform a dial test on the first service node according to the first dial test message to obtain a dial test result of the first service node. If the dial test result indicates that the first service node is in a bypass state, bypass processing is performed on the received first message, and by performing a dial test on the first service node, the network quality of the service chain can be actively detected, so that when the network quality of the service chain is poor, the service chain bypass is triggered in time, thereby improving the network performance of the service chain. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0051] Figure 1 A flow chart of a service chain bypass method provided in an embodiment of the present application;
[0052] Figure 2 A schematic diagram of a service chain provided in an embodiment of the present application;
[0053] Figure 3 An interactive flow chart of a service chain bypass method provided in an embodiment of the present application;
[0054] Figure 4 A schematic diagram of another service chain provided in an embodiment of the present application;
[0055] Figure 5 An interactive flow chart of another service chain bypass method provided in an embodiment of the present application;
[0056] Figure 6 A schematic diagram of the structure of a service chain bypass device provided in an embodiment of the present application;
[0057] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0059] It should be noted that the terms "including" and "having" and their variations involved in the documents of this application are intended to cover non-exclusive inclusions. 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 clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0060] SRv6 is a new generation of IP bearer protocol that can simplify and unify traditional complex network protocols and is the basis for building intelligent IP networks in the 5G and cloud era. SRv6 has the advantages of centralized control, stateless intermediate networks, and good scalability. SR is a protocol designed for software-defined network (SDN) architecture, integrating the advantages of device autonomous forwarding and centralized programming control, and can better realize application-driven networks.
[0061] Service function chain (SFC) is a network service architecture that connects multiple service nodes in sequence to achieve complex network functions. Service chaining is achieved through the path orchestration capability of SRv6 Policy, which can provide different security value-added services and combined services on demand.
[0062] In the related art, when a service chain fails, a service chain bypass can be triggered to avoid traffic interruption due to a link failure. However, the traditional service chain bypass method can only respond to failures passively. Therefore, when the network quality is poor, the service chain bypass cannot be triggered in time, resulting in a decrease in the network performance of the service chain.
[0063] Based on this, the embodiment of the present application provides a service chain bypass method, device, electronic device and storage medium, which generates a first dial test message in response to a first dial test request for a first service node in a service chain, and performs a dial test on the first service node according to the first dial test message to obtain a dial test result of the first service node. If the dial test result indicates that the first service node is in a bypass state, bypass processing is performed on the received first message. By performing a dial test on the first service node, the network quality of the service chain can be actively detected, so that when the network quality of the service chain is poor, the service chain bypass is triggered in time, thereby improving the network performance of the service chain.
[0064] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application. The method may be executed or executed in parallel in the actual processing process or when the device is executed in accordance with the method sequence shown in the embodiment or drawings.
[0065] Figure 1 A flow chart of a service chain bypass method provided by an embodiment of the present application is shown. Figure 1 As shown, the method comprises the following steps:
[0066] Step S101: generating a first dial test message in response to a first dial test request for a first service node in a service chain.
[0067] Figure 2 A schematic diagram of a service chain is shown exemplarily. Since the service nodes in the service chain are SRv6-unaware SFs (service nodes that cannot identify path information in messages), in order to implement the service chain, it is necessary to configure corresponding proxy nodes for each service node and assign SRv6 SID (proxy segment identifier) to each proxy node.
[0068] After receiving the message sent by the user network, the SRv6 head node encapsulates the message with the segment list of the SRv6 service chain, that is, the path information: SF1 Proxy->SF2 Proxy->SF3 Proxy->SRv6 tail node. Then, each proxy node in the service chain transmits the message according to the path information. When the message is transmitted to the SRv6 tail node, the SRv6 tail node decapsulates the message. Finally, the SRv6 tail node sends the decapsulated message to another user network.
[0069] The following description is made by taking SF2 as the first service node and SF2 Proxy as the proxy node corresponding to the first service node as an example.
[0070] The first proxy node SF2 Proxy may generate a first dial test message in response to the first dial test request for the first service node SF2, so as to prepare for subsequent dial test on the first service node SF2.
[0071] Step S102: perform a dial test on a first service node according to a first dial test message to obtain a first dial test result of the first service node.
[0072] The first dialing test result is used to indicate whether the first service node is in a bypass state.
[0073] Figure 3 An interactive flow chart of a first proxy node performing a dial test on a first service node according to a first dial test message to obtain a first dial test result of the first service node is shown exemplarily. Figure 3 As shown, the process may include the following steps:
[0074] Step S1021: The first proxy node continuously sends a first dialing message to the first service node within a preset time period.
[0075] Exemplarily, the preset duration may be 3 seconds, and the first proxy node SF2 Proxy may continue to send the first dial-test message to the first service node SF2 within 3 seconds. Meanwhile, the first proxy node SF2 Proxy may record the sending timestamp of the first dial-test message.
[0076] Step S1022: The first service node sends a first response message to the first proxy node in response to the first dial test message.
[0077] After receiving the first dial test message sent by the first proxy node SF2 Proxy, the first service node SF2 may process the first dial test message, and after processing, send a first response message to the first proxy node SF2 Proxy.
[0078] Step S1023: If the number of timeout messages in the first response message received by the first proxy node is greater than a first number threshold, it is determined that the first dialing test result is that the first service node is in a bypass state.
[0079] After receiving the first response message, the first proxy node SF2 Proxy records the receiving timestamp of the first response message, thereby determining the time interval between the receiving time of the first response message and the sending time of the first dial test message. If the time interval is greater than the preset first time interval, the first response message is considered to be a timeout message. Furthermore, if the number of timeout messages is greater than the first number threshold within the preset time period, it can be considered that the first dial test result shows that the network quality of the first service node SF2 is poor. At this time, the first service node SF2 is in a bypass state.
[0080] If the number of timed out messages is less than or equal to the first number threshold within a preset time period, it is considered that the network quality of the first service node SF2 is normal and the message can be processed.
[0081] Exemplarily, the preset duration may be set to 3 seconds, the first time interval may be set to 100 milliseconds, and the first quantity threshold may be set to 10.
[0082] Furthermore, if the first dial test result indicates that the first service node SF2 is in bypass state, a bypass mark may be added to the local proxy segment identifier pre-stored in the first proxy node SF2 Proxy, which indicates that the first service node SF2 has poor network quality or fails and cannot perform normal business processing.
[0083] Step S103: Receive a first message and determine whether the first service node is in a bypass state.
[0084] After receiving the first message, the first proxy node SF2 can determine whether the pre-stored local proxy segment identifier is set with a bypass mark. If the local proxy segment identifier of the first proxy node SF2 is set with a bypass mark, it can be determined that the first service node SF2 is in a bypass state.
[0085] Step S104: If the state is bypassed, bypass processing is performed on the first message according to the path information included in the first message.
[0086] In an optional implementation, after the first proxy node SF2 Proxy determines that the first service node SF2 is in a bypass state, the target address field of the path information included in the first message may be modified.
[0087] In a specific implementation, the first proxy node SF2 Proxy may modify the target address field of the path information to the proxy segment identifier of the proxy node SF3Proxy of the second service node SF3 adjacent to the first service node SF2 in the service chain. Then, the target message may be sent based on the proxy segment identifier SF3 Proxy of the proxy node of the second service node.
[0088] The following continues to describe by taking SF2 as the first service node and SF2 Proxy as the proxy node corresponding to the first service node as an example.
[0089] When the first proxy node SF2 Proxy determines that the first service node SF2 is in the bypass state, the target address field of the received first message can be modified to the proxy segment identifier of SF3 Proxy to obtain the target message. Then, the target message can be sent to the second proxy node SF3 Proxy, thereby skipping the first service node SF2 in the bypass state and handing the target message to the second proxy node SF3Proxy for processing.
[0090] Figure 4 Another schematic diagram of a service chain is shown as an example. Figure 4 As shown, after receiving the first message, the first proxy node SF2 Proxy will not send the first message to the first service node SF2 for business processing, but will modify the target address field to the target message of SF3 Proxy and send it to the second proxy node SF3 Proxy, and the second proxy node SF3Proxy will perform the next processing flow.
[0091] In another optional implementation, after the first proxy node determines that the first service node is not in the bypass state, the first proxy node may send the payload portion of the first message to the first service node, and the first service node performs service processing.
[0092] In some embodiments, if the network quality of the first service node SF2 returns to normal, the bypass mark of the local proxy segment identifier may be deleted accordingly, thereby indicating that the first service node SF2 returns to a normal service processing state from a bypass state.
[0093] Figure 5 An interactive flow chart is exemplarily shown in which a first proxy node performs a dial test on a first service node according to a second dial test message to obtain a second dial test result of the first service node. Figure 5 As shown, the process may include the following steps:
[0094] Step S1041: The first proxy node continuously sends a second dialing message to the first service node within a preset time period.
[0095] In some embodiments, the preset duration may be the same as that set when dialing the first service node SF2 according to the first dialing message. For example, the first proxy node SF2 Proxy may continue to send the second wave of dialing messages to the first service node SF2 within 3 seconds. At the same time, the first proxy node SF2 Proxy may record the sending timestamp of the second dialing message.
[0096] In some other embodiments, the preset duration may also be different from the duration set when dialing the first service node SF2 according to the first dialing message. For example, the preset duration may also be set to 4 seconds.
[0097] Step S1042: The first service node sends a second response message to the first proxy node in response to the second dial test message.
[0098] After receiving the second dial detection message sent by the first proxy node SF2 Proxy, the first service node SF2 processes the first dial detection message, and sends a second response message to the first proxy node SF2 Proxy after the processing is completed.
[0099] Step S1043: If the number of timeout messages in the second response message received by the first proxy node is less than the second number threshold, it is determined that the second dialing test result is that the first service node is not in the bypass state.
[0100] After receiving the second response message, the first proxy node SF2 Proxy records the receiving timestamp of the second response message, thereby determining the time interval between the receiving time of the second response message and the sending time of the second dial test message. If the time interval is greater than the preset second time interval, the second response message is considered to be a timeout message. If the number of timeout messages is less than the second number threshold within the preset time length, it can be considered that the second dial test result shows that the network quality of the first service node SF2 has returned to normal, and at this time, the first service node SF2 is not in a bypass state.
[0101] Furthermore, if the second dial test result indicates that the first service node SF2 is not in the bypass state, the bypass mark of the local proxy segment identifier may be deleted, thereby indicating that the first service node SF2 has resumed the normal service processing state and can perform service processing.
[0102] It should be noted that the above only uses the example of the first proxy node being SF2 Proxy. In some embodiments, the first proxy node in the service chain bypass method provided in the present application can be any one of SF1Proxy, SF2Proxy, and SF3Proxy, and the corresponding first service node is the service node corresponding to the proxy node. In specific implementation, some or all of the service nodes in the service chain can be configured according to actual usage requirements, and the present application does not limit this.
[0103] The service chain bypass method provided in the embodiment of the present application generates a first dial test message in response to a first dial test request for a first service node in a service chain, and performs a dial test on the first service node according to the first dial test message to obtain a dial test result of the first service node. If the dial test result indicates that the first service node is in a bypass state, bypass processing is performed on the received first message, and the network quality of the service chain can be actively detected by performing a dial test on the first service node. As a result, not only can the service chain bypass be triggered when a service node in the service chain fails, but the service chain bypass can also be triggered in a timely manner 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, an embodiment of the present 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 dialing unit 601 is used to generate a first dialing message in response to a first dialing request for a first service node in a service chain, where the first service node is a service node corresponding to the first proxy node; perform a dialing test on the first service node according to the first dialing message to obtain a first dialing test result of the first service node, where the first dialing test result is used to indicate whether the first service node is in a bypass state.
[0106] Receiving unit 602, for receiving a first message, and determining whether the first service node is in a bypass state.
[0107] The processing unit 603 is configured to perform bypass processing on the first message according to the path information included in the first message if the message is in the bypass state.
[0108] In a possible implementation manner, the processing unit 603 is further configured to:
[0109] If the first dial test result indicates that the first service node is in a bypass state, adding a bypass mark to the local proxy segment identifier;
[0110] Determining whether the first service node is in a bypass state includes:
[0111] It is determined whether the local proxy segment identifier is set with a bypass flag, and if so, it is determined that the first service node is in a bypass state.
[0112] In a possible implementation manner, the dialing unit 601 is specifically configured to:
[0113] Continuously sending a first dial test message to the first service node within a preset time period, and receiving a first response message from the first service node to the first dial test message;
[0114] If the number of timeout messages in the received first response message is greater than the first number threshold, the first dial test result is determined to be that the first service node is in bypass state; wherein the time interval between the time when the timeout message is received and the time when the first dial test message is sent is greater than the first time threshold.
[0115] In a possible implementation manner, the dialing unit 601 is further configured to:
[0116] In response to a second dial test request for the first service node, generating a second dial test message;
[0117] Performing a dial test on the first service node according to the second dial test message to obtain a second dial test result of the first service node, where the second dial test result is used to indicate whether the first service node is in a bypass state;
[0118] If the second dial test result indicates that the first service node is not in the bypass state, the bypass mark of the local agent segment identifier is deleted.
[0119] In a possible implementation manner, the processing unit 603 is specifically configured to:
[0120] 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 a proxy segment identifier of a second proxy node, the second proxy node is a proxy node of a second service node, and the second service node is a next service node adjacent to the first service node in the service chain;
[0121] The target message is sent according to the proxy segment identifier of the second proxy node.
[0122] In a possible implementation manner, the processing unit 603 is further configured to:
[0123] If it is not in the bypass state, sending the payload part of the first message to the first service node.
[0124] Based on the same inventive concept, an embodiment of the present application further provides an electronic device, which includes at least a memory and a processor for storing data, wherein, for the processor for data processing, when executing the processing, a microprocessor, a CPU, a GPU (Graphics Processing Unit), a DSP or an FPGA can be used for implementation. For the memory, an operation instruction is stored in the memory, and the operation instruction can be a computer executable code, and each step in the process of building a service chain bypass method in the above embodiment of the present application is implemented by the operation instruction.
[0125] Figure 7 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application, the electronic device may be a first proxy node in an embodiment of the present 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, the processor 702 and the data acquisition module 703 are all connected via the bus 704, and the bus 704 is used to transmit data between the memory 701, the processor 702 and the data acquisition module 703.
[0126] Among them, the memory 701 can be used to store software programs and modules, and 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 provided in the embodiment of the present application. The memory 701 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application 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 a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0127] The processor 702 is the control center of the electronic device 700, and uses the bus 704 and various interfaces and lines to connect various parts of the entire electronic device 700, and 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 calling data stored in the memory 701. Optionally, the processor 702 may include one or more processing units, such as a CPU, a GPU (Graphics Processing Unit), a digital processing unit, etc.
[0128] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer program is executed by a processor, it can be used to implement the service chain bypass method recorded in any embodiment of the present application.
[0129] In some possible implementations, various aspects of the method for constructing a service chain bypass provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of constructing a service chain bypass according to various exemplary embodiments of the present application described above in this specification. For example, the computer device may execute the following steps: Figure 1 The process of the service chain bypass method is shown.
[0130] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0131] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0134] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these 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 dial test request for a first service node in the service chain, generating a first dial test message, the first service node being a service node corresponding to the first proxy node; Performing a dial test on the first service node according to the first dial test message to obtain a first dial test result of the first service node, where the first dial test result is used to indicate whether the first service node is in a bypass state; receiving a first message, and determining whether the first service node is in a bypass state; If it is in the bypass state, bypass processing is performed on the first message according to the path information included in the first message.
2. The method according to claim 1, characterized in that After obtaining the first dialing test result of the first service node, the method further includes: If the first dial test result indicates that the first service node is in a bypass state, adding a bypass mark to the local agent segment identifier; The determining whether the first service node is in a bypass state includes: It is determined whether the local proxy segment identifier is set with a bypass flag, and if so, it is determined that the first service node is in a bypass state.
3. The method according to claim 1, characterized in that The dialing test on the first service node according to the first dialing test message to obtain a first dialing test result of the first service node includes: Continue to send the first dial test message to the first service node within a preset time period, and receive a first response message from the first service node to the first dial test message; If the number of timeout messages in the received first response message is greater than a first number threshold, it is determined that the first dial test result is that the first service node is in a bypass state; wherein the time interval between the reception time of the timeout message and the sending time of the first dial test message is greater than a first time threshold.
4. The method according to claim 2, characterized in that: After adding a bypass mark to the local proxy segment identifier, the method further includes: In response to a second dial test request for the first service node, generating a second dial test message; Performing a dial test on the first service node according to the second dial test message to obtain a second dial test result of the first service node, where the second dial test result is used to indicate whether the first service node is in a bypass state; If the second dial test result indicates that the first service node is not in a bypass state, the bypass mark of the local agent segment identifier is deleted.
5. The method according to claim 1, characterized in that The bypass processing of the first message according to the path information included in the first message includes: Modify the target address field of the path information included in the first message to obtain a target message, where the target address field of the target message includes a proxy segment identifier of a second proxy node, where the second proxy node is a proxy node of a second service node, and the second service node is a 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.
6. 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 it is not in the bypass state, sending the payload part of the first message to the first service node.
7. A service chain bypass device, characterized in that: The device comprises: A dialing unit, configured to generate a first dialing message in response to a first dialing request for a first service node in a service chain, wherein the first service node is a service node corresponding to the first proxy node; perform a dialing test on the first service node according to the first dialing message to obtain a first dialing result of the first service node, wherein the first dialing result is used to indicate whether the first service node is in a bypass state; A receiving unit, configured to receive a first message and determine whether the first service node is in a bypass state; A processing unit is used to perform bypass processing on the first message according to the path information included in the first message if it is in the bypass state.
8. The device according to claim 7, characterized in that The processing unit is further used for: If the first dial test result indicates that the first service node is in a bypass state, adding a bypass mark to the local agent segment identifier; The determining whether the first service node is in a bypass state includes: It is determined whether the local proxy segment identifier is set with a bypass flag, and if so, it is determined that the first service node is in a bypass state.
9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the computer program is executed by the processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method, device and bypass networking structure for locally sharing bypass flow
CN102904827A
Dial test task execution method and device, storage medium and electronic device
CN114760235A
Centralized segment routing dataplane based backup path validation
US20180359176A1
LSP ping and traceroute for bypass tunnels
US7937492B1