WO2023197644A1 - Cross-segmented network fault detection method, and communication system and related apparatus - Google Patents

Cross-segmented network fault detection method, and communication system and related apparatus Download PDF

Info

Publication number
WO2023197644A1
WO2023197644A1 PCT/CN2022/138069 CN2022138069W WO2023197644A1 WO 2023197644 A1 WO2023197644 A1 WO 2023197644A1 CN 2022138069 W CN2022138069 W CN 2022138069W WO 2023197644 A1 WO2023197644 A1 WO 2023197644A1
Authority
WO
WIPO (PCT)
Prior art keywords
bfd
forwarding node
status
group
session
Prior art date
Application number
PCT/CN2022/138069
Other languages
French (fr)
Chinese (zh)
Inventor
李大成
生绪博
曾海飞
成名
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202210657604.8A external-priority patent/CN116980952A/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023197644A1 publication Critical patent/WO2023197644A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications

Definitions

  • Embodiments of the present application relate to the field of communication technology, and in particular to a fault detection method across segmented networks, a communication system and related devices.
  • communication networks can be divided into multiple segmented networks. Different segmented networks are used to carry different services. For example, two adjacent segmented networks can be used to carry the segment routing policy (Segment Routing IPv6 Policy, SRv6 policy) service based on the sixth generation network protocol and the shortest path (Segment Routing IPv6 Policy, SRv6 policy) based on the sixth generation network protocol respectively. Segment Routing IPv6 Best Effort, SRv6 BE) business, or used to carry virtual leased line (Virtual Leased Line, VLL) business and virtual private line service (Virtual Private Lan Service, VPLS) business respectively. Among them, multiple edge forwarding nodes are deployed between adjacent segmented networks.
  • Any edge forwarding node is used to divert the packet flow in the upper-level segmented network to the next-level segmented network, thereby realizing the packet flow.
  • Transmission across segmented networks In the scenario of transmitting message flows across segmented networks, how to detect faults across segmented networks is a current research hotspot.
  • the edge forwarding node may correspond to multiple paths in the next-level segment network. This is A path is used to forward the packet flow received from the target incoming interface within the next-level segmented network. Each of these multiple paths is configured with a bidirectional forwarding detection (BFD) session. When the status of the BFD session on any path is down, the status of the target incoming interface is triggered to be updated to the down status. When the forwarding node in the upper-level segmented network detects that the status of the target incoming interface is down, it can determine that there is a fault in the lower-level segmented network. However, this method of fault detection is less flexible.
  • BFD bidirectional forwarding detection
  • Embodiments of the present application provide a fault detection method, communication system and related devices across segmented networks, which can improve the flexibility of fault sensing across segmented networks.
  • the technical solutions are as follows:
  • a fault detection method across segmented networks is provided.
  • the method is applied to a communication system.
  • the communication system includes a first forwarding node and a second forwarding node.
  • the first forwarding node is a first segmented network and a second forwarding node.
  • the edge node between the two segmented networks, the second forwarding node is located within the first segmented network.
  • the first forwarding node obtains the status of the BFD group.
  • the BFD group includes the BFD session of each of the multiple paths corresponding to the first forwarding node in the second segment network.
  • the BFD session is used to detect the corresponding Path failure: the first forwarding node notifies the second forwarding node of multiple path failures based on the status of the BFD group.
  • the first forwarding node notifies the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group.
  • the BFD group includes BFD sessions of multiple paths, multi-point fault detection within the second segmented network can be implemented, which improves the flexibility of fault detection.
  • BFD sessions can be deployed on any form of link such as physical links, pseudo-wires (pseudo-wires), tunnels, etc.
  • the fault detection method provided by the embodiments of this application can realize the detection of physical outbound interfaces and logical outbound interfaces. Fault detection on the path corresponding to the interface improves the scope of fault detection.
  • the implementation process for the first forwarding node to obtain the status of the BFD group may be: when each BFD session in the BFD group is in a closed state, The status of the BFD group obtained by a forwarding node is the closed state; when the status of at least one BFD session in the BFD group is the open state, the status of the BFD group obtained by the first forwarding node is the open state.
  • the status of the BFD group provided by the embodiment of the present application can indicate whether there is a BFD session in the BFD group whose status is closed, or in other words , can indicate whether all BFD sessions in the BFD group are closed. This is so that the fault conditions of multiple paths can be subsequently notified to the second forwarding node based on the status of the BFD group.
  • the implementation process of the first forwarding node notifying the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group may be: the first forwarding node based on The status of the BFD group and the process of processing the upper-level BFD session.
  • the upper-level BFD session is used to detect the failure of the path between the first forwarding node and the second forwarding node.
  • the first forwarding node can link the upper-level BFD session to notify the fault conditions of multiple paths based on the status of the BFD group. On the one hand, it will not cause too much change to the existing network and improve the embodiment of the present application. compatibility. On the other hand, linking the upper-level BFD session to notify the fault conditions of multiple paths can enable the second forwarding node to quickly detect faults, which is beneficial to the second forwarding node to quickly change paths.
  • the first forwarding node can implement the process of processing the upper-level BFD session based on the status of the BFD group as follows: If the status of the BFD group is closed status, the first forwarding node does not send the first BFD message to the second forwarding node. Correspondingly, if the status of the BFD group is open, the first forwarding node sends the first BFD message to the second forwarding node.
  • Both parties in a BFD session periodically send BFD packets so that the other end can determine whether a fault exists based on the reception of BFD packets. Therefore, when the first forwarding node periodically sends BFD packets to the second forwarding node, if it detects that the status of the BFD group is closed, it will no longer send BFD packets to the second forwarding node, so that the second forwarding node The node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault on the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session, achieving cross-bundling Fault detection on segmented networks.
  • the first forwarding node can implement the process of processing the upper-level BFD session based on the status of the BFD group as follows: If the status of the BFD group is closed status, the first forwarding node sets the status of the upper-level BFD session to the closed state, and sends a status notification message to the second forwarding node.
  • the status notification message indicates that the status of the upper-level BFD session is closed.
  • the first forwarding node does not perform the operation of setting the upper-level BFD session status to the closed state.
  • the first forwarding node In a BFD session, the first forwarding node has the ability to directly set the BFD session status to the closed state and advertise the BFD session status. Therefore, if the first forwarding node detects that the status of the BFD group is closed, it directly sets the status of the upper-level BFD session to the closed state, and sends a status notification message to the second forwarding node. In this way, the second forwarding node will It is detected that there is a fault in the upper-level BFD session, that is, it is detected that there is a fault on the first forwarding node, so that the fault conditions of multiple paths are passed to the first forwarding node through the upper-level BFD session, achieving cross-segment network fault detection.
  • the implementation process of processing the upper-level BFD session may be: after receiving the message from the second forwarding node
  • the first forwarding node discards the second BFD packet and does not update the BFD packets received in the current BFD detection cycle based on the second BFD packet.
  • Quantity operations if the status of the BFD group is open, the first forwarding node updates the number of BFD packets received in the current BFD detection cycle based on the second BFD packet.
  • the first forwarding node In a BFD session in asynchronous mode, if the first forwarding node receives a BFD packet sent by the second forwarding node, it does not update the number of BFD packets received in the current BFD detection cycle (that is, discards the received BFD packets). message), then when the current detection cycle is reached, the number of BFD packets counted by the first forwarding node will not reach the required number. At this time, the first forwarding node determines that the status of the upper-level BFD session is closed. and sends a status notification message to the second forwarding node.
  • the second forwarding node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault in the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session. , to achieve fault detection across segmented networks.
  • the implementation process of processing the upper-level BFD session may be: after receiving the message from the second forwarding node
  • the first forwarding node discards the third BFD packet and does not perform the operation of returning the third BFD packet to the second forwarding node.
  • the first forwarding node returns the third BFD packet to the second forwarding node.
  • the second forwarding node In a BFD session or SBFD session in query mode, if the first forwarding node does not return the BFD message to the second forwarding node when receiving the BFD message sent by the second forwarding node, the second forwarding node will The BFD packet returned by the first forwarding node cannot be received. In this way, the second forwarding node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault in the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session. , to achieve fault detection across segmented networks.
  • the upper-level BFD session is a BFD session in asynchronous mode, a BFD session in query mode or a seamless bidirectional forwarding detection SBFD session.
  • the upper-level BFD sessions linked in this embodiment of the present application include BFD sessions specified in various standard protocols, which improves the flexibility of fault sensing across segmented networks.
  • the first forwarding node can also obtain the BFD group; the first forwarding node determines the corresponding relationship between the BFD group and the upper-level BFD session. .
  • the implementation process of the first forwarding node notifying the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group may be: the first forwarding node
  • the second forwarding node sends a fault notification message, and the fault notification message is used to notify the second forwarding node of fault conditions of multiple paths.
  • faults can also be reported separately through fault notification messages. Improved flexibility in fault awareness across segmented networks.
  • the fault notification message carries the status of the BFD group.
  • the second forwarding node can quickly determine fault conditions of multiple paths based on the fault notification message.
  • the first forwarding node before the first forwarding node obtains the status of the BFD group, the first forwarding node can also periodically obtain the BFD session status of each path in the multiple paths; The first forwarding node periodically updates and stores the status of the BFD group based on the BFD session status of each of the multiple paths.
  • the implementation process for the first forwarding node to obtain the status of the BFD group may be: the first forwarding node obtains the stored status of the BFD group.
  • the first forwarding node can periodically determine and store the status of the BFD group in advance, so that the second forwarding node can quickly detect faults and facilitate rapid path change by the second forwarding node.
  • the implementation process for the first forwarding node to obtain the status of the BFD group may be: the first forwarding node obtains the BFD session status of each path among the multiple paths; The first forwarding node determines the status of the BFD group based on the BFD session status of each of the multiple paths.
  • the first forwarding node may also temporarily determine the status of the BFD group. In this scenario, the first forwarding node does not need to periodically update and store the status of the BFD group, which saves the storage pressure and data processing pressure of the first forwarding node.
  • the aforementioned multiple paths are used to forward the message flow from the second forwarding node.
  • the second forwarding node can sense the failure of the path that the message flow sent by the local end may use in the second segmented network, so as to facilitate path change when a failure is detected and avoid data transmission. Packet loss.
  • the first segmented network and the second segmented network are respectively used to carry at least one of the following services: SRv6 Policy service, SRv6 BE service, VLL Services, VPLS services; the services carried by the first segment network are different from the services carried by the second segment network.
  • the cross-segmented network fault detection method provided by the embodiments of the present application can be applied in various cascaded segmented network scenarios, which improves the flexibility of the embodiments of the present application.
  • the implementation process for the first forwarding node to obtain the status of the BFD group may be: obtaining the status of the BFD group on the forwarding plane of the first forwarding node.
  • the second forwarding node can quickly perceive the fault condition of the path that the packet flow sent by the local end may use in the second segmented network, thereby facilitating the detection of the fault. Change the path when necessary to avoid data packet loss.
  • the first forwarding node notifies the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group.
  • the implementation method may be: at the first forwarding node The forwarding plane notifies the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group.
  • the second forwarding node can quickly sense the fault conditions of the paths that the packet flow sent by the local end may use in the second segmented network, thereby facilitating the detection. In case of failure, the path is changed to avoid data packet loss.
  • a communication system in a second aspect, includes a first forwarding node and a second forwarding node.
  • the first forwarding node is used to perform any method as provided in the first aspect.
  • a network device including a memory and a processor
  • Memory is used to store program instructions
  • the processor is configured to call a program stored in the memory, so that the network device executes any method provided in the first aspect.
  • a network device is provided.
  • the network device is a first forwarding node in a communication system.
  • the communication system further includes a second forwarding node.
  • the first forwarding node is a first segmented network and a second forwarding node.
  • An edge node between segmented networks, the second forwarding node is located in the first segmented network;
  • the first forwarding node includes a transceiver module and a processing module:
  • the transceiver module is configured to perform transceiver-related operations in any method provided in the first aspect
  • the processing module is configured to perform operations other than the transceiver-related operations in any method provided in the first aspect.
  • a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium. When the instructions are run on a processor, any method provided in the first aspect is implemented.
  • a computer program product includes instructions. When the instructions are run on a processor, any one of the methods provided in the first aspect is implemented.
  • Figure 1 is a schematic architectural diagram of a communication system provided by an embodiment of the present application.
  • Figure 2 is a flow chart of a cross-segmented network fault detection method provided by an embodiment of the present application
  • FIG. 3 is a schematic architectural diagram of another communication system provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of a group configuration interface provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of another group configuration interface provided by an embodiment of the present application.
  • Figure 6 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • Figure 7 is a schematic structural diagram of a device provided by an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of another device provided by an embodiment of the present application.
  • Figure 9 is a schematic architectural diagram of a communication system provided by an embodiment of the present application.
  • IP Internet Protocol
  • segmented networks are used to carry different services, so that the end-to-end packet flow forwarding process is implemented by different services, thereby improving the flexibility of the IP network.
  • This way of forwarding packet flows is also called forwarding packet flows across segmented networks.
  • segmented services specifically refer to how segmented networks forward packet flows.
  • segmented services may include SRv6 policy services, SRv6 BE services, VLL services, and VPLS services.
  • SRv6 policy services SRv6 policy services
  • SRv6 BE services SRv6 BE services
  • VLL services VLL services
  • VPLS services VPLS services
  • the upper-level segmented network can sense faults in the lower-level segmented network through protocol convergence (such as Hello messages).
  • protocol convergence such as Hello messages
  • the detection time of this fault detection method is usually at the second (s) level.
  • the transmission rate level of the message flow is gigabit per second (GB/s). In this way, within the S-level detection duration, a large number of packet loss events will occur, resulting in a large number of packet loss in end-to-end traffic.
  • embodiments of the present application provide a fault detection method across segmented networks to avoid relying on protocol hard convergence to detect faults, which may lead to a large number of packet losses in message flows.
  • Figure 1 is a schematic architectural diagram of a communication system provided by an embodiment of the present application.
  • the communication system includes a first terminal 10 and a second terminal 20, and a first segment network 30 and a second segment network 40 are deployed between the first terminal 10 and the second terminal 20.
  • the first segmented network 30 is a segmented network close to the first terminal 10
  • the second segmented network 40 is a segmented network close to the second terminal 20 .
  • Figure 1 takes two segmented networks as an example for illustration, and does not constitute a communication system provided by the embodiment of the present application. restrictions.
  • the services carried by the first segmented network 30 are called first segmented services, and the services carried by the second segmented network 40 are called second segmented services. That is, the services carried by the first segmented network 30 are called The forwarding node forwards the message flow based on the first segmented service, and the forwarding node in the second segmented network 40 forwards the message flow based on the second segmented service.
  • the first segmented network and the second segmented network are respectively used to carry at least one of the following services: SRv6 Policy service, SRv6 BE service, VLL service, and VPLS service.
  • the services carried by the first segmented network are different from the services carried by the second segmented network.
  • the first segment business and the second segment business are not limited to the above four types. Any business used to implement packet flow forwarding is within the scope of the first segment business and the second segment business. .
  • the communication system is deployed with a first forwarding node R1, a second forwarding node R2, a third forwarding node R3, a fourth forwarding node R4, a fifth forwarding node R5, a sixth forwarding node Node R6, seventh forwarding node R7.
  • the first forwarding node R1 and the fourth forwarding node R4 are edge forwarding nodes between the first segment network 20 and the second segment network 30 .
  • the second forwarding node R2 and the third forwarding node R3 are located within the first segmented network 20 .
  • the fifth forwarding node R5 and the sixth forwarding node R6 are located within the second segment network 30 .
  • the seventh forwarding node R7 is located between the second segment network 40 and the second terminal 20 .
  • the first terminal 10 is connected to the second forwarding node R2 to forward the message stream sent by the first terminal 10 to the second terminal 20 to the first segmented network 30 through the second forwarding node R2.
  • the second forwarding node R2 is also connected to the first forwarding node R1 and the third forwarding node R3 respectively, and the third forwarding node R3 is also connected to the fourth forwarding node R4.
  • the path between the second forwarding node R2 and the first forwarding node R1 may be called a primary path, and the path composed of the second forwarding node R2, the third forwarding node R3, and the fourth forwarding node R4 may be called a backup path.
  • the second forwarding node R2 when the second forwarding node R2 receives the message flow from the first terminal 10, it can send it to the edge forwarding node R1 or R4 through the main path or the backup path in Figure 1, respectively, so that the edge forwarding node R1 or R4 The packet flow is forwarded to the second segmented network 40 .
  • the first forwarding node R1 is also connected to the fourth forwarding node R4, the fifth forwarding node R5 and the sixth forwarding node R6 respectively.
  • the fourth forwarding node R4 is also connected to the fifth forwarding node R5 and the sixth forwarding node R6 respectively, and the fifth forwarding node R5 is also connected to the sixth forwarding node R6.
  • the fifth forwarding node R5 and the sixth forwarding node R6 are also connected to the seventh forwarding node R7 respectively.
  • the seventh forwarding node R7 is also connected to the second terminal 20 .
  • the first forwarding node R1 when the first forwarding node R1 receives the message flow from the second forwarding node R2, the first forwarding node R1 can forward the message through any of the three paths corresponding to the segmented service 2 in Figure 1. flow, so that the message flow reaches the second terminal 20.
  • the path between the first forwarding node R1 and the sixth forwarding node R6 the path between the first forwarding node R1 and the fifth forwarding node R5, the path between the first forwarding node R1 and the fourth forwarding node R5.
  • the paths between the forwarding nodes R4 are called the three paths corresponding to the first forwarding node R1.
  • the three paths corresponding to the first forwarding node R1 may include: paths located in the second segment network 40 and used by the first forwarding node R1 to forward the message flow from the second forwarding node R2. .
  • the fourth forwarding node R4 when the fourth forwarding node R4 receives the message flow from the second forwarding node R2, the fourth forwarding node R4 can also forward the message flow through any of the corresponding three paths, so that the message The stream reaches the second terminal 20.
  • the three paths corresponding to the fourth forwarding node R4 please refer to the relevant description of the three paths corresponding to the first forwarding node R1, which will not be described again here.
  • the second forwarding node R2 in the first segmented network 30 needs to sense the failure in order to reselect the path. To forward the packet flow from the first terminal 10 through the backup path. Among them, the second forwarding node R2 in the first segment network 30 senses the fault condition of the path corresponding to the first forwarding node R1 in the second segment network 40. This process can be called cross-segment network fault detection.
  • fault detection across segmented networks can be implemented based on BFD sessions.
  • BFD session is explained here.
  • BFD provides a universal, standard, simple and fast fault detection protocol that is independent of media and protocols.
  • the purpose of this protocol is to detect the forwarding connectivity status of the intermediate link where BFD is deployed.
  • the principle of BFD is to establish a BFD session channel based on the intermediate link between two systems or devices, and continuously and periodically send BFD packets (also called BFD detection packets) to each other on the intermediate link. Both parties have If one party does not receive the specified number of BFD messages from the opposite end within the specified time, it will consider that a certain part of the intermediate link has failed, close the BFD session channel, and delete the route and reduce/increase the path priority. and other operations to ensure traffic re-routing, thereby achieving rapid traffic switching.
  • the current technology that implements fault detection across segmented networks based on BFD sessions is mainly the "BFD trigger if-down" technology.
  • the first forwarding node R1 deploys a BFD session on each of the three corresponding paths in the second segment network 40.
  • Each BFD session is associated with the target incoming interface on the first forwarding node R1.
  • the target incoming interface is the incoming interface on the first forwarding node R1 used to receive the packet flow from the second forwarding node R2.
  • the target incoming interface will be triggered to shut down, which will trigger the second forwarding node R2 to reroute.
  • the "BFD trigger if-down" technology has the following three problems:
  • the first forwarding node R1 When any one of the three corresponding paths in the second segment network 40 fails, the first forwarding node R1 will trigger the second forwarding node R2 to sense the failure. Therefore, this fault detection method can only detect single-point faults. Single-point faults can be understood as only detecting faults on one of the paths. If a single point failure triggers the second forwarding node R2 to reroute, it will easily lead to a waste of network resources.
  • the fault detection method provided by the embodiments of the present application can realize multi-point fault detection, and the detailed implementation method will be explained in subsequent embodiments.
  • Each BFD session is associated with the target ingress interface on the first forwarding node R1, which refers to the association on the control plane. That is, when specifically detecting a fault, the control plane of the first forwarding node R1 first obtains the fault status of the BFD session of each path, and then the control plane of the first forwarding node R1 obtains the fault status of the BFD session of each path based on the fault status. Determine whether to close the target inbound interface.
  • control plane of the first forwarding node R1 determines to close the target inbound interface
  • the control plane of the first forwarding node R1 issues a close command to the forwarding plane of the first forwarding node R1, so that the first forwarding node R1
  • the forwarding plane of node R1 updates the status of the target incoming interface to the down state.
  • BFD needs to be deployed based on each route of the first forwarding node R1 in the second segment network 40 session.
  • a route located in the second segment network 40 is deployed for the first forwarding node R1.
  • the route includes three outbound interfaces, and the three outbound interfaces are the outbound interfaces between R1 and R4, R5 and R6 respectively. Load sharing is formed between the three outgoing interfaces. Then deploy a BFD session to detect the route. If there is a fault in the route, the status of the BFD session is updated to the closed state to achieve "BFD trigger if-down".
  • the way of deploying BFD sessions based on routing is not flexible enough. Based on this, the fault detection method provided by the embodiment of the present application can realize multi-point fault detection without deploying BFD sessions based on routing. Detailed implementation will be explained in subsequent embodiments.
  • Figure 2 is a flow chart of a cross-segmented network fault detection method provided by an embodiment of the present application. As shown in Figure 2, the method includes the following steps 201 and 202.
  • Step 201 The first forwarding node obtains the status of the bidirectional forwarding detection BFD group.
  • the BFD group includes the BFD session of each of the multiple paths corresponding to the first forwarding node in the second segmented network.
  • the BFD session is used for detection. Failure of the corresponding path.
  • the multiple paths may be all or part of the paths used to forward the message flow from the second forwarding node.
  • the multiple paths may be all or part of the paths in the second segmented network corresponding to the first forwarding node.
  • each path corresponds to an outbound interface on the first forwarding node
  • the multiple paths in this embodiment of the present application can be respectively identified by multiple outbound interfaces on the first forwarding node.
  • the multiple paths in step 201 may be the five paths corresponding to the five outbound interfaces, or they may be at least two of the five paths.
  • the multiple paths in step 201 may be the 10 paths corresponding to the 10 outbound interfaces, or may be most of the 10 paths.
  • the multiple paths in step 201 may be the three paths marked with segment service 2 in Figure 1. It can also be two of these three paths.
  • the BFD group includes BFD sessions for each of the multiple paths, and the multiple paths can have the above situations, the BFD sessions in the BFD group can be flexibly configured based on actual needs, which improves the capabilities provided by the embodiments of the present application. method flexibility.
  • the BFD session on the path from R1 to R6 is called BFD session 1
  • the BFD session on the path from R1 to R5 is called BFD session 2
  • the BFD session on the path from R1 to R4 is called BFD session 2.
  • the BFD group may include BFD session 1, BFD session 2, and BFD session 3. It may also include any two of BFD session 1, BFD session 2, and BFD session 3.
  • the members of the BFD group can be configured by developers.
  • the administrator can configure the group members in the BFD group by: the first forwarding node responds to the group member adding operation and uses the BFD session of each path in the multiple paths as the BFD session in the BFD group. BFD session.
  • the first forwarding node displays a group configuration interface, which includes a BFD session configuration option; in response to the developer's triggering operation on the BFD session configuration option, the BFD session of each path in the multiple paths is used as BFD session in BFD group.
  • Figure 4 is a schematic diagram of a group configuration interface provided by an embodiment of the present application. As shown in Figure 4, the group configuration interface displays BFD group name options, BFD session configuration options, etc.
  • the BFD group name option is used by developers to enter the name of the BFD group.
  • the BFD session configuration option allows developers to enter individual members of the BFD group.
  • the first forwarding node When the first forwarding node detects that the developer triggers the BFD session configuration option through a preset operation, the first forwarding node can display the group member input form in Figure 4, which is used by the developer to input the group member input form in the BFD group.
  • Individual BFD sessions As shown in Figure 4, for the first forwarding node R1 shown in Figure 3, the developer enters BFD session 1, BFD session 2 and BFD session 3 in the group member input form, thereby realizing the integration of BFD session 1, BFD session 2 and As a member of the BFD group, BFD session 3 realizes the linkage between BFD session 1, BFD session 2 and BFD session 3. These three BFD sessions and the BFD group (BFD group).
  • the above configuration process is explained by taking the developer's configuration on the first forwarding node as an example.
  • the developer can also configure the BFD group on the first forwarding node on the control node of the network, and the control node delivers the configured BFD group to the first forwarding node. No further details will be given here.
  • the BFD group includes the BFD session of each of the multiple paths corresponding to the first forwarding node. Therefore, the state of the BFD group is correspondingly related to the state of the BFD session of each of the multiple paths. The status of the BFD group is explained in detail below.
  • the status of the BFD group can indicate whether there is a BFD session in the BFD group that is in the closed state, or it can indicate whether all BFD sessions in the BFD group are in the closed state.
  • the relationship between the status of the BFD group and the status of each BFD session in the BFD group can be: when each BFD session in the BFD group is closed, the status of the BFD group is closed. Status; when the status of at least one BFD session in the BFD group is open, the status of the BFD group is open.
  • the BFD session 1 includes BFD session 1, BFD session 2, and BFD session 3.
  • the status of BFD session 1, BFD session 2 and BFD session 3 are all closed, the status of the BFD group will be closed.
  • the status of the BFD group is open.
  • the status of the BFD group can indicate whether most BFD sessions in the BFD group are in the closed state, or, in other words, can indicate whether most of the BFD sessions in the BFD group are all in the closed state.
  • the relationship between the status of the BFD group and the status of each BFD session in the BFD group can be: pre-set a quantity threshold, and when all BFD sessions in the BFD group exceeding the quantity threshold are in a closed state , the status of the BFD group is closed; when the status of BFDs in the BFD group lower than the number threshold is closed, the status of the BFD group is open.
  • the quantity threshold is a value less than or equal to the number of BFD group members.
  • the quantity threshold can be configured in advance by the administrator, and this is not limited in the embodiments of this application.
  • “more than” in the embodiment of the present application can be understood as greater than or greater than or equal to, and “less than” can be understood as less than equal to or less than respectively, which is not limited in the embodiment of the present application.
  • the BFD group includes BFD session 1, BFD session 2, and BFD session 3.
  • BFD session 1 When at least two BRDs in BFD session 1, BFD session 2, and BFD session 3 are all down, the status of the BFD group is down.
  • BFD session 1 BFD session 2, and BFD session 3
  • BFD session 3 When at least two BFD sessions are open, the BFD group's status is open.
  • the first forwarding node when the status of the BFD group is the previous embodiment, can predetermine and store the status of the BFD group, or it can also perform step 202 based on each status of the BFD group.
  • the status of the BFD session is temporarily determined by the status of the BFD group. This is explained below.
  • the implementation process of the first forwarding node pre-updating and storing the status of the BFD group may be: the first forwarding node obtains the BFD session status of each of the multiple paths; the first forwarding node based on the multiple paths The BFD session status of each path in the BFD group is updated and stored.
  • the first forwarding node obtains the status of the BFD group, which can be understood as: the first forwarding node obtains the stored status of the BFD group.
  • the timing for the first forwarding node to update and store the status of the BFD group in advance may be: the first forwarding node periodically updates and stores the status of the BFD group.
  • the first forwarding node performs an update every 10 ms and stores the status of the BFD group.
  • the first forwarding node may also update and store the status of the BFD group when detecting a change in the status of any BFD session in the BFD group.
  • the implementation process of step 201 may be: first forwarding The node obtains the BFD session status of each of the multiple paths; the first forwarding node determines the status of the BFD group based on the BFD session status of each of the multiple paths.
  • the first forwarding node determines the status of the BFD group based on the BFD session status of each path among the multiple paths.
  • the implementation method can also refer to the related explanation of the status of the BFD group mentioned above, which will not be described again here.
  • step 201 may be implemented by the control plane of the first forwarding node, or may be implemented by the forwarding plane of the first forwarding node.
  • control plane and the forwarding plane are two planes that divide each hardware on the first forwarding node according to functional logic.
  • the control plane usually includes the main control board and central processor, etc.
  • the forwarding plane usually includes various components that perform forwarding, such as forwarding entry memory, physical interface card, and network processor.
  • step 201 is implemented by the control plane of the first forwarding node specifically means that the relevant operations in step 201 are performed by the central processor (or main control board) of the first forwarding node.
  • step 201 by the forwarding plane of the first forwarding node specifically means that the relevant operations in step 201 are performed by the network processor of the first forwarding node.
  • the second forwarding node can quickly sense the fault conditions of the multiple paths, thereby realizing cross-border transmission. Fast fault detection in segmented networks.
  • step 201 can be understood as: obtaining the status of the BFD group on the forwarding plane of the first forwarding node.
  • the status of the BFD group and the status of each BFD session in the BFD group are independent concepts.
  • the status of the BFD group may be directly the status of each BFD session in the BFD group.
  • the first forwarding node obtains the status of the BFD group, which can be understood as obtaining the status of each BFD session in the BFD group. At this time, there is no execution action on the first forwarding node to determine the status of the BFD group based on the status of each BFD session in the BFD group.
  • Step 202 The first forwarding node notifies the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group.
  • the first forwarding node notifies the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group.
  • the BFD group includes BFD sessions of multiple paths, multi-point fault detection within the second segmented network can be implemented, which improves the flexibility of fault detection.
  • BFD sessions can be deployed on any form of link such as physical links, pseudo-wires (pseudo-wires), tunnels, etc.
  • the fault detection method provided by the embodiments of this application can realize the detection of physical outbound interfaces and logical outbound interfaces. Fault detection on the path corresponding to the interface improves the scope of fault detection.
  • the first forwarding node may notify the failure status of multiple paths through the following two implementation methods. This is explained separately below.
  • the first notification method linking the upper-level BFD session for notification.
  • the upper-level BFD session is used to detect the failure of the path between the first forwarding node and the second forwarding node.
  • the upper-level BFD session is the BFD session of the path between the first forwarding node and the second forwarding node.
  • it can be understood as a BFD session on the path between the outbound interface of the first forwarding node and the inbound interface of the second forwarding node.
  • the so-called linkage with the upper-level BFD session for notification means that the first forwarding node processes the upper-level BFD session based on the status of the BFD group, so that the upper-level BFD session can transmit fault conditions of multiple paths.
  • This notification method can also be called "BFD session track group”.
  • the BFD session can be a BFD session defined in request for comments (RFC) 5880, or a Seamless Bidirectional Forwarding Detection (SBFD) session defined in RFC7880.
  • RFC request for comments
  • SBFD Seamless Bidirectional Forwarding Detection
  • BFD sessions defined in RFC5880 include BFD sessions in asynchronous mode and BFD sessions in query mode.
  • a BFD session in asynchronous mode can be understood as: both parties send BFD packets (or BFD detection packets) to the opposite end, and the opposite end determines whether there is a fault in the path between the two parties based on the reception of BFD packets.
  • the BFD session in query mode can be understood as: one end sends a BFD message to the other end, and the other end is only responsible for returning the BFD message. The part of sending the BFD message is based on the situation of receiving the BFD message returned by the other end to determine the two parties. Are there any faults in the path between them? Among them, in a BFD session in query mode, both parties in the session can be the end of sending BFD packets, that is, both parties in the session can initiate a BFD session in query mode.
  • the BFD session state includes four session states, namely closed (down) state, initial (init) state, open (up) state, administrative shutdown (admin-down) state.
  • the SBFD session defined in RFC7880 can be understood as: both parties in the session include a BFD initiator and a BFD reflector.
  • the BFD initiator sends a BFD message (BFD control message) to the BFD reflector.
  • the BFD reflector is only responsible for reflecting the BFD message.
  • the BFD initiator determines the relationship between the two parties based on the BFD message returned by the BFD reflector. Whether the path is faulty.
  • the BFD initiator has a BFD session state, and there are only two states: closed state and open state.
  • the BFD reflection end does not have session status for this SBFD session.
  • the BFD initiator and BFD reflector in the SBFD session are fixed. In other words, only one end can serve as the BFD initiator and the other end can serve as the BFD reflector. The roles of the two cannot be interchanged.
  • Case 1 The upper-level BFD session is a BFD session in asynchronous mode.
  • the first forwarding node processes the upper-level BFD session based on the status of the BFD group.
  • the implementation process can be: based on the status of the BFD group, the first forwarding node processes the upper-level BFD session.
  • the following explains the process of the first forwarding node sending information to the second forwarding node in processing an upper-level BFD session based on the status of the BFD group.
  • the implementation process of the first forwarding node processing the process of sending information to the second forwarding node in the upper-level BFD session may be: if the status of the BFD group is closed, the first The first forwarding node does not send the first BFD message to the second forwarding node. Correspondingly, if the status of the BFD group is open, the first forwarding node sends the first BFD message to the second forwarding node.
  • both parties in a BFD session in asynchronous mode periodically send BFD packets
  • the other end can determine whether there is a fault based on the reception of BFD packets. Therefore, when the first forwarding node periodically sends BFD packets to the second forwarding node, if it detects that the status of the BFD group is closed, it will no longer send BFD packets to the second forwarding node, so that the second forwarding node
  • the node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault on the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session, achieving cross-bundling Fault detection on segmented networks.
  • the first delay length can be set, so that when the first forwarding node periodically sends BFD messages to the second forwarding node, when the current time is the time to send the first BFD message to the second forwarding node, , if it is detected that the status of the BFD group is closed, then determine whether the status of the BFD group is still closed after the first delay time. If it is still closed, the first forwarding node does not send the message to the second forwarding node. The first BFD packet. If after the first delay time, the status of the BFD group is open, at this time, the first BFD message is sent to the second forwarding node.
  • the first forwarding node directly changes the path due to misjudgment of the BFD group status.
  • the first forwarding node processes the process of sending information to the second forwarding node in the upper-level BFD session as follows: if the status of the BFD group is closed, The first forwarding node sets the status of the upper-level BFD session to the closed state, and sends a status notification message to the second forwarding node.
  • the status notification message indicates that the status of the upper-level BFD session is closed.
  • the first forwarding node does not perform the operation of setting the upper-level BFD session status to the closed state.
  • the first forwarding node In a BFD session in asynchronous mode, the first forwarding node has the ability to directly set the BFD session status to the closed state and advertise the BFD session status. Therefore, if the first forwarding node detects that the status of the BFD group is closed, it directly sets the status of the upper-level BFD session to the closed state, and sends a status notification message to the second forwarding node. In this way, the second forwarding node will It is detected that there is a fault in the upper-level BFD session, that is, it is detected that there is a fault on the first forwarding node, so that the fault conditions of multiple paths are passed to the first forwarding node through the upper-level BFD session, achieving cross-segment network fault detection.
  • the delay length can also be set to avoid direct route change by the first forwarding node due to misjudgment of the BFD group status.
  • the relevant implementation methods will not be described again here.
  • the above two embodiments are examples of processing information sent to the second forwarding node in an upper-level BFD session in a BFD group-based state.
  • Any specific method for processing information sent to the second forwarding node in the upper-level BFD session is within the scope of the embodiments of this application as long as the following conditions are met.
  • the condition is: when the BFD group status is in the closed state, the information sent can enable the second forwarding node to determine that the upper-level BFD session is faulty.
  • the following explains the processing flow of the first forwarding node processing the information from the second forwarding node in the upper-level BFD session based on the status of the BFD group.
  • the implementation process of the first forwarding node processing the information from the second forwarding node in the upper-level BFD session may be: after receiving the information from the second forwarding node
  • the first forwarding node discards the second BFD message and does not update the number of BFD messages received in the current BFD detection cycle based on the second BFD message. operation.
  • the first forwarding node updates the number of BFD packets received in the current BFD detection cycle based on the second BFD packet.
  • the first forwarding node In a BFD session in asynchronous mode, if the first forwarding node receives a BFD packet sent by the second forwarding node, it does not update the number of BFD packets received in the current BFD detection cycle (that is, discards the received BFD packets). message), then when the current detection cycle is reached, the number of BFD packets counted by the first forwarding node will not reach the required number. At this time, the first forwarding node determines that the status of the upper-level BFD session is closed. and sends a status notification message to the second forwarding node.
  • the second forwarding node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault in the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session. , to achieve fault detection across segmented networks.
  • the delay length can also be set to avoid direct route change by the first forwarding node due to misjudgment of the BFD group status.
  • the relevant implementation methods will not be described again here.
  • the above embodiment is an example description of the processing flow of information from the second forwarding node in the upper-level BFD session in a state based on the BFD group. Any specific way of processing the information from the second forwarding node in the upper-level BFD session is within the scope of the embodiments of this application as long as the following conditions are met.
  • the condition is: when the BFD group status is in the closed state, the processing flow of the information from the second forwarding node can enable the first forwarding node to determine that the status of the upper-level BFD session is in the closed state, and send the message to the second forwarding node. Send status notification messages.
  • the second case: the upper-level BFD session is a BFD session in query mode or a seamless bidirectional forwarding detection SBFD session.
  • the upper-level BFD session is a BFD session in query mode or an SBFD session
  • one of the two parties in the upper-level BFD session is used to detect faults, and the other is only used to reflect the received BFD packets.
  • the second forwarding node serves as the party that sends BFD packets
  • the first forwarding node serves as the party that returns the received BFD packets.
  • the first forwarding node processes the upper-level BFD session based on the status of the BFD group.
  • the first forwarding node processes the upper-level BFD session based on the status of the BFD group.
  • the processing flow of BFD packets of the second forwarding node so that the upper-level BFD session can transmit the fault conditions of multiple paths.
  • the first forwarding node when receiving the third BFD message from the second forwarding node, if the status of the BFD group is closed, the first forwarding node discards the third BFD message and does not return the third BFD message. Operation to the second forwarding node.
  • the first forwarding node if the status of the BFD group is open, the first forwarding node returns the third BFD packet to the second forwarding node.
  • the second forwarding node In a BFD session or SBFD session in query mode, if the first forwarding node does not return the BFD message to the second forwarding node when receiving the BFD message sent by the second forwarding node, the second forwarding node will The BFD packet returned by the first forwarding node cannot be received. In this way, the second forwarding node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault in the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session. , to achieve fault detection across segmented networks.
  • the delay length can also be set to avoid direct route change by the first forwarding node due to misjudgment of the BFD group status.
  • the relevant implementation methods will not be described again here.
  • the developer configures the linkage between the status of the BFD group and the upper-level BFD session.
  • the implementation process may be: the first forwarding node obtains the BFD group, and the first forwarding node determines the relationship between the BFD group and the upper-level BFD session. Correspondence between level BFD sessions.
  • the first forwarding node displays a group configuration interface
  • the group configuration interface includes a group tracking function configuration option; in response to the developer's trigger operation on the group tracking function configuration option, the upper-level BFD session and the BFD group Group binding to establish the corresponding relationship between the BFD group and the upper-level BFD session, and process the process of the upper-level BFD session based on the status of the BFD group.
  • Figure 5 is a schematic diagram of another group configuration interface provided by an embodiment of the present application. As shown in Figure 5, the group configuration interface displays BFD group name options, BFD session configuration options, and group tracking function configuration options.
  • the group tracking function configuration option is used by developers to link the status of the BFD group with the upper-level BFD session.
  • the first forwarding node When the first forwarding node detects that the developer triggers the group tracking function configuration option through a preset operation, the first forwarding node can display the tracking session input window in Figure 5.
  • the tracking session input window is used for the developer to input and communicate with the BFD group.
  • the developer enters the identifier of the upper-level BFD session in the tracking session input window, thereby realizing BFD session 1, BFD session 2 and BFD session 3. Linkage between BFD group and upper-level BFD session.
  • the status of the BFD group is directly the status of each BFD session in the BFD group, for the specific content of the status of the BFD group being closed, please refer to the above-mentioned explanation of the BFD status.
  • the status of the BFD group indicates whether the status of all members in the BFD group is closed
  • the status of the BFD group is closed, that is, the status of each BFD session in the BFD group is closed. state.
  • the status of the BFD group is open, that is, the status of at least one BFD session in the BFD group is open.
  • the first forwarding node when the first forwarding node obtains the status of each BFD session in the BFD group, if it determines that the status of each BFD session in the BFD group is closed, then When the current time is the time to send the first BFD message to the second forwarding node, the first forwarding node does not send the first BFD message to the second forwarding node, or the first forwarding node replaces the first BFD message of the upper-level BFD session with the second forwarding node. The status is set to the closed state and a status notification message is sent to the second forwarding node.
  • the first forwarding node when receiving the third BFD packet from the second forwarding node, discards the third BFD packet and does not execute the The operation of returning the third BFD packet to the second forwarding node.
  • the first forwarding node discards the third BFD packet and does not execute the The operation of returning the third BFD packet to the second forwarding node.
  • messages related to the upper-level BFD session are forwarded on the forwarding plane of the first forwarding node. Therefore, by linking the upper-level BFD session, the entire fault detection process can be implemented on the forwarding plane of the first forwarding node, thus improving the fault detection rate.
  • the second notification method notification via notification message.
  • the notification message refers to the first forwarding node notifying the second forwarding node of the status of the BFD group through a special message.
  • the implementation process of step 202 is as follows: the first forwarding node sends a fault notification message to the second forwarding node, and the fault notification message is used to notify the second forwarding node of fault conditions of multiple paths.
  • the fault notification message can notify fault conditions of multiple paths in multiple ways.
  • the fault notification message carries the status of the BFD group.
  • the fault notification message may also carry other indication information, and the other indication information can identify fault conditions of multiple paths.
  • the fault notification message can be carried in the service traffic or in a special BGP notification message (that is, notified through the BGP protocol).
  • a special BGP notification message that is, notified through the BGP protocol.
  • step 202 can be understood as notifying the fault situation of multiple paths to the second forwarding node based on the status of the BFD group on the forwarding plane of the first forwarding node.
  • step 202 may be: notifying the second forwarding node of the fault conditions of the multiple paths based on the status of the BFD group on the forwarding plane of the first forwarding node, or, based on the BFD group on the control plane of the first forwarding node. The status notifies the second forwarding node of the failure conditions of multiple paths.
  • (1) Provides a method to implement multi-point fault detection across segmented networks based on BFD groups. There is no need to deploy BFD sessions based on routes to detect multiple points of failure. Provides the flexibility of multi-point failure detection across segmented networks.
  • the fault detection process across segmented networks can be implemented through the following steps.
  • Step 1 Deploy multiple basic BFD sessions (BFD session 1, BFD session 2, and BFD session 3) for detecting segmented services on the cascade device R1 in the segmented cascade network.
  • the session type of BFD session includes all BFD session types;
  • Step 2 Create a group (i.e. BFD group) on the cascading device R1, and deliver the group status on the forwarding plane of R1;
  • Step 3 Add multiple basic BFD sessions BFD session 1, BFD session 2, and BFD session 3 on the cascade device R1 to the group;
  • Step 4 Deploy the upper-level segment network on the cascade device R1 to detect the BFD track group of segment service 1 (that is, the BFD session track group defined in RFC5880) or the SBFD reflection end track group;
  • Step 5 Refresh the group status according to the status of the basic BFD session on the forwarding plane.
  • the refresh rules are as follows: As long as one basic BFD session forwarding plane status is up, the group status is up, and the forwarding plane status of all basic BFD sessions is down. The group status is down;
  • Step 6 If a BFD track group is deployed in step 4, the group status is determined during the BFD session packet sending or receiving process. If the group status is down, the received BFD packets are not sent or discarded or the BFD session is set up directly. The status is down, triggering the remote end (i.e. R2) to detect down;
  • Step 7 If the SBFD reflection end track group is deployed in step 4, the group status is determined during the SBFD reflection process. If the group status is down, the received BFD packet is discarded and the SBFD initiator, that is, R2) detection is triggered. down;
  • Step 8 After the remote end or SBFD initiator (i.e. R2) goes down, trigger service switching.
  • FIG 6 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • the network device is the first forwarding node in the communication system shown in Figure 1.
  • the communication system also includes a second forwarding node.
  • the first forwarding node is an edge node between the first segmented network and the second segmented network
  • the second forwarding node is located within the first segmented network.
  • the network device 600 includes a transceiver module 601 and a processing module 602.
  • the transceiver module 602 is used to perform transceiver-related operations in the embodiment of FIG. 2; the processing module 601 is used to perform operations other than transceiver-related operations in the embodiment of FIG. 2.
  • the processing module 602 is used to obtain the status of the bidirectional forwarding detection BFD group.
  • the BFD group includes the BFD session of each of the multiple paths corresponding to the first forwarding node in the second segmented network.
  • the BFD session is To detect the failure of the corresponding path.
  • the transceiver module 601 is configured to notify the second forwarding node of fault conditions of multiple paths based on the status of the BFD group. For specific implementation, please refer to step 202 in the embodiment of Figure 2 .
  • the status of the BFD group obtained by the processing module is a closed state
  • the status of at least one BFD session in the BFD group is open, the status of the BFD group obtained by the processing module is open.
  • the transceiver module is used for:
  • the first forwarding node processes the process of an upper-level BFD session based on the status of the BFD group.
  • the upper-level BFD session is used to detect a failure of the path between the first forwarding node and the second forwarding node.
  • the transceiver module is used for:
  • the first forwarding node does not send the first BFD message to the second forwarding node.
  • the transceiver module is used for:
  • the first forwarding node sends the first BFD message to the second forwarding node.
  • the transceiver module is used for:
  • the first forwarding node sets the status of the upper-level BFD session to closed and sends a status notification message to the second forwarding node.
  • the status notification message indicates the status of the upper-level BFD session. is closed.
  • the transceiver module is used for:
  • the first forwarding node does not perform the operation of setting the upper-level BFD session status to the closed state.
  • the transceiver module is used for:
  • the first forwarding node When receiving the second BFD message from the second forwarding node, if the status of the BFD group is closed, the first forwarding node discards the second BFD message and does not update the current BFD detection based on the second BFD message. Operation of the number of BFD packets received in a period.
  • the transceiver module is used for:
  • the first forwarding node updates the number of BFD packets received in the current BFD detection cycle based on the second BFD packet.
  • the transceiver module is used for:
  • the first forwarding node When receiving the third BFD packet from the second forwarding node, if the status of the BFD group is closed, the first forwarding node discards the third BFD packet and does not return the third BFD packet to the second forwarding node. Operations of forwarding nodes.
  • the transceiver module is used for:
  • the first forwarding node If the status of the BFD group is open, the first forwarding node returns the third BFD packet to the second forwarding node.
  • the upper-level BFD session is a BFD session in asynchronous mode, a BFD session in query mode, or a seamless bidirectional forwarding detection SBFD session.
  • processing module is also used to:
  • the first forwarding node obtains the BFD group
  • the first forwarding node determines the corresponding relationship between the BFD group and the upper-level BFD session.
  • the transceiver module is also used to:
  • the first forwarding node sends a fault notification message to the second forwarding node, and the fault notification message is used to notify the second forwarding node of fault conditions of multiple paths.
  • the fault notification message carries the status of the BFD group.
  • processing module is also used to:
  • processing module is used to:
  • the status of the BFD group is determined based on the BFD session status of each of the multiple paths.
  • multiple paths are used to forward the message flow from the second forwarding node.
  • the first segmented network and the second segmented network are respectively used to carry at least one of the following services: segmented routing policy SRv6 Policy service based on the sixth generation network protocol, SRv6 Policy service based on the sixth generation network protocol
  • segmented routing policy SRv6 Policy service based on the sixth generation network protocol SRv6 Policy service based on the sixth generation network protocol
  • SRv6 Policy service based on the sixth generation network protocol The shortest path SRv6 BE service of segment routing, the virtual leased line VLL service, and the virtual private line service VPLS service; the services carried by the first segment network are different from the services carried by the second segment network.
  • processing module is used to:
  • the transceiver module is used for:
  • the fault conditions of the multiple paths are notified to the second forwarding node based on the status of the BFD group.
  • the network equipment provided by the embodiments of this application can achieve the following technical effects:
  • (1) Provides a method to implement multi-point fault detection across segmented networks based on BFD groups. There is no need to deploy BFD sessions based on routes to detect multiple points of failure. Provides the flexibility of multi-point failure detection across segmented networks.
  • Figure 7 is a schematic structural diagram of a device 700 provided by an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of another device 800 provided by an embodiment of the present application. The structure of these two devices is explained below.
  • the device 700 or device 800 introduced below corresponds to the first forwarding node in the above method embodiment.
  • Each hardware, module and the above-mentioned other operations and/or functions in the device 700 or the device 800 are respectively used to implement the various steps and methods implemented by the first forwarding node in the method embodiment.
  • Regarding how the device 700 or the device 800 processes messages please refer to the above method embodiments for specific details. For the sake of simplicity, they will not be described again here.
  • Each step of the above method embodiment is completed through the integrated logic circuit of the hardware in the processor of the device 700 or the device 800 or instructions in the form of software.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.
  • the software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, the details will not be described here.
  • each functional module in the first forwarding node is implemented using the software of the device 700 .
  • the functional module included in the first forwarding node is generated by the processor of the device 700 after reading the program code stored in the memory.
  • each functional module in the first forwarding node is implemented using the software of the device 800 .
  • the functional module included in the first forwarding node is generated by the processor of the device 800 after reading the program code stored in the memory.
  • FIG. 7 is a schematic structural diagram of a device 700 provided by an embodiment of the present application.
  • the device 700 is configured as the first forwarding node shown in Figure 1.
  • the first forwarding node in the above method embodiment is optionally implemented by the device 700.
  • the device 700 is, for example, a network device.
  • the device 700 is a switch, a router, etc.
  • the device 700 is, for example, a computing device.
  • the device 700 is a host, a server or a personal computer.
  • the device 700 can be implemented by a general bus architecture.
  • Device 700 includes at least one processor 701, a communication bus 702, a memory 703, and at least one communication interface 704.
  • the processor 701 is, for example, a general central processing unit (CPU), a network processor (NP), a graphics processor (Graphics Processing Unit, GPU), or a neural network processor (neural-network processing units, NPU). ), a data processing unit (Data Processing Unit, DPU), a microprocessor or one or more integrated circuits used to implement the solution of this application.
  • the processor 701 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • Communication bus 702 is used to transfer information between the above-mentioned components.
  • the communication bus 702 can be divided into an address bus, a data bus, a control bus, etc.
  • address bus a data bus
  • control bus a control bus
  • Only one thick line is used in Figure 7, but this does not mean that there is only one bus or one type of bus.
  • the memory 703 is, for example, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, or a random access memory (random access memory, RAM) or a device that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • Other types of dynamic storage devices such as electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical discs Storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can Any other media accessed by a computer, without limitation.
  • the memory 703 exists independently, for example, and is connected to the processor 701 through the communication bus 702 . Memory 703 may also be integrated with processor 701.
  • the Communication interface 704 uses any transceiver-like device for communicating with other devices or communication networks.
  • the communication interface 704 includes a wired communication interface and may also include a wireless communication interface.
  • the wired communication interface may be an Ethernet interface, for example.
  • the Ethernet interface can be an optical interface, an electrical interface, or a combination thereof.
  • the wireless communication interface may be a wireless local area networks (WLAN) interface, a cellular network communication interface or a combination thereof.
  • WLAN wireless local area networks
  • the processor 701 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 7 .
  • the device 700 may include multiple processors, such as the processor 701 and the processor 705 shown in FIG. 7 .
  • processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
  • a processor here may refer to one or more devices, circuits, and/or processing cores for processing data (such as computer program instructions).
  • the device 700 may also include an output device and an input device.
  • Output devices communicate with processor 701 and can display information in a variety of ways.
  • the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector (projector), etc.
  • Input devices communicate with processor 701 and can receive user input in a variety of ways.
  • the input device may be a mouse, a keyboard, a touch screen device or a sensing device, etc.
  • the memory 703 is used to store the program code 710 for executing the solution of the present application, and the processor 701 can execute the program code 710 stored in the memory 703. That is, the device 700 can implement the fault detection method across segmented networks provided by the method embodiment through the processor 701 and the program code 710 in the memory 703 .
  • the device 700 in the embodiment of the present application can correspond to the user plane network element or the control plane network element in the above method embodiments, and the processor 701, communication interface 704, etc. in the device 700 can implement the above method embodiments.
  • the transceiver module and the processing module in the network device 600 shown in Figure 6 are software modules in the program code 710 in the device 700
  • the processor 701 in the device 700 implements the functions of the transceiver module and the processing module in the network device 600 in Figure 6 by executing the program code 710.
  • FIG. 8 is a schematic structural diagram of a device 800 provided by an embodiment of the present application.
  • the device 800 is configured as the first forwarding node shown in FIG. 1 .
  • the first forwarding node in the above method embodiment is optionally implemented by the device 800.
  • the device 800 is, for example, a network device.
  • the device 800 is a switch, a router, etc.
  • the device 800 includes: a main control board 8010 and an interface board 8030.
  • the main control board is also called the main processing unit (MPU) or route processor card.
  • the main control board 8010 is used to control and manage various components in the device 800, including route calculation, device management, Equipment maintenance and protocol processing functions.
  • the main control board 8010 includes: a central processing unit 8011 and a memory 8012.
  • the interface board 8030 is also called a line processing unit (LPU), line card or service board.
  • the interface board 8030 is used to provide various service interfaces and implement data packet forwarding.
  • Business interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET/SDH) interfaces, etc.
  • Ethernet interfaces are, for example, Flexible Ethernet Clients (FlexE Clients).
  • the interface board 8030 includes: a central processor 8031, a network processor 8032, a forwarding entry memory 8034, and a physical interface card (PIC) 8033.
  • PIC physical interface card
  • the central processor 8031 on the interface board 8030 is used to control and manage the interface board 8030 and communicate with the central processor 8011 on the main control board 8010.
  • the network processor 8032 is used to implement packet forwarding processing.
  • the network processor 8032 may be in the form of a forwarding chip. Specifically, the network processor 8032 is used to forward the received message based on the forwarding table stored in the forwarding table memory 8034. If the destination address of the message is the address of the device 800, the message is uploaded to the CPU (such as Central processor 8011) processes; if the destination address of the message is not the address of device 800, the next hop and outbound interface corresponding to the destination address are found from the forwarding table based on the destination address, and the message is forwarded to the destination. The outbound interface corresponding to the address.
  • the processing of uplink packets includes: processing of packet incoming interfaces, forwarding table search; processing of downlink packets: forwarding table search, etc.
  • the physical interface card 8033 is used to implement the docking function of the physical layer.
  • the original traffic enters the interface card 8030 through this, and the processed packets are sent out from the physical interface card 8033.
  • the physical interface card 8033 is also called a daughter card and can be installed on the interface board 8030. It is responsible for converting photoelectric signals into messages and checking the validity of the messages before forwarding them to the network processor 8032 for processing.
  • the central processor can also perform the functions of the network processor 8032, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 8032 is not required in the physical interface card 8033.
  • the device 800 includes multiple interface boards.
  • the device 800 also includes an interface board 8040.
  • the interface board 8040 includes: a central processor 8041, a network processor 8042, a forwarding entry memory 8044, and a physical interface card 8043.
  • the device 800 also includes a switching network board 8020.
  • the switching fabric unit 8020 can also be called a switching fabric unit (switch fabric unit, SFU).
  • SFU switching fabric unit
  • the switching network board 8020 is used to complete data exchange between the interface boards.
  • the interface board 8030 and the interface board 8040 can communicate through the switching network board 8020.
  • the main control board 8010 and the interface board 8030 are coupled.
  • the main control board 8010, the interface board 8030, the interface board 8040, and the switching network board 8020 are connected to the system backplane through the system bus to achieve intercommunication.
  • an inter-process communication protocol (IPC) channel is established between the main control board 8010 and the interface board 8030, and the main control board 8010 and the interface board 8030 communicate through the IPC channel.
  • IPC inter-process communication protocol
  • Logically, device 800 includes a control plane and a forwarding plane.
  • the control plane includes a main control board 8010 and a central processor 8031.
  • the forwarding plane includes various components that perform forwarding, such as forwarding entry memory 8034, physical interface card 8033, and network processor. 8032.
  • the control plane executes functions such as router, generates forwarding tables, processes signaling and protocol messages, configures and maintains device status.
  • the control plane sends the generated forwarding tables to the forwarding plane.
  • the network processor 8032 is based on the control plane.
  • the delivered forwarding table looks up the packets received by the physical interface card 8033 and forwards them.
  • the forwarding table delivered by the control plane may be stored in the forwarding table item storage 8034. In some embodiments, the control plane and forwarding plane may be completely separate and not on the same device.
  • the transceiver module in the network device 600 shown in Figure 6 is equivalent to the physical interface card 8033 in the device 800; the processing module of the network device 600 is equivalent to In the network processor 8032, the central processing unit 8031 or the central processing unit 8011.
  • the operations on the interface board 8040 in the embodiment of the present application are consistent with the operations on the interface board 8030, and will not be described again for the sake of simplicity.
  • the device 800 in this embodiment can correspond to the first forwarding node in the above method embodiments, and the main control board 8010, interface board 8030 and/or 8040 in the device 800 can implement the above method embodiments.
  • the functions of the first forwarding node and/or the various steps performed will not be described again here.
  • main control boards there may be one or more main control boards, and when there are multiple main control boards, they can include the main main control board and the backup main control board.
  • network equipment can have at least one switching network board, which enables data exchange between multiple interface boards through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network equipment with a distributed architecture are greater than those with a centralized architecture.
  • the network device can also be in the form of only one board, that is, there is no switching network board. The functions of the interface board and the main control board are integrated on this board. In this case, the central processor and main control board on the interface board The central processor on the board can be combined into one central processor on this board to perform the superimposed functions of the two.
  • This form of equipment has low data exchange and processing capabilities (for example, low-end switches or routers and other networks equipment).
  • the specific architecture used depends on the specific networking deployment scenario and is not limited here.
  • embodiments of the present application also provide a communication system.
  • the communication system 900 includes a first forwarding node 901 and a second forwarding node 902.
  • the first forwarding node 901 is used to: obtain the status of the bidirectional forwarding detection BFD group.
  • the BFD group includes the BFD session of each of the multiple paths corresponding to the first forwarding node in the second segment network.
  • the BFD session Used to detect failures of corresponding paths; notify the second forwarding node 902 of the failure conditions of multiple paths based on the status of the BFD group.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be indirect coupling or communication connection through some interfaces, devices or modules, or may be electrical, mechanical or other forms of connection.
  • the modules described as separate components may or may not be physically separated.
  • the components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
  • each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software function modules.
  • the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .
  • first and second are used to distinguish the same or similar items with basically the same functions and functions. It should be understood that there is no logic or timing between “first” and “second” There are no restrictions on the number and execution order of the dependencies. It should also be understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another.
  • the first information may be referred to as second information
  • the second information may be referred to as first information.
  • Both the first information and the second information may be information, and in some cases, may be separate and different information.
  • the term “if” may be interpreted to mean “when” or “upon” or “in response to determining” or “in response to detecting.”
  • the phrase “if it is determined" or “if [stated condition or event] is detected” may be interpreted to mean “when it is determined" or “in response to the determination... ” or “on detection of [stated condition or event]” or “in response to detection of [stated condition or event].”
  • the computer program product includes one or more computer program instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer program instructions may be transmitted from a website, computer, server or data center to Wired or wireless transmission to another website site, computer, server or data center.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the available media may be magnetic media (such as floppy disks, hard disks, magnetic tapes), optical media (such as digital video discs (DVD)), or semiconductor media (such as solid state drives), etc.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium can be read-only memory, magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiments of the present application belong to the technical field of communications. Disclosed are a cross-segmented network fault detection method, and a communication system and a related apparatus. The method comprises: a first forwarding node acquiring the state of a BFD group, wherein the BFD group comprises a BFD session of each path in a plurality of paths corresponding to the first forwarding node in a second segmented network, and the BFD session is used for detecting a fault in a corresponding path; and the first forwarding node notifying, on the basis of the state of the BFD group, a second forwarding node of fault conditions of the plurality of paths. Compared with a single-point fault detection mode, the embodiments of the present application provide a cross-segmented network multi-fault-point detection mode since the second forwarding node is notified of the fault conditions of the plurality of paths on the basis of the state of the BFD group in the embodiments of the present application, thereby improving the flexibility of fault detection.

Description

跨分段网络的故障检测方法、通信系统及相关装置Fault detection method, communication system and related devices across segmented networks
本申请要求于2022年4月15日提交的申请号为202210400005.8、发明名称为“一种分段级联故障场景快速切换方法”的中国专利申请的优先权,以及2022年6月10日提交的申请号为202210657604.8、发明名称为“跨分段网络的故障检测方法、通信系统及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202210400005.8 and the invention title "A method for fast switching of segmented cascading fault scenarios" submitted on April 15, 2022, as well as the Chinese patent application submitted on June 10, 2022 The priority of the Chinese patent application with application number 202210657604.8 and the invention title "Fault detection method, communication system and related devices across segmented networks", the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请实施例涉及通信技术领域,特别涉及一种跨分段网络的故障检测方法、通信系统及相关装置。Embodiments of the present application relate to the field of communication technology, and in particular to a fault detection method across segmented networks, a communication system and related devices.
背景技术Background technique
为了提高网络安全性和稳定性,通信网络可以被划分为多个分段网络。不同的分段网络用于承载不同的业务。比如相邻两个分段网络可以分别用于承载基于第六代网络协议的分段路由的策略(Segment Routing IPv6 Policy,SRv6 policy)业务和基于第六代网络协议的分段路由的最短路径(Segment Routing IPv6 Best Effort,SRv6 BE)业务,或者分别用于承载虚拟租用线(Virtual Leased Line,VLL)业务和虚拟私用线服务(Virtual Private Lan Service,VPLS)业务。其中,相邻分段网络之间部署有多个边缘转发节点,任一边缘转发节点用于将上一级分段网络中的报文流引流至下一级分段网络,从而实现报文流的跨分段网络传输。在跨分段网络传输报文流的场景中,如何进行跨分段网络的故障感知是当前研究的热点。In order to improve network security and stability, communication networks can be divided into multiple segmented networks. Different segmented networks are used to carry different services. For example, two adjacent segmented networks can be used to carry the segment routing policy (Segment Routing IPv6 Policy, SRv6 policy) service based on the sixth generation network protocol and the shortest path (Segment Routing IPv6 Policy, SRv6 policy) based on the sixth generation network protocol respectively. Segment Routing IPv6 Best Effort, SRv6 BE) business, or used to carry virtual leased line (Virtual Leased Line, VLL) business and virtual private line service (Virtual Private Lan Service, VPLS) business respectively. Among them, multiple edge forwarding nodes are deployed between adjacent segmented networks. Any edge forwarding node is used to divert the packet flow in the upper-level segmented network to the next-level segmented network, thereby realizing the packet flow. Transmission across segmented networks. In the scenario of transmitting message flows across segmented networks, how to detect faults across segmented networks is a current research hotspot.
相关技术中,对于相邻的上一级分段网络与下一级分段网络之间的任一边缘转发节点,该边缘转发节点在下一级分段网络内可能对应有多条路径,这多条路径用于将从目标入接口接收的报文流在下一级分段网络内转发。这多条路径中每条路径配置有双向转发检测(bidirectional forwarding detection,BFD)会话。在任一条路径的BFD会话的状态为关闭(down)状态时,将触发目标入接口的状态更新为关闭状态。上一级分段网络中的转发节点在检测到目标入接口的状态为关闭状态时,则可确定下一级分段网络内存在故障。但是这种故障检测方式的灵活性较低。In the related art, for any edge forwarding node between the adjacent upper-level segment network and the next-level segment network, the edge forwarding node may correspond to multiple paths in the next-level segment network. This is A path is used to forward the packet flow received from the target incoming interface within the next-level segmented network. Each of these multiple paths is configured with a bidirectional forwarding detection (BFD) session. When the status of the BFD session on any path is down, the status of the target incoming interface is triggered to be updated to the down status. When the forwarding node in the upper-level segmented network detects that the status of the target incoming interface is down, it can determine that there is a fault in the lower-level segmented network. However, this method of fault detection is less flexible.
发明内容Contents of the invention
本申请实施例提供了一种跨分段网络的故障检测方法、通信系统及相关装置,可以提高跨分段网络的故障感知的灵活性。所述技术方案如下:Embodiments of the present application provide a fault detection method, communication system and related devices across segmented networks, which can improve the flexibility of fault sensing across segmented networks. The technical solutions are as follows:
第一方面,提供了一种跨分段网络的故障检测方法,该方法应用于通信系统,该通信系统包括第一转发节点和第二转发节点,第一转发节点为第一分段网络和第二分段网络之间的边缘节点,第二转发节点位于第一分段网络内。In a first aspect, a fault detection method across segmented networks is provided. The method is applied to a communication system. The communication system includes a first forwarding node and a second forwarding node. The first forwarding node is a first segmented network and a second forwarding node. The edge node between the two segmented networks, the second forwarding node is located within the first segmented network.
在该方法中,第一转发节点获取BFD群组的状态,BFD群组包括第一转发节点在第二分段网络内对应的多条路径中每条路径的BFD会话,BFD会话用于检测相应路径的故障;第一转发节点基于BFD群组的状态向第二转发节点通告多条路径的故障情况。In this method, the first forwarding node obtains the status of the BFD group. The BFD group includes the BFD session of each of the multiple paths corresponding to the first forwarding node in the second segment network. The BFD session is used to detect the corresponding Path failure: the first forwarding node notifies the second forwarding node of multiple path failures based on the status of the BFD group.
在本申请实施例中,第一转发节点基于BFD群组的状态向第二转发节点通告多条路径的故障情况。一方面,由于BFD群组包括多条路径的BFD会话,因此可以实现对第二分段网络内的多点故障检测,提高了故障检测灵活性。另一方面,由于BFD会话可以部署在物理链路、伪线(pseudo-wire)、隧道等任意形式的链路上,因此本申请实施例提供的故障检测方法可以实现对物理出接口和逻辑出接口对应的路径的故障检测,提高了故障检测的范围。In this embodiment of the present application, the first forwarding node notifies the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group. On the one hand, since the BFD group includes BFD sessions of multiple paths, multi-point fault detection within the second segmented network can be implemented, which improves the flexibility of fault detection. On the other hand, since BFD sessions can be deployed on any form of link such as physical links, pseudo-wires (pseudo-wires), tunnels, etc., the fault detection method provided by the embodiments of this application can realize the detection of physical outbound interfaces and logical outbound interfaces. Fault detection on the path corresponding to the interface improves the scope of fault detection.
基于第一方面提供的方法,在一种可能的实现方式中,第一转发节点获取BFD群组的状态的实现过程可以为:在BFD群组中各个BFD会话均处于关闭状态的情况下,第一转发节点获取的BFD群组的状态为关闭状态;在BFD群组中至少一个BFD会话的状态为打开状态的情况下,第一转发节点获取的BFD群组的状态为打开状态。Based on the method provided in the first aspect, in a possible implementation manner, the implementation process for the first forwarding node to obtain the status of the BFD group may be: when each BFD session in the BFD group is in a closed state, The status of the BFD group obtained by a forwarding node is the closed state; when the status of at least one BFD session in the BFD group is the open state, the status of the BFD group obtained by the first forwarding node is the open state.
基于上述BFD群组的状态和BFD群组中各个BFD会话的状态之间的关系,本申请实施例提供的BFD群组的状态能够指示BFD群组中是否存在BFD会话状态为关闭状态,或者说,能够指示BFD群组中的BFD会话是否全部是关闭状态。以便于后续能够基于BFD群组的状态向第二转发节点通告多条路径的故障情况。Based on the relationship between the status of the above BFD group and the status of each BFD session in the BFD group, the status of the BFD group provided by the embodiment of the present application can indicate whether there is a BFD session in the BFD group whose status is closed, or in other words , can indicate whether all BFD sessions in the BFD group are closed. This is so that the fault conditions of multiple paths can be subsequently notified to the second forwarding node based on the status of the BFD group.
基于第一方面提供的方法,在一种可能的实现方式中,第一转发节点基于BFD群组的状态向第二转发节点通告多条路径的故障情况的实现过程可以为:第一转发节点基于BFD群组的状态,处理上一级BFD会话的流程,上一级BFD会话用于检测第一转发节点与第二转发节点之间的路径的故障。Based on the method provided in the first aspect, in one possible implementation, the implementation process of the first forwarding node notifying the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group may be: the first forwarding node based on The status of the BFD group and the process of processing the upper-level BFD session. The upper-level BFD session is used to detect the failure of the path between the first forwarding node and the second forwarding node.
通过上述实现方式,第一转发节点能够基于BFD群组的状态联动上一级BFD会话通告多条路径的故障情况,一方面不会对现有组网造成太大改动,提高了本申请实施例的兼容性。另一方面,联动上一级BFD会话通告多条路径的故障情况可以实现第二转发节点快速感知故障,有利于第二转发节点快速换路。Through the above implementation method, the first forwarding node can link the upper-level BFD session to notify the fault conditions of multiple paths based on the status of the BFD group. On the one hand, it will not cause too much change to the existing network and improve the embodiment of the present application. compatibility. On the other hand, linking the upper-level BFD session to notify the fault conditions of multiple paths can enable the second forwarding node to quickly detect faults, which is beneficial to the second forwarding node to quickly change paths.
基于第一方面提供的方法,在一种可能的实现方式中,第一转发节点基于BFD群组的状态,处理上一级BFD会话的流程的实现过程可以为:如果BFD群组的状态为关闭状态,第一转发节点则不向第二转发节点发送第一BFD报文。相应地,如果BFD群组的状态为打开状态,第一转发节点则向第二转发节点发送第一BFD报文。Based on the method provided in the first aspect, in a possible implementation manner, the first forwarding node can implement the process of processing the upper-level BFD session based on the status of the BFD group as follows: If the status of the BFD group is closed status, the first forwarding node does not send the first BFD message to the second forwarding node. Correspondingly, if the status of the BFD group is open, the first forwarding node sends the first BFD message to the second forwarding node.
BFD会话的双方周期性地发送BFD报文,以使对端基于接收BFD报文的情况来确定是否存在故障。因此,第一转发节点在周期性向第二转发节点发送BFD报文的过程中,如果检测到BFD群组的状态为关闭状态,则不再向第二转发节点发送BFD报文,如此第二转发节点将检测到该上一级BFD会话存在故障,也即检测到第一转发节点上存在故障,从而达到将多条路径的故障情况通过上一级BFD会话传递给第一转发节点,实现跨分段网络的故障检测。Both parties in a BFD session periodically send BFD packets so that the other end can determine whether a fault exists based on the reception of BFD packets. Therefore, when the first forwarding node periodically sends BFD packets to the second forwarding node, if it detects that the status of the BFD group is closed, it will no longer send BFD packets to the second forwarding node, so that the second forwarding node The node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault on the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session, achieving cross-bundling Fault detection on segmented networks.
基于第一方面提供的方法,在一种可能的实现方式中,第一转发节点基于BFD群组的状态,处理上一级BFD会话的流程的实现过程可以为:如果BFD群组的状态为关闭状态,第一转发节点则将上一级BFD会话的状态设置为关闭状态,并向第二转发节点发送状态通告消息,状态通告消息指示上一级BFD会话的状态为关闭状态。相应地,如果BFD群组的状态为打开状态,第一转发节点则不执行将上一级BFD会话状态设置为关闭状态的操作。Based on the method provided in the first aspect, in a possible implementation manner, the first forwarding node can implement the process of processing the upper-level BFD session based on the status of the BFD group as follows: If the status of the BFD group is closed status, the first forwarding node sets the status of the upper-level BFD session to the closed state, and sends a status notification message to the second forwarding node. The status notification message indicates that the status of the upper-level BFD session is closed. Correspondingly, if the status of the BFD group is in the open state, the first forwarding node does not perform the operation of setting the upper-level BFD session status to the closed state.
在BFD会话中,第一转发节点具有直接设置BFD会话状态为关闭状态并通告BFD会话状态的能力。因此,第一转发节点如果检测到BFD群组的状态为关闭状态,则直接将上一级BFD会话的状态设置为关闭状态,并向第二转发节点发送状态通告消息,如此第二转发节点 将检测到该上一级BFD会话存在故障,也即检测到第一转发节点上存在故障,从而达到将多条路径的故障情况通过上一级BFD会话传递给第一转发节点,实现跨分段网络的故障检测。In a BFD session, the first forwarding node has the ability to directly set the BFD session status to the closed state and advertise the BFD session status. Therefore, if the first forwarding node detects that the status of the BFD group is closed, it directly sets the status of the upper-level BFD session to the closed state, and sends a status notification message to the second forwarding node. In this way, the second forwarding node will It is detected that there is a fault in the upper-level BFD session, that is, it is detected that there is a fault on the first forwarding node, so that the fault conditions of multiple paths are passed to the first forwarding node through the upper-level BFD session, achieving cross-segment network fault detection.
基于第一方面提供的方法,在一种可能的实现方式中,第一转发节点基于BFD群组的状态,处理上一级BFD会话的流程的实现过程可以为:在接收到来自第二转发节点的第二BFD报文时,如果BFD群组的状态为关闭状态,第一转发节点则丢弃第二BFD报文,不执行基于第二BFD报文更新当前BFD检测周期内接收到的BFD报文数量的操作。相应地,如果BFD群组的状态为打开状态,第一转发节点则基于第二BFD报文更新当前BFD检测周期内接收到的BFD报文数量。Based on the method provided in the first aspect, in a possible implementation manner, the first forwarding node based on the status of the BFD group, the implementation process of processing the upper-level BFD session may be: after receiving the message from the second forwarding node When receiving the second BFD packet, if the status of the BFD group is closed, the first forwarding node discards the second BFD packet and does not update the BFD packets received in the current BFD detection cycle based on the second BFD packet. Quantity operations. Correspondingly, if the status of the BFD group is open, the first forwarding node updates the number of BFD packets received in the current BFD detection cycle based on the second BFD packet.
在异步模式下BFD会话中,如果第一转发节点在接收到第二转发节点发送的BFD报文时,并不更新当前BFD检测周期内接收到的BFD报文数量(也即丢弃接收到的BFD报文),那么第一转发节点后续在当前检测周期达到时,统计的BFD报文数量将达不到要求数量,此时第一转发节点则确定出上一级BFD会话的状态为关闭状态,并向第二转发节点发送状态通告报文。如此第二转发节点将检测到该上一级BFD会话存在故障,也即检测到第一转发节点上存在故障,从而达到将多条路径的故障情况通过上一级BFD会话传递给第一转发节点,实现跨分段网络的故障检测。In a BFD session in asynchronous mode, if the first forwarding node receives a BFD packet sent by the second forwarding node, it does not update the number of BFD packets received in the current BFD detection cycle (that is, discards the received BFD packets). message), then when the current detection cycle is reached, the number of BFD packets counted by the first forwarding node will not reach the required number. At this time, the first forwarding node determines that the status of the upper-level BFD session is closed. and sends a status notification message to the second forwarding node. In this way, the second forwarding node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault in the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session. , to achieve fault detection across segmented networks.
基于第一方面提供的方法,在一种可能的实现方式中,第一转发节点基于BFD群组的状态,处理上一级BFD会话的流程的实现过程可以为:在接收到来自第二转发节点的第三BFD报文时,如果BFD群组的状态为关闭状态,第一转发节点则丢弃第三BFD报文,不执行将第三BFD报文返回至第二转发节点的操作。相应地,如果BFD群组的状态为打开状态,第一转发节点则将第三BFD报文返回至第二转发节点。Based on the method provided in the first aspect, in a possible implementation manner, the first forwarding node based on the status of the BFD group, the implementation process of processing the upper-level BFD session may be: after receiving the message from the second forwarding node When receiving the third BFD packet, if the status of the BFD group is closed, the first forwarding node discards the third BFD packet and does not perform the operation of returning the third BFD packet to the second forwarding node. Correspondingly, if the status of the BFD group is open, the first forwarding node returns the third BFD packet to the second forwarding node.
在查询模式下BFD会话或SBFD会话中,如果第一转发节点在接收到第二转发节点发送的BFD报文时,并不向第二转发节点返回该BFD报文,此时第二转发节点则无法接收到第一转发节点返回的BFD报文。如此第二转发节点将检测到该上一级BFD会话存在故障,也即检测到第一转发节点上存在故障,从而达到将多条路径的故障情况通过上一级BFD会话传递给第一转发节点,实现跨分段网络的故障检测。In a BFD session or SBFD session in query mode, if the first forwarding node does not return the BFD message to the second forwarding node when receiving the BFD message sent by the second forwarding node, the second forwarding node will The BFD packet returned by the first forwarding node cannot be received. In this way, the second forwarding node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault in the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session. , to achieve fault detection across segmented networks.
基于第一方面提供的方法,在一种可能的实现方式中,上一级BFD会话为异步模式下的BFD会话,查询模式下的BFD会话或无缝双向转发检测SBFD会话。Based on the method provided in the first aspect, in a possible implementation manner, the upper-level BFD session is a BFD session in asynchronous mode, a BFD session in query mode or a seamless bidirectional forwarding detection SBFD session.
本申请实施例联动的上一级BFD会话包括各种标准协议中规定的BFD会话,提高了跨分段网络故障感知的灵活性。The upper-level BFD sessions linked in this embodiment of the present application include BFD sessions specified in various standard protocols, which improves the flexibility of fault sensing across segmented networks.
基于第一方面提供的方法,在一种可能的实现方式中,在该方法中,第一转发节点还可以获取BFD群组;第一转发节点确定BFD群组与上一级BFD会话的对应关系。Based on the method provided in the first aspect, in a possible implementation manner, in this method, the first forwarding node can also obtain the BFD group; the first forwarding node determines the corresponding relationship between the BFD group and the upper-level BFD session. .
为了能够实现将BFD群组的状态和上一级BFD会话进行联动,需要预先将上一级BFD会话与BFD群组绑定,以建立BFD群组与上一级BFD会话的对应关系,并基于BFD群组的状态处理上一级BFD会话的流程。In order to be able to link the status of the BFD group with the upper-level BFD session, it is necessary to bind the upper-level BFD session to the BFD group in advance to establish the corresponding relationship between the BFD group and the upper-level BFD session, and based on The status of the BFD group handles the process of the upper-level BFD session.
基于第一方面提供的方法,在一种可能的实现方式中,第一转发节点基于BFD群组的状态向第二转发节点通告多条路径的故障情况的实现过程可以为:第一转发节点向第二转发节点发送故障通告消息,故障通告消息用于向第二转发节点通告多条路径的故障情况。Based on the method provided in the first aspect, in one possible implementation, the implementation process of the first forwarding node notifying the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group may be: the first forwarding node The second forwarding node sends a fault notification message, and the fault notification message is used to notify the second forwarding node of fault conditions of multiple paths.
除了可以通过联动上一级BFD会话进行故障通告之外,还可以单独通过故障通告消息通告故障。提高了跨分段网络故障感知的灵活性。In addition to reporting faults through linkage with the upper-level BFD session, faults can also be reported separately through fault notification messages. Improved flexibility in fault awareness across segmented networks.
基于第一方面提供的方法,在一种可能的实现方式中,该故障通告消息携带BFD群组的状态。Based on the method provided in the first aspect, in a possible implementation manner, the fault notification message carries the status of the BFD group.
当故障通告消息携带BFD群组的状态时,第二转发节点基于该故障通告消息可快速确定多条路径的故障情况。When the fault notification message carries the status of the BFD group, the second forwarding node can quickly determine fault conditions of multiple paths based on the fault notification message.
基于第一方面提供的方法,在一种可能的实现方式中,第一转发节点获取BFD群组的状态之前,第一转发节点还可以周期性获取多条路径中每条路径的BFD会话状态;第一转发节点基于多条路径中每条路径的BFD会话状态,周期性更新并存储BFD群组的状态。这种场景下,第一转发节点获取BFD群组的状态的实现过程可以为:第一转发节点获取存储的BFD群组的状态。Based on the method provided in the first aspect, in one possible implementation, before the first forwarding node obtains the status of the BFD group, the first forwarding node can also periodically obtain the BFD session status of each path in the multiple paths; The first forwarding node periodically updates and stores the status of the BFD group based on the BFD session status of each of the multiple paths. In this scenario, the implementation process for the first forwarding node to obtain the status of the BFD group may be: the first forwarding node obtains the stored status of the BFD group.
第一转发节点可以预先周期性确定并存储BFD群组的状态,这样可以实现第二转发节点快速感知故障,有利于第二转发节点快速换路。The first forwarding node can periodically determine and store the status of the BFD group in advance, so that the second forwarding node can quickly detect faults and facilitate rapid path change by the second forwarding node.
基于第一方面提供的方法,在一种可能的实现方式中,第一转发节点获取BFD群组的状态的实现过程可以为:第一转发节点获取多条路径中每条路径的BFD会话状态;第一转发节点基于多条路径中每条路径的BFD会话状态,确定BFD群组的状态。Based on the method provided in the first aspect, in a possible implementation manner, the implementation process for the first forwarding node to obtain the status of the BFD group may be: the first forwarding node obtains the BFD session status of each path among the multiple paths; The first forwarding node determines the status of the BFD group based on the BFD session status of each of the multiple paths.
第一转发节点也可以临时确定BFD群组的状态。这种场景下,第一转发节点无需周期性更新并存储BFD群组的状态,节省了第一转发节点的存储压力和数据处理压力。The first forwarding node may also temporarily determine the status of the BFD group. In this scenario, the first forwarding node does not need to periodically update and store the status of the BFD group, which saves the storage pressure and data processing pressure of the first forwarding node.
基于第一方面提供的方法,在一种可能的实现方式中,前述的多条路径用于转发来自第二转发节点的报文流。Based on the method provided in the first aspect, in a possible implementation manner, the aforementioned multiple paths are used to forward the message flow from the second forwarding node.
基于本申请实施提供的方法,第二转发节点能够感知到本端发送的报文流在第二分段网络内可能使用的路径的故障情况,从而便于在检测到故障时进行换路,避免数据丢包。Based on the method provided by this application, the second forwarding node can sense the failure of the path that the message flow sent by the local end may use in the second segmented network, so as to facilitate path change when a failure is detected and avoid data transmission. Packet loss.
基于第一方面提供的方法,在一种可能的实现方式中,第一分段网络和第二分段网络分别用于承载以下业务包括中的至少一项:SRv6 Policy业务、SRv6 BE业务、VLL业务、VPLS业务;第一分段网络承载的业务和第二分段网络承载的业务不同。Based on the method provided in the first aspect, in a possible implementation manner, the first segmented network and the second segmented network are respectively used to carry at least one of the following services: SRv6 Policy service, SRv6 BE service, VLL Services, VPLS services; the services carried by the first segment network are different from the services carried by the second segment network.
本申请实施例提供的跨分段网络故障检测方法可以应用在各种级联的分段网络场景中,提高了本申请实施例的灵活性。The cross-segmented network fault detection method provided by the embodiments of the present application can be applied in various cascaded segmented network scenarios, which improves the flexibility of the embodiments of the present application.
基于第一方面提供的方法,在一种可能的实现方式中,第一转发节点获取BFD群组的状态的实现过程可以为:在第一转发节点的转发面上获取BFD群组的状态。Based on the method provided in the first aspect, in a possible implementation manner, the implementation process for the first forwarding node to obtain the status of the BFD group may be: obtaining the status of the BFD group on the forwarding plane of the first forwarding node.
当在转发面上获取BFD群组的状态时,能够实现第二转发节点快速感知到本端发送的报文流在第二分段网络内可能使用的路径的故障情况,从而便于在检测到故障时进行换路,避免数据丢包。When the status of the BFD group is obtained on the forwarding plane, the second forwarding node can quickly perceive the fault condition of the path that the packet flow sent by the local end may use in the second segmented network, thereby facilitating the detection of the fault. Change the path when necessary to avoid data packet loss.
基于第一方面提供的方法,在一种可能的实现方式中,第一转发节点基于BFD群组的状态向第二转发节点通告多条路径的故障情况的实现方式可以为:在第一转发节点的转发面上基于BFD群组的状态向第二转发节点通告多条路径的故障情况。Based on the method provided in the first aspect, in a possible implementation manner, the first forwarding node notifies the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group. The implementation method may be: at the first forwarding node The forwarding plane notifies the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group.
当在转发面上通告多条路径的故障情况时,能够实现第二转发节点快速感知到本端发送的报文流在第二分段网络内可能使用的路径的故障情况,从而便于在检测到故障时进行换路,避免数据丢包。When the fault conditions of multiple paths are announced on the forwarding plane, the second forwarding node can quickly sense the fault conditions of the paths that the packet flow sent by the local end may use in the second segmented network, thereby facilitating the detection. In case of failure, the path is changed to avoid data packet loss.
第二方面,提供了一种通信系统,该系统包括第一转发节点和第二转发节点,第一转发节点用于执行如第一方面提供的任一方法。In a second aspect, a communication system is provided. The system includes a first forwarding node and a second forwarding node. The first forwarding node is used to perform any method as provided in the first aspect.
第三方面,提供了一种网络设备,该网络设备包括存储器和处理器;In a third aspect, a network device is provided, the network device including a memory and a processor;
存储器用于存储程序指令;Memory is used to store program instructions;
处理器被配置为调用所述存储器中存储的程序,以使得该网络设备执行如第一方面提供的任一种方法。The processor is configured to call a program stored in the memory, so that the network device executes any method provided in the first aspect.
第四方面,提供了一种网络设备,该网络设备为通信系统中的第一转发节点,所述通信系统还包括第二转发节点,所述第一转发节点为第一分段网络和第二分段网络之间的边缘节点,所述第二转发节点位于所述第一分段网络内;所述第一转发节点包括收发模块和处理模块:In a fourth aspect, a network device is provided. The network device is a first forwarding node in a communication system. The communication system further includes a second forwarding node. The first forwarding node is a first segmented network and a second forwarding node. An edge node between segmented networks, the second forwarding node is located in the first segmented network; the first forwarding node includes a transceiver module and a processing module:
所述收发模块用于执行如第一方面提供的任一种方法中收发相关的操作;The transceiver module is configured to perform transceiver-related operations in any method provided in the first aspect;
所述处理模块用于执行如第一方面提供的任一种方法中除所述收发相关的操作之外的操作。The processing module is configured to perform operations other than the transceiver-related operations in any method provided in the first aspect.
第五方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在处理器上运行时,实现第一方面提供的任一种方法。In a fifth aspect, a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium. When the instructions are run on a processor, any method provided in the first aspect is implemented.
第六方面,提供了一种计算机程序产品,所述计算机程序产品包含指令,所述指令在处理器上运行时,实现第一方面提供的任一种方法。In a sixth aspect, a computer program product is provided. The computer program product includes instructions. When the instructions are run on a processor, any one of the methods provided in the first aspect is implemented.
上述第二方面至第六方面所获得的技术效果与第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。The technical effects obtained by the above-mentioned second to sixth aspects are similar to those obtained by the corresponding technical means in the first aspect, and will not be described again here.
附图说明Description of the drawings
图1是本申请实施例提供的一种通信系统的架构示意图;Figure 1 is a schematic architectural diagram of a communication system provided by an embodiment of the present application;
图2是本申请实施例提供的一种跨分段网络的故障检测方法流程图;Figure 2 is a flow chart of a cross-segmented network fault detection method provided by an embodiment of the present application;
图3是本申请实施例提供的另一种通信系统的架构示意图;Figure 3 is a schematic architectural diagram of another communication system provided by an embodiment of the present application;
图4是本申请实施例提供的一种群组配置界面示意图;Figure 4 is a schematic diagram of a group configuration interface provided by an embodiment of the present application;
图5是本申请实施例提供的另一种群组配置界面示意图;Figure 5 is a schematic diagram of another group configuration interface provided by an embodiment of the present application;
图6是本申请实施例提供的一种网络设备的结构示意图;Figure 6 is a schematic structural diagram of a network device provided by an embodiment of the present application;
图7是本申请实施例提供的一种设备的结构示意图;Figure 7 is a schematic structural diagram of a device provided by an embodiment of the present application;
图8是本申请实施例提供的另一种设备的结构示意图;Figure 8 is a schematic structural diagram of another device provided by an embodiment of the present application;
图9是本申请实施例提供的一种通信系统的架构示意图。Figure 9 is a schematic architectural diagram of a communication system provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
在对本申请实施例进行详细解释说明之前,先对本申请实施例的应用场景进行介绍。Before explaining the embodiments of the present application in detail, the application scenarios of the embodiments of the present application are first introduced.
目前,在网际互联协议(internet protocol,IP)网络部署中,大部分端到端网络都是通过 分段网络级联而成。不同的分段网络用于承载不同的业务,从而实现端到端的报文流转发流程由不同的业务实现,以此提高IP网络的灵活性。这种转发报文流的方式也称为跨分段网络转发报文流。Currently, in Internet Protocol (IP) network deployment, most end-to-end networks are formed by cascading segmented networks. Different segmented networks are used to carry different services, so that the end-to-end packet flow forwarding process is implemented by different services, thereby improving the flexibility of the IP network. This way of forwarding packet flows is also called forwarding packet flows across segmented networks.
为了后续便于说明,将分段网络上承载的业务称为分段业务。分段业务具体是指分段网络如何转发报文流的业务。示例地,分段业务可以包括SRv6 policy业务、SRv6 BE业务、VLL业务以及VPLS业务等。前述示例的业务的详细内容均可以参考相关标准协议,在此不再详细说明。此外,本申请实施例中的分段业务也不限于以上四种,任意用于实现报文流转发的业务均在本申请实施例中的分段业务的范围之内。For the convenience of subsequent explanation, the services carried on the segmented network are called segmented services. Segmentation services specifically refer to how segmented networks forward packet flows. For example, segmented services may include SRv6 policy services, SRv6 BE services, VLL services, and VPLS services. For details of the services in the foregoing examples, please refer to the relevant standard protocols and will not be described in detail here. In addition, the segmented services in the embodiment of the present application are not limited to the above four types. Any service used to implement packet flow forwarding is within the scope of the segmented service in the embodiment of the present application.
在跨分段网络转发报文流的场景中,对于相邻的上一级分段网络与下一级分段网络,当下一级分段网络内出现故障时,上一级分段网络需要快速感知到该故障,以便于上一级分段网络快速切换报文流的转发路径,从而避免端到端之间的报文流丢包。In the scenario of forwarding packet flows across segmented networks, for the adjacent upper-level segmented network and lower-level segmented network, when a fault occurs in the lower-level segmented network, the upper-level segmented network needs to quickly This fault is sensed so that the upper-level segmented network can quickly switch the forwarding path of the packet flow, thereby avoiding packet loss in the packet flow between end-to-end.
在一些场景中,上一级分段网络可以通过协议收敛的方式(比如Hello报文)感知下一级分段网络内的故障。但是由于收敛速度较慢,导致这种故障检测方式的检测时长通常在秒(s)级。而报文流的传输速率级别为千兆比特每秒(GB/s)。如此在s级的检测时长内,将会发生大量的丢包事件,从而使得端到端之间的流量大量丢包。In some scenarios, the upper-level segmented network can sense faults in the lower-level segmented network through protocol convergence (such as Hello messages). However, due to the slow convergence speed, the detection time of this fault detection method is usually at the second (s) level. The transmission rate level of the message flow is gigabit per second (GB/s). In this way, within the S-level detection duration, a large number of packet loss events will occur, resulting in a large number of packet loss in end-to-end traffic.
基于此,本申请实施例提供了一种跨分段网络的故障检测方法,避免只能依赖协议硬收敛来检测故障进而导致报文流大量丢包。Based on this, embodiments of the present application provide a fault detection method across segmented networks to avoid relying on protocol hard convergence to detect faults, which may lead to a large number of packet losses in message flows.
下面对本申请实施例涉及的网络架构进行解释说明。The following explains the network architecture involved in the embodiments of this application.
图1是本申请实施例提供的一种通信系统的架构示意图。如图1所示,该通信系统包括第一终端10和第二终端20,第一终端10和第二终端20之间部署有第一分段网络30和第二分段网络40。第一分段网络30为靠近第一终端10的分段网络,第二分段网络40为靠近第二终端20的分段网络。Figure 1 is a schematic architectural diagram of a communication system provided by an embodiment of the present application. As shown in Figure 1, the communication system includes a first terminal 10 and a second terminal 20, and a first segment network 30 and a second segment network 40 are deployed between the first terminal 10 and the second terminal 20. The first segmented network 30 is a segmented network close to the first terminal 10 , and the second segmented network 40 is a segmented network close to the second terminal 20 .
需要说明的是,第一终端10和第二终端20之间可以部署有多个分段网络,图1是以两个分段网络为例进行说明,并不构成对本申请实施例提供的通信系统的限定。It should be noted that multiple segmented networks may be deployed between the first terminal 10 and the second terminal 20. Figure 1 takes two segmented networks as an example for illustration, and does not constitute a communication system provided by the embodiment of the present application. restrictions.
为了后续便于说明,将第一分段网络30承载的业务称为第一分段业务,将第二分段网络40承载的业务称为第二分段业务,也即第一分段网络30内的转发节点基于第一分段业务转发报文流,第二分段网络40内的转发节点基于第二分段业务转发报文流。For the convenience of subsequent explanation, the services carried by the first segmented network 30 are called first segmented services, and the services carried by the second segmented network 40 are called second segmented services. That is, the services carried by the first segmented network 30 are called The forwarding node forwards the message flow based on the first segmented service, and the forwarding node in the second segmented network 40 forwards the message flow based on the second segmented service.
其中,第一分段网络和第二分段网络分别用于承载以下业务包括中的至少一项:SRv6 Policy业务、SRv6 BE业务、VLL业务、VPLS业务。且第一分段网络承载的业务和第二分段网络承载的业务不同。需要说明的是,第一分段业务和第二分段业务并不限于以上四种,任意用于实现报文流转发的业务均在第一分段业务和第二分段业务的范围之内。Among them, the first segmented network and the second segmented network are respectively used to carry at least one of the following services: SRv6 Policy service, SRv6 BE service, VLL service, and VPLS service. Moreover, the services carried by the first segmented network are different from the services carried by the second segmented network. It should be noted that the first segment business and the second segment business are not limited to the above four types. Any business used to implement packet flow forwarding is within the scope of the first segment business and the second segment business. .
在一些实施例中,如图1所示,通信系统中部署有第一转发节点R1、第二转发节点R2、第三转发节点R3、第四转发节点R4、第五转发节点R5、第六转发节点R6、第七转发节点R7。In some embodiments, as shown in Figure 1, the communication system is deployed with a first forwarding node R1, a second forwarding node R2, a third forwarding node R3, a fourth forwarding node R4, a fifth forwarding node R5, a sixth forwarding node Node R6, seventh forwarding node R7.
其中,第一转发节点R1和第四转发节点R4为第一分段网络20与第二分段网络30之间的边缘转发节点。第二转发节点R2和第三转发节点R3位于第一分段网络20内。第五转发节点R5和第六转发节点R6位于第二分段网络30内。第七转发节点R7位于第二分段网络40和第二终端20之间。The first forwarding node R1 and the fourth forwarding node R4 are edge forwarding nodes between the first segment network 20 and the second segment network 30 . The second forwarding node R2 and the third forwarding node R3 are located within the first segmented network 20 . The fifth forwarding node R5 and the sixth forwarding node R6 are located within the second segment network 30 . The seventh forwarding node R7 is located between the second segment network 40 and the second terminal 20 .
如图1所示,第一终端10与第二转发节点R2连接,以通过第二转发节点R2将第一终端10向第二终端20发送的报文流转发至第一分段网络30内。As shown in FIG. 1 , the first terminal 10 is connected to the second forwarding node R2 to forward the message stream sent by the first terminal 10 to the second terminal 20 to the first segmented network 30 through the second forwarding node R2.
第二转发节点R2还分别与第一转发节点R1和第三转发节点R3连接,第三转发节点R3还与第四转发节点R4连接。其中,第二转发节点R2与第一转发节点R1之间的路径可以称为主路径,第二转发节点R2、第三转发节点R3和第四转发节点R4组成的路径可以称为备路径。如此,第二转发节点R2在接收到来自第一终端10的报文流时,可以通过图1中的主路径或备路径分别发送至边缘转发节点R1或R4,以由边缘转发节点R1或R4将该报文流转发至第二分段网络40内。The second forwarding node R2 is also connected to the first forwarding node R1 and the third forwarding node R3 respectively, and the third forwarding node R3 is also connected to the fourth forwarding node R4. The path between the second forwarding node R2 and the first forwarding node R1 may be called a primary path, and the path composed of the second forwarding node R2, the third forwarding node R3, and the fourth forwarding node R4 may be called a backup path. In this way, when the second forwarding node R2 receives the message flow from the first terminal 10, it can send it to the edge forwarding node R1 or R4 through the main path or the backup path in Figure 1, respectively, so that the edge forwarding node R1 or R4 The packet flow is forwarded to the second segmented network 40 .
第一转发节点R1还分别与第四转发节点R4、第五转发节点R5和第六转发节点R6连接。第四转发节点R4还分别与第五转发节点R5和第六转发节点R6连接,第五转发节点R5还与第六转发节点R6连接。第五转发节点R5和第六转发节点R6还分别与第七转发节点R7连接。第七转发节点R7还与第二终端20连接。The first forwarding node R1 is also connected to the fourth forwarding node R4, the fifth forwarding node R5 and the sixth forwarding node R6 respectively. The fourth forwarding node R4 is also connected to the fifth forwarding node R5 and the sixth forwarding node R6 respectively, and the fifth forwarding node R5 is also connected to the sixth forwarding node R6. The fifth forwarding node R5 and the sixth forwarding node R6 are also connected to the seventh forwarding node R7 respectively. The seventh forwarding node R7 is also connected to the second terminal 20 .
如此,当第一转发节点R1接收到来自第二转发节点R2的报文流时,第一转发节点R1可以通过图1中三个分段业务2对应的路径中的任一路径转发该报文流,以使报文流到达第二终端20。In this way, when the first forwarding node R1 receives the message flow from the second forwarding node R2, the first forwarding node R1 can forward the message through any of the three paths corresponding to the segmented service 2 in Figure 1. flow, so that the message flow reaches the second terminal 20.
为了后续便于说明,对于如下三条路径,第一转发节点R1与第六转发节点R6之间的路径、第一转发节点R1与第五转发节点R5之间的路径、第一转发节点R1与第四转发节点R4之间的路径,将这三条路径称为第一转发节点R1对应的三条路径。在本申请实施例中,第一转发节点R1对应的三条路径可以包括:位于第二分段网络40内、且是第一转发节点R1用于转发来自第二转发节点R2的报文流的路径。For the convenience of subsequent explanation, for the following three paths, the path between the first forwarding node R1 and the sixth forwarding node R6, the path between the first forwarding node R1 and the fifth forwarding node R5, the path between the first forwarding node R1 and the fourth forwarding node R5. The paths between the forwarding nodes R4 are called the three paths corresponding to the first forwarding node R1. In this embodiment of the present application, the three paths corresponding to the first forwarding node R1 may include: paths located in the second segment network 40 and used by the first forwarding node R1 to forward the message flow from the second forwarding node R2. .
同样地,当第四转发节点R4接收到来自第二转发节点R2的报文流时,第四转发节点R4同样可以通过对应的三条路径中的任一路径转发该报文流,以使报文流到达第二终端20。第四转发节点R4对应的三条路径可以参考第一转发节点R1对应的三条路径的相关说明,在此不再赘述。Similarly, when the fourth forwarding node R4 receives the message flow from the second forwarding node R2, the fourth forwarding node R4 can also forward the message flow through any of the corresponding three paths, so that the message The stream reaches the second terminal 20. For the three paths corresponding to the fourth forwarding node R4, please refer to the relevant description of the three paths corresponding to the first forwarding node R1, which will not be described again here.
在上述端到端的报文流的转发场景中,当第一转发节点R1对应的路径出现故障时,第一分段网络30内的第二转发节点R2需要感知到该故障,以便重新选路,以实现将来自第一终端10的报文流通过备路径转发。其中,第一分段网络30内的第二转发节点R2感知第一转发节点R1在第二分段网络40内对应的路径的故障情况,该过程可称为跨分段网络的故障检测。In the above end-to-end packet flow forwarding scenario, when the path corresponding to the first forwarding node R1 fails, the second forwarding node R2 in the first segmented network 30 needs to sense the failure in order to reselect the path. To forward the packet flow from the first terminal 10 through the backup path. Among them, the second forwarding node R2 in the first segment network 30 senses the fault condition of the path corresponding to the first forwarding node R1 in the second segment network 40. This process can be called cross-segment network fault detection.
为了缩短故障检测时间,可以基于BFD会话来实现跨分段网络的故障检测。为了便于理解,在此对BFD会话进行解释说明。To shorten fault detection time, fault detection across segmented networks can be implemented based on BFD sessions. For ease of understanding, the BFD session is explained here.
BFD提供了一个通用的、标准的,并且和介质、协议无关的单纯的快速故障检测协议。该协议的作用是为了检测部署BFD的中间链路的转发连通状态。BFD原理为:基于两个系统或设备之间的中间链路建立一个BFD会话通道,并且在该中间链路连续不断周期性的互相发送BFD报文(也称为BFD检测报文),双方有一方在规定时间内没有接收到对端的指定数量的BFD报文就认为中间链路的某个部分出现了故障,就会将该BFD会话通道关闭,并执行删去路由、减少/增加路径优先级等操作,保障流量重新选路,进而实现流量的快速切换。BFD provides a universal, standard, simple and fast fault detection protocol that is independent of media and protocols. The purpose of this protocol is to detect the forwarding connectivity status of the intermediate link where BFD is deployed. The principle of BFD is to establish a BFD session channel based on the intermediate link between two systems or devices, and continuously and periodically send BFD packets (also called BFD detection packets) to each other on the intermediate link. Both parties have If one party does not receive the specified number of BFD messages from the opposite end within the specified time, it will consider that a certain part of the intermediate link has failed, close the BFD session channel, and delete the route and reduce/increase the path priority. and other operations to ensure traffic re-routing, thereby achieving rapid traffic switching.
目前基于BFD会话实现跨分段网络的故障检测的技术主要是“BFD触发关闭(BFD trigger if-down)”技术。The current technology that implements fault detection across segmented networks based on BFD sessions is mainly the "BFD trigger if-down" technology.
下面以图1中的第一转发节点R1为例对“BFD trigger if-down”技术进行解释说明。The following uses the first forwarding node R1 in Figure 1 as an example to explain the "BFD trigger if-down" technology.
在图1中第一转发节点R1在第二分段网络40内对应的三条路径中每条路径上部署BFD会话。每个BFD会话均和第一转发节点R1上的目标入接口联动,目标入接口为第一转发节点R1上用于接收来自第二转发节点R2的报文流的入接口。In Figure 1, the first forwarding node R1 deploys a BFD session on each of the three corresponding paths in the second segment network 40. Each BFD session is associated with the target incoming interface on the first forwarding node R1. The target incoming interface is the incoming interface on the first forwarding node R1 used to receive the packet flow from the second forwarding node R2.
在这三条路径上任一条路径BFD会话发生故障时,由于该路径上的BFD会话和目标入接口已经联动,因此将触发目标入接口关闭(down)掉,进而触发第二转发节点R2重新换路。When the BFD session on any of these three paths fails, since the BFD session on this path has been associated with the target incoming interface, the target incoming interface will be triggered to shut down, which will trigger the second forwarding node R2 to reroute.
“BFD trigger if-down”技术有如下三个问题:The "BFD trigger if-down" technology has the following three problems:
(1)第一转发节点R1在第二分段网络40内对应的三条路径中任一条路径故障时,都将触发第二转发节点R2感知到故障。因此这种故障检测方式只能检测到单点故障,单点故障可以理解为只能检测到其中一条路径上的故障。如果单点故障下就触发第二转发节点R2重新换路,很容易导致网络资源的浪费。(1) When any one of the three corresponding paths in the second segment network 40 fails, the first forwarding node R1 will trigger the second forwarding node R2 to sense the failure. Therefore, this fault detection method can only detect single-point faults. Single-point faults can be understood as only detecting faults on one of the paths. If a single point failure triggers the second forwarding node R2 to reroute, it will easily lead to a waste of network resources.
基于此,本申请实施例提供的故障检测方法能够实现多点故障检测,详细实现方式将在后续实施例中解释说明。Based on this, the fault detection method provided by the embodiments of the present application can realize multi-point fault detection, and the detailed implementation method will be explained in subsequent embodiments.
(2)每个BFD会话均和第一转发节点R1上的目标入接口联动,是指控制面上的联动。也即,在具体检测故障时,第一转发节点R1的控制面上先获取每条路径的BFD会话的故障情况,然后第一转发节点R1的控制面上基于每条路径的BFD会话的故障情况确定是否关闭目标入接口,如果第一转发节点R1的控制面确定关闭目标入接口,第一转发节点R1的控制面则向第一转发节点R1的转发面下发关闭指令,以使第一转发节点R1的转发面将目标入接口的状态更新为关闭状态。(2) Each BFD session is associated with the target ingress interface on the first forwarding node R1, which refers to the association on the control plane. That is, when specifically detecting a fault, the control plane of the first forwarding node R1 first obtains the fault status of the BFD session of each path, and then the control plane of the first forwarding node R1 obtains the fault status of the BFD session of each path based on the fault status. Determine whether to close the target inbound interface. If the control plane of the first forwarding node R1 determines to close the target inbound interface, the control plane of the first forwarding node R1 issues a close command to the forwarding plane of the first forwarding node R1, so that the first forwarding node R1 The forwarding plane of node R1 updates the status of the target incoming interface to the down state.
这种控制面上的联动无法实现流量的快速切换。基于此,本申请实施例提供的故障检测方法能够实现转发面上的联动,从而提高故障情况下的流量切换速率。详细实现方式将在后续实施例中解释说明。This linkage on the control surface cannot achieve rapid switching of traffic. Based on this, the fault detection method provided by the embodiment of the present application can realize linkage on the forwarding plane, thereby increasing the traffic switching rate in the event of a fault. Detailed implementation will be explained in subsequent embodiments.
(3)由于目前“BFD trigger if-down”技术只能实现单点故障检测,为了覆盖更多的故障情况,需要基于第一转发节点R1在第二分段网络40内的各条路由部署BFD会话。(3) Since the current "BFD trigger if-down" technology can only achieve single-point fault detection, in order to cover more fault situations, BFD needs to be deployed based on each route of the first forwarding node R1 in the second segment network 40 session.
示例地,针对第一转发节点R1部署位于第二分段网络40内的一条路由,该路由包括三个出接口,三个出接口为R1分别与R4、R5和R6之间的出接口,这三个出接口之间形成负载分担。然后部署BFD会话检测该路由,如果该路由存在故障,该BFD会话的状态则更新为关闭状态,以实现“BFD trigger if-down”。For example, a route located in the second segment network 40 is deployed for the first forwarding node R1. The route includes three outbound interfaces, and the three outbound interfaces are the outbound interfaces between R1 and R4, R5 and R6 respectively. Load sharing is formed between the three outgoing interfaces. Then deploy a BFD session to detect the route. If there is a fault in the route, the status of the BFD session is updated to the closed state to achieve "BFD trigger if-down".
但是基于路由部署BFD会话的方式不够灵活。基于此,本申请实施例提供的故障检测方法能够在无需基于路由部署BFD会话的情况下实现多点故障检测。详细实现方式将在后续实施例中解释说明。However, the way of deploying BFD sessions based on routing is not flexible enough. Based on this, the fault detection method provided by the embodiment of the present application can realize multi-point fault detection without deploying BFD sessions based on routing. Detailed implementation will be explained in subsequent embodiments.
下面对本申请实施例提供的跨分段网络的故障检测方法进行详细解释说明。The cross-segmented network fault detection method provided by the embodiment of the present application is explained in detail below.
图2是本申请实施例提供的一种跨分段网络的故障检测方法流程图。如图2所示,该方法包括如下步骤201和步骤202。Figure 2 is a flow chart of a cross-segmented network fault detection method provided by an embodiment of the present application. As shown in Figure 2, the method includes the following steps 201 and 202.
步骤201:第一转发节点获取双向转发检测BFD群组的状态,BFD群组包括第一转发节点在第二分段网络内对应的多条路径中每条路径的BFD会话,BFD会话用于检测相应路径的故障。Step 201: The first forwarding node obtains the status of the bidirectional forwarding detection BFD group. The BFD group includes the BFD session of each of the multiple paths corresponding to the first forwarding node in the second segmented network. The BFD session is used for detection. Failure of the corresponding path.
其中,这多条路径可以为用于转发来自第二转发节点的报文流的全部或部分路径。可选地,这多条路径可以为第一转发节点对应的第二分段网络内的全部或部分路径。The multiple paths may be all or part of the paths used to forward the message flow from the second forwarding node. Optionally, the multiple paths may be all or part of the paths in the second segmented network corresponding to the first forwarding node.
需要说明的是,由于每条路径均对应第一转发节点上的一个出接口,因此本申请实施例中的多条路径可以通过第一转发节点上的多个出接口来分别标识。It should be noted that since each path corresponds to an outbound interface on the first forwarding node, the multiple paths in this embodiment of the present application can be respectively identified by multiple outbound interfaces on the first forwarding node.
示例地,第一转发节点上用于向第二分段网络转发报文流的出接口总共有10个。这10个出接口中的5个出接口用于转发来自第二转发节点的报文流。每个出接口对应一条在第二分段网络内转发报文流的路径。这种场景下,步骤201中的多条路径可以为这5个出接口对应的5条路径,也可以为这5条路径中的至少2条路径。或者,步骤201中的多条路径可以为这10个出接口对应的10条路径,也可以为这10条路径中的大部分路径。For example, there are a total of 10 outbound interfaces on the first forwarding node for forwarding packet flows to the second segmented network. Five of these 10 outbound interfaces are used to forward packet flows from the second forwarding node. Each outbound interface corresponds to a path for forwarding packet flows within the second segmented network. In this scenario, the multiple paths in step 201 may be the five paths corresponding to the five outbound interfaces, or they may be at least two of the five paths. Alternatively, the multiple paths in step 201 may be the 10 paths corresponding to the 10 outbound interfaces, or may be most of the 10 paths.
比如,对于图1所示的第一转发节点R1,步骤201中的多条路径可以为图1中标记有分段业务2对应的三条路径。也可以为这三条路径中的其中两条路径。For example, for the first forwarding node R1 shown in Figure 1, the multiple paths in step 201 may be the three paths marked with segment service 2 in Figure 1. It can also be two of these three paths.
由于BFD群组包括这多条路径中每条路径的BFD会话,而多条路径可以有以上多种情况,因此BFD群组中的BFD会话可以基于实际需求灵活配置,提高了本申请实施例提供的方法的灵活性。Since the BFD group includes BFD sessions for each of the multiple paths, and the multiple paths can have the above situations, the BFD sessions in the BFD group can be flexibly configured based on actual needs, which improves the capabilities provided by the embodiments of the present application. method flexibility.
示例地,如图3所示,将R1至R6的路径的BFD会话称为BFD会话1,将R1至R5的路径的BFD会话称为BFD会话2,将R1至R4的路径的BFD会话称为BFD会话3。此时BFD群组可以包括BFD会话1、BFD会话2和BFD会话3。也可以包括BFD会话1、BFD会话2和BFD会话3中任意两者。For example, as shown in Figure 3, the BFD session on the path from R1 to R6 is called BFD session 1, the BFD session on the path from R1 to R5 is called BFD session 2, and the BFD session on the path from R1 to R4 is called BFD session 2. BFD session 3. At this time, the BFD group may include BFD session 1, BFD session 2, and BFD session 3. It may also include any two of BFD session 1, BFD session 2, and BFD session 3.
另外,在本申请实施例中,BFD群组中组员可以由开发人员来配置。在一些实施例中,管理员配置BFD群组中的组员的实现方式可以为:第一转发节点响应于组员添加操作,将多条路径中每条路径的BFD会话作为BFD群组中的BFD会话。In addition, in this embodiment of the present application, the members of the BFD group can be configured by developers. In some embodiments, the administrator can configure the group members in the BFD group by: the first forwarding node responds to the group member adding operation and uses the BFD session of each path in the multiple paths as the BFD session in the BFD group. BFD session.
具体地,第一转发节点显示群组配置界面,该群组配置界面包括BFD会话配置选项;响应于开发人员在BFD会话配置选项上的触发操作,将多条路径中每条路径的BFD会话作为BFD群组中的BFD会话。Specifically, the first forwarding node displays a group configuration interface, which includes a BFD session configuration option; in response to the developer's triggering operation on the BFD session configuration option, the BFD session of each path in the multiple paths is used as BFD session in BFD group.
图4是本申请实施例提供的一种群组配置界面示意图。如图4所示,该群组配置界面显示有BFD群组名称选项、BFD会话配置选项等。Figure 4 is a schematic diagram of a group configuration interface provided by an embodiment of the present application. As shown in Figure 4, the group configuration interface displays BFD group name options, BFD session configuration options, etc.
其中,BFD群组名称选项用于开发人员输入BFD群组的名称。BFD会话配置选项用于开发人员输入BFD群组的各个组员。Among them, the BFD group name option is used by developers to enter the name of the BFD group. The BFD session configuration option allows developers to enter individual members of the BFD group.
当第一转发节点检测到开发人员通过预设操作触发BFD会话配置选项时,第一转发节点可以显示图4中的组员输入表格,该组员输入表格用于开发人员输入BFD群组中的各个BFD会话。如图4所示,对于图3所示的第一转发节点R1,开发人员在该组员输入表格输入BFD会话1、BFD会话2以及BFD会话3,从而实现将BFD会话1、BFD会话2以及BFD会话3作为BFD群组的组员,进而实现BFD会话1、BFD会话2以及BFD会话3,这三个BFD会话与BFD群组(BFD group)之间的联动。When the first forwarding node detects that the developer triggers the BFD session configuration option through a preset operation, the first forwarding node can display the group member input form in Figure 4, which is used by the developer to input the group member input form in the BFD group. Individual BFD sessions. As shown in Figure 4, for the first forwarding node R1 shown in Figure 3, the developer enters BFD session 1, BFD session 2 and BFD session 3 in the group member input form, thereby realizing the integration of BFD session 1, BFD session 2 and As a member of the BFD group, BFD session 3 realizes the linkage between BFD session 1, BFD session 2 and BFD session 3. These three BFD sessions and the BFD group (BFD group).
需要说明的是,上述配置过程是以开发人员在第一转发节点上进行配置为例进行说明。可选地,开发人员也可以在网络的控制节点上配置第一转发节点上的BFD群组,由控制节点将配置的BFD群组下发到第一转发节点。在此不再详细说明。It should be noted that the above configuration process is explained by taking the developer's configuration on the first forwarding node as an example. Optionally, the developer can also configure the BFD group on the first forwarding node on the control node of the network, and the control node delivers the configured BFD group to the first forwarding node. No further details will be given here.
另外,BFD群组包括第一转发节点对应的多条路径中每条路径的BFD会话,因此,BFD群组的状态相应地和多条路径中每条路径的BFD会话的状态相关。下面对BFD群组的状态 进行详细解释说明。In addition, the BFD group includes the BFD session of each of the multiple paths corresponding to the first forwarding node. Therefore, the state of the BFD group is correspondingly related to the state of the BFD session of each of the multiple paths. The status of the BFD group is explained in detail below.
在一些实施例中,BFD群组的状态能够指示BFD群组中是否存在BFD会话状态为关闭状态,或者说,能够指示BFD群组中的BFD会话是否全部是关闭状态。In some embodiments, the status of the BFD group can indicate whether there is a BFD session in the BFD group that is in the closed state, or it can indicate whether all BFD sessions in the BFD group are in the closed state.
这种场景下,BFD群组的状态和BFD群组中各个BFD会话的状态之间的关系可以为:在BFD群组中各个BFD会话均处于关闭状态的情况下,BFD群组的状态为关闭状态;在BFD群组中至少一个BFD会话的状态为打开状态的情况下,BFD群组的状态为打开状态。In this scenario, the relationship between the status of the BFD group and the status of each BFD session in the BFD group can be: when each BFD session in the BFD group is closed, the status of the BFD group is closed. Status; when the status of at least one BFD session in the BFD group is open, the status of the BFD group is open.
比如,对于图1所示的第一转发节点R1,在步骤201中的多条路径为图1中标记有分段业务2对应的三条路径的情况下,如图3所示,将R1至R6的路径的BFD会话称为BFD会话1,将R1至R5的路径的BFD会话称为BFD会话2,将R1至R4的路径的BFD会话称为BFD会话3。也即,BFD群组包括BFD会话1、BFD会话2和BFD会话3。当BFD会话1、BFD会话2以及BFD会话3的状态全部为关闭状态的情况下,BFD群组的状态才会为关闭状态,在BFD会话1、BFD会话2以及BFD会话3中存在至少一个BFD会话的状态为打开状态的情况下,BFD群组的状态则为打开状态。For example, for the first forwarding node R1 shown in Figure 1, when the multiple paths in step 201 are the three paths corresponding to segment service 2 marked in Figure 1, as shown in Figure 3, R1 to R6 The BFD session on the path from R1 to R5 is called BFD session 1, the BFD session on the path from R1 to R5 is called BFD session 2, and the BFD session on the path from R1 to R4 is called BFD session 3. That is, the BFD group includes BFD session 1, BFD session 2, and BFD session 3. When the status of BFD session 1, BFD session 2 and BFD session 3 are all closed, the status of the BFD group will be closed. There is at least one BFD in BFD session 1, BFD session 2 and BFD session 3. When the status of the session is open, the status of the BFD group is open.
在另一些实施例中,BFD群组的状态能够指示BFD群组中是否存在大部分BFD会话状态为关闭状态,或者说,能够指示BFD群组中的大部分BFD会话是否全部是关闭状态。In other embodiments, the status of the BFD group can indicate whether most BFD sessions in the BFD group are in the closed state, or, in other words, can indicate whether most of the BFD sessions in the BFD group are all in the closed state.
这种场景下,BFD群组的状态和BFD群组中各个BFD会话的状态之间的关系可以为:预先设置数量阈值,在BFD群组中超过数量阈值个BFD会话均处于关闭状态的情况下,BFD群组的状态为关闭状态;在BFD群组中低于数量阈值个BFD的状态为关闭状态的情况下,BFD群组的状态为打开状态。In this scenario, the relationship between the status of the BFD group and the status of each BFD session in the BFD group can be: pre-set a quantity threshold, and when all BFD sessions in the BFD group exceeding the quantity threshold are in a closed state , the status of the BFD group is closed; when the status of BFDs in the BFD group lower than the number threshold is closed, the status of the BFD group is open.
其中,数量阈值为小于或等于BFD群组组员数量的一个数值。数量阈值可以预先由管理员配置,本申请实施例对此不做限定。此外,本申请实施例中的“超过”可以理解为大于或大于等于,“低于”相应地可以分别理解为小于等于或小于,本申请实施例对此不做限定。Among them, the quantity threshold is a value less than or equal to the number of BFD group members. The quantity threshold can be configured in advance by the administrator, and this is not limited in the embodiments of this application. In addition, "more than" in the embodiment of the present application can be understood as greater than or greater than or equal to, and "less than" can be understood as less than equal to or less than respectively, which is not limited in the embodiment of the present application.
比如,如图2所示,BFD群组包括BFD会话1、BFD会话2和BFD会话3。当BFD会话1、BFD会话2以及BFD会话3中存在至少两个BRD的状态均为关闭状态的情况下,BFD群组的状态为关闭状态,在BFD会话1、BFD会话2以及BFD会话3中存在至少两个BFD会话的状态为打开状态的情况下,BFD群组的状态则为打开状态。For example, as shown in Figure 2, the BFD group includes BFD session 1, BFD session 2, and BFD session 3. When at least two BRDs in BFD session 1, BFD session 2, and BFD session 3 are all down, the status of the BFD group is down. In BFD session 1, BFD session 2, and BFD session 3 When at least two BFD sessions are open, the BFD group's status is open.
在本申请实施例中,在BFD群组的状态为前述实施例的情况下,第一转发节点可以预先确定并存储BFD群组的状态,也可以在执行步骤202时,基于BFD群组中各个BFD会话的状态来临时确定BFD群组的状态。下面对此进行解释说明。In the embodiment of the present application, when the status of the BFD group is the previous embodiment, the first forwarding node can predetermine and store the status of the BFD group, or it can also perform step 202 based on each status of the BFD group. The status of the BFD session is temporarily determined by the status of the BFD group. This is explained below.
在一些实施例中,第一转发节点预先更新并存储BFD群组的状态的实现过程可以为:第一转发节点获取多条路径中每条路径的BFD会话状态;第一转发节点基于多条路径中每条路径的BFD会话状态,更新并存储BFD群组的状态。这种场景下,步骤201中第一转发节点获取BFD群组的状态,可以理解为:第一转发节点获取存储的BFD群组的状态。In some embodiments, the implementation process of the first forwarding node pre-updating and storing the status of the BFD group may be: the first forwarding node obtains the BFD session status of each of the multiple paths; the first forwarding node based on the multiple paths The BFD session status of each path in the BFD group is updated and stored. In this scenario, in step 201, the first forwarding node obtains the status of the BFD group, which can be understood as: the first forwarding node obtains the stored status of the BFD group.
其中,第一转发节点基于多条路径中每条路径的BFD会话状态更新BFD群组的状态的详细实现方式,可以参考前述对BFD群组状态的相关解释,在此不再赘述。For a detailed implementation method for the first forwarding node to update the status of the BFD group based on the BFD session status of each path among the multiple paths, please refer to the related explanation of the BFD group status mentioned above and will not be described again here.
此外,这种场景下,第一转发节点预先更新并存储BFD群组的状态的时机可以为:第一转发节点周期性地更新并存储BFD群组的状态。比如,第一转发节点每间隔10ms执行一次更新并存储BFD群组的状态。可选地,第一转发节点也可以在检测到BFD群组中任一BFD会话的状态发生变化时,更新并存储BFD群组的状态。In addition, in this scenario, the timing for the first forwarding node to update and store the status of the BFD group in advance may be: the first forwarding node periodically updates and stores the status of the BFD group. For example, the first forwarding node performs an update every 10 ms and stores the status of the BFD group. Optionally, the first forwarding node may also update and store the status of the BFD group when detecting a change in the status of any BFD session in the BFD group.
在另一些实施例中,如果第一转发节点是在执行步骤202时,基于BFD群组中各个BFD会话的状态来临时确定BFD群组的状态,则步骤201的实现过程可以为:第一转发节点获取多条路径中每条路径的BFD会话状态;第一转发节点基于多条路径中每条路径的BFD会话状态,确定BFD群组的状态。In other embodiments, if the first forwarding node temporarily determines the status of the BFD group based on the status of each BFD session in the BFD group when performing step 202, the implementation process of step 201 may be: first forwarding The node obtains the BFD session status of each of the multiple paths; the first forwarding node determines the status of the BFD group based on the BFD session status of each of the multiple paths.
其中,第一转发节点基于多条路径中每条路径的BFD会话状态确定BFD群组的状态的实现方式同样可以参考前述对BFD群组的状态的相关解释,在此不再赘述。Wherein, the first forwarding node determines the status of the BFD group based on the BFD session status of each path among the multiple paths. The implementation method can also refer to the related explanation of the status of the BFD group mentioned above, which will not be described again here.
此外,步骤201可以由第一转发节点的控制面实现,也可以由第一转发节点的转发面实现。In addition, step 201 may be implemented by the control plane of the first forwarding node, or may be implemented by the forwarding plane of the first forwarding node.
需要说明的是,控制面和转发面是按照功能逻辑将第一转发节点上的各个硬件划分的两个面。其中,控制面通常包括主控板和中央处理器等,转发面通常包括执行转发的各个组件,比如转发表项存储器、物理接口卡和网络处理器等。It should be noted that the control plane and the forwarding plane are two planes that divide each hardware on the first forwarding node according to functional logic. Among them, the control plane usually includes the main control board and central processor, etc., and the forwarding plane usually includes various components that perform forwarding, such as forwarding entry memory, physical interface card, and network processor.
基于此,步骤201由第一转发节点的控制面实现具体是指:步骤201中的相关操作由第一转发节点的中央处理器(或主控板)来执行。步骤201由第一转发节点的转发面实现具体是指:步骤201中的相关操作由第一转发节点的网络处理器来执行。Based on this, step 201 is implemented by the control plane of the first forwarding node specifically means that the relevant operations in step 201 are performed by the central processor (or main control board) of the first forwarding node. Implementation of step 201 by the forwarding plane of the first forwarding node specifically means that the relevant operations in step 201 are performed by the network processor of the first forwarding node.
由于报文流是由第一转发节点的转发面转发的,当步骤201由第一转发节点的转发面执行时,可以实现第二转发节点快速感知到这多条路径的故障情况,从而实现跨分段网络的快速故障检测。Since the packet flow is forwarded by the forwarding plane of the first forwarding node, when step 201 is executed by the forwarding plane of the first forwarding node, the second forwarding node can quickly sense the fault conditions of the multiple paths, thereby realizing cross-border transmission. Fast fault detection in segmented networks.
当步骤201由第一转发节点的转发面实现时,步骤201可以理解为:在第一转发节点的转发面上获取BFD群组的状态。When step 201 is implemented by the forwarding plane of the first forwarding node, step 201 can be understood as: obtaining the status of the BFD group on the forwarding plane of the first forwarding node.
另外需要说明的是,上述是以BFD群组的状态和BFD群组中各个BFD会话的状态为独立的概念为例进行说明。可选地,在另一些实施例中,BFD群组的状态可以直接为BFD群组中各个BFD会话的状态。这种情况下,第一转发节点获取BFD群组的状态,可以理解为获取BFD群组中各个BFD会话的状态。此时,第一转发节点上并没有基于BFD群组中各个BFD会话的状态确定BFD群组的状态的执行动作。In addition, it should be noted that the above description is based on the example that the status of the BFD group and the status of each BFD session in the BFD group are independent concepts. Optionally, in other embodiments, the status of the BFD group may be directly the status of each BFD session in the BFD group. In this case, the first forwarding node obtains the status of the BFD group, which can be understood as obtaining the status of each BFD session in the BFD group. At this time, there is no execution action on the first forwarding node to determine the status of the BFD group based on the status of each BFD session in the BFD group.
步骤202:第一转发节点基于BFD群组的状态向第二转发节点通告多条路径的故障情况。Step 202: The first forwarding node notifies the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group.
在本申请实施例中,第一转发节点基于BFD群组的状态向第二转发节点通告多条路径的故障情况。一方面,由于BFD群组包括多条路径的BFD会话,因此可以实现对第二分段网络内的多点故障检测,提高了故障检测灵活性。另一方面,由于BFD会话可以部署在物理链路、伪线(pseudo-wire)、隧道等任意形式的链路上,因此本申请实施例提供的故障检测方法可以实现对物理出接口和逻辑出接口对应的路径的故障检测,提高了故障检测的范围。In this embodiment of the present application, the first forwarding node notifies the second forwarding node of the fault conditions of multiple paths based on the status of the BFD group. On the one hand, since the BFD group includes BFD sessions of multiple paths, multi-point fault detection within the second segmented network can be implemented, which improves the flexibility of fault detection. On the other hand, since BFD sessions can be deployed on any form of link such as physical links, pseudo-wires (pseudo-wires), tunnels, etc., the fault detection method provided by the embodiments of this application can realize the detection of physical outbound interfaces and logical outbound interfaces. Fault detection on the path corresponding to the interface improves the scope of fault detection.
在本申请实施例中,第一转发节点可以通过以下两种实现方式来通告多条路径的故障情况。下面对此进行分别解释说明。In this embodiment of the present application, the first forwarding node may notify the failure status of multiple paths through the following two implementation methods. This is explained separately below.
第一种通告方式:联动上一级BFD会话进行通告。The first notification method: linking the upper-level BFD session for notification.
其中,上一级BFD会话用于检测第一转发节点与第二转发节点之间的路径的故障。换句话说,上一级BFD会话为第一转发节点与第二转发节点之间的路径的BFD会话。具体可以理解为第一转发节点的出接口和第二转发节点的入接口之间的路径的BFD会话。The upper-level BFD session is used to detect the failure of the path between the first forwarding node and the second forwarding node. In other words, the upper-level BFD session is the BFD session of the path between the first forwarding node and the second forwarding node. Specifically, it can be understood as a BFD session on the path between the outbound interface of the first forwarding node and the inbound interface of the second forwarding node.
所谓的联动上一级BFD会话进行通告,也即第一转发节点基于BFD群组的状态,处理上一级BFD会话的流程,以使上一级BFD会话能够传递多条路径的故障情况。这种通告方式还可以称为“BFD会话track group”。The so-called linkage with the upper-level BFD session for notification means that the first forwarding node processes the upper-level BFD session based on the status of the BFD group, so that the upper-level BFD session can transmit fault conditions of multiple paths. This notification method can also be called "BFD session track group".
其中,BFD会话可以为请求评论(request for comments,RFC)5880里定义的BFD会话,或者为RFC7880中定义的无缝双向转发检测(Seamless Bidirectional Forwarding Detection,SBFD)会话。Among them, the BFD session can be a BFD session defined in request for comments (RFC) 5880, or a Seamless Bidirectional Forwarding Detection (SBFD) session defined in RFC7880.
RFC5880定义的BFD会话包括异步模式下的BFD会话和查询模式下的BFD会话。异步模式下的BFD会话可以理解为:双方均向对端发送BFD报文(或者BFD检测报文),对端基于接收BFD报文的情况来确定双方之间的路径是否存在故障。查询模式下的BFD会话可以理解为:其中一端向对端发送BFD报文,对端仅负责返回BFD报文,发送BFD报文的这一段基于接收对端返回的BFD报文的情况来确定双方之间的路径是否存在故障。其中,查询模式下的BFD会话中,会话双方均可以作为发送BFD报文的一端,也即是会话双方都可以发起查询模式下的BFD会话。BFD sessions defined in RFC5880 include BFD sessions in asynchronous mode and BFD sessions in query mode. A BFD session in asynchronous mode can be understood as: both parties send BFD packets (or BFD detection packets) to the opposite end, and the opposite end determines whether there is a fault in the path between the two parties based on the reception of BFD packets. The BFD session in query mode can be understood as: one end sends a BFD message to the other end, and the other end is only responsible for returning the BFD message. The part of sending the BFD message is based on the situation of receiving the BFD message returned by the other end to determine the two parties. Are there any faults in the path between them? Among them, in a BFD session in query mode, both parties in the session can be the end of sending BFD packets, that is, both parties in the session can initiate a BFD session in query mode.
需要说明的是,在RFC5880定义的BFD会话中,无论是异步模式下的BFD会话和查询模式下的BFD会话,会话双方都具备BFD会话状态,且BFD会话状态包括四种会话状态,分别是关闭(down)状态、初始(init)状态、打开(up)状态,管理型关闭(admin-down)状态。It should be noted that in the BFD session defined by RFC5880, whether it is a BFD session in asynchronous mode or a BFD session in query mode, both parties in the session have the BFD session state, and the BFD session state includes four session states, namely closed (down) state, initial (init) state, open (up) state, administrative shutdown (admin-down) state.
RFC7880中定义的SBFD会话可以理解为:会话双方包括一个BFD发起端(initiator)和一个BFD反射端(reflector)。BFD发起端向BFD反射端发送BFD报文(BFD控制报文),BFD反射端仅仅负责反射该BFD报文,BFD发起端基于接收BFD反射端返回的BFD报文的情况来确定双方之间的路径是否存在故障。The SBFD session defined in RFC7880 can be understood as: both parties in the session include a BFD initiator and a BFD reflector. The BFD initiator sends a BFD message (BFD control message) to the BFD reflector. The BFD reflector is only responsible for reflecting the BFD message. The BFD initiator determines the relationship between the two parties based on the BFD message returned by the BFD reflector. Whether the path is faulty.
需要说明的是,在RFC7880中定义的SBFD会话,仅仅有BFD发起端有BFD会话状态,且只有关闭状态和打开状态两种状态。BFD反射端则没有针对该SBFD会话的会话状态。另外,SBFD会话中BFD发起端和BFD反射端是固定的,换句话,只能由一端作为BFD发起端,另一端作为BFD反射端,二者的角色并不能互换。It should be noted that for the SBFD session defined in RFC7880, only the BFD initiator has a BFD session state, and there are only two states: closed state and open state. The BFD reflection end does not have session status for this SBFD session. In addition, the BFD initiator and BFD reflector in the SBFD session are fixed. In other words, only one end can serve as the BFD initiator and the other end can serve as the BFD reflector. The roles of the two cannot be interchanged.
基于上述对BFD会话的相关说明,下面分两种情况对如何处理上一级BFD会话进行详细解释说明。Based on the above description of the BFD session, the following is a detailed explanation of how to handle the upper-level BFD session in two situations.
第一种情况:上一级BFD会话为异步模式下的BFD会话。Case 1: The upper-level BFD session is a BFD session in asynchronous mode.
这种场景下,第一转发节点基于BFD群组的状态,处理上一级BFD会话的流程的实现过程可以为:第一转发节点基于BFD群组的状态,处理上一级BFD会话中向第二转发节点发送信息的流程,或者,处理上一级BFD会话中对来自第二转发节点的信息的处理流程,以使上一级BFD会话能够传递多条路径的故障情况。In this scenario, the first forwarding node processes the upper-level BFD session based on the status of the BFD group. The implementation process can be: based on the status of the BFD group, the first forwarding node processes the upper-level BFD session. The process of sending information by the second forwarding node, or the process of processing the information from the second forwarding node in the upper-level BFD session, so that the upper-level BFD session can transmit the fault conditions of multiple paths.
下面对第一转发节点基于BFD群组的状态处理上一级BFD会话中向第二转发节点发送信息的流程进行解释说明。The following explains the process of the first forwarding node sending information to the second forwarding node in processing an upper-level BFD session based on the status of the BFD group.
在一些实施例中,第一转发节点基于BFD群组的状态,处理上一级BFD会话中向第二转发节点发送信息的流程的实现过程可以为:如果BFD群组的状态为关闭状态,第一转发节点则不向第二转发节点发送第一BFD报文。相应地,如果BFD群组的状态为打开状态,第一转发节点则向第二转发节点发送第一BFD报文。In some embodiments, based on the status of the BFD group, the implementation process of the first forwarding node processing the process of sending information to the second forwarding node in the upper-level BFD session may be: if the status of the BFD group is closed, the first The first forwarding node does not send the first BFD message to the second forwarding node. Correspondingly, if the status of the BFD group is open, the first forwarding node sends the first BFD message to the second forwarding node.
由于异步模式下BFD会话的双方周期性地发送BFD报文,以使对端基于接收BFD报文的情况来确定是否存在故障。因此,第一转发节点在周期性向第二转发节点发送BFD报文的过程中,如果检测到BFD群组的状态为关闭状态,则不再向第二转发节点发送BFD报文,如此第二转发节点将检测到该上一级BFD会话存在故障,也即检测到第一转发节点上存在故 障,从而达到将多条路径的故障情况通过上一级BFD会话传递给第一转发节点,实现跨分段网络的故障检测。Because both parties in a BFD session in asynchronous mode periodically send BFD packets, the other end can determine whether there is a fault based on the reception of BFD packets. Therefore, when the first forwarding node periodically sends BFD packets to the second forwarding node, if it detects that the status of the BFD group is closed, it will no longer send BFD packets to the second forwarding node, so that the second forwarding node The node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault on the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session, achieving cross-bundling Fault detection on segmented networks.
可选地,可以设置第一延时时长,如此第一转发节点在周期性向第二转发节点发送BFD报文的过程中,在当前时间为向第二转发节点发送第一BFD报文的时刻时,如果检测到BFD群组的状态为关闭状态,则判断第一延时时长之后BFD群组的状态是否还为关闭状态,如果仍为关闭状态,第一转发节点则不向第二转发节点发送第一BFD报文。如果第一延时时长后,BFD群组的状态为打开状态,此时则向第二转发节点发送第一BFD报文。Optionally, the first delay length can be set, so that when the first forwarding node periodically sends BFD messages to the second forwarding node, when the current time is the time to send the first BFD message to the second forwarding node, , if it is detected that the status of the BFD group is closed, then determine whether the status of the BFD group is still closed after the first delay time. If it is still closed, the first forwarding node does not send the message to the second forwarding node. The first BFD packet. If after the first delay time, the status of the BFD group is open, at this time, the first BFD message is sent to the second forwarding node.
通过这种方式可以避免由于BFD群组状态的误判而导致第一转发节点直接换路。In this way, it can be avoided that the first forwarding node directly changes the path due to misjudgment of the BFD group status.
在另一些实施例中,第一转发节点基于BFD群组的状态,处理上一级BFD会话中向第二转发节点发送信息的流程的实现过程可以为:如果BFD群组的状态为关闭状态,第一转发节点则将上一级BFD会话的状态设置为关闭状态,并向第二转发节点发送状态通告消息,状态通告消息指示上一级BFD会话的状态为关闭状态。相应地,如果BFD群组的状态为打开状态,第一转发节点则不执行将上一级BFD会话状态设置为关闭状态的操作。In other embodiments, based on the status of the BFD group, the first forwarding node processes the process of sending information to the second forwarding node in the upper-level BFD session as follows: if the status of the BFD group is closed, The first forwarding node sets the status of the upper-level BFD session to the closed state, and sends a status notification message to the second forwarding node. The status notification message indicates that the status of the upper-level BFD session is closed. Correspondingly, if the status of the BFD group is in the open state, the first forwarding node does not perform the operation of setting the upper-level BFD session status to the closed state.
在异步模式下BFD会话中,第一转发节点具有直接设置BFD会话状态为关闭状态并通告BFD会话状态的能力。因此,第一转发节点如果检测到BFD群组的状态为关闭状态,则直接将上一级BFD会话的状态设置为关闭状态,并向第二转发节点发送状态通告消息,如此第二转发节点将检测到该上一级BFD会话存在故障,也即检测到第一转发节点上存在故障,从而达到将多条路径的故障情况通过上一级BFD会话传递给第一转发节点,实现跨分段网络的故障检测。In a BFD session in asynchronous mode, the first forwarding node has the ability to directly set the BFD session status to the closed state and advertise the BFD session status. Therefore, if the first forwarding node detects that the status of the BFD group is closed, it directly sets the status of the upper-level BFD session to the closed state, and sends a status notification message to the second forwarding node. In this way, the second forwarding node will It is detected that there is a fault in the upper-level BFD session, that is, it is detected that there is a fault on the first forwarding node, so that the fault conditions of multiple paths are passed to the first forwarding node through the upper-level BFD session, achieving cross-segment network fault detection.
可选地,同样可以设置延时时长,以避免由于BFD群组状态的误判而导致第一转发节点直接换路。相关实现方式在此不再赘述。Optionally, the delay length can also be set to avoid direct route change by the first forwarding node due to misjudgment of the BFD group status. The relevant implementation methods will not be described again here.
需要说明的是,上述两个实施例是以基于BFD群组的状态处理上一级BFD会话中向第二转发节点发送信息的示例说明。任意处理上一级BFD会话中向第二转发节点发送信息的具体方式,只要满足如下条件,则均在本申请实施例的范围之内。该条件为:在BFD群组状态为关闭状态时,发送的信息能够实现第二转发节点确定上一级BFD会话存在故障。It should be noted that the above two embodiments are examples of processing information sent to the second forwarding node in an upper-level BFD session in a BFD group-based state. Any specific method for processing information sent to the second forwarding node in the upper-level BFD session is within the scope of the embodiments of this application as long as the following conditions are met. The condition is: when the BFD group status is in the closed state, the information sent can enable the second forwarding node to determine that the upper-level BFD session is faulty.
下面对第一转发节点基于BFD群组的状态处理上一级BFD会话中对来自第二转发节点的信息的处理流程进行解释说明。The following explains the processing flow of the first forwarding node processing the information from the second forwarding node in the upper-level BFD session based on the status of the BFD group.
在一些实施例中,第一转发节点基于BFD群组的状态,处理上一级BFD会话中对来自第二转发节点的信息的处理流程的实现过程可以为:在接收到来自第二转发节点的第二BFD报文时,如果BFD群组的状态为关闭状态,第一转发节点则丢弃第二BFD报文,不执行基于第二BFD报文更新当前BFD检测周期内接收到的BFD报文数量的操作。相应地,如果BFD群组的状态为打开状态,第一转发节点则基于第二BFD报文更新当前BFD检测周期内接收到的BFD报文数量。In some embodiments, based on the status of the BFD group, the implementation process of the first forwarding node processing the information from the second forwarding node in the upper-level BFD session may be: after receiving the information from the second forwarding node When receiving the second BFD message, if the status of the BFD group is closed, the first forwarding node discards the second BFD message and does not update the number of BFD messages received in the current BFD detection cycle based on the second BFD message. operation. Correspondingly, if the status of the BFD group is open, the first forwarding node updates the number of BFD packets received in the current BFD detection cycle based on the second BFD packet.
在异步模式下BFD会话中,如果第一转发节点在接收到第二转发节点发送的BFD报文时,并不更新当前BFD检测周期内接收到的BFD报文数量(也即丢弃接收到的BFD报文),那么第一转发节点后续在当前检测周期达到时,统计的BFD报文数量将达不到要求数量,此时第一转发节点则确定出上一级BFD会话的状态为关闭状态,并向第二转发节点发送状态通告报文。如此第二转发节点将检测到该上一级BFD会话存在故障,也即检测到第一转发节点上存在故障,从而达到将多条路径的故障情况通过上一级BFD会话传递给第一转发节点,实 现跨分段网络的故障检测。In a BFD session in asynchronous mode, if the first forwarding node receives a BFD packet sent by the second forwarding node, it does not update the number of BFD packets received in the current BFD detection cycle (that is, discards the received BFD packets). message), then when the current detection cycle is reached, the number of BFD packets counted by the first forwarding node will not reach the required number. At this time, the first forwarding node determines that the status of the upper-level BFD session is closed. and sends a status notification message to the second forwarding node. In this way, the second forwarding node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault in the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session. , to achieve fault detection across segmented networks.
可选地,同样可以设置延时时长,以避免由于BFD群组状态的误判而导致第一转发节点直接换路。相关实现方式在此不再赘述。Optionally, the delay length can also be set to avoid direct route change by the first forwarding node due to misjudgment of the BFD group status. The relevant implementation methods will not be described again here.
需要说明的是,上述实施例是以基于BFD群组的状态处理上一级BFD会话中对来自第二转发节点的信息的处理流程的示例说明。任意处理上一级BFD会话中对来自第二转发节点的信息的处理流程的具体方式,只要满足如下条件,则均在本申请实施例的范围之内。该条件为:在BFD群组状态为关闭状态时,对来自第二转发节点的信息的处理流程能够实现第一转发节点确定出上一级BFD会话的状态为关闭状态,并向第二转发节点发送状态通告报文。It should be noted that the above embodiment is an example description of the processing flow of information from the second forwarding node in the upper-level BFD session in a state based on the BFD group. Any specific way of processing the information from the second forwarding node in the upper-level BFD session is within the scope of the embodiments of this application as long as the following conditions are met. The condition is: when the BFD group status is in the closed state, the processing flow of the information from the second forwarding node can enable the first forwarding node to determine that the status of the upper-level BFD session is in the closed state, and send the message to the second forwarding node. Send status notification messages.
第二种情况:上一级BFD会话为查询模式下的BFD会话或为无缝双向转发检测SBFD会话。The second case: the upper-level BFD session is a BFD session in query mode or a seamless bidirectional forwarding detection SBFD session.
在上一级BFD会话为查询模式下的BFD会话或为SBFD会话的情况下,由于上一级BFD会话双方中有一方用来检测故障,另一方仅仅用于反射接收到的BFD报文,因此这种场景下,为了能够实现第二转发节点感知到跨分段网络的故障,第二转发节点作为发送BFD报文的一方,第一转发节点作为返回接收到的BFD报文的一方。When the upper-level BFD session is a BFD session in query mode or an SBFD session, one of the two parties in the upper-level BFD session is used to detect faults, and the other is only used to reflect the received BFD packets. In this scenario, in order to enable the second forwarding node to detect faults across segmented networks, the second forwarding node serves as the party that sends BFD packets, and the first forwarding node serves as the party that returns the received BFD packets.
这种场景下,第一转发节点基于BFD群组的状态,处理上一级BFD会话的流程的实现方式可以为:第一转发节点基于BFD群组的状态,处理上一级BFD会话中对来自第二转发节点的BFD报文的处理流程,以使上一级BFD会话能够传递多条路径的故障情况。In this scenario, the first forwarding node processes the upper-level BFD session based on the status of the BFD group. The first forwarding node processes the upper-level BFD session based on the status of the BFD group. The processing flow of BFD packets of the second forwarding node so that the upper-level BFD session can transmit the fault conditions of multiple paths.
具体地,在接收到来自第二转发节点的第三BFD报文时,如果BFD群组的状态为关闭状态,第一转发节点则丢弃第三BFD报文,不执行将第三BFD报文返回至第二转发节点的操作。相应地,如果BFD群组的状态为打开状态,第一转发节点则将第三BFD报文返回至第二转发节点。Specifically, when receiving the third BFD message from the second forwarding node, if the status of the BFD group is closed, the first forwarding node discards the third BFD message and does not return the third BFD message. Operation to the second forwarding node. Correspondingly, if the status of the BFD group is open, the first forwarding node returns the third BFD packet to the second forwarding node.
在查询模式下BFD会话或SBFD会话中,如果第一转发节点在接收到第二转发节点发送的BFD报文时,并不向第二转发节点返回该BFD报文,此时第二转发节点则无法接收到第一转发节点返回的BFD报文。如此第二转发节点将检测到该上一级BFD会话存在故障,也即检测到第一转发节点上存在故障,从而达到将多条路径的故障情况通过上一级BFD会话传递给第一转发节点,实现跨分段网络的故障检测。In a BFD session or SBFD session in query mode, if the first forwarding node does not return the BFD message to the second forwarding node when receiving the BFD message sent by the second forwarding node, the second forwarding node will The BFD packet returned by the first forwarding node cannot be received. In this way, the second forwarding node will detect that there is a fault in the upper-level BFD session, that is, it will detect that there is a fault in the first forwarding node, thereby passing the fault conditions of multiple paths to the first forwarding node through the upper-level BFD session. , to achieve fault detection across segmented networks.
可选地,同样可以设置延时时长,以避免由于BFD群组状态的误判而导致第一转发节点直接换路。相关实现方式在此不再赘述。Optionally, the delay length can also be set to avoid direct route change by the first forwarding node due to misjudgment of the BFD group status. The relevant implementation methods will not be described again here.
上述是以RFC5880中定义的BFD会话以及RFC7880中定义的SBFD会话为例进行说明。需要说明的是,上述两种BFD会话协议场景下的“处理上一级BFD会话”的具体流程可以应用在其他可能的BFD会话协议中,本申请是实施例对此不做限定。The above description takes the BFD session defined in RFC5880 and the SBFD session defined in RFC7880 as examples. It should be noted that the specific process of "processing the upper-level BFD session" in the above two BFD session protocol scenarios can be applied to other possible BFD session protocols, and this application does not limit this in the embodiments.
此外,在本申请实施例中,为了能够实现将BFD群组的状态和上一级BFD会话进行联动,还可以预先由开发人员进行配置。In addition, in the embodiment of the present application, in order to be able to link the status of the BFD group with the upper-level BFD session, it can also be configured in advance by the developer.
在一些实施例中,开发人员配置BFD群组的状态和上一级BFD会话之间的联动的实现过程可以为:第一转发节点获取BFD群组,第一转发节点确定BFD群组与上一级BFD会话的对应关系。In some embodiments, the developer configures the linkage between the status of the BFD group and the upper-level BFD session. The implementation process may be: the first forwarding node obtains the BFD group, and the first forwarding node determines the relationship between the BFD group and the upper-level BFD session. Correspondence between level BFD sessions.
具体地,第一转发节点显示群组配置界面,群组配置界面包括群组跟踪功能配置选项;响应于开发人员在群组跟踪功能配置选项上的触发操作,将上一级BFD会话与BFD群组绑定,以建立BFD群组与上一级BFD会话的对应关系,并基于BFD群组的状态处理上一级 BFD会话的流程。Specifically, the first forwarding node displays a group configuration interface, and the group configuration interface includes a group tracking function configuration option; in response to the developer's trigger operation on the group tracking function configuration option, the upper-level BFD session and the BFD group Group binding to establish the corresponding relationship between the BFD group and the upper-level BFD session, and process the process of the upper-level BFD session based on the status of the BFD group.
图5是本申请实施例提供的另一种群组配置界面示意图。如图5所示,该群组配置界面显示有BFD群组名称选项、BFD会话配置选项以及群组跟踪功能配置选项等。Figure 5 is a schematic diagram of another group configuration interface provided by an embodiment of the present application. As shown in Figure 5, the group configuration interface displays BFD group name options, BFD session configuration options, and group tracking function configuration options.
其中,BFD群组名称选项和BFD会话配置选项前述已经说明,在此不再赘述。群组跟踪功能配置选项用于开发人员将BFD群组的状态和上一级BFD会话进行联动。Among them, the BFD group name option and BFD session configuration option have been explained previously and will not be described again here. The group tracking function configuration option is used by developers to link the status of the BFD group with the upper-level BFD session.
当第一转发节点检测到开发人员通过预设操作触发群组跟踪功能配置选项时,第一转发节点可以显示图5中的跟踪会话输入窗口,该跟踪会话输入窗口用于开发人员输入与BFD群组联动的上一级BFD会话。如图5所示,对于图2所示的第一转发节点R1,开发人员在该跟踪会话输入窗口输入上一级BFD会话的标识,从而实现包括BFD会话1、BFD会话2以及BFD会话3的BFD群组与上一级BFD会话之间联动。When the first forwarding node detects that the developer triggers the group tracking function configuration option through a preset operation, the first forwarding node can display the tracking session input window in Figure 5. The tracking session input window is used for the developer to input and communicate with the BFD group. The upper-level BFD session associated with the group. As shown in Figure 5, for the first forwarding node R1 shown in Figure 2, the developer enters the identifier of the upper-level BFD session in the tracking session input window, thereby realizing BFD session 1, BFD session 2 and BFD session 3. Linkage between BFD group and upper-level BFD session.
需要说明的是,上述配置过程是以开发人员在第一转发节点上进行配置为例进行说明。可选地,开发人员也可以在网络的控制节点上配置与第一转发节点上的BFD群组联动的上一级BFD会话,由控制节点将BFD群组与上一个BFD之间的对应关系下发到第一转发节点。在此不再详细说明。It should be noted that the above configuration process is explained by taking the developer's configuration on the first forwarding node as an example. Optionally, developers can also configure an upper-level BFD session on the control node of the network that is associated with the BFD group on the first forwarding node, and the control node downloads the corresponding relationship between the BFD group and the previous BFD. Sent to the first forwarding node. No further details will be given here.
另外,在BFD群组的状态直接为BFD群组中各个BFD会话的状态的情况下,上述BFD群组的状态为关闭状态的具体内容,可以参考前述对BFD状态的相关解释。示例地,当BFD群组的状态指示BFD群组中全部组员的状态是否均为关闭状态的情况下,BFD群组状态为关闭状态,也即BFD群组中各个BFD会话的状态均为关闭状态。BFD群组状态为打开状态,也即BFD群组中存在至少一个BFD会话的状态为打开状态。In addition, when the status of the BFD group is directly the status of each BFD session in the BFD group, for the specific content of the status of the BFD group being closed, please refer to the above-mentioned explanation of the BFD status. For example, when the status of the BFD group indicates whether the status of all members in the BFD group is closed, the status of the BFD group is closed, that is, the status of each BFD session in the BFD group is closed. state. The status of the BFD group is open, that is, the status of at least one BFD session in the BFD group is open.
比如,在第一种情况和第二种情况中,第一转发节点在获取到BFD群组中各个BFD会话的状态时,如果判断出BFD群组中各个BFD会话的状态均为关闭状态,则在当前时间为向第二转发节点发送第一BFD报文的时刻时,第一转发节点不向第二转发节点发送第一BFD报文,或者,第一转发节点则将上一级BFD会话的状态设置为关闭状态,并向第二转发节点发送状态通告消息,或者,在接收到来自第二转发节点的第三BFD报文时,第一转发节点则丢弃第三BFD报文,不执行将第三BFD报文返回至第二转发节点的操作。具体实现方式可以参考前述内容,在此不再赘述。For example, in the first case and the second case, when the first forwarding node obtains the status of each BFD session in the BFD group, if it determines that the status of each BFD session in the BFD group is closed, then When the current time is the time to send the first BFD message to the second forwarding node, the first forwarding node does not send the first BFD message to the second forwarding node, or the first forwarding node replaces the first BFD message of the upper-level BFD session with the second forwarding node. The status is set to the closed state and a status notification message is sent to the second forwarding node. Alternatively, when receiving the third BFD packet from the second forwarding node, the first forwarding node discards the third BFD packet and does not execute the The operation of returning the third BFD packet to the second forwarding node. For specific implementation methods, please refer to the foregoing content and will not be described again here.
另外,在第一种通告方式中,由于是联动上一级BFD会话进行通告,这样无需在第一转发节点和第二转发节点之间新增其他传输内容,该通告方式容易实现且节省网络资源。In addition, in the first notification method, since the upper-level BFD session is linked for notification, there is no need to add other transmission content between the first forwarding node and the second forwarding node. This notification method is easy to implement and saves network resources. .
此外,由于上一级BFD会话相关的报文是在第一转发节点的转发面进行转发的。因此,通过联动上一级BFD会话,能够实现整个故障检测流程在第一转发节点的转发面实现,从而提高了故障检测速率。In addition, messages related to the upper-level BFD session are forwarded on the forwarding plane of the first forwarding node. Therefore, by linking the upper-level BFD session, the entire fault detection process can be implemented on the forwarding plane of the first forwarding node, thus improving the fault detection rate.
第二种通告方式:以通告消息方式通告。The second notification method: notification via notification message.
其中,通告消息是指第一转发节点通过专门的一个报文来向第二转发节点通告BFD群组的状态。这种场景下,步骤202的实现过程为:第一转发节点向第二转发节点发送故障通告消息,该故障通告消息用于向第二转发节点通告多条路径的故障情况。The notification message refers to the first forwarding node notifying the second forwarding node of the status of the BFD group through a special message. In this scenario, the implementation process of step 202 is as follows: the first forwarding node sends a fault notification message to the second forwarding node, and the fault notification message is used to notify the second forwarding node of fault conditions of multiple paths.
其中,该故障通告消息可以通过多种方式来通告多条路径的故障情况。在一些实施例中,该故障通告消息携带BFD群组的状态。可选地,该故障通告消息还可以携带其他指示信息,该其他指示信息能够标识多条路径的故障情况。The fault notification message can notify fault conditions of multiple paths in multiple ways. In some embodiments, the fault notification message carries the status of the BFD group. Optionally, the fault notification message may also carry other indication information, and the other indication information can identify fault conditions of multiple paths.
在本申请实施例中,该故障通告消息可以承载在业务流量中,也可以承载在专门的BGP 通告报文中(也即通过BGP协议来通告)。具体实现方式本申请实施例对此不做详细说明。In this embodiment of the present application, the fault notification message can be carried in the service traffic or in a special BGP notification message (that is, notified through the BGP protocol). Specific Implementation Mode The embodiments of this application will not describe this in detail.
其中,当故障通告消息承载在业务流量时,步骤202可以理解为在第一转发节点的转发面上基于BFD群组的状态向第二转发节点通告多条路径的故障情况。When the fault notification message is carried in the service traffic, step 202 can be understood as notifying the fault situation of multiple paths to the second forwarding node based on the status of the BFD group on the forwarding plane of the first forwarding node.
当故障通告消息承载在专门的BGP通告报文时,由于BGP通告报文可以在转发面实现也可以在控制面实现。因此,步骤202可以为:在第一转发节点的转发面上基于BFD群组的状态向第二转发节点通告多条路径的故障情况,或者,在第一转发节点的控制面上基于BFD群组的状态向第二转发节点通告多条路径的故障情况。When the fault notification message is carried in a special BGP notification message, the BGP notification message can be implemented on the forwarding plane or the control plane. Therefore, step 202 may be: notifying the second forwarding node of the fault conditions of the multiple paths based on the status of the BFD group on the forwarding plane of the first forwarding node, or, based on the BFD group on the control plane of the first forwarding node. The status notifies the second forwarding node of the failure conditions of multiple paths.
综上所述,本申请实施例提供的技术方案能够实现如下技术效果:To sum up, the technical solutions provided by the embodiments of this application can achieve the following technical effects:
(1)提供了一种基于BFD群组来实现跨分段网络的多点故障检测方式。无需基于路由部署BFD会话来检测多点故障。提供了跨分段网络的多点故障检测的灵活性。(1) Provides a method to implement multi-point fault detection across segmented networks based on BFD groups. There is no need to deploy BFD sessions based on routes to detect multiple points of failure. Provides the flexibility of multi-point failure detection across segmented networks.
(2)将BFD群组与上一级BFD会话进行联动,基于BFD群组的状态快速触发上一级BFD down,以实现将基于BFD群组检测的故障传递给上一级分段网络,这样可以加速流量切换,减少丢包。(2) Link the BFD group with the upper-level BFD session, and quickly trigger the upper-level BFD down based on the status of the BFD group, so as to pass the fault detected based on the BFD group to the upper-level segmented network, so that It can speed up traffic switching and reduce packet loss.
(3)整个故障感知过程可以在转发面实现,提高了故障感知速率。(3) The entire fault sensing process can be implemented on the forwarding plane, which improves the fault sensing rate.
下面以图3所示的通信系统为例,对图2所示的实施例再次进行解释说明。Taking the communication system shown in Figure 3 as an example, the embodiment shown in Figure 2 will be explained again below.
基于图3所示的通信系统,跨分段网络的故障检测流程可以通过以下几个步骤实现。Based on the communication system shown in Figure 3, the fault detection process across segmented networks can be implemented through the following steps.
步骤1:在分段级联网络中级联设备R1上部署检测分段业务的多个基础BFD会话(BFD会话1、BFD会话2、BFD会话3)。其中,BFD会话的会话类型包括所有BFD会话类型;Step 1: Deploy multiple basic BFD sessions (BFD session 1, BFD session 2, and BFD session 3) for detecting segmented services on the cascade device R1 in the segmented cascade network. Among them, the session type of BFD session includes all BFD session types;
步骤2:在级联设备R1上创建group(也即BFD群组),并在R1的转发面下发group状态;Step 2: Create a group (i.e. BFD group) on the cascading device R1, and deliver the group status on the forwarding plane of R1;
步骤3:将级联设备R1上的多个基础BFD会话BFD会话1、BFD会话2、BFD会话3加入group;Step 3: Add multiple basic BFD sessions BFD session 1, BFD session 2, and BFD session 3 on the cascade device R1 to the group;
步骤4:级联设备R1上部署上一级分段网络用于检测分段业务1的BFD track group(也即RFC5880定义的BFD会话track group)或者SBFD反射端track group;Step 4: Deploy the upper-level segment network on the cascade device R1 to detect the BFD track group of segment service 1 (that is, the BFD session track group defined in RFC5880) or the SBFD reflection end track group;
步骤5:根据基础BFD会话在转发面的状态刷新group状态,刷新规则如下:只要有一个基础BFD会话转发面状态为up,则group的状态为up,所有基础BFD会话转发面状态都为down,group状态才为down;Step 5: Refresh the group status according to the status of the basic BFD session on the forwarding plane. The refresh rules are as follows: As long as one basic BFD session forwarding plane status is up, the group status is up, and the forwarding plane status of all basic BFD sessions is down. The group status is down;
步骤6:步骤4中如果部署的是BFD track group,则在BFD会话报文发送或接收流程中判断group状态,如果group状态为down,则不发送或丢弃接收的BFD报文或者直接置BFD会话状态为down,触发远端(也即R2)检测down;Step 6: If a BFD track group is deployed in step 4, the group status is determined during the BFD session packet sending or receiving process. If the group status is down, the received BFD packets are not sent or discarded or the BFD session is set up directly. The status is down, triggering the remote end (i.e. R2) to detect down;
步骤7:步骤4中如果部署的是SBFD反射端track group,则在SBFD反射流程中判断group状态,如果group状态为down,则丢弃接收到的BFD报文,触发SBFD发起端也即R2)检测down;Step 7: If the SBFD reflection end track group is deployed in step 4, the group status is determined during the SBFD reflection process. If the group status is down, the received BFD packet is discarded and the SBFD initiator, that is, R2) detection is triggered. down;
步骤8:远端或SBFD发起端(也即R2)down后,触发业务切换。Step 8: After the remote end or SBFD initiator (i.e. R2) goes down, trigger service switching.
图6是本申请实施例提供的一种网络设备的结构示意图,该网络设备为图1所示的通信系统中的第一转发节点,如图1所示,该通信系统还包括第二转发节点,第一转发节点为第一分段网络和第二分段网络之间的边缘节点,第二转发节点位于第一分段网络内。具体地, 如图6所示,网络设备600包括收发模块601和处理模块602。Figure 6 is a schematic structural diagram of a network device provided by an embodiment of the present application. The network device is the first forwarding node in the communication system shown in Figure 1. As shown in Figure 1, the communication system also includes a second forwarding node. , the first forwarding node is an edge node between the first segmented network and the second segmented network, and the second forwarding node is located within the first segmented network. Specifically, as shown in Figure 6, the network device 600 includes a transceiver module 601 and a processing module 602.
其中,收发模块602用于执行图2实施例中收发相关的操作;处理模块601用于执行图2实施例中除收发相关的操作之外的操作。Among them, the transceiver module 602 is used to perform transceiver-related operations in the embodiment of FIG. 2; the processing module 601 is used to perform operations other than transceiver-related operations in the embodiment of FIG. 2.
具体地,处理模块602,用于获取双向转发检测BFD群组的状态,BFD群组包括第一转发节点在第二分段网络内对应的多条路径中每条路径的BFD会话,BFD会话用于检测相应路径的故障。具体实现方式可以参考图2实施例中的步骤201。Specifically, the processing module 602 is used to obtain the status of the bidirectional forwarding detection BFD group. The BFD group includes the BFD session of each of the multiple paths corresponding to the first forwarding node in the second segmented network. The BFD session is To detect the failure of the corresponding path. For specific implementation, please refer to step 201 in the embodiment of Figure 2 .
收发模块601,用于基于BFD群组的状态向第二转发节点通告多条路径的故障情况。具体实现方式可以参考图2实施例中的步骤202。The transceiver module 601 is configured to notify the second forwarding node of fault conditions of multiple paths based on the status of the BFD group. For specific implementation, please refer to step 202 in the embodiment of Figure 2 .
可选地,在BFD群组中各个BFD会话均处于关闭状态的情况下,处理模块获取的BFD群组的状态为关闭状态;Optionally, when each BFD session in the BFD group is in a closed state, the status of the BFD group obtained by the processing module is a closed state;
在BFD群组中至少一个BFD会话的状态为打开状态的情况下,处理模块获取的BFD群组的状态为打开状态。When the status of at least one BFD session in the BFD group is open, the status of the BFD group obtained by the processing module is open.
可选地,收发模块用于:Optionally, the transceiver module is used for:
第一转发节点基于BFD群组的状态,处理上一级BFD会话的流程,上一级BFD会话用于检测第一转发节点与第二转发节点之间的路径的故障。The first forwarding node processes the process of an upper-level BFD session based on the status of the BFD group. The upper-level BFD session is used to detect a failure of the path between the first forwarding node and the second forwarding node.
可选地,收发模块用于:Optionally, the transceiver module is used for:
如果BFD群组的状态为关闭状态,第一转发节点则不向第二转发节点发送第一BFD报文。If the status of the BFD group is closed, the first forwarding node does not send the first BFD message to the second forwarding node.
可选地,收发模块用于:Optionally, the transceiver module is used for:
如果BFD群组的状态为打开状态,第一转发节点则向第二转发节点发送第一BFD报文。If the status of the BFD group is open, the first forwarding node sends the first BFD message to the second forwarding node.
可选地,收发模块用于:Optionally, the transceiver module is used for:
如果BFD群组的状态为关闭状态,第一转发节点则将上一级BFD会话的状态设置为关闭状态,并向第二转发节点发送状态通告消息,状态通告消息指示上一级BFD会话的状态为关闭状态。If the status of the BFD group is closed, the first forwarding node sets the status of the upper-level BFD session to closed and sends a status notification message to the second forwarding node. The status notification message indicates the status of the upper-level BFD session. is closed.
可选地,收发模块用于:Optionally, the transceiver module is used for:
如果BFD群组的状态为打开状态,第一转发节点则不执行将上一级BFD会话状态设置为关闭状态的操作。If the status of the BFD group is open, the first forwarding node does not perform the operation of setting the upper-level BFD session status to the closed state.
可选地,收发模块用于:Optionally, the transceiver module is used for:
在接收到来自第二转发节点的第二BFD报文时,如果BFD群组的状态为关闭状态,第一转发节点则丢弃第二BFD报文,不执行基于第二BFD报文更新当前BFD检测周期内接收到的BFD报文数量的操作。When receiving the second BFD message from the second forwarding node, if the status of the BFD group is closed, the first forwarding node discards the second BFD message and does not update the current BFD detection based on the second BFD message. Operation of the number of BFD packets received in a period.
可选地,收发模块用于:Optionally, the transceiver module is used for:
如果BFD群组的状态为打开状态,第一转发节点则基于第二BFD报文更新当前BFD检测周期内接收到的BFD报文数量。If the status of the BFD group is open, the first forwarding node updates the number of BFD packets received in the current BFD detection cycle based on the second BFD packet.
可选地,收发模块用于:Optionally, the transceiver module is used for:
在接收到来自第二转发节点的第三BFD报文时,如果BFD群组的状态为关闭状态,第一转发节点则丢弃第三BFD报文,不执行将第三BFD报文返回至第二转发节点的操作。When receiving the third BFD packet from the second forwarding node, if the status of the BFD group is closed, the first forwarding node discards the third BFD packet and does not return the third BFD packet to the second forwarding node. Operations of forwarding nodes.
可选地,收发模块用于:Optionally, the transceiver module is used for:
如果BFD群组的状态为打开状态,第一转发节点则将第三BFD报文返回至第二转发节 点。If the status of the BFD group is open, the first forwarding node returns the third BFD packet to the second forwarding node.
可选地,上一级BFD会话为异步模式下的BFD会话,查询模式下的BFD会话或无缝双向转发检测SBFD会话。Optionally, the upper-level BFD session is a BFD session in asynchronous mode, a BFD session in query mode, or a seamless bidirectional forwarding detection SBFD session.
可选地,处理模块还用于:Optionally, the processing module is also used to:
第一转发节点获取BFD群组;The first forwarding node obtains the BFD group;
第一转发节点确定BFD群组与上一级BFD会话的对应关系。The first forwarding node determines the corresponding relationship between the BFD group and the upper-level BFD session.
可选地,收发模块还用于:Optionally, the transceiver module is also used to:
第一转发节点向第二转发节点发送故障通告消息,故障通告消息用于向第二转发节点通告多条路径的故障情况。The first forwarding node sends a fault notification message to the second forwarding node, and the fault notification message is used to notify the second forwarding node of fault conditions of multiple paths.
可选地,故障通告消息携带BFD群组的状态。Optionally, the fault notification message carries the status of the BFD group.
可选地,处理模块还用于:Optionally, the processing module is also used to:
周期性获取多条路径中每条路径的BFD会话状态;Periodically obtain the BFD session status of each path in multiple paths;
基于多条路径中每条路径的BFD会话状态,周期性更新并存储BFD群组的状态;Based on the BFD session status of each path in multiple paths, periodically update and store the status of the BFD group;
获取存储的BFD群组的状态。Get the status of the stored BFD group.
可选地,处理模块用于:Optionally, the processing module is used to:
获取多条路径中每条路径的BFD会话状态;Get the BFD session status of each path in multiple paths;
基于多条路径中每条路径的BFD会话状态,确定BFD群组的状态。The status of the BFD group is determined based on the BFD session status of each of the multiple paths.
可选地,多条路径用于转发来自第二转发节点的报文流。Optionally, multiple paths are used to forward the message flow from the second forwarding node.
可选地,第一分段网络和第二分段网络分别用于承载以下业务包括中的至少一项:基于第六代网络协议的分段路由的策略SRv6 Policy业务、基于第六代网络协议的分段路由的最短路径SRv6 BE业务、虚拟租用线VLL业务、虚拟私用线服务VPLS业务;第一分段网络承载的业务和第二分段网络承载的业务不同。Optionally, the first segmented network and the second segmented network are respectively used to carry at least one of the following services: segmented routing policy SRv6 Policy service based on the sixth generation network protocol, SRv6 Policy service based on the sixth generation network protocol The shortest path SRv6 BE service of segment routing, the virtual leased line VLL service, and the virtual private line service VPLS service; the services carried by the first segment network are different from the services carried by the second segment network.
可选地,处理模块用于:Optionally, the processing module is used to:
在第一转发节点的转发面上获取BFD群组的状态。Obtain the status of the BFD group on the forwarding plane of the first forwarding node.
可选地,收发模块用于:Optionally, the transceiver module is used for:
在第一转发节点的转发面上基于BFD群组的状态向第二转发节点通告多条路径的故障情况。On the forwarding plane of the first forwarding node, the fault conditions of the multiple paths are notified to the second forwarding node based on the status of the BFD group.
综上所述,本申请实施例提供的网络设备能够实现如下技术效果:To sum up, the network equipment provided by the embodiments of this application can achieve the following technical effects:
(1)提供了一种基于BFD群组来实现跨分段网络的多点故障检测方式。无需基于路由部署BFD会话来检测多点故障。提供了跨分段网络的多点故障检测的灵活性。(1) Provides a method to implement multi-point fault detection across segmented networks based on BFD groups. There is no need to deploy BFD sessions based on routes to detect multiple points of failure. Provides the flexibility of multi-point failure detection across segmented networks.
(2)将BFD群组与上一级BFD会话进行联动,基于BFD群组的状态快速触发上一级BFD down,以实现将基于BFD群组检测的故障传递给上一级分段网络,这样可以加速流量切换,减少丢包。(2) Link the BFD group with the upper-level BFD session, and quickly trigger the upper-level BFD down based on the status of the BFD group, so as to pass the fault detected based on the BFD group to the upper-level segmented network, so that It can speed up traffic switching and reduce packet loss.
(3)整个故障感知过程可以在转发面实现,提高了故障感知速率。(3) The entire fault sensing process can be implemented on the forwarding plane, which improves the fault sensing rate.
下面对本申请实施例涉及的硬件结构进行介绍。The hardware structure involved in the embodiment of this application is introduced below.
图7是本申请实施例提供的一种设备700的结构示意图。图8是本申请实施例提供的另一种设备800的结构示意图。下面对这两个设备的结构进行解释说明。Figure 7 is a schematic structural diagram of a device 700 provided by an embodiment of the present application. Figure 8 is a schematic structural diagram of another device 800 provided by an embodiment of the present application. The structure of these two devices is explained below.
需要说明的是,以下介绍的设备700或设备800对应于上述方法实施例中的第一转发节 点。设备700或设备800中的各硬件、模块和上述其他操作和/或功能分别为了实现方法实施例中第一转发节点所实施的各种步骤和方法,关于设备700或设备800如何处理报文的详细流程,具体细节可参见上述方法实施例,为了简洁,在此不再赘述。其中,上述方法实施例的各步骤通过设备700或设备800处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤,为避免重复,这里不再详细描述。It should be noted that the device 700 or device 800 introduced below corresponds to the first forwarding node in the above method embodiment. Each hardware, module and the above-mentioned other operations and/or functions in the device 700 or the device 800 are respectively used to implement the various steps and methods implemented by the first forwarding node in the method embodiment. Regarding how the device 700 or the device 800 processes messages, For the detailed process, please refer to the above method embodiments for specific details. For the sake of simplicity, they will not be described again here. Each step of the above method embodiment is completed through the integrated logic circuit of the hardware in the processor of the device 700 or the device 800 or instructions in the form of software. The steps of the methods disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, the details will not be described here.
设备700对应于上述第一转发节点时,第一转发节点中的每个功能模块采用设备700的软件实现。换句话说,第一转发节点包括的功能模块为设备700的处理器读取存储器中存储的程序代码后生成的。When the device 700 corresponds to the above-mentioned first forwarding node, each functional module in the first forwarding node is implemented using the software of the device 700 . In other words, the functional module included in the first forwarding node is generated by the processor of the device 700 after reading the program code stored in the memory.
设备800对应于上述第一转发节点时,第一转发节点中的每个功能模块采用设备800的软件实现。换句话说,第一转发节点包括的功能模块为设备800的处理器读取存储器中存储的程序代码后生成的。When the device 800 corresponds to the above-mentioned first forwarding node, each functional module in the first forwarding node is implemented using the software of the device 800 . In other words, the functional module included in the first forwarding node is generated by the processor of the device 800 after reading the program code stored in the memory.
参见附图7,图7是本申请实施例提供的一种设备700的结构示意图。可选地,该设备700配置为图1所示的第一转发节点。换句话说,上述方法实施例中的第一转发节点可选地通过设备700实现。Referring to FIG. 7 , FIG. 7 is a schematic structural diagram of a device 700 provided by an embodiment of the present application. Optionally, the device 700 is configured as the first forwarding node shown in Figure 1. In other words, the first forwarding node in the above method embodiment is optionally implemented by the device 700.
该设备700例如是网络设备,比如说设备700是交换机、路由器等。或者,该设备700例如是计算设备,比如说设备700是主机、服务器或个人计算机等。该设备700可以由一般性的总线体系结构来实现。The device 700 is, for example, a network device. For example, the device 700 is a switch, a router, etc. Alternatively, the device 700 is, for example, a computing device. For example, the device 700 is a host, a server or a personal computer. The device 700 can be implemented by a general bus architecture.
设备700包括至少一个处理器701、通信总线702、存储器703以及至少一个通信接口704。 Device 700 includes at least one processor 701, a communication bus 702, a memory 703, and at least one communication interface 704.
处理器701例如是通用中央处理器(central processing unit,CPU)、网络处理器(network processer,NP)、图形处理器(Graphics Processing Unit,GPU)、神经网络处理器(neural-network processing units,NPU)、数据处理单元(Data Processing Unit,DPU)、微处理器或者一个或多个用于实现本申请方案的集成电路。例如,处理器701包括专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。PLD例如是复杂可编程逻辑器件(complex programmable logic device,CPLD)、现场可编程逻辑门阵列(field-programmable gate array,FPGA)、通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor 701 is, for example, a general central processing unit (CPU), a network processor (NP), a graphics processor (Graphics Processing Unit, GPU), or a neural network processor (neural-network processing units, NPU). ), a data processing unit (Data Processing Unit, DPU), a microprocessor or one or more integrated circuits used to implement the solution of this application. For example, the processor 701 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
通信总线702用于在上述组件之间传送信息。通信总线702可以分为地址总线、数据总线、控制总线等。为便于表示,附图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。 Communication bus 702 is used to transfer information between the above-mentioned components. The communication bus 702 can be divided into an address bus, a data bus, a control bus, etc. For ease of presentation, only one thick line is used in Figure 7, but this does not mean that there is only one bus or one type of bus.
存储器703例如是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,又如是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,又如是电可擦可编程只读存储器(electrically erasable programmable read-only Memory,EEPROM)、只读光盘(compact disc read-only memory,CD- ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器703例如是独立存在,并通过通信总线702与处理器701相连接。存储器703也可以和处理器701集成在一起。The memory 703 is, for example, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, or a random access memory (random access memory, RAM) or a device that can store information and instructions. Other types of dynamic storage devices, such as electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical discs Storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can Any other media accessed by a computer, without limitation. The memory 703 exists independently, for example, and is connected to the processor 701 through the communication bus 702 . Memory 703 may also be integrated with processor 701.
通信接口704使用任何收发器一类的装置,用于与其它设备或通信网络通信。通信接口704包括有线通信接口,还可以包括无线通信接口。其中,有线通信接口例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线通信接口可以为无线局域网(wireless local area networks,WLAN)接口,蜂窝网络通信接口或其组合等。 Communication interface 704 uses any transceiver-like device for communicating with other devices or communication networks. The communication interface 704 includes a wired communication interface and may also include a wireless communication interface. The wired communication interface may be an Ethernet interface, for example. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface may be a wireless local area networks (WLAN) interface, a cellular network communication interface or a combination thereof.
在具体实现中,作为一种实施例,处理器701可以包括一个或多个CPU,如附图7中所示的CPU0和CPU1。In specific implementation, as an embodiment, the processor 701 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 7 .
在具体实现中,作为一种实施例,设备700可以包括多个处理器,如附图7中所示的处理器701和处理器705。这些处理器中的每一个可以是一个单核处理器(single-CPU),也可以是一个多核处理器(multi-CPU)。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(如计算机程序指令)的处理核。In specific implementation, as an embodiment, the device 700 may include multiple processors, such as the processor 701 and the processor 705 shown in FIG. 7 . Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor here may refer to one or more devices, circuits, and/or processing cores for processing data (such as computer program instructions).
在具体实现中,作为一种实施例,设备700还可以包括输出设备和输入设备。输出设备和处理器701通信,可以以多种方式来显示信息。例如,输出设备可以是液晶显示器(liquid crystal display,LCD)、发光二级管(light emitting diode,LED)显示设备、阴极射线管(cathode ray tube,CRT)显示设备或投影仪(projector)等。输入设备和处理器701通信,可以以多种方式接收用户的输入。例如,输入设备可以是鼠标、键盘、触摸屏设备或传感设备等。In specific implementation, as an embodiment, the device 700 may also include an output device and an input device. Output devices communicate with processor 701 and can display information in a variety of ways. For example, the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector (projector), etc. Input devices communicate with processor 701 and can receive user input in a variety of ways. For example, the input device may be a mouse, a keyboard, a touch screen device or a sensing device, etc.
在一些实施例中,存储器703用于存储执行本申请方案的程序代码710,处理器701可以执行存储器703中存储的程序代码710。也即是,设备700可以通过处理器701以及存储器703中的程序代码710,来实现方法实施例提供的跨分段网络的故障检测方法。In some embodiments, the memory 703 is used to store the program code 710 for executing the solution of the present application, and the processor 701 can execute the program code 710 stored in the memory 703. That is, the device 700 can implement the fault detection method across segmented networks provided by the method embodiment through the processor 701 and the program code 710 in the memory 703 .
本申请实施例的设备700可对应于上述各个方法实施例中的用户面网元或控制面网元,并且,该设备700中的处理器701、通信接口704等可以实现上述各个方法实施例中的第一转发节点所具有的功能和/或所实施的各种步骤和方法。为了简洁,在此不再赘述。The device 700 in the embodiment of the present application can correspond to the user plane network element or the control plane network element in the above method embodiments, and the processor 701, communication interface 704, etc. in the device 700 can implement the above method embodiments. The functions possessed by the first forwarding node and/or the various steps and methods implemented. For the sake of brevity, no further details will be given here.
在跨分段网络的故障检测采用设备700实现的情况下,在一些实施例中,附图6所示的网络设备600中的收发模块以及处理模块为设备700中的程序代码710中的软件模块,设备700中的处理器701通过执行程序代码710来实现附图6中的网络设备600中的收发模块以及处理模块的功能。In the case where fault detection across segmented networks is implemented using the device 700, in some embodiments, the transceiver module and the processing module in the network device 600 shown in Figure 6 are software modules in the program code 710 in the device 700 , the processor 701 in the device 700 implements the functions of the transceiver module and the processing module in the network device 600 in Figure 6 by executing the program code 710.
参见附图8,附图8是本申请实施例提供的一种设备800的结构示意图,可选地,该设备800配置为图1所示的第一转发节点。换句话说,上述方法实施例中的第一转发节点可选地通过设备800实现。Referring to FIG. 8 , FIG. 8 is a schematic structural diagram of a device 800 provided by an embodiment of the present application. Optionally, the device 800 is configured as the first forwarding node shown in FIG. 1 . In other words, the first forwarding node in the above method embodiment is optionally implemented by the device 800.
该设备800例如是网络设备,比如说设备800是交换机、路由器等。设备800包括:主控板8010和接口板8030。The device 800 is, for example, a network device. For example, the device 800 is a switch, a router, etc. The device 800 includes: a main control board 8010 and an interface board 8030.
主控板也称为主处理单元(main processing unit,MPU)或路由处理卡(route processor card),主控板8010用于对设备800中各个组件的控制和管理,包括路由计算、设备管理、设备维护、协议处理功能。主控板8010包括:中央处理器8011和存储器8012。The main control board is also called the main processing unit (MPU) or route processor card. The main control board 8010 is used to control and manage various components in the device 800, including route calculation, device management, Equipment maintenance and protocol processing functions. The main control board 8010 includes: a central processing unit 8011 and a memory 8012.
接口板8030也称为线路接口单元卡(line processing unit,LPU)、线卡(line card)或业务板。接口板8030用于提供各种业务接口并实现数据包的转发。业务接口包括而不限于以太网接口、POS(Packet over SONET/SDH)接口等,以太网接口例如是灵活以太网业务接口(Flexible Ethernet Clients,FlexE Clients)。接口板8030包括:中央处理器8031、网络处理器8032、转发表项存储器8034和物理接口卡(phsical interface card,PIC)8033。The interface board 8030 is also called a line processing unit (LPU), line card or service board. The interface board 8030 is used to provide various service interfaces and implement data packet forwarding. Business interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET/SDH) interfaces, etc. Ethernet interfaces are, for example, Flexible Ethernet Clients (FlexE Clients). The interface board 8030 includes: a central processor 8031, a network processor 8032, a forwarding entry memory 8034, and a physical interface card (PIC) 8033.
接口板8030上的中央处理器8031用于对接口板8030进行控制管理并与主控板8010上的中央处理器8011进行通信。The central processor 8031 on the interface board 8030 is used to control and manage the interface board 8030 and communicate with the central processor 8011 on the main control board 8010.
网络处理器8032用于实现报文的转发处理。网络处理器8032的形态可以是转发芯片。具体而言,网络处理器8032用于基于转发表项存储器8034保存的转发表转发接收到的报文,如果报文的目的地址为设备800的地址,则将该报文上送至CPU(如中央处理器8011)处理;如果报文的目的地址不是设备800的地址,则根据该目的地址从转发表中查找到该目的地址对应的下一跳和出接口,将该报文转发到该目的地址对应的出接口。其中,上行报文的处理包括:报文入接口的处理,转发表查找;下行报文的处理:转发表查找等等。The network processor 8032 is used to implement packet forwarding processing. The network processor 8032 may be in the form of a forwarding chip. Specifically, the network processor 8032 is used to forward the received message based on the forwarding table stored in the forwarding table memory 8034. If the destination address of the message is the address of the device 800, the message is uploaded to the CPU (such as Central processor 8011) processes; if the destination address of the message is not the address of device 800, the next hop and outbound interface corresponding to the destination address are found from the forwarding table based on the destination address, and the message is forwarded to the destination. The outbound interface corresponding to the address. Among them, the processing of uplink packets includes: processing of packet incoming interfaces, forwarding table search; processing of downlink packets: forwarding table search, etc.
物理接口卡8033用于实现物理层的对接功能,原始的流量由此进入接口板8030,以及处理后的报文从该物理接口卡8033发出。物理接口卡8033也称为子卡,可安装在接口板8030上,负责将光电信号转换为报文并对报文进行合法性检查后转发给网络处理器8032处理。在一些实施例中,中央处理器也可执行网络处理器8032的功能,比如基于通用CPU实现软件转发,从而物理接口卡8033中不需要网络处理器8032。The physical interface card 8033 is used to implement the docking function of the physical layer. The original traffic enters the interface card 8030 through this, and the processed packets are sent out from the physical interface card 8033. The physical interface card 8033 is also called a daughter card and can be installed on the interface board 8030. It is responsible for converting photoelectric signals into messages and checking the validity of the messages before forwarding them to the network processor 8032 for processing. In some embodiments, the central processor can also perform the functions of the network processor 8032, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 8032 is not required in the physical interface card 8033.
可选地,设备800包括多个接口板,例如设备800还包括接口板8040,接口板8040包括:中央处理器8041、网络处理器8042、转发表项存储器8044和物理接口卡8043。Optionally, the device 800 includes multiple interface boards. For example, the device 800 also includes an interface board 8040. The interface board 8040 includes: a central processor 8041, a network processor 8042, a forwarding entry memory 8044, and a physical interface card 8043.
可选地,设备800还包括交换网板8020。交换网板8020也可以称为交换网板单元(switch fabric unit,SFU)。在网络设备有多个接口板8030的情况下,交换网板8020用于完成各接口板之间的数据交换。例如,接口板8030和接口板8040之间可以通过交换网板8020通信。Optionally, the device 800 also includes a switching network board 8020. The switching fabric unit 8020 can also be called a switching fabric unit (switch fabric unit, SFU). When the network device has multiple interface boards 8030, the switching network board 8020 is used to complete data exchange between the interface boards. For example, the interface board 8030 and the interface board 8040 can communicate through the switching network board 8020.
主控板8010和接口板8030耦合。例如。主控板8010、接口板8030和接口板8040,以及交换网板8020之间通过系统总线与系统背板相连实现互通。在一种可能的实现方式中,主控板8010和接口板8030之间建立进程间通信协议(inter-process communication,IPC)通道,主控板8010和接口板8030之间通过IPC通道进行通信。The main control board 8010 and the interface board 8030 are coupled. For example. The main control board 8010, the interface board 8030, the interface board 8040, and the switching network board 8020 are connected to the system backplane through the system bus to achieve intercommunication. In a possible implementation, an inter-process communication protocol (IPC) channel is established between the main control board 8010 and the interface board 8030, and the main control board 8010 and the interface board 8030 communicate through the IPC channel.
在逻辑上,设备800包括控制面和转发面,控制面包括主控板8010和中央处理器8031,转发面包括执行转发的各个组件,比如转发表项存储器8034、物理接口卡8033和网络处理器8032。控制面执行路由器、生成转发表、处理信令和协议报文、配置与维护设备的状态等功能,控制面将生成的转发表下发给转发面,在转发面,网络处理器8032基于控制面下发的转发表对物理接口卡8033收到的报文查表转发。控制面下发的转发表可以保存在转发表项存储器8034中。在有些实施例中,控制面和转发面可以完全分离,不在同一设备上。Logically, device 800 includes a control plane and a forwarding plane. The control plane includes a main control board 8010 and a central processor 8031. The forwarding plane includes various components that perform forwarding, such as forwarding entry memory 8034, physical interface card 8033, and network processor. 8032. The control plane executes functions such as router, generates forwarding tables, processes signaling and protocol messages, configures and maintains device status. The control plane sends the generated forwarding tables to the forwarding plane. On the forwarding plane, the network processor 8032 is based on the control plane. The delivered forwarding table looks up the packets received by the physical interface card 8033 and forwards them. The forwarding table delivered by the control plane may be stored in the forwarding table item storage 8034. In some embodiments, the control plane and forwarding plane may be completely separate and not on the same device.
在第一转发节点采用设备800实现的情况下,在一些实施例中,附图6所示的网络设备600中的收发模块相当于设备800中的物理接口卡8033;网络设备600的处理模块相当于网络处理器8032、中央处理器8031或中央处理器8011。In the case where the first forwarding node is implemented by the device 800, in some embodiments, the transceiver module in the network device 600 shown in Figure 6 is equivalent to the physical interface card 8033 in the device 800; the processing module of the network device 600 is equivalent to In the network processor 8032, the central processing unit 8031 or the central processing unit 8011.
应理解,本申请实施例中接口板8040上的操作与接口板8030的操作一致,为了简洁,不再赘述。应理解,本实施例的设备800可对应于上述各个方法实施例中的第一转发节点,该设备800中的主控板8010、接口板8030和/或8040可以实现上述各个方法实施例中的第一 转发节点所具有的功能和/或所实施的各种步骤,为了简洁,在此不再赘述。It should be understood that the operations on the interface board 8040 in the embodiment of the present application are consistent with the operations on the interface board 8030, and will not be described again for the sake of simplicity. It should be understood that the device 800 in this embodiment can correspond to the first forwarding node in the above method embodiments, and the main control board 8010, interface board 8030 and/or 8040 in the device 800 can implement the above method embodiments. For the sake of brevity, the functions of the first forwarding node and/or the various steps performed will not be described again here.
值得说明的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,网络设备的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,网络设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,网络设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的网络设备的数据接入和处理能力要大于集中式架构的设备。可选地,网络设备的形态也可以是只有一块板卡,即没有交换网板,接口板和主控板的功能集成在该一块板卡上,此时接口板上的中央处理器和主控板上的中央处理器在该一块板卡上可以合并为一个中央处理器,执行两者叠加后的功能,这种形态设备的数据交换和处理能力较低(例如,低端交换机或路由器等网络设备)。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。It is worth mentioning that there may be one or more main control boards, and when there are multiple main control boards, they can include the main main control board and the backup main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. There can also be one or more physical interface cards on the interface board. There may be no switching network board, or there may be one or more switching network boards. When there are multiple switching network boards, load sharing and redundant backup can be realized together. Under the centralized forwarding architecture, network equipment does not need switching network boards, and the interface boards are responsible for processing the business data of the entire system. Under the distributed forwarding architecture, network equipment can have at least one switching network board, which enables data exchange between multiple interface boards through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network equipment with a distributed architecture are greater than those with a centralized architecture. Optionally, the network device can also be in the form of only one board, that is, there is no switching network board. The functions of the interface board and the main control board are integrated on this board. In this case, the central processor and main control board on the interface board The central processor on the board can be combined into one central processor on this board to perform the superimposed functions of the two. This form of equipment has low data exchange and processing capabilities (for example, low-end switches or routers and other networks equipment). The specific architecture used depends on the specific networking deployment scenario and is not limited here.
在另一些实施例中,本申请实施例还提供了一种通信系统。如图9所示,该通信系统900包括第一转发节点901和第二转发节点902。In other embodiments, embodiments of the present application also provide a communication system. As shown in Figure 9, the communication system 900 includes a first forwarding node 901 and a second forwarding node 902.
其中,第一转发节点901用于:获取双向转发检测BFD群组的状态,BFD群组包括第一转发节点在第二分段网络内对应的多条路径中每条路径的BFD会话,BFD会话用于检测相应路径的故障;基于BFD群组的状态向第二转发节点902通告多条路径的故障情况。Among them, the first forwarding node 901 is used to: obtain the status of the bidirectional forwarding detection BFD group. The BFD group includes the BFD session of each of the multiple paths corresponding to the first forwarding node in the second segment network. The BFD session Used to detect failures of corresponding paths; notify the second forwarding node 902 of the failure conditions of multiple paths based on the status of the BFD group.
上述通信系统各个转发节点的详细功能可以参考图2所示的实施例,在此不再赘述。For the detailed functions of each forwarding node in the above communication system, reference can be made to the embodiment shown in Figure 2 and will not be described again here.
本领域普通技术人员可以意识到,结合本文中所公开的实施例中描述的各方法步骤和模块,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各实施例的步骤及组成。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can appreciate that the method steps and modules described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. In order to clearly illustrate the possible functions of hardware and software, Interchangeability, in the above description, the steps and compositions of each embodiment have been generally described according to functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. One of ordinary skill in the art may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、设备和模块的具体工作过程,可以参见前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,该模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、设备或模块的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling or direct coupling or communication connection between each other shown or discussed may be indirect coupling or communication connection through some interfaces, devices or modules, or may be electrical, mechanical or other forms of connection.
该作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请实施例方案的目的。The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个 模块单独物理存在,也可以是两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules.
该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例中方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program code. .
本申请中术语“第一”“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。还应理解,尽管以下描述使用术语第一、第二等来描述各种元素,但这些元素不应受术语的限制。这些术语只是用于将一元素与另一元素区别分开。例如,在不脱离各种示例的范围的情况下,第一信息可以被称为第二信息,并且类似地,第二信息可以被称为第一信息。第一信息和第二信息都可以是信息,并且在某些情况下,可以是单独且不同的信息。In this application, the terms "first" and "second" are used to distinguish the same or similar items with basically the same functions and functions. It should be understood that there is no logic or timing between "first" and "second" There are no restrictions on the number and execution order of the dependencies. It should also be understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of various examples, the first information may be referred to as second information, and similarly, the second information may be referred to as first information. Both the first information and the second information may be information, and in some cases, may be separate and different information.
本申请中术语“至少一个”的含义是指一个或多个,本申请中术语“多个”的含义是指两个或两个以上。本文中术语“系统”和“网络”经常可互换使用。The term "at least one" in this application means one or more, and the term "plurality" in this application means two or more. The terms "system" and "network" are often used interchangeably in this article.
还应理解,术语“若”可被解释为意指“当...时”(“when”或“upon”)或“响应于确定”或“响应于检测到”。类似地,根据上下文,短语“若确定...”或“若检测到[所陈述的条件或事件]”可被解释为意指“在确定...时”或“响应于确定...”或“在检测到[所陈述的条件或事件]时”或“响应于检测到[所陈述的条件或事件]”。It should also be understood that the term "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, depending on the context, the phrase "if it is determined..." or "if [stated condition or event] is detected" may be interpreted to mean "when it is determined..." or "in response to the determination... ” or “on detection of [stated condition or event]” or “in response to detection of [stated condition or event].”
以上描述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of various equivalent modifications within the technical scope disclosed in the present application. Or replacement, these modifications or replacements should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机程序指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本申请实施例中的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,该计算机程序指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如软盘、硬盘、磁带)、光介质(例如,数字视频光盘(digital video disc,DVD))、或者半导体介质(例如固态硬盘)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer program instructions may be transmitted from a website, computer, server or data center to Wired or wireless transmission to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The available media may be magnetic media (such as floppy disks, hard disks, magnetic tapes), optical media (such as digital video discs (DVD)), or semiconductor media (such as solid state drives), etc.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing the relevant hardware through a program. The program can be stored in a computer-readable storage medium. As mentioned above, The storage medium can be read-only memory, magnetic disk or optical disk, etc.
以上描述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application. within.

Claims (26)

  1. 一种跨分段网络的故障检测方法,其特征在于,所述方法应用于通信系统,所述通信系统包括第一转发节点和第二转发节点,所述第一转发节点为第一分段网络和第二分段网络之间的边缘节点,所述第二转发节点位于所述第一分段网络内;所述方法包括:A fault detection method across segmented networks, characterized in that the method is applied to a communication system, the communication system includes a first forwarding node and a second forwarding node, the first forwarding node is the first segmented network and an edge node between the second segmented network, the second forwarding node being located within the first segmented network; the method includes:
    所述第一转发节点获取双向转发检测BFD群组的状态,所述BFD群组包括所述第一转发节点在所述第二分段网络内对应的多条路径中每条路径的BFD会话,所述BFD会话用于检测相应路径的故障;The first forwarding node obtains the status of the bidirectional forwarding detection BFD group, where the BFD group includes the BFD session of each of the multiple paths corresponding to the first forwarding node in the second segmented network, The BFD session is used to detect the failure of the corresponding path;
    所述第一转发节点基于所述BFD群组的状态向所述第二转发节点通告所述多条路径的故障情况。The first forwarding node notifies the second forwarding node of the fault conditions of the multiple paths based on the status of the BFD group.
  2. 如权利要求1所述的方法,其特征在于,所述第一转发节点获取BFD群组的状态,包括:The method of claim 1, wherein the first forwarding node obtains the status of the BFD group, including:
    在所述BFD群组中各个BFD会话均处于关闭状态的情况下,所述第一转发节点获取的所述BFD群组的状态为关闭状态;When each BFD session in the BFD group is in a closed state, the status of the BFD group obtained by the first forwarding node is a closed state;
    在所述BFD群组中至少一个BFD会话的状态为打开状态的情况下,所述第一转发节点获取的所述BFD群组的状态为打开状态。When the status of at least one BFD session in the BFD group is an open state, the status of the BFD group acquired by the first forwarding node is an open state.
  3. 如权利要求1或2所述的方法,其特征在于,所述第一转发节点基于所述BFD群组的状态向所述第二转发节点通告所述多条路径的故障情况,包括:The method of claim 1 or 2, wherein the first forwarding node notifies the second forwarding node of the fault conditions of the multiple paths based on the status of the BFD group, including:
    所述第一转发节点基于所述BFD群组的状态,处理上一级BFD会话的流程,所述上一级BFD会话用于检测所述第一转发节点与所述第二转发节点之间的路径的故障。The first forwarding node processes a process of an upper-level BFD session based on the status of the BFD group. The upper-level BFD session is used to detect the connection between the first forwarding node and the second forwarding node. Path failure.
  4. 如权利要求3所述的方法,其特征在于,所述第一转发节点基于所述BFD群组的状态,处理上一级BFD会话的流程,包括:The method of claim 3, wherein the first forwarding node processes the upper-level BFD session based on the status of the BFD group, including:
    如果所述BFD群组的状态为关闭状态,所述第一转发节点则不向所述第二转发节点发送所述第一BFD报文。If the status of the BFD group is a closed state, the first forwarding node does not send the first BFD message to the second forwarding node.
  5. 如权利要求4所述的方法,其特征在于,所述第一转发节点基于所述BFD群组的状态,处理上一级BFD会话的流程,包括:The method of claim 4, wherein the first forwarding node processes the upper-level BFD session based on the status of the BFD group, including:
    如果所述BFD群组的状态为打开状态,所述第一转发节点则向所述第二转发节点发送所述第一BFD报文。If the status of the BFD group is open, the first forwarding node sends the first BFD message to the second forwarding node.
  6. 如权利要求3所述的方法,其特征在于,所述第一转发节点基于所述BFD群组的状态,处理上一级BFD会话的流程,包括:The method of claim 3, wherein the first forwarding node processes the upper-level BFD session based on the status of the BFD group, including:
    如果所述BFD群组的状态为关闭状态,所述第一转发节点则将所述上一级BFD会话的状态设置为关闭状态,并向所述第二转发节点发送状态通告消息,所述状态通告消息指示所述上一级BFD会话的状态为关闭状态。If the status of the BFD group is in the closed state, the first forwarding node sets the status of the upper-level BFD session to the closed state, and sends a status notification message to the second forwarding node. The notification message indicates that the status of the upper-level BFD session is closed.
  7. 如权利要求6所述的方法,其特征在于,所述第一转发节点基于所述BFD群组的状态,处理上一级BFD会话的流程,包括:The method of claim 6, wherein the first forwarding node processes the upper-level BFD session based on the status of the BFD group, including:
    如果所述BFD群组的状态为打开状态,所述第一转发节点则不执行将所述上一级BFD会话状态设置为关闭状态的操作。If the state of the BFD group is an open state, the first forwarding node does not perform an operation of setting the upper-level BFD session state to a closed state.
  8. 如权利要求3所述的方法,其特征在于,所述第一转发节点基于所述BFD群组的状态,处理上一级BFD会话的流程,包括:The method of claim 3, wherein the first forwarding node processes the upper-level BFD session based on the status of the BFD group, including:
    在接收到来自所述第二转发节点的第二BFD报文时,如果所述BFD群组的状态为关闭状态,所述第一转发节点则丢弃所述第二BFD报文,不执行基于所述第二BFD报文更新当前BFD检测周期内接收到的BFD报文数量的操作。When receiving the second BFD message from the second forwarding node, if the status of the BFD group is closed, the first forwarding node discards the second BFD message and does not perform the execution based on the second BFD message. The second BFD message updates the number of BFD messages received in the current BFD detection cycle.
  9. 如权利要求8所述的方法,其特征在于,所述第一转发节点基于所述BFD群组的状态,处理上一级BFD会话的流程,包括:The method of claim 8, wherein the first forwarding node processes the upper-level BFD session based on the status of the BFD group, including:
    如果所述BFD群组的状态为打开状态,所述第一转发节点则基于所述第二BFD报文更新当前BFD检测周期内接收到的BFD报文数量。If the status of the BFD group is open, the first forwarding node updates the number of BFD packets received in the current BFD detection period based on the second BFD packet.
  10. 如权利要求3所述的方法,其特征在于,所述第一转发节点基于所述BFD群组的状态,处理上一级BFD会话的流程,包括:The method of claim 3, wherein the first forwarding node processes the upper-level BFD session based on the status of the BFD group, including:
    在接收到来自所述第二转发节点的第三BFD报文时,如果所述BFD群组的状态为关闭状态,所述第一转发节点则丢弃所述第三BFD报文,不执行将所述第三BFD报文返回至所述第二转发节点的操作。When receiving the third BFD message from the second forwarding node, if the status of the BFD group is closed, the first forwarding node discards the third BFD message and does not execute the The operation of returning the third BFD packet to the second forwarding node.
  11. 如权利要求10所述的方法,其特征在于,所述第一转发节点基于所述BFD群组的状态,处理上一级BFD会话的流程,包括:The method of claim 10, wherein the first forwarding node processes the upper-level BFD session based on the status of the BFD group, including:
    如果所述BFD群组的状态为打开状态,所述第一转发节点则将所述第三BFD报文返回至所述第二转发节点。If the status of the BFD group is open, the first forwarding node returns the third BFD packet to the second forwarding node.
  12. 如权利要求3-11任一所述的方法,其特征在于,所述上一级BFD会话为异步模式下的BFD会话,查询模式下的BFD会话或无缝双向转发检测SBFD会话。The method according to any one of claims 3-11, characterized in that the upper-level BFD session is a BFD session in asynchronous mode, a BFD session in query mode or a seamless bidirectional forwarding detection SBFD session.
  13. 如权利要求3-12任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 3-12, characterized in that the method further includes:
    所述第一转发节点获取所述BFD群组;The first forwarding node obtains the BFD group;
    所述第一转发节点确定所述BFD群组与所述上一级BFD会话的对应关系。The first forwarding node determines the corresponding relationship between the BFD group and the upper-level BFD session.
  14. 如权利要求1或2所述的方法,其特征在于,所述第一转发节点基于所述BFD群组的状态向所述第二转发节点通告所述多条路径的故障情况,包括:The method of claim 1 or 2, wherein the first forwarding node notifies the second forwarding node of the fault conditions of the multiple paths based on the status of the BFD group, including:
    所述第一转发节点向所述第二转发节点发送故障通告消息,所述故障通告消息用于向所述第二转发节点通告所述多条路径的故障情况。The first forwarding node sends a fault notification message to the second forwarding node, where the fault notification message is used to notify the second forwarding node of fault conditions of the multiple paths.
  15. 如权利要求14所述的方法,其特征在于,所述故障通告消息携带所述BFD群组的状态。The method of claim 14, wherein the fault notification message carries the status of the BFD group.
  16. 如权利要求1-15任一所述的方法,其特征在于,所述第一转发节点获取BFD群组的状态之前,所述方法还包括:The method according to any one of claims 1 to 15, characterized in that before the first forwarding node obtains the status of the BFD group, the method further includes:
    所述第一转发节点周期性获取所述多条路径中每条路径的BFD会话状态;The first forwarding node periodically obtains the BFD session status of each of the multiple paths;
    所述第一转发节点基于所述多条路径中每条路径的BFD会话状态,周期性更新并存储所述BFD群组的状态;The first forwarding node periodically updates and stores the status of the BFD group based on the BFD session status of each of the multiple paths;
    所述第一转发节点获取BFD群组的状态,包括:The first forwarding node obtains the status of the BFD group, including:
    所述第一转发节点获取存储的所述BFD群组的状态。The first forwarding node obtains the stored status of the BFD group.
  17. 如权利要求1-15任一所述的方法,其特征在于,所述第一转发节点获取BFD群组的状态,包括:The method according to any one of claims 1 to 15, characterized in that the first forwarding node obtains the status of the BFD group, including:
    所述第一转发节点获取所述多条路径中每条路径的BFD会话状态;The first forwarding node obtains the BFD session status of each of the multiple paths;
    所述第一转发节点基于所述多条路径中每条路径的BFD会话状态,确定所述BFD群组的状态。The first forwarding node determines the status of the BFD group based on the BFD session status of each of the multiple paths.
  18. 如权利要求1-17任一所述的方法,其特征在于,所述多条路径用于转发来自所述第二转发节点的报文流。The method according to any one of claims 1 to 17, characterized in that the plurality of paths are used to forward message flows from the second forwarding node.
  19. 如权利要求1-18任一所述的方法,其特征在于,所述第一分段网络和所述第二分段网络分别用于承载以下业务包括中的至少一项:基于第六代网络协议的分段路由的策略SRv6Policy业务、基于第六代网络协议的分段路由的最短路径SRv6 BE业务、虚拟租用线VLL业务、虚拟私用线服务VPLS业务;The method according to any one of claims 1 to 18, characterized in that the first segmented network and the second segmented network are respectively used to carry at least one of the following services: based on the sixth generation network The protocol's segment routing policy SRv6Policy service, the shortest path SRv6 BE service of segment routing based on the sixth generation network protocol, the virtual leased line VLL service, and the virtual private line service VPLS service;
    所述第一分段网络承载的业务和所述第二分段网络承载的业务不同。The services carried by the first segmented network are different from the services carried by the second segmented network.
  20. 如权利要求1-19任一所述的方法,其特征在于,所述第一转发节点获取BFD群组的状态,包括:The method according to any one of claims 1 to 19, characterized in that the first forwarding node obtains the status of the BFD group, including:
    在所述第一转发节点的转发面上获取所述BFD群组的状态。Obtain the status of the BFD group on the forwarding plane of the first forwarding node.
  21. 如权利要求1-20任一所述的方法,其特征在于,所述第一转发节点基于所述BFD群组的状态向所述第二转发节点通告所述多条路径的故障情况,包括:The method according to any one of claims 1 to 20, characterized in that the first forwarding node notifies the second forwarding node of the fault conditions of the multiple paths based on the status of the BFD group, including:
    在所述第一转发节点的转发面上基于所述BFD群组的状态向所述第二转发节点通告所述多条路径的故障情况。On the forwarding plane of the first forwarding node, the failure conditions of the multiple paths are notified to the second forwarding node based on the status of the BFD group.
  22. 一种通信系统,其特征在于,所述系统包括第一转发节点和第二转发节点,所述第一转发节点用于执行如权利要求1-21任一项所述的方法。A communication system, characterized in that the system includes a first forwarding node and a second forwarding node, and the first forwarding node is used to perform the method according to any one of claims 1-21.
  23. 一种网络设备,其特征在于,所述网络设备包括存储器和处理器;A network device, characterized in that the network device includes a memory and a processor;
    所述存储器用于存储程序指令;The memory is used to store program instructions;
    所述处理器被配置为调用所述存储器中存储的程序,以使得所述网络设备执行如权利要求1-21任一项所述的方法。The processor is configured to call a program stored in the memory, so that the network device executes the method according to any one of claims 1-21.
  24. 一种网络设备,其特征在于,所述网络设备为通信系统中的第一转发节点,所述通信系统还包括第二转发节点,所述第一转发节点为第一分段网络和第二分段网络之间的边缘节点,所述第二转发节点位于所述第一分段网络内;A network device, characterized in that the network device is a first forwarding node in a communication system, the communication system further includes a second forwarding node, and the first forwarding node is a first segmented network and a second segmented network. An edge node between segmented networks, the second forwarding node is located within the first segmented network;
    所述网络设备包括收发模块和处理模块:The network device includes a transceiver module and a processing module:
    所述收发模块用于执行如权利要求1-21任一所述方法中收发相关的操作;The transceiver module is used to perform transceiver-related operations in the method of any one of claims 1-21;
    所述处理模块用于执行如权利要求1-21任一所述方法中除所述收发相关的操作之外的操作。The processing module is configured to perform operations other than the transceiver-related operations in the method of any one of claims 1-21.
  25. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令在处理器上运行时,实现权利要求1-21任一项所述的方法。A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when the instructions are run on a processor, the method described in any one of claims 1-21 is implemented.
  26. 一种计算机程序产品,其特征在于,所述计算机程序产品包含指令,所述指令在处理器上运行时,实现权利要求1-21任一项所述的方法。A computer program product, characterized in that the computer program product contains instructions, and when the instructions are run on a processor, the method of any one of claims 1-21 is implemented.
PCT/CN2022/138069 2022-04-15 2022-12-09 Cross-segmented network fault detection method, and communication system and related apparatus WO2023197644A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202210400005 2022-04-15
CN202210400005.8 2022-04-15
CN202210657604.8 2022-06-10
CN202210657604.8A CN116980952A (en) 2022-04-15 2022-06-10 Fault detection method, communication system and related device of cross-segment network

Publications (1)

Publication Number Publication Date
WO2023197644A1 true WO2023197644A1 (en) 2023-10-19

Family

ID=88328759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/138069 WO2023197644A1 (en) 2022-04-15 2022-12-09 Cross-segmented network fault detection method, and communication system and related apparatus

Country Status (1)

Country Link
WO (1) WO2023197644A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117278345A (en) * 2023-11-20 2023-12-22 新华三技术有限公司 Energy saving method and device applied to network equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113259A (en) * 2019-04-26 2019-08-09 新华三技术有限公司 Path status notification method, path switching method, forwarding device and system
CN110875855A (en) * 2018-08-30 2020-03-10 北京华为数字技术有限公司 Method for detecting network link state and network equipment
US10771317B1 (en) * 2018-11-13 2020-09-08 Juniper Networks, Inc. Reducing traffic loss during link failure in an ethernet virtual private network multihoming topology
CN113132223A (en) * 2020-01-15 2021-07-16 华为技术有限公司 Fault detection method and equipment
CN113472601A (en) * 2020-03-31 2021-10-01 华为技术有限公司 Connection state detection method and related equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110875855A (en) * 2018-08-30 2020-03-10 北京华为数字技术有限公司 Method for detecting network link state and network equipment
US10771317B1 (en) * 2018-11-13 2020-09-08 Juniper Networks, Inc. Reducing traffic loss during link failure in an ethernet virtual private network multihoming topology
CN110113259A (en) * 2019-04-26 2019-08-09 新华三技术有限公司 Path status notification method, path switching method, forwarding device and system
CN113132223A (en) * 2020-01-15 2021-07-16 华为技术有限公司 Fault detection method and equipment
CN113472601A (en) * 2020-03-31 2021-10-01 华为技术有限公司 Connection state detection method and related equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117278345A (en) * 2023-11-20 2023-12-22 新华三技术有限公司 Energy saving method and device applied to network equipment
CN117278345B (en) * 2023-11-20 2024-02-13 新华三技术有限公司 Energy saving method and device applied to network equipment

Similar Documents

Publication Publication Date Title
US10999125B1 (en) Inter-application communication via signal-routes
CN110784400B (en) N: 1 method, system and standby service gateway for redundancy of stateful application gateway
CN110535760B (en) Forwarding detection of aggregated interfaces
US9979632B2 (en) Avoiding data traffic loss in a ring multihomed, in an active-standby manner, to a transport network
US8797838B2 (en) Intelligent network restoration
WO2021185208A1 (en) Packet processing method and apparatus, device, and storage medium
US9385944B2 (en) Communication system, path switching method and communication device
WO2021000752A1 (en) Method and related device for forwarding packets in data center network
WO2017036180A1 (en) Packet processing method and device
WO2022012489A1 (en) Capability indication method and related device
WO2020173424A1 (en) Message processing method, and gateway device
JP2021529454A (en) Loop avoidance communication method, loop avoidance communication device and loop avoidance communication system
WO2023197644A1 (en) Cross-segmented network fault detection method, and communication system and related apparatus
WO2018107974A1 (en) Routing switching-back method, and controller and system
WO2022127698A1 (en) Congestion control method and network device
US10033573B2 (en) Protection switching method, network, and system
CN110380966B (en) Method for discovering forwarding path and related equipment thereof
EP4325777A1 (en) Method and device for electing designated forwarder (df)
US11552882B2 (en) Efficient propagation of fault routing notifications
CN115242699A (en) Message transmission method, slice generation method, device and system
CN116980952A (en) Fault detection method, communication system and related device of cross-segment network
JP7273130B2 (en) Communication method and device
US20230224245A1 (en) Packet Transmission Method and Apparatus
WO2023065750A1 (en) State synchronization method and apparatus, and device
WO2022161061A1 (en) Failure detection method, network device, and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22937274

Country of ref document: EP

Kind code of ref document: A1