SF fault switching method and network equipment

By configuring multiple End.AS in the SFF device, automatic switching of SF faults in the SRv6 SFC service chain network is realized, which solves the problem that messages cannot be forwarded in normal logical order, simplifies the processing process, saves resources, and improves efficiency. Network stability and efficiency.

CN118555191AActive Publication Date: 2024-08-27NEW H3C TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410833510.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-08-27
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

In the SRv6 SFC service chain network, when the service node SF fails, packets cannot be forwarded in the normal logical order, and the SF failover scenario in the existing technology requires multiple SFF devices, which increases the packet processing process and wastes resources.

Method used

By configuring multiple End.AS in the SFF device, dual-homing access to multiple SF devices is achieved. When a main SF link failure is detected, it is automatically switched to the backup SF, simplifying the message processing process and saving SFF device resources. .

Benefits of technology

It implements the automatic switching function of SF failover, simplifies the message processing process, avoids multiple decapsulation of messages between SFF devices, saves resources, and improves network stability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555191A
    Figure CN118555191A
Patent Text Reader

Abstract

The present specification provides an SF failover method and a network device, the method comprising: at least a first End.AS and a second End.AS are configured in an SFF device, the first End.AS and the second End.AS respectively correspond to a first SF and a second SF, and when the SFF device detects that a link reaching the first SF has a fault, the first End.AS is set in a first state. Through the method, the SC equipment can acquire the link conditions of the first SF and the second SF, and can send the service message to the second SF through the SFF when acquiring that the link of the first SF (main SF) has a fault.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method and network device for SF fault switching. Background Art

[0002] In order to meet the needs of user business security and stability, when data packets are transmitted in the network, they often need to pass through various service nodes in sequence according to business logic, such as firewalls, intrusion prevention systems, application accelerators, and address translation (Network Address Translation). SRv6SFC (Service Function Chain) is a technology that adds SRv6 path information to the original message to guide the message to pass through the application layer service device in sequence along the specified path. SRv6 SFC technology can easily meet the above requirements.

[0003] The SRv6 SFC service chain network includes the following roles:

[0004] SC (Service Classifier): Located at the edge of the SRv6 SFC service chain network, it is the source node of the service chain path. The SC can use different traffic diversion methods to introduce service data into the SRv6 TE Policy tunnel for forwarding.

[0005] SF (Service Function): A node that provides specific application services for business traffic. An application service node that cannot identify SRv6 messages is called an SRv6-unaware SF, and an application service node that can identify SRv6 messages is called an SRv6-aware SF.

[0006] SFF (Service Function Forwarder): As the service chain agent of SF, SFF forwards the received message to several SFs associated with SFF according to SRv6 encapsulation information. After SF processes the message, it returns the message to SFF, and SFF decides whether to continue forwarding the message.

[0007] In the absence of any protection, when SF is unreachable, the message that needs to be processed by the application service node SF will be discarded after reaching the SFF device. The message can neither be forwarded in the normal logical order nor processed by the application service node. Summary of the invention

[0008] To overcome the problems existing in the related art, this specification provides a SF fault switching method and a network device.

[0009] According to a first aspect of an embodiment of this specification, a method for application service node SF failure switching is provided, the method being applied to a service chain forwarding node SFF device in an SRv6 SFC service chain network, the method comprising:

[0010] The SFF device is configured with at least a first End.AS and a second End.AS, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively;

[0011] When the SFF device detects that a link to the first SF is faulty, the first End.AS is placed in the first state, so that the SFF device sends the message to the second SF through the second End.AS after receiving the message sent by the service classification node SC.

[0012] The SFF device is configured with at least a first End.AS and a second End.AS, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively, including:

[0013] The SFF device is dual-homed to the first SF and the second SF, a first End.AS is configured for the link accessing the first SF, and a second End.AS is configured for the link accessing the second SF.

[0014] When the SFF device detects that a link to the first SF is faulty, placing the first End.AS in the first state includes:

[0015] The SFF device detects the link status between the first SF and the second SF through NQA or ICMP;

[0016] When it is detected that a fault exists in the link to the first SF, the first End.AS corresponding to the first SF is placed in a first state, where the first state is used to indicate a DOWN state.

[0017] It can be seen from the above method that SFF can dual-home (multi-home) multiple SF devices. When a link failure to the first SF (primary SF) is detected, the second SF can be switched and started, thereby realizing the switching of the primary and backup links and simplifying the message processing flow. Compared with the SF dual-home protection scenario and the Bypass protection scenario, one SFF device is saved and the networking is simplified.

[0018] According to a second aspect of an embodiment of this specification, a method for application service node SF failure switching is provided, the method being applied to a service classification node SC device in an SRv6 SFC service chain network, the method comprising:

[0019] Configure a Srv6 policy, where the Srv6 policy corresponds to a first End.AS and a second End.AS in the SFF device, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively;

[0020] Detect the link reachability of the first SF corresponding to the first End.AS and the second SF corresponding to the second End.AS through SBFD packets;

[0021] When it is detected that the link to the first SF is unreachable, a service message is sent to the second SF.

[0022] The configuration of Srv6 policy includes:

[0023] Configure the first Srv6 policy and the second Srv6 policy;

[0024] The first Srv6 policy corresponds to the first End.AS, and the second Srv6 policy corresponds to the second End.AS.

[0025] When it is detected that the link to the first SF is unreachable, sending a service message to the second SF includes:

[0026] When it is detected that the link to the first SF is unreachable, a service message is sent to the second SF through the second Srv6 policy.

[0027] It can be seen from the above embodiments that the SC device can obtain the link status to the first SF and the second SF, and when it is known that the link to the first SF (primary SF) has a fault, it can send the service message to the second SF through the SFF.

[0028] According to a third aspect of an embodiment of this specification, a network device is provided, wherein the network device is configured as a service chain forwarding node SFF device in an SRv6 SFC service chain network, and the network device includes:

[0029] A configuration module, configured to configure a first End.AS and a second End.AS, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively;

[0030] The detection module is used to detect whether there is a fault in the link reaching the first SF and the second SF, and when it is detected that there is a fault in the link reaching the first SF, the first End.AS is placed in the first state, so that the SFF device sends the message to the second SF through the second End.AS after receiving the message sent by the service classification node SC.

[0031] The configuration module is used for dual-homing access to the first SF and the second SF, configuring a first End.AS for the link of the first SF, and configuring a second End.AS for the link of the second SF.

[0032] A detection module, used for detecting the link status between the first SF and the second SF through NQA or ICMP;

[0033] When it is detected that a fault exists in the link to the first SF, the first End.AS corresponding to the first SF is placed in a first state, where the first state is used to indicate a DOWN state.

[0034] According to a third aspect of an embodiment of this specification, a network device is provided, wherein the network device is configured as a service classification node SC device in an SRv6 SFC service chain network, and the network device includes:

[0035] A configuration module, used to configure a Srv6 policy, wherein the Srv6 policy corresponds to a first End.AS and a second End.AS in the SFF device, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively;

[0036] A detection module, used to detect the link reachability of the first SF corresponding to the first End.AS and the second SF corresponding to the second End.AS through SBFD packets;

[0037] The sending module is used to send a service message to the second SF when detecting that the link to the first SF is unreachable.

[0038] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.

[0040] Figure 1 It is a schematic diagram of a network architecture of SF dual-homing protection according to an exemplary embodiment of this specification.

[0041] Figure 2The figure is a schematic diagram of a bypass protection network architecture according to an exemplary embodiment of the present specification.

[0042] Figure 3 It is a flowchart of a method for application service node SF failure switching according to an exemplary embodiment of this specification.

[0043] Figure 4 It is a schematic diagram of a network architecture shown in this specification according to an exemplary embodiment. DETAILED DESCRIPTION

[0044] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.

[0045] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0046] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0047] like Figure 1As shown in the figure, in the current SF dual-homing protection scenario, when SFF 1 detects that SF is unreachable from SFF 1, SFF1 decapsulates the message, removes the original IPv6 and SRH message headers, and re-capsulates the IPv6 and SRH headers according to the configuration, where the SID list in the SRH header contains the backup End.ASSID X2 and the End SID C of SFF 2. The destination address of the IPv6 header is C, and SFF 1 checks the routing table to forward the encapsulated message to the dual-homing backup node SFF 2. After the message reaches SFF 2, if SFF 2 is reachable from SF, the message is processed according to the forwarding process of the normal SRv6 SFC service chain static agent; if SFF 2 is unreachable from SF, the message is discarded.

[0048] like Figure 2 As shown, in the bypass protection scenario, there is a bypass protection service node SF 2 of SF 1 in the SFC network, SF 1 is single-home connected to SFF 1, and the bypass protection service node SF 2 is single-home connected to SFF 2.

[0049] When SFF 1 detects that SF is unreachable from SFF 1, SFF 1 decapsulates the message, removes the original IPv6 and SRH message headers, and re-capsulates the IPv6 header according to the configuration, where the IPv6 destination address is C. SFF 1 checks the routing table and forwards the encapsulated message to SFF 2. After receiving the message, SFF 2 processes the message according to the normal SRv6SFC service chain static proxy forwarding process.

[0050] From the above SF dual homing protection scenario and bypass protection scenario, it can be seen that no matter in dual homing scenario or bypass scenario, when SF fails, SFF1 will forward the message to the next SFF2 device for processing, and the message will be decapsulated on SFF1, and the original IPv6 and SRH headers will be removed. On SFF2, the message will be decapsulated again and the original message will be forwarded to SF for processing. In this way, the message is decapsulated twice, which increases the message processing process. At the same time, two SFF devices are required, which wastes SFF device resources.

[0051] In order to solve the above technical problems, the embodiment of the present disclosure provides a method for application service node SF fault switching, the method is applied to the service chain forwarding node SFF device in the SRv6 SFC service chain network, such as Figure 3 As shown, the method includes:

[0052] S301: The SFF device is configured with at least a first End.AS and a second End.AS, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively;

[0053] S302: When the SFF device detects that a link to the first SF is faulty, the first End.AS is placed in a first state, so that the SFF device sends a message to the second SF through the second End.AS after receiving the message sent by the service classification node SC.

[0054] In step S301, multiple End.AS can be configured in the SFF device, and the number of End.AS corresponds to the number of SF. Figure 4 As shown, if there are two SFs, two End.AS are configured accordingly, namely a first End.AS and a second End.AS, wherein the first End.AS is set to correspond to the first SF, namely End.ASSID=X1, and the second End.AS is set to correspond to the second SF, namely End.ASSID=X2.

[0055] In this embodiment, the SFF device is accessed via a dual-homing mode with the first SF and the second SF (not limited to only two SFs, a third SF and a fourth SF may exist in actual applications), and a first End.AS is configured for the link accessing the first SF, and a second End.AS is configured for the link accessing the second SF.

[0056] In step S302, the SFF device can detect the link status from itself to the first SF and the second SF through NQA or ICMP, and configure the status for the first End.AS and the second End.AS according to the detection result. For example, in this example, the first status is set to the DOWN status and the second status is set to the UP status. Under normal circumstances, if the detection result of the SFF detecting the first End.AS and the second End.AS is normal, the second status is configured for the first End.AS and the second End.AS. If the detection result of the SFF detecting the first End.AS or the second End.AS is abnormal, the first status is configured for the abnormal End.AS.

[0057] In one embodiment, assuming that the first SF is the main SF and the second SF is the backup SF, when the SFF detects that the link to the first SF is abnormal, the first End.AS is placed in the first state, and at the same time, when the SFF detects that the link to the second SF is normal, the second End.AS is placed in the first state, thereby completing the main-backup switching action.

[0058] The state can be represented by the forward-state attribute. When in the first state, the forward-state attribute is set to DOWN, and when in the second state, the forward-state attribute is set to UP.

[0059] In this embodiment, after the SFF receives a service message sent from the SC device, if the state of the first End.AS of the first SF (assuming it is the main SF) is the first state, the SFF sends the service message to the first SF for processing; if the state of the first End.AS of the first SF (assuming it is the main SF) is the first state, the SFF sends the service message to the second SF for processing.

[0060] It can be seen from the above embodiments that the SFF device is connected to multiple SFs, and by configuring an End.AS for each SF, the link switching capability to the primary and backup SFs is achieved with one SFF, which saves the technical problem of requiring at least two SFFs in the SF dual-homing protection scenario and the Bypass protection scenario in the prior art.

[0061] The embodiment of the present disclosure also provides a method for application service node SF fault switching, the method is applied to a service classification node SC device in an SRv6 SFC service chain network, the method comprising:

[0062] Configure a Srv6 policy, where the Srv6 policy corresponds to a first End.AS and a second End.AS in the SFF device, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively;

[0063] Detect the link reachability of the first SF corresponding to the first End.AS and the second SF corresponding to the second End.AS through SBFD packets;

[0064] When it is detected that the link to the first SF is unreachable, a service message is sent to the second SF.

[0065] In this embodiment, a Srv6 policy may be configured from the SC to the SFF, the SC sends a service message through the Srv6 policy, and the SFF may send the service message to the first SF or the second SF according to the link status of the first SF and the second SF.

[0066] In other embodiments, the SC configures a corresponding number of Srv6 policies according to the number of SFs. For example, when there are a first SF and a second SF, the SC can configure a first Srv6 policy and a second Srv6 policy, wherein the first Srv6 policy corresponds to a first End.AS, and the second Srv6 policy corresponds to a second End.AS.

[0067] At the same time, the SC can send SBFD messages through each Srv6 policy to detect link connectivity. Assuming that the SFF detects that there is an abnormality in the link to the first SF, the state of the first End.AS is set to the first state. At this time, the SFF will discard the message sent to the first SF.

[0068] When the SBFD message sent by the SC through the first Srv6 policy is discarded on the SFF, the SC can determine that there is an abnormality in the link from the SFF to the first SF. At this time, if the SC wants to send a service message, it is sent to the SFF through the second Srv6 policy.

[0069] After the SFF receives the service message through the second Srv6 policy, the SFF sends the service message to the second SF through the second End.AS.

[0070] It can be seen from the above embodiments that the SC can configure multiple Srv6 policies, and different Srv6 policies correspond to the links from the SFF to different SFs, thereby realizing the function of the SC performing link switching according to the link conditions of the primary and backup SFs.

[0071] Based on the above method embodiments, the embodiment of the present disclosure further provides a network device, wherein the network device is configured as a service chain forwarding node SFF device in an SRv6 SFC service chain network, and the network device includes:

[0072] A configuration module, configured to configure a first End.AS and a second End.AS, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively;

[0073] The detection module is used to detect whether there is a fault in the link reaching the first SF and the second SF, and when it is detected that there is a fault in the link reaching the first SF, the first End.AS is placed in the first state, so that the SFF device sends the message to the second SF through the second End.AS after receiving the message sent by the service classification node SC.

[0074] The configuration module is used for dual-homing access to the first SF and the second SF, configuring a first End.AS for the link of the first SF, and configuring a second End.AS for the link of the second SF.

[0075] The detection module is used to detect the link status between the first SF and the second SF through NQA or ICMP;

[0076] When it is detected that a fault exists in the link to the first SF, the first End.AS corresponding to the first SF is placed in a first state, where the first state is used to indicate a DOWN state.

[0077] The embodiment of the present disclosure further provides a network device, wherein the network device is configured as a service classification node SC device in an SRv6 SFC service chain network, and the network device includes:

[0078] A configuration module, used to configure a Srv6 policy, wherein the Srv6 policy corresponds to a first End.AS and a second End.AS in the SFF device, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively;

[0079] A detection module, used to detect the link reachability of the first SF corresponding to the first End.AS and the second SF corresponding to the second End.AS through SBFD packets;

[0080] The sending module is used to send a service message to the second SF when detecting that the link to the first SF is unreachable.

[0081] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0082] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0083] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention claimed herein. The specification is intended to cover any variations, uses or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not claimed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.

[0084] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

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

Claims

1. A method for application service node SF fault switching, characterized in that: The method is applied to a service chain forwarding node SFF device in an SRv6 SFC service chain network, and the method includes: The SFF device is configured with at least a first End.AS and a second End.AS, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively; When the SFF device detects that a link to the first SF is faulty, the first End.AS is placed in the first state, so that the SFF device sends the message to the second SF through the second End.AS after receiving the message sent by the service classification node SC.

2. The method according to claim 1, characterized in that The SFF device is configured with at least a first End.AS and a second End.AS, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively, including: The SFF device is dual-homed to the first SF and the second SF, a first End.AS is configured for the link accessing the first SF, and a second End.AS is configured for the link accessing the second SF.

3. The method according to claim 1, characterized in that When the SFF device detects that a link to the first SF is faulty, placing the first End.AS in the first state includes: The SFF device detects the link status between the first SF and the second SF through NQA or ICMP; When it is detected that a fault exists in the link to the first SF, the first End.AS corresponding to the first SF is placed in a first state, where the first state is used to indicate a DOWN state.

4. A method for application service node SF fault switching, characterized in that: The method is applied to a service classification node SC device in an SRv6 SFC service chain network, and the method comprises: Configure a Srv6 policy, where the Srv6 policy corresponds to a first End.AS and a second End.AS in the SFF device, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively; Detect the link reachability of the first SF corresponding to the first End.AS and the second SF corresponding to the second End.AS through SBFD packets; When it is detected that the link to the first SF is unreachable, a service message is sent to the second SF.

5. The method according to claim 4, characterized in that The configuration of Srv6 policy includes: Configure the first Srv6 policy and the second Srv6 policy; The first Srv6 policy corresponds to the first End.AS, and the second Srv6 policy corresponds to the second End.AS.

6. The method according to claim 5, characterized in that When it is detected that the link to the first SF is unreachable, sending a service message to the second SF includes: When it is detected that the link to the first SF is unreachable, a service message is sent to the second SF through the second Srv6 policy.

7. A network device, characterized in that: The network device is configured as a service chain forwarding node SFF device in an SRv6 SFC service chain network, and the network device includes: A configuration module, configured to configure a first End.AS and a second End.AS, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively; The detection module is used to detect whether there is a fault in the link reaching the first SF and the second SF, and when it is detected that there is a fault in the link reaching the first SF, the first End.AS is placed in the first state, so that the SFF device sends the message to the second SF through the second End.AS after receiving the message sent by the service classification node SC.

8. The network device according to claim 7, characterized in that: The configuration module is used for dual-homing access to the first SF and the second SF, configuring a first End.AS for the link of the first SF, and configuring a second End.AS for the link of the second SF.

9. The network device according to claim 7, characterized in that: A detection module, used for detecting the link status between the first SF and the second SF through NQA or ICMP; When it is detected that a fault exists in the link to the first SF, the first End.AS corresponding to the first SF is placed in a first state, where the first state is used to indicate a DOWN state.

10. A network device, characterized in that: The network device is configured as a service classification node SC device in an SRv6 SFC service chain network, and the network device includes: A configuration module, used to configure a Srv6 policy, wherein the Srv6 policy corresponds to a first End.AS and a second End.AS in the SFF device, wherein the first End.AS and the second End.AS correspond to a first SF and a second SF respectively; A detection module, used to detect the link reachability of the first SF corresponding to the first End.AS and the second SF corresponding to the second End.AS through SBFD packets; The sending module is used to send a service message to the second SF when detecting that the link to the first SF is unreachable.

Citation Information

Patent Citations

  • Protection switching method and protection switching system for dual-homed link of Ethernet

    CN101964718A

  • Method and device for Ethernet transmission path switching, and Ethernet system

    CN105530181A

  • Method for forwarding message in SRv6 service chain, SFF and SF equipment

    CN113691448A

  • Message forwarding method and network equipment

    CN114374634A

  • Message transmission method, apparatus and device, and readable storage medium

    CN116436907A