Bit forwarding entry router, bit forwarding router and operation management maintenance detection method

By using OAM request messages and MPLS labels for link detection in the BIER network, BFIR can effectively diagnose and handle faults during multicast message transmission, solving problems that cannot be detected in the existing technology and improving network stability. and detection efficiency.

CN111934944BActive Publication Date: 2024-10-22HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010614036.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2014-12-30
Publication Date
2024-10-22
Estimated Expiration
2034-12-30

AI Technical Summary

Technical Problem

In a bit-indexed explicit replication (BIER) network, the bit-forwarding ingress router (BFIR) cannot effectively diagnose and handle failures during multicast packet transmission.

Method used

BFIR performs link detection and fault location by sending OAM request messages containing group identifiers and bit strings to the Bit Forwarding Egress Router (BFER), and uses Multi-Protocol Label Switching (MPLS) labels and time-to-live (TTL) for path detection. .

Benefits of technology

It realizes BFIR's connectivity detection and fault location of BFER links, improves fault diagnosis efficiency, can detect multiple BFERs at the same time, and improves network stability and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111934944B_ABST
    Figure CN111934944B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a bit forwarding entry router BFIR, a bit forwarding router BFR, and an operation management and maintenance OAM detection method. The BFIR located in the bit index-based explicit replication BIER network obtains an OAM request message according to the identification ID of the bit forwarding exit router BFER, and sends an OAM request message to the BFER; the BFR determines that the destination device corresponding to the OAM request message is itself according to the OAM request message from the BFIR; the BFR obtains an OAM response message according to the ID of the BFIR included in the OAM request message, and sends an OAM response message to the BFIR, so that the BFIR locates the fault according to the received OAM response message. The method and device provided by the embodiment of the present application can solve the problem that the BFIR cannot diagnose or process the fault when a transmission fault occurs during the transmission of a multicast message.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the Chinese patent application filed with the China Patent Office on December 30, 2014, with application number CN 201410850766.9 and invention name "Bit forwarding entry router, bit forwarding router and operation management maintenance detection method". Technical Field

[0002] The present invention relates to the field of multicast networks, and in particular to a bit forwarding entry router, a bit forwarding router and an operation, administration and maintenance (OAM) detection method. Background Art

[0003] Bit Indexed Explicit Replication (BIER) is a new multicast technology that implements the transmission of multicast messages through multiple bit forwarding routers (BFR) set up in the BIER domain.

[0004] When a bit-forwarding ingress router (BFIR) in a BIER domain sends a multicast message to at least one bit-forwarding egress router (BFER) in the BIER domain, the multicast message is transmitted by encoding the identification information corresponding to each BFER into the multicast message and sending the multicast message to the corresponding BFER according to the identification information. Among them, BFIR uses a combination of a set identifier (SI) and a bit string (BitString) as the identification information of at least one BFER.

[0005] In the prior art, when a transmission failure occurs during the transmission of a multicast message, the BFIR cannot diagnose or process the failure. Summary of the invention

[0006] In order to solve the problem in the background technology, the embodiment of the present invention provides a bit forwarding inlet router, a bit forwarding router and an OAM detection method, which helps the BFIR to diagnose the fault of the multicast message during the transmission process. The technical solution provided by the embodiment of the present invention is as follows.

[0007] In a first aspect, a BFIR is provided, wherein the BFIR is located in a BIER network, and the router includes:

[0008] a first obtaining unit, configured to obtain a first OAM request message according to an identifier (ID) of at least one BFER, wherein the first OAM request message includes the ID of the BFIR, a group identifier, and a bit string corresponding to the at least one BFER, the group identifier corresponds to the at least one BFER, and the first OAM request message is used to detect a link between the BFIR and the at least one BFER;

[0009] The first sending unit is configured to send the first OAM request message to the at least one BFER.

[0010] In a first possible implementation of the first aspect, the first OAM request message further includes a type length value (English: type length value, TLV for short), and the TLV is used to carry the group identifier, the bit string and the length of the bit string.

[0011] In combination with the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner,

[0012] The first obtaining unit is specifically configured to obtain the group identifier and the bit string according to the ID of the at least one BFER;

[0013] The first obtaining unit is specifically configured to obtain a second OAM request message according to the bit string, wherein a message header of the second OAM request message includes the bit string and the ID of the BFIR, and a payload of the second OAM request message includes an OAM message;

[0014] The first obtaining unit is specifically used to insert a first bit indexed explicit replication label based on multi-protocol label switching (English: Bit Indexed Explicit ReplicationMultiprotocol Label Switching Label, abbreviated as BIER-MPLS Label) into the second OAM request message according to the group identifier, to obtain the first OAM request message, where the first BIER-MPLS Label includes a label corresponding to the group identifier.

[0015] In combination with the first aspect or the first possible implementation manner of the first aspect or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the first OAM request message is used to detect a link between the BFIR and a first BFR, and the first BFR is a device on the link between the BFIR and the at least one BFER;

[0016] The first obtaining unit is further used to determine a first survival time (English: time to live, referred to as TTL), the value of the first TTL is M, and the M is used to identify the number of hops that the first OAM request message passes through from the BFIR to the first BFR;

[0017] The first obtaining unit is also used to add the first TTL to the first BIER-MPLS Label.

[0018] In combination with the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the BFIR further includes:

[0019] a first receiving unit, configured to receive a first OAM response message from the first BFR, wherein the first OAM response message includes an ID of a third BFR, an ID of the first BFR, a group identifier corresponding to the BFIR, and a bit string corresponding to the BFIR, wherein the third BFR is a previous hop of the first BFR on a link between the BFIR and the at least one BFER;

[0020] A second obtaining unit, configured to obtain a second TTL according to the first OAM response message and the first TTL, wherein the value of the second TTL is a value obtained by adding a preset value to the value of the first TTL;

[0021] A third obtaining unit is used to insert a second BIER-MPLS Label into the second OAM request message according to the second TTL and the group identifier to obtain a third OAM request message, wherein the second BIER-MPLS Label includes a label corresponding to the group identifier and the second TTL, and the third OAM request message is used to detect the link between the BFIR and the second BFR, and the second BFR is the next hop of the first BFR on the link between the BFIR and the at least one BFER;

[0022] The second sending unit is configured to send a third OAM request message to the first BFER.

[0023] In combination with the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the second BFR is a BFER.

[0024] In combination with the first aspect or the first or second or third or fourth or fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, the at least one BFER includes a first BFER; and the device further includes:

[0025] The second receiving unit is configured to receive an OAM response message from the first BFER, wherein the OAM response message includes an ID of the first BFER, a group identifier corresponding to the BFIR, and a bit string corresponding to the BFIR.

[0026] In combination with the first aspect or the first or second or third or fourth or fifth or sixth possible implementation manner of the first aspect, in a seventh possible implementation manner of the first aspect, the second OAM request message includes a first bit and a second bit, the first bit is used to identify that the second OAM request message is an OAM message, and the second bit is used to identify that the type of the second OAM request message is a request.

[0027] In a second aspect, a first bit forwarding router (BFR) is provided, wherein the first BFR is located in a BIER-based network, and the router includes:

[0028] a receiving unit, configured to receive an OAM request message from a BFIR, wherein the OAM request message includes an identification ID of the BFIR, a group identification corresponding to at least one BFER, and a bit string corresponding to the at least one BFER, wherein the OAM request message is used to detect a link between the BFIR and the at least one BFER;

[0029] a destination determination unit, configured to determine, according to the OAM request message, that a destination BFR corresponding to the OAM request message is the first BFR;

[0030] A second obtaining unit, configured to obtain a first OAM response message according to the ID of the BFIR, where the first OAM response message includes the ID of the first BFR, a group identifier corresponding to the BFIR, and a bit string;

[0031] The second sending unit is configured to send the first OAM response message to the BFIR.

[0032] In a first possible implementation manner of the second aspect, the first BFR is one BFER of the at least one BFER;

[0033] The destination determination unit is specifically configured to determine, according to the group identifier and the bit string included in the OAM request message, that the at least one BFER includes the first BFR; and determine that the destination BFR corresponding to the OAM request message is the first BFR.

[0034] In combination with the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the OAM request message further includes a TLV, where the TLV is used to carry the group identifier, the bit string, and the length of the bit string;

[0035] A verification unit, configured to determine, according to a TLV included in the OAM request message, that the at least one BFER includes the first BFR;

[0036] The verification unit is used to verify that the destination BFR of the OAM request message is the first BFR.

[0037] In combination with the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the verification unit is further used to obtain the ID of the at least one BFER according to the group identifier, the bit string, and the length of the bit string carried by the TLV;

[0038] The verification unit is also used to detect whether its own ID is included in the ID of the at least one BFER;

[0039] If the ID of the first BFR is included in the ID of the at least one BFER, the verification unit is further configured to determine that the at least one BFER includes the first BFR.

[0040] In a fourth possible implementation manner of the second aspect, the first BFR is a BFR on a link between the BFIR and the BFER, and a header of the OAM request message includes a TTL;

[0041] The destination determination unit is configured to reduce the value of the TTL by a preset value; if it is determined that the value of the TTL after reducing the preset value reaches 0, then determine that the destination BFR corresponding to the OAM request message is the first BFR.

[0042] In combination with the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the first BFR further includes a second sending unit;

[0043] The destination determination unit is further configured to determine that if the value of the TTL after reducing the preset value does not reach 0, then determine that the destination BFR corresponding to the OAM request message is not the first BFR;

[0044] The second sending unit is used to send the OAM request message to the at least one BFER.

[0045] In combination with the second aspect or the first or second or third or fourth or fifth possible implementation manner of the second aspect, in a sixth possible implementation manner of the second aspect,

[0046] The first obtaining unit is specifically configured to obtain a group identifier and a bit string corresponding to the BFIR according to the ID of the BFIR;

[0047] The first obtaining unit is specifically configured to obtain a second OAM response message according to the bit string corresponding to the BFIR, wherein a message header of the second OAM response message includes the bit string corresponding to the BFIR and the ID of the first BFR, and a payload of the second OAM response message includes an OAM message;

[0048] The first obtaining unit is specifically used to insert a BIER-MPLS Label into the second OAM response message according to the group identifier corresponding to the BFIR, to obtain the first OAM response message, wherein the BIER-MPLS Label includes a label corresponding to the group identifier corresponding to the BFIR.

[0049] In combination with the sixth possible implementation manner of the second aspect, in a seventh possible implementation manner of the second aspect,

[0050] The first obtaining unit is further used to obtain an ID of a second BFR, where the second BFR is a previous hop of the first BFR on a link between the BFIR and the at least one BFER;

[0051] The first obtaining unit is further used to add the ID of the second BFR to the payload of the second OAM response message.

[0052] In combination with the second aspect or the first or second or third or fourth or fifth or sixth or seventh possible implementation manner of the second aspect, the OAM response message includes a first bit and a second bit, the first bit is used to identify the OAM response message as an OAM message, and the second bit is used to identify the type of the OAM response message as a response.

[0053] In a third aspect, an OAM detection method is provided for use in a bit-indexed explicit replication BIER network, the method comprising:

[0054] The BFIR obtains a first OAM request message according to an identification ID of at least one BFER, where the first OAM request message includes an ID of the BFIR, a group identifier, and a bit string corresponding to the at least one BFER, the group identifier corresponds to the at least one BFER, and the first OAM request message is used to detect a link between the BFIR and the at least one BFER;

[0055] The BFIR sends the first OAM request message to the at least one BFER.

[0056] In a first possible implementation manner of the third aspect, the first OAM request message further includes a TLV, where the TLV is used to carry the group identifier, the bit string, and the length of the bit string.

[0057] In combination with the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the BFIR generating the first OAM request message according to the ID of at least one BFER includes:

[0058] The BFIR obtains the group identifier and the bit string according to the ID of the at least one BFER;

[0059] The BFIR obtains a second OAM request message according to the bit string, wherein a message header of the second OAM request message includes the bit string and the ID of the BFIR, and a payload of the second OAM request message includes an OAM message;

[0060] The BFIR inserts the first BIER-MPLS Label into the second OAM request message according to the group identifier to obtain the first OAM request message, where the first BIER-MPLS Label includes a label corresponding to the group identifier.

[0061] In combination with the third aspect or the first or second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the first OAM request message is used to detect a link between the BFIR and a first BFR, and the first BFR is a device on the link between the BFIR and the at least one BFER;

[0062] The BFIR obtaining the first OAM request message according to the identification ID of at least one BFER further includes:

[0063] The BFIR determines a first TTL, where a value of the first TTL is M, and the M is used to identify the number of hops that the first OAM request message passes through from the BFIR to the first BFR;

[0064] The BFIR adds the first TTL to the first OAM request message.

[0065] In combination with the third possible implementation manner of the third aspect, in a fourth possible implementation manner, the method further includes:

[0066] The BFIR receives a first OAM response message from the first BFR, where the first OAM response message includes an ID of a third BFR, an ID of the first BFR, a group identifier corresponding to the BFIR, and a bit string corresponding to the BFIR, and the third BFR is a previous hop of the first BFR on a link between the BFIR and the at least one BFER;

[0067] The BFIR obtains a second TTL according to the first OAM response message and the first TTL, where the value of the second TTL is a value of the first TTL plus a preset value;

[0068] The BFIR inserts a second BIER-MPLS Label into the second OAM request message according to the second TTL and the group identifier to obtain a third OAM request message, where the second BIER-MPLS Label includes a label corresponding to the second TTL and the group identifier, and the third OAM request message is used to detect the link between the BFIR and the second BFR, where the second BFR is the next hop of the first BFR on the link between the BFIR and the at least one BFER;

[0069] The BFIR sends a third OAM request message to the second BFR.

[0070] In combination with the fourth possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect, the second BFR is a BFER.

[0071] In combination with the third aspect or the first or second possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect, the at least one BFER includes a first BFER, and the method further includes:

[0072] The BFIR receives an OAM response message from the first BFER, where the OAM response message includes an ID of the first BFER, a group identifier corresponding to the BFIR, and a bit string corresponding to the BFIR.

[0073] In combination with the fifth possible implementation of the third aspect, in a sixth possible implementation, the second OAM request message includes a first bit and a second bit, the first bit is used to identify that the second OAM request message is an OAM message, and the second bit is used to identify that the type of the second OAM request message is a request.

[0074] In a fourth aspect, an OAM detection method is provided for use in a bit-indexed explicit replication BIER network, the method comprising:

[0075] The first BFR receives an OAM request message from a BFIR, wherein the OAM request message includes an identification ID of the BFIR, a group identification, and a bit string corresponding to the at least one BFER, the group identification corresponds to the at least one BFER, and the OAM request message is used to detect a link between the BFIR and the at least one BFER;

[0076] The first BFR determines, according to the OAM request message, that a destination BFR corresponding to the OAM request message is the first BFR;

[0077] The first BFR obtains a first OAM response message according to the ID of the BFIR, where the OAM response message includes the ID of the first BFR, a group identifier corresponding to the BFIR, and a bit string corresponding to the BFIR;

[0078] The first BFR sends the first OAM response message to the BFIR.

[0079] In a first possible implementation manner of the fourth aspect, the first BFR is one of the at least one BFER, and the first BFR determines, according to the OAM request message, that the destination BFR corresponding to the OAM request message is the first BFR, including:

[0080] The first BFR determines, according to the group identifier and the bit string included in the OAM request message, that the at least one BFER includes the first BFR;

[0081] The first BFR determines that the destination BFR corresponding to the OAM request message is the first BFR.

[0082] In combination with the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the OAM request message further includes a TLV, where the TLV is used to carry the group identifier, the bit string, and the length of the bit string;

[0083] Before the first BFR obtains the OAM response message according to the ID of the BFIR, the method further includes:

[0084] The first BFR determines, according to the TLV included in the OAM request message, that the at least one BFRE includes the first BFR;

[0085] The first BFR verifies that the destination BFR of the OAM request message is the first BFR.

[0086] In combination with the second possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the first BFR determines, according to the TLV included in the OAM request message, that the at least one BFRE includes the first BFR, including:

[0087] The first BFR obtains the ID of the at least one BFER according to the group identifier, the bit string and the length of the bit string carried by the TLV;

[0088] The first BFR detects whether its own ID is included in the ID of the at least one BFER;

[0089] If the ID of the first BFR is included in the ID of the at least one BFER, the first BFR determines that the at least one BFER includes the first BFR.

[0090] In combination with the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the first BFR is a BFR on a link between the BFIR and the BFER, and a message header of the OAM request message includes a TTL;

[0091] The first BFR determining, according to the OAM request message, that the destination BFR corresponding to the OAM request message is the first BFR includes:

[0092] The first BFR reduces the value of the TTL by a preset value,

[0093] The first BFR determines that the value of the TTL after reducing the preset value reaches 0, and determines that the destination BFR corresponding to the OAM request message is the first BFR.

[0094] In combination with the fourth possible implementation manner of the fourth aspect, in a fifth possible implementation manner, the method further includes:

[0095] The first BFR determines that the value of the TTL after the preset value is reduced does not reach 0, and determines that the destination BFR corresponding to the OAM request message is not the first BFR;

[0096] The first BFR sends the OAM request message to the at least one BFER.

[0097] In combination with the fourth aspect or the first or second or third or fourth or fifth possible implementation manner of the fourth aspect, in a sixth possible implementation manner of the fourth aspect, the first BFR obtains a first OAM response message according to the ID of the BFIR, further comprising:

[0098] The first BFR obtains, according to the ID of the BFIR, a group identifier corresponding to the BFIR and a bit string corresponding to the BFIR;

[0099] The first BFR obtains a second OAM response message according to the bit string corresponding to the BFIR, wherein a message header of the second OAM response message includes the bit string corresponding to the BFIR and the ID of the first BFR, and a payload of the second OAM response message includes an OAM message;

[0100] The first BFR inserts a BIER-MPLS Label into the second OAM response message according to the group identifier corresponding to the BFIR to obtain the first OAM response message, where the BIER-MPLS Label includes a label corresponding to the group identifier corresponding to the BFIR.

[0101] In combination with the sixth possible implementation manner of the fourth aspect, in a seventh possible implementation manner, the first BFR obtains the first OAM response message according to the ID of the BFIR, further comprising:

[0102] The first BFR obtains an ID of a second BFR, where the second BFR is a previous hop of the first BFR on a link between the BFIR and the at least one BFER;

[0103] The first BFR adds the ID of the second BFR to the payload of the second OAM response message.

[0104] In combination with the fourth aspect or the first or second or third or fourth or fifth or sixth or seventh possible implementation manner of the fourth aspect, in an eighth possible implementation manner of the fourth aspect, the OAM response message includes a first bit and a second bit, the first bit is used to identify the OAM response message as an OAM message, and the second bit is used to identify that the type of the OAM response message is a response.

[0105] In the method and device provided by the embodiment of the present invention, the BFIR can send an OAM request message to one or more BFERs in the BIER network, and the OAM request message includes a bit string and a group identifier corresponding to the one or more BFERs; the BFR in the BIER can forward the OAM request message to the corresponding BFER based on the group identifier and the bit string, which helps to solve the problem that the BFIR cannot diagnose or handle the fault when a transmission failure occurs during the transmission of the multicast message. The BFIR can perform connectivity detection and / or fault location on the one or more BFERs through the OAM request message, which helps to save resources and improve detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0106] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0107] Figure 1 It is a schematic diagram of a BIER network provided by an embodiment of the present invention.

[0108] Figure 2 It is a structural block diagram of a BFIR provided by an embodiment of the present invention.

[0109] Figure 3 FIG. 4 is a structural block diagram of a BFIR provided by another embodiment of the present invention.

[0110] Figure 4 FIG. 4 is a structural block diagram of a BFR provided by an embodiment of the present invention.

[0111] Figure 5 is a block diagram of a BFR provided by another embodiment of the present invention

[0112] Figure 6 It is a structural block diagram of a BFIR provided by an embodiment of the present invention.

[0113] Figure 7 FIG. 4 is a structural block diagram of a BFR provided by another embodiment of the present invention.

[0114] Figure 8 It is a method flow chart of an OAM detection method provided by an embodiment of the present invention.

[0115] Fig. 9 It is a method flow chart of an OAM detection method provided by another embodiment of the present invention.

[0116] Fig.10 This is a method flow chart of an OAM detection method provided by yet another embodiment of the present invention.

[0117] Fig.11 This is a method flow chart of an OAM detection method provided by yet another embodiment of the present invention.

[0118] Fig.12 It is a schematic diagram of an OAM message header provided by an embodiment of the present invention.

[0119] Fig.13 It is a schematic diagram of the payload area of ​​the OAM message provided by an embodiment of the present invention.

[0120] Fig.14It is a schematic diagram of the TLV provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0121] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0122] The BIER network may include multiple BFRs. According to the location of the BFR in the transmission link of the multicast message, the multiple bit forwarding routers can be divided into BFIR, intermediate BFR and BFER. Figure 1 As shown, the BIER network provided by the embodiment of the present invention includes: BFIR, intermediate BFR1, first BFER, intermediate BFR2 and second BFER. The BFIR can be connected to the intermediate BFR1, and the intermediate BFR1 can be connected to the first BFER; the intermediate BFR1 can be the BFR on the link between the BFIR and the first BFER. The BFIR can be connected to the intermediate BFR2, and the intermediate BFR2 can be connected to the second BFER; the intermediate BFR2 can be the BFR on the link between the BFIR and the second BFER.

[0123] Each BFR in the BIER network has an ID. The ID of a BFR may be information assigned to the BFR to identify its own identity in the BIER network. The ID of the BFR may correspond to the Internet Protocol (IP) address of the BFR. The ID of the BFR may be used to calculate the group identifier corresponding to the BFR and the bit string corresponding to the BFR. In other words, the ID of the BFR may correspond to the group identifier and the bit string. For example, the group identifier corresponding to the BFR and the bit string corresponding to the BFR may be obtained according to the ID of the BFR, and the ID of the BFR may be obtained according to the group identifier corresponding to the BFR and the bit string corresponding to the BFR.

[0124] The group identifier corresponding to the BFR may be a value determined according to the ID of the BFR and a multiple of a predetermined value, and the predetermined value may be 256. The bit string corresponding to the BFR includes 256 bits, and a bit corresponding to the BFR in the bit string corresponding to the BFR is set to 1. The bit may be used to represent the BFR.

[0125] For example, if the ID of the BFR is 2, 0<2<255, the group identifier corresponding to the BFR can be set to 0, and the second bit in the bit string corresponding to the BFR is set to 1. The second bit can be a bit that is 1 bit lower than the most significant bit (MSB) of the bit string corresponding to the BFR. In other words, the second bit can be the second bit starting from the MSB and moving from the MSB to the LSB. Or the second bit can be a bit that is 1 bit higher than the least significant bit (LSB) of the bit string corresponding to the BFR. In other words, the second bit can be the second bit starting from the LSB and moving from the LSB to the MSB. The second bit can conform to the definition of the bit in the bit string in the BIER network. The combination of the group identifier corresponding to the BFR and the bit string corresponding to the BFR can be used to identify the BFR in the BIER network.

[0126] For example, if the ID of the BFR is 258, 255<258<511, then the group identifier of the BFR can be 1, and the third bit in the bit string corresponding to the BFR is set to 1. The third bit can be a bit that is 2 bits lower than the most significant bit (MSB) of the bit string corresponding to the BFR. In other words, the second bit can be the second bit starting from the MSB and moving from the MSB to the LSB. Or the second bit can be a bit that is 2 bits higher than the least significant bit (LSB) of the bit string corresponding to the BFR. In other words, the second bit can be the second bit starting from the LSB and moving from the LSB to the MSB. The third bit can conform to the definition of bits in the bit string in the BIER network.

[0127] For example, if multiple BFRs correspond to the same group identifier, and multiple bits included in a bit string are set to 1, then the bit string may correspond to the multiple BFRs, and the multiple bits correspond to the multiple BFRs one-to-one.

[0128] For the convenience of the following description, it is assumed that the group identifiers corresponding to the first BFER and the second BFER are both 0; the second bit of the bit string corresponding to the first BFER is set to 1; the third bit in the bit string corresponding to the second BFER is set to 1, and the bit string corresponding to the first BFER and the bit string corresponding to the second BFER are the same bit string.

[0129] Figure 1 The example of two intermediate BFRs and two BFERs is used for illustration, but the number of routers in an actual network is not specifically limited.

[0130] Please refer to Figure 2 , which shows a block diagram of the structure of a BFIR provided by an embodiment of the present invention. The BFIR may be Figure 1 The BFIR shown in the figure may also be called an OAM detection device. The BFIR includes: a first obtaining unit 202 and a first sending unit 204 .

[0131] The first obtaining unit 202 is used to obtain a first OAM request message according to the ID of at least one BFER, where the first OAM request message includes the ID of the BFIR, a group identifier, and a bit string corresponding to the at least one BFER, where the group identifier corresponds to the at least one BFER, and the first OAM request message is used to detect a link between the BFIR and the at least one BFER.

[0132] by Figure 1 For example, if the BFIR needs to send a first OAM request message to the first BFER and the second BFER, the group identifier in the first OAM request message is the group identifier corresponding to the first BFER, that is, the group identifier corresponding to the second BFER, and the group identifier in the first OAM request message is 1. The second bit and the third bit included in the bit string in the first OAM request message are set to 1.

[0133] The first sending unit 204 is configured to send a first OAM request message to at least one BFER.

[0134] by Figure 1 For example, if the BFIR sends the first OAM request message to the first BFER and the second BFER, after the intermediate BFR1 receives the first OAM request message, it can send the first OAM request message to the first BFRE according to the group identifier and bit string in the first OAM request message. After the intermediate BFR2 receives the first OAM request message, it can send the first OAM request message to the second BFRE according to the group identifier and bit string in the first OAM request message.

[0135] In summary, the BFIR provided in this embodiment obtains the first OAM request message according to the ID of at least one BFER and sends the first OAM request message to at least one BFER, thereby solving the problem that the BFIR cannot diagnose or process the fault when a transmission failure occurs during the transmission of a multicast message, realizes connectivity detection between the BFIR and the BFER, and can detect multiple BFERs at the same time.

[0136] Please refer to Figure 3 , which shows a block diagram of the structure of a BFIR provided by an embodiment of the present invention. The BFIR is located in the BIER network. The BFIR can be Figure 1 The BFIR shown in the figure can also be a message sending device. The BFIR includes: a first obtaining unit 202 , a first sending unit 204 and a first receiving unit 206 .

[0137] The first obtaining unit 202 is used to obtain a first OAM request message according to the ID of at least one BFER, where the first OAM request message includes the ID of the BFIR, a group identifier, and a bit string corresponding to the at least one BFER, where the group identifier corresponds to the at least one BFER, and the first OAM request message is used to detect a link between the BFIR and the at least one BFER.

[0138] The first sending unit 204 is configured to send a first OAM request message to at least one BFER.

[0139] Optionally, the first OAM request message further includes a TLV, where the TLV is used to carry the group identifier, the bit string and the length of the bit string.

[0140] Optionally, the first obtaining unit 202 is specifically configured to obtain the group identifier and the bit string according to an ID of at least one BFER;

[0141] A first obtaining unit 202 is specifically configured to obtain a second OAM request message according to the bit string, wherein a message header of the second OAM request message includes the bit string and the ID of the BFIR, and a payload of the second OAM request message includes an OAM message;

[0142] The first obtaining unit 202 is specifically used to insert a first BIER-MPLS Label into the second OAM request message according to the group identifier to obtain the first OAM request message, where the first BIER-MPLS Label includes a label corresponding to the group identifier.

[0143] Optionally, the first OAM request message is used to perform connectivity detection on a link between the BFIR and the first BFER.

[0144] The first obtaining unit 202 is also used to add a preset survival time (English: Time-To-Live, abbreviated as: TTL) to the first BIER-MPLS Label, and the value of TTL is greater than the product of N and the preset value, N is the number of bit forwarding routers BFRs that the first OAM request message passes through, and BFR is a device on the link between BFIR and BFER. The value of TTL can be 255.

[0145] Optionally, the first OAM request message is used to perform connectivity detection on a link between the BFIR and a first BFR, where the first BFR is a device on the link between the BFIR and the first BFER;

[0146] The first obtaining unit 202 is further used to determine a first TTL, where the value of the first TTL is M, and M is used to identify the number of hops that the first OAM request message passes through from the BFIR to the first BFR; and add the first TTL to the first OAM request message.

[0147] Optionally, the first receiving unit 206 is configured to receive a first OAM response message from the first BFR, where the first OAM response message includes an ID of a third BFR, a group identifier corresponding to the BFIR, and a bit string corresponding to the BFIR, and the third BFR is a previous hop of the first BFR on the link between the BFIR and the at least one BFER;

[0148] The second obtaining unit is further used to obtain a second TTL according to the first OAM response message and the first TTL, wherein the value of the second TTL is a value obtained by adding a preset value to the value of the first TTL.

[0149] The third obtaining unit is further used to insert a second BIER-MPLS Label into the second OAM request message according to the second TTL and the group identifier to obtain a third OAM request message, wherein the second BIER-MPLS Label includes a label corresponding to the group identifier and the second TTL, and the third OAM request message is used to detect the link between the BFIR and the second BFR, and the second BFR is the next hop of the first BFR on the link between the BFIR and the at least one BFER.

[0150] The second obtaining unit and the third obtaining unit may be the same unit as the first obtaining unit 202, or may be different units. Figure 3 Here, the three are taken as the same unit: the first obtaining unit 202 for illustration.

[0151] The second sending unit is further configured to send a third OAM request message to the first BFER.

[0152] The second sending unit may be the same unit as the first sending unit 204, or may be a different unit. Figure 3 In the description, it is taken as an example that the two are the same unit: the first sending unit 204.

[0153] Further, the second BFR is a BFER.

[0154] Optionally, the at least one BFER includes a first BFER; the BFER further includes:

[0155] The second receiving unit is configured to receive an OAM response message from the first BFER, wherein the OAM response message includes an ID of the first BFER, a group identifier corresponding to the BFIR, and a bit string corresponding to the BFIR.

[0156] The second receiving unit may be the same unit as the first receiving unit 206, or may be a different unit. Figure 3 In the description, it is taken as an example that the two are the same unit: the first receiving unit 206.

[0157] Optionally, the second OAM request message includes a first bit and a second bit, the first bit is used to identify that the second OAM request message is an OAM message, and the second bit is used to identify that the type of the second OAM request message is a request.

[0158] In summary, the BFIR provided in this embodiment obtains the first OAM request message according to the ID of at least one BFER and sends the first OAM request message to at least one BFER; the problem that the BFIR cannot diagnose or process the fault when a transmission failure occurs during the transmission of a multicast message is solved; the BFIR can achieve the effect of being able to detect connectivity with the BFER through the OAM message and being able to diagnose multiple BFERs at the same time.

[0159] This embodiment also sets the first bit in the message header of the message. When BFR receives the message, it can identify the message as an OAM message through the first bit, so that BFR can quickly distinguish between OAM messages and BIER multicast messages, thereby improving the forwarding efficiency of BFR.

[0160] In this embodiment, when the BFR receives the OAM request message, it generates an OAM response message according to the OAM request message, and adds information such as a timestamp, a reply code, and a sequence number to the OAM response message, so that when the BFIR receives the OAM response message, it can know the network delay and other conditions according to the information in the OAM response message, thereby expanding the use scenarios of the OAM message.

[0161] Please refer to Figure 4 , which shows a structural block diagram of a first BFR provided by an embodiment of the present invention. The first BFR is used in a BIER network. The first BFR may be Figure 1 The intermediate BFR1, the intermediate BFR2, the first BFER or the second BFER shown. The first BFR can also be called an OAM detection device. The BFR includes:

[0162] The receiving unit 402 is configured to receive an operation management and maintenance OAM request message from a bit forwarding ingress router BFIR, wherein the OAM request message includes an identification ID of the BFIR, a group identification corresponding to at least one bit forwarding egress router BFER, and a bit string corresponding to the at least one BFER, and the OAM request message is used to detect a link between the BFIR and the at least one BFER;

[0163] A destination determination unit 404, configured to determine, according to the OAM request message, that a destination BFR corresponding to the OAM request message is the first BFR;

[0164] A first obtaining unit 406 is configured to obtain a first OAM response message according to the ID of the BFIR, where the first OAM response message includes the ID of the first BFR, a group identifier corresponding to the BFIR, and a bit string;

[0165] The first sending unit 408 is configured to send the first OAM response message to the BFIR.

[0166] In summary, the first BFR provided in this embodiment receives an OAM request message from a BFIR through the first BFR; determines, according to the OAM request message, that the destination BFR corresponding to the OAM request message is the first BFR; obtains an OAM response message according to the ID of the BFIR; sends the OAM response message to the BFIR; solves the problem that the BFIR cannot diagnose or process the fault when a transmission failure occurs during the transmission of a multicast message; and achieves the effect that the BFIR can realize connectivity detection with the BFER through the OAM message, and can diagnose multiple BFERs at the same time.

[0167] Please refer to Figure 5, which shows a structural block diagram of a first BFR provided by an embodiment of the present invention. The first BFR is used in a BIER network. The first BFR may be Figure 1 The intermediate BFR1, the intermediate BFR2, the first BFER or the second BFER shown. The first BFR can also be called an OAM detection device. The BFR includes:

[0168] The receiving unit 402 is configured to receive an operation management and maintenance OAM request message from a bit forwarding ingress router BFIR, wherein the OAM request message includes an identification ID of the BFIR, a group identification corresponding to at least one bit forwarding egress router BFER, and a bit string corresponding to the at least one BFER, and the OAM request message is used to detect a link between the BFIR and the at least one BFER;

[0169] A destination determination unit 404, configured to determine, according to the OAM request message, that a destination BFR corresponding to the OAM request message is the first BFR;

[0170] A first obtaining unit 406 is configured to obtain a first OAM response message according to the ID of the BFIR, where the first OAM response message includes the ID of the first BFR, a group identifier corresponding to the BFIR, and a bit string;

[0171] The first sending unit 408 is configured to send the first OAM response message to the BFIR.

[0172] In an optional embodiment, the first BFR is one of the at least one BFER, such as Figure 1 The first BFER in.

[0173] The purpose determination unit 404 is specifically configured to determine, according to the group identifier and the bit string included in the OAM request message, that the at least one BFER includes the first BFR;

[0174] The destination determination unit 404 is specifically configured to determine that the destination BFR corresponding to the OAM request message is the first BFR.

[0175] Further, the OAM request message further includes a type-length-value TLV, and the TLV is used to carry the group identifier, the bit string and the length of the bit string;

[0176] A verification unit 405, configured to determine, according to a TLV included in the OAM request message, that the at least one BFER includes the first BFR;

[0177] The verification unit 405 is configured to verify that the destination BFR of the OAM request message is the first BFR.

[0178] Further, the verification unit 405 is further configured to obtain the ID of the at least one BFER according to the group identifier, the bit string and the length of the bit string carried by the TLV;

[0179] The verification unit 405 is also used to detect whether its own ID is included in the ID of the at least one BFER;

[0180] If the ID of the first BFR is included in the ID of the at least one BFER, the verification unit 405 is further configured to determine that the at least one BFER includes the first BFR.

[0181] In another optional embodiment, the first BFR is a BFR on a link between a BFIR and a BFER, for example, Figure 1 The header of the OAM request message includes the TTL.

[0182] The purpose determination unit 404 is used to reduce the value of the TTL by a preset value;

[0183] The destination determination unit 404 is configured to determine that, when the value of the TTL after reducing the preset value reaches 0, the destination BFR corresponding to the OAM request message is determined to be the first BFR.

[0184] Optionally, the first BFR further includes a second sending unit, and the destination determining unit 404 is further configured to determine that if the value of the TTL after reducing the preset value does not reach 0, then determine that the destination BFR corresponding to the OAM request message is not the first BFR;

[0185] The second sending unit is further configured to forward the OAM request message to the at least one BFER.

[0186] The second sending unit may be the same unit as the first sending unit 408, or may be a different unit. Figure 5 In the description, it is taken that the two are the same unit: the first sending unit 408.

[0187] In a further embodiment, the first obtaining unit 406 is specifically configured to obtain a group identifier and a bit string corresponding to the BFIR according to the ID of the BFIR;

[0188] The first obtaining unit 406 is specifically configured to obtain a second OAM response message according to the bit string corresponding to the BFIR, wherein a message header of the second OAM response message includes the bit string corresponding to the BFIR and the ID of the first BFR, and a payload of the second OAM response message includes an OAM message;

[0189] The first obtaining unit 406 is specifically used to insert a bit indexed explicit replication label BIER-MPLS Label based on multi-protocol label switching into the second OAM response message according to the group identifier corresponding to the BFIR, to obtain the first OAM response message, wherein the BIER-MPLS Label includes a label corresponding to the group identifier corresponding to the BFIR.

[0190] Optionally, the first obtaining unit 406 is further configured to obtain an ID of a second BFR, where the second BFR is a previous hop of the first BFR on a link between the BFIR and the at least one BFER;

[0191] The first obtaining unit 406 is further configured to add the ID of the second BFR to the payload of the second OAM response message.

[0192] In a further embodiment, the first sending unit 408 is further configured to:

[0193] The OAM response message includes a first bit and a second bit, the first bit is used to identify that the OAM response message is an OAM message, and the second bit is used to identify that the type of the OAM response message is a response.

[0194] In summary, this embodiment receives an OAM request message from a BFIR; determines, according to the OAM request message, that the destination BFR corresponding to the OAM request message is the first BFR; obtains an OAM response message according to the ID of the BFIR; and sends the OAM response message to the BFIR; solves the problem that the BFIR cannot diagnose or process the fault when a transmission failure occurs during the transmission of a multicast message; and achieves the effect of realizing connectivity detection through an OAM message and being able to diagnose multiple BFERs at the same time.

[0195] This embodiment also sets the TTL of the BIER-MPLS Label of the OAM request message to different values, so that the BFIR can detect each BFR on the forwarding path, thereby achieving the effect of quickly determining the location of the forwarding fault.

[0196] This embodiment also generates an OAM reply message according to the OAM request message after the BFR receives the OAM request message, and adds information such as a timestamp, a reply code, and a sequence number to the OAM reply message, so that the BFIR can analyze the information in the OAM reply message when receiving the OAM reply message, thereby expanding the use scenarios of the OAM message.

[0197] Please refer to Figure 6, which shows a block diagram of a BFIR provided by an embodiment of the present invention. The BFR may be Figure 1 The BFIR may include: a processor 610, at least one network interface 620 and a memory 630. The processor 610 is electrically connected to the at least one network interface 620 and the memory 630 respectively. The memory 630 stores one or more instructions, and the processor 610 is used to execute the one or more instructions.

[0198] The processor 610 is configured to obtain a first operation, management and maintenance OAM request message according to an identification ID of at least one bit forwarding egress router BFER, where the first OAM request message includes an ID of the BFIR, a group identifier and a bit string corresponding to the at least one BFER, the group identifier corresponds to the at least one BFER, and the first OAM request message is used to detect a link between the BFIR and the at least one BFER;

[0199] The processor 610 is configured to send the first OAM request message to the at least one BFER through the network interface 620 .

[0200] Optionally, the first OAM request message further includes a type-length-value TLV, where the TLV is used to carry the group identifier, the bit string and the length of the bit string.

[0201] Optionally, the processor 610 is used to obtain the group identifier and the bit string based on the ID of the at least one BFER; obtain a second OAM request message based on the bit string, the message header of the second OAM request message including the bit string and the ID of the BFIR, and the payload of the second OAM request message including the OAM message; insert a first multi-protocol label switching-based bit indexed explicit copy label BIER-MPLSLabel into the second OAM request message based on the group identifier to obtain the first OAM request message, the first BIER-MPLS Label including the label corresponding to the group identifier.

[0202] Optionally, the first OAM request message is used to detect a link between the BFIR and a first BFR, where the first BFR is a device on a link between the BFIR and the at least one BFER;

[0203] The processor 610 is configured to determine a first TTL by the BFIR, where the value of the first TTL is M, and the M is used to identify the number of hops that the first OAM request message passes through from the BFIR to the first BFR; and add the first TTL to the first OAM request message.

[0204] Optionally, the processor 610 is further configured to receive a first OAM response message from the first BFR through the network interface 620, where the first OAM response message includes an ID of a third BFR, an ID of the first BFR, a group identifier corresponding to the BFIR, and a bit string corresponding to the BFIR, and the third BFR is a previous hop of the first BFR on the link between the BFIR and the at least one BFER;

[0205] The processor 610 is further configured to obtain a second TTL according to the first OAM response message and the first TTL, where the value of the second TTL is a value of the first TTL plus a preset value;

[0206] Processor 610 is further used to insert a second BIER-MPLS Label into the second OAM request message according to the second TTL and the group identifier to obtain a third OAM request message, where the second BIER-MPLS Label includes a label corresponding to the group identifier and the second TTL, and the third OAM request message is used to detect the link between the BFIR and the second BFR, where the second BFR is the next hop of the first BFR on the link between the BFIR and the at least one BFER;

[0207] The processor 610 is further configured to send a third OAM request message to the second BFR through the network interface 620 .

[0208] Optionally, the second BFR is a BFER.

[0209] Optionally, the processor 610 is further configured to receive an OAM response message from the first BFER through the network interface 620, where the OAM response message includes the ID of the first BFER, a group identifier corresponding to the BFER, and a bit string corresponding to the BFER.

[0210] Optionally, the second OAM request message includes a first bit and a second bit, the first bit is used to identify that the second OAM request message is an OAM message, and the second bit is used to identify that the type of the second OAM request message is a request.

[0211] Please refer to Figure 7 , which shows a block diagram of a BFR provided by an embodiment of the present invention. The BFR may be Figure 1The intermediate BFR1, the intermediate BFR2, the first BFER and the second BFER in the BFR. The BFR may include: a processor 710, at least one network interface 720 and a memory 730. The processor 710 is electrically connected to the at least one network interface 720 and the memory 730 respectively. The memory 730 stores one or more instructions, and the processor 710 is used to execute the one or more instructions.

[0212] The processor 710 is configured to receive an operation management and maintenance OAM request message from a bit forwarding ingress router BFIR through a network interface 720, wherein the OAM request message includes an identification ID of the BFIR, a group identification, and a bit string corresponding to the at least one BFER, the group identification corresponds to the at least one BFER, and the OAM request message is used to detect a link between the BFIR and the at least one BFER;

[0213] The processor 710 is configured to determine, according to the OAM request message, that a destination BFR corresponding to the OAM request message is the first BFR;

[0214] The processor 710 is configured to obtain a first OAM response message according to the ID of the BFIR, where the OAM response message includes the ID of the first BFR, a group identifier corresponding to the BFIR, and a bit string corresponding to the BFIR;

[0215] The processor 710 is configured to send the first OAM response message to the BFIR through the network interface 720 .

[0216] Optionally, the first BFR is one of the at least one BFER, such as Figure 1 The first BFER in.

[0217] The processor 710 is configured to determine, according to the group identifier and the bit string included in the OAM request message, that the at least one BFER includes the first BFR;

[0218] Processor 710, configured to determine that the destination BFR corresponding to the OAM request message is the first BFR

[0219] Optionally, the OAM request message further includes a TLV, where the TLV is used to carry a group identifier corresponding to at least one BFER, a bit string, and a length of the bit string.

[0220] The processor 710 is specifically configured to determine, according to the TLV included in the OAM request message, that the at least one BFRE includes the first BFR; and the first BFR verifies that the destination BFR of the OAM request message is the first BFR.

[0221] Further, the processor 710 is specifically used to obtain the ID of at least one BFER according to the group identifier, bit string and length of the bit string carried by the TLV; detect whether its own ID is included in the ID of the at least one BFER; if the ID of the first BFR is included in the ID of the at least one BFER, determine that the at least one BFRE includes the first BFR.

[0222] Optionally, the first BFR is a BFR on a link between the BFIR and the BFER, for example, Figure 1 The header of the OAM request message includes TTL;

[0223] The processor 710 is configured to reduce the value of TTL by a preset value; if it is determined that the value of TTL after the preset value is reduced reaches a preset threshold, then determine that the destination BFR corresponding to the OAM request message is the first BFR.

[0224] The processor 710 is configured to determine that if the value of the TTL after the preset value is reduced does not reach the preset threshold, then determine that the destination BFR corresponding to the OAM request message is not the first BFR;

[0225] The processor 710 is configured to send an OAM request message to at least one BFER through the network interface 720 .

[0226] The processor 710 is specifically configured to:

[0227] According to the ID of the BFIR, obtaining a group identifier and a bit string corresponding to the BFIR;

[0228] The first BFR obtains a second OAM response message according to the bit string corresponding to the BFIR, wherein a message header of the second OAM response message includes the bit string corresponding to the BFIR and the ID of the first BFR, and a payload of the second OAM response message includes an OAM message;

[0229] According to the group identifier corresponding to the BFIR, a bit indexed explicit copy label BIER-MPLS Label based on multi-protocol label switching is inserted into the second OAM response message to obtain the first OAM response message, and the BIER-MPLSLabel includes a label corresponding to the group identifier corresponding to the BFIR.

[0230] The processor 710 is specifically configured to obtain an ID of a second BFR, where the second BFR is a previous hop of the first BFR on a link between the BFIR and the at least one BFER;

[0231] The processor 710 is specifically configured to add the ID of the second BFR to the payload of the second OAM response message.

[0232] Optionally, the OAM response message includes a first bit and a second bit, the first bit is used to identify that the OAM response message is an OAM message, and the second bit is used to identify that the type of the OAM response message is a response.

[0233] The OAM message provided by the embodiment of the present invention can be divided into an OAM request message and an OAM response message. The message contents of the OAM request message and the OAM response message have similar structures, both including an OAM message header and a payload.

[0234] The OAM message header may include version information, protocol type, length, entropy, bit string, reserved area and bit forwarding entry route identifier. The structure of the OAM message header may be as follows: Fig.12 shown.

[0235] Version information: In order to avoid confusion with the IP packet header, the version information is usually set to 0.

[0236] Protocol Type: The protocol type field is used to identify the type of payload in the message.

[0237] Length: This length is used to identify the length of the bit string. For example, when the length is 1, it means the length of the bit string is 64 bits; when the length is 2, it means the length of the bit string is 128 bits.

[0238] Entropy: This field is used to achieve load balancing.

[0239] Bit string: The bit string is used together with the group identifier carried in the BIER-MPLS Label of the OAM message to indicate the target BFER of the OAM message.

[0240] Reserved area: This field can be set arbitrarily. For example, in an embodiment of the present invention, the first bit can be divided in the reserved area. When the first bit is set, that is, when the first bit is set from 0 to 1, it is used to identify that the current message is an OAM message.

[0241] Identifier of the forwarding ingress route: This field is usually used to store the identifier of the BFIR that sends the OAM request message, that is, the ID of the BFIR.

[0242] The payload area of ​​the OAM message may include version number, message type, reserved area, reply mode, reply code, bit forwarding route identifier, previous hop bit forwarding route identifier, sender identifier, sequence number, send timestamp, receive timestamp, type length value. The structure of the payload area may be as follows: Fig.13 shown.

[0243] Version number: This field is used to store version number information.

[0244] Message type: This field includes a second bit, which is used to identify the message type of the OAM message, which includes a request type and a response type. When the second bit is set to 0, it indicates that the message type is a request type, that is, the OAM message is an OAM request message; when the second bit is set to 1, it indicates that the message type is a response type, that is, the OAM message is an OAM response message.

[0245] Reserved area: This field can be set by yourself.

[0246] Reply method: This field is used to store the protocol of the OAM response message. The embodiment of the present invention uses the BIER protocol as an example, but does not limit the present invention.

[0247] Reply code: The code generated by BFR after detecting the OAM message. Each reply code corresponds to a detection result.

[0248] Bit forwarding route identifier: When the OAM message is an OAM reply message, this field stores the identifier of the BFR that sends the OAM response message.

[0249] Previous hop forwarding route identifier: When the OAM message is an OAM response message, this field stores the identifier of the previous hop BFR of the BFR that sends the OAM response message.

[0250] Sender ID: The ID of the forwarding ingress router that sends the OAM request message.

[0251] Sequence number: This field is used to distinguish different OAM messages, where an OAM request message and the corresponding OAM response message have the same sequence number.

[0252] Sending timestamp: used to record the time when the OAM message is sent.

[0253] Receiving timestamp: used to record the time when the OAM message is received.

[0254] Type length value: This field carries the group identifier, bit string and string length. The type length value is used to detect whether the current BFR is the target BFER of the OAM request message.

[0255] The type length value includes: type (English: Type), TLV length (English: Length), group identifier, bit string length (BitStringLength) and bit string. The structure of the type length value can be as follows Fig.14shown.

[0256] The type is used to identify the information included in the type length value field. When the type is set to 1, it means that the type length value field includes a group identifier and a bit string.

[0257] It should be noted that, as another implementation, the type length value can also be represented by two type length values, one of which is a type length value carrying a group identifier, and the other is a type length value carrying a bit string. The embodiment of the present invention is not limited to this, but only Fig.14 The following are examples to illustrate this.

[0258] It should also be noted that the above-mentioned OAM message also needs to be encapsulated by MPLS, and the corresponding BIER-MPLS Label is inserted into the OAM message to obtain the final OAM request message or OAM reply message.

[0259] In BIER-MPLS Label, it mainly includes label and lifetime (English: Time-To-Live, abbreviated as: TTL). Among them, the label is the label corresponding to the group identifier of the destination BFR of the OAM message. TTL is a value that will be reduced by a predetermined value every time the OAM message passes through a BFR. For example, every time the OAM message passes through a BFR, the TTL will be reduced by one. When the TTL value is reduced to 0, the BFR where the OAM message is currently located needs to process the message content in the OAM message. If the OAM message is an OAM request message, the current BFR records the information in the OAM request message; if the OAM message is an OAM reply message, the current BFR generates an OAM reply message based on the OAM request message.

[0260] Please refer to Figure 8 , which shows a method flow chart of an OAM detection method provided by an embodiment of the present invention. In this embodiment, the OAM detection method is applied to Figure 1 Taking the BFIR shown in FIG. 1 as an example, the method may include:

[0261] Step 802: obtaining a first OAM request message according to the ID of at least one BFER, the first OAM request message including the ID of the BFIR, a group identifier, and a bit string corresponding to the at least one BFER, the group identifier corresponding to the at least one BFER, and the first OAM request message is used to detect a link between the BFIR and the at least one BFER;

[0262] Step 804: Send the OAM request message to at least one BFER, where the OAM request message is used to detect the connection status between the BFIR and the BFER.

[0263] In summary, the OAM detection method provided in this embodiment obtains a first OAM request message according to the ID of at least one BFER; sends the OAM request message to at least one BFER, and the OAM request message is used to detect the connection status between the BFIR and the BFER; solves the problem that the BFIR cannot diagnose or process the fault when a transmission failure occurs during the transmission of a multicast message; and achieves the effect of realizing connectivity detection through OAM messages and being able to diagnose multiple BFERs at the same time.

[0264] Please refer to Fig. 9 , which shows a method flow chart of an OAM detection method provided by an embodiment of the present invention. In this embodiment, the OAM detection method is applied to Figure 1 Taking the intermediate BFR or BFER shown as an example, the method may include:

[0265] Step 902, receiving an OAM request message from a BFIR, the OAM request message including an ID of the BFIR, a group identifier, and a bit string corresponding to at least one BFER, the group identifier corresponding to at least one BFER, the OAM request message being used to detect a link between the BFIR and the at least one BFER;

[0266] Step 904: According to the OAM request message, determine that the destination BFR corresponding to the OAM request message is the first BFR;

[0267] Step 906: Obtain an OAM response message according to the ID of the BFIR, where the OAM response message includes the ID of the first BFR, a group identifier corresponding to the BFIR, and a bit string corresponding to the BFIR;

[0268] Step 908: Send the OAM response message to the BFIR.

[0269] In summary, the OAM detection method provided in this embodiment receives an OAM request message from a BFIR; determines, according to the OAM request message, that the destination BFR corresponding to the OAM request message is the first BFR; obtains an OAM response message according to the ID of the BFIR; and sends the OAM response message to the BFIR; solves the problem that the BFIR cannot diagnose or process the fault when a transmission failure occurs during the transmission of a multicast message; and achieves the effect of realizing connectivity detection through an OAM message and being able to diagnose multiple BFERs at the same time.

[0270] The above OAM messages can be used for connectivity detection and hop-by-hop detection. Among them, connectivity detection is used to implement a detection function similar to the ping command in the Internet. Hop-by-hop detection is used to implement a detection function similar to the trace command in the Internet.

[0271] First, an embodiment is used to illustrate how to implement connectivity detection using an OAM message.

[0272] Please refer to Fig.10 , which shows a method flow chart of an OAM detection method provided by an embodiment of the present invention. This embodiment uses the OAM detection method to apply Figure 1 The implementation environment shown is used as an example for explanation. The method may include:

[0273] Step 1001: The BFIR obtains a group identifier and a bit string according to an ID of at least one BFER.

[0274] As a possible implementation, the BFIR may obtain the IP address of at least one BFER from a multicast flow overlay (English: Multicast Flow Overlay).

[0275] Since each BFR in the BIER network stores a mapping table between the BFR ID and the IP address, the BFIR can find the BFER ID corresponding to each IP address based on at least one IP address obtained, and obtain the group identifier and bit string corresponding to each BFER based on the ID. When the bit corresponding to the BFER in the bit string is set to 1, it is used to represent the BFER. Among them, the table structure of the mapping table between the BFR ID and the IP address can be shown in Table 4:

[0276] Table 4

[0277] BFR ID IP address 1 IP Address A 2 IP address B 3 IP Address C

[0278] For example, BFIR obtains IP address B from the multicast stream overlay layer, and finds the corresponding BFR ID 2 based on IP address B, that is, the ID of the first BFER is 2. Assuming that the length of the bit string specified in the BIER network is 256 bits, the group identifier corresponding to the first BFER is 0 according to the bit string length and ID calculation, and the first 252 bits of the corresponding bit string are all 0 and the last four bits are 0010, that is, the bit corresponding to the BFER is the second bit in the bit string.

[0279] When BFIR obtains multiple IP addresses from the multicast stream overlay layer, BFIR calculates the group identifier and bit string corresponding to each BFER respectively, and when the group identifiers are the same, it performs a sum operation on each bit string to obtain a bit string corresponding to multiple BFERs, and the corresponding bit of each BFER in the bit string is set to 1.

[0280] For example, BFIR obtains IP addresses B and C from the multicast stream overlay layer, and finds the corresponding BFR IDs 2 and 3, that is, the ID of the first BFER is 2, and the ID of the second BFER is 3. Assuming that the length of the bit string specified in the BIER network is 256 bits, according to the bit string length and ID calculation, the group identifier corresponding to the first BFER is 0, and the last four bits of the corresponding bit string are 0010. The group identifier corresponding to the second BFER is 0, and the last four bits of the corresponding bit string are 0100. The bit strings of the two are ANDed to obtain a bit string corresponding to both the first BFER and the second BFER, and the last four bits of the bit string are 0110.

[0281] Step 1002: The BFIR obtains a second OAM request message according to the bit string.

[0282] The second OAM request message can be considered as an OAM request message whose entire content is not completely generated. The message header of the second OAM request message includes the bit string corresponding to at least one BFER obtained in the previous step and the BFIR ID, and the payload of the second OAM request message includes the OAM message.

[0283] In order to identify the source of the OAM request message, the BFIR needs to obtain its own ID and add the ID to the message header of the second OAM request message. In addition, the BFIR also needs to add a bit string corresponding to at least one BFER to the message header of the second OAM request message to identify the destination BFER of the second OAM request message.

[0284] In order to enable the BFR in the BIER network to identify that the received message is an OAM request message, the BFIR also needs to set the first bit of the message header of the second OAM request message, that is, set the first bit from 0 to 1, and identify the message type as the request type in the second bit of the second OAM request message.

[0285] Optionally, the BFIR may also generate a type-length-value TLV carrying a group identifier and a bit string corresponding to at least one BFER, and add the TLV to the second OAM request message.

[0286] Step 1003: The BFIR inserts the first BIER-MPLS Label into the second OAM request message according to the group identifier to obtain the first OAM request message, where the first BIER-MPLS Label includes a label corresponding to the group identifier.

[0287] BIER-MPLS Label (not in Fig.12As shown in the figure) is a label inserted into an OAM message when an OAM message is encapsulated by MPLS, and the label corresponds to the group identifier of at least one BFER, wherein the correspondence between the BIER-MPLS Label and the group identifier of the BFER can be shown in Table 2:

[0288] Table 2

[0289] BIER-MPLS Label BFER group identification Label 101 1 Label 102 2 Label 103 3

[0290] The BFIR determines the corresponding BIER-MPLS Label based on the group identifier of at least one BFER, and inserts the BIER-MPLS Label into the second OAM request message to obtain the first OAM request message.

[0291] It should be noted that when the BFIR needs to simultaneously detect the links between two or more BFERs, if the group identifiers corresponding to the two or more BFERs are the same, that is, the situation shown in this embodiment, the corresponding BIER-MPLS Labels are also the same, and the BFIR only needs to generate a first OAM request message. However, if the group identifiers corresponding to two or more BFERs are different, the corresponding BIER-MPLS Labels are also different. The BFIR needs to classify them according to the same group identifier and generate an OAM request message for the BFER with the same group identifier. If they are divided into n categories, n OAM request messages are generated, and each OAM request message is used to detect one category of BFER.

[0292] Step 1004, the BFIR adds the TTL of the first BIER-MPLS Label to the first OAM request message.

[0293] TTL is the lifetime of the BIER-MPLS Label, which is used to identify whether the BIER-MPLS Label has timed out. Every time an OAM request message passes through a BFR, the TTL needs to be subtracted from the preset value, and when the TTL is reduced to 0, it means that the BIER-MPLS Label has timed out, and the BFR where the OAM request message is currently located needs to reply to the OAM request message. The preset value is an integer greater than or equal to 1, usually 1.

[0294] When performing connectivity detection, in order to avoid the first OAM request message reaching the BFR between BFIR and BFER, where the TTL has been reduced to 0, resulting in the first OAM request message being unable to be forwarded to BFER, the BFIR usually sets the TTL of the first BIER-MPLS Label to the maximum value, which is usually 255.

[0295] At this time, the BFIR obtains the first OAM request message, and can detect the link between the BFIR and the first BFER through the first OAM request message.

[0296] Since the intermediate BFR1 and the intermediate BFR2 process the first OAM request message in a similar manner, the first BFER and the second BFER process the first OAM request message in a similar manner. To simplify the description, the following steps only describe the processing of the first OAM request message by the intermediate BFR1 and the first BFER.

[0297] Step 1005: The BFIR sends a first OAM request message to the intermediate BFR1.

[0298] Step 1006: The intermediate BFR1 receives the first OAM request message from the BFIR.

[0299] The intermediate BFR1 determines the corresponding group identifier according to the BIER-MPLS Label in the first OAM request message, and the intermediate BFR1 also obtains the bit string from the message header of the first OAM request message.

[0300] The intermediate BFR1 calculates the ID of at least one target BFER according to the group identifier and the bit string, and detects whether the ID of the intermediate BFR1 belongs to the ID of at least one target BFER.

[0301] Since the target BFERs of the first OAM request message are the first BFER and the second BFER, the intermediate BFR1 detects that it is not the target BFER of the first OAM request message.

[0302] At the same time, the intermediate BFR1 obtains the TTL from the BIER-MPLS Label in the first OAM request message, subtracts the preset value from the TTL, and determines whether the TTL after subtracting the preset value is 0. If it is not 0, the intermediate BFR1 will perform label exchange on the BIER-MPLS Label in the first OAM request message and forward it to the next-hop BFR, that is, the first BFER.

[0303] In other words, in this embodiment, the intermediate BFR1 obtains TTL=255 from the BIER-MPLS Label in the first OAM request message, subtracts 1 from the TTL, and determines whether the TTL=244 after subtracting 1 is 0. If it is not 0, the intermediate BFR1 performs label exchange on the BIER-MPLS Label in the first OAM request message and sends it to the first BFER.

[0304] The label switching technology may refer to the MPLS label switching technology, which will not be described in detail in this article.

[0305] Step 1007: The intermediate BFR1 sends a first OAM request message to the first BFER.

[0306] Step 1008: The first BFER receives the OAM request message.

[0307] Step 1009: The first BFER determines, based on the first OAM request message, that the destination BFR corresponding to the first OAM request message is the first BFER.

[0308] This step may also include the following steps:

[0309] 1. The first BFER determines, according to the group identifier and the bit string included in the first OAM request message, that at least one BFER includes the first BFER;

[0310] The first BFER obtains the bit string of the first OAM request message and the group identifier corresponding to the BIER-MPLS Label, and calculates the ID of at least one target BFER based on the group identifier and the bit string. The first BFER detects whether the ID of at least one target BFER includes the ID of the current BFER.

[0311] 2. The first BFER determines that the destination BFR corresponding to the first OAM request message is the first BFER.

[0312] When it is detected whether the ID of at least one target BFER includes the ID of the current BFER, it is determined that the destination BFR corresponding to the first OAM request message is the first BFER, that is, the first BFER needs to respond to the first OAM request message.

[0313] Step 1010: The first BFER obtains a group identifier and a bit string corresponding to the BFIR according to the BFIR ID.

[0314] After receiving the first OAM request message, the first BFER needs to know to which BFIR to send the OAM response message to inform the BFIR that the link between the BFER is connected. Therefore, the first BFER needs to obtain the BFIR ID from the message header of the first OAM request message, and obtain the group identifier and bit string corresponding to the BFIR based on the ID.

[0315] Step 1011: The first BFER obtains a second OAM response message according to a bit string corresponding to the BFIR.

[0316] The second OAM response message can be considered as an OAM response message whose entire content is not completely generated. The message header of the second OAM response message includes a bit string corresponding to the BFIR and the ID of the first BFER, and the payload of the second OAM response message includes the OAM message.

[0317] The first BFER adds the bit string corresponding to the BFIR to the message header of the second OAM response message to identify that the target BFR of the second OAM response message is the BFIR.

[0318] In order to identify the source of the second OAM response message, the first BFER needs to obtain its own ID and add the ID to the message header of the second OAM response message. In addition, the first BFER also needs to add the bit string corresponding to the first BFER to the message header of the second OAM response message to identify the source of the second OAM response message as the first BFER.

[0319] In order to enable the BFR in the BIER network to identify that the received message is an OAM response message, the first BFER also needs to set the first bit of the message header of the second OAM response message, that is, set the first bit from 0 to 1, and identify the message type as the request type in the second bit of the second OAM request message.

[0320] Optionally, the first BFER further obtains the ID of the intermediate BFR1, where the intermediate BFR1 is the previous-hop BFR of the first BFER on the link between the BFIR and the first BFER.

[0321] The first BFER adds the ID of the intermediate BFR1 to the previous hop forwarding route field in the payload of the second OAM response message.

[0322] One point that needs to be explained is that this embodiment does not limit the way in which the first BFER obtains the ID of the intermediate BFR1. As a possible implementation method, the intermediate BFR1 may add its own ID to the first OAM request message before sending the first OAM request message to the first BFER. Accordingly, the first BFER may obtain the ID of the intermediate BFR1 from the first OAM request message. As another possible implementation method, since the first OAM request message is sent by the intermediate BFR1 to the first BFER, and the label in the first OAM request message is a label agreed upon between the intermediate BFR1 and the first BFER, the first BFER may also obtain the ID of the intermediate BFR1 through the label.

[0323] Optionally, the first BFER may also detect whether the current BFER is the target BFER of the OAM request message according to the TLV in the OAM request message, which may include the following steps:

[0324] 1. The first BFER determines, according to the TLV included in the OAM request message, that at least one BFER includes the first BFER.

[0325] The first BFER obtains the ID of at least one BFER according to the group identifier, the bit string and the length of the bit string carried by the TLV; the first BFER detects whether its own ID is included in the ID of the at least one BFER; if the ID of the first BFER is included in the ID of the at least one BFER, the first BFER determines that the at least one target BFER corresponding to the OAM request message includes the first BFER.

[0326] 2. The first BFER verifies that the destination BFR of the OAM request message is the first BFER.

[0327] At this time, the first BFER may also generate a corresponding reply code according to the verification result.

[0328] For example, reply code 1 indicates that the first BFER is the destination BFR of the OAM request message, and reply code 0 indicates that the first BFER is not the destination BFR of the OAM request message. The first BFER generates reply code 1 and adds it to the reply code field of the payload of the second OAM reply message.

[0329] Step 1012: The first BFER inserts the BIER-MPLS Label into the second OAM response message according to the group identifier corresponding to the BFIR to obtain the first OAM response message.

[0330] Among them, the BIER-MPLS Label includes a label corresponding to the group identifier corresponding to the BFIR.

[0331] The first BFER determines the corresponding BIER-MPLS Label according to the group identifier corresponding to the BFIR, and inserts the BIER-MPLS Label into the second OAM response message to obtain the first OAM response message encapsulated by MPLS.

[0332] Step 1013, the first BFER adds the TTL of the BIER-MPLS Label to the first OAM response message.

[0333] In order to prevent the first OAM response message from being unable to be forwarded to the BFIR because the TTL has been reduced to 0 when the first OAM response message reaches the BFR between the BFER and the BFIR, the first BFER sets the TTL to the maximum value. Usually, the TTL is set to 255.

[0334] Step 1014: The first BFER sends a first OAM response message to the intermediate BFR1.

[0335] Step 1015: The intermediate BFR1 receives the first OAM response message.

[0336] The intermediate BFR1 obtains the group identifier corresponding to the BIER-MPLS Label of the first OAM response message, and the bit string in the message header of the first OAM response message, calculates the ID of the BFIR based on the group identifier and the bit string, and detects whether the ID of the intermediate BFR1 is consistent with the ID of the BFIR. When the two are inconsistent, the intermediate BFR1 determines that the destination BFR of the first OAM response message is not the intermediate BFR1.

[0337] At the same time, the intermediate BFR1 obtains the TTL from the BIER-MPLS Label in the first OAM response message, subtracts the preset value from the TTL, and determines whether the TTL after subtracting the preset value is 0. If it is not 0, the intermediate BFR1 will exchange the BIER-MPLS Label in the first OAM reply message and forward it to the next hop BFR, that is, BFIR.

[0338] Step 1016: The intermediate BFR1 sends a first OAM response message to the BFIR.

[0339] Step 1017: The BFIR receives a first OAM response message from the first BFER.

[0340] The first OAM response message includes the ID of the first BFER, a group identifier corresponding to the BFIR, and a bit string.

[0341] The BFIR obtains the group identifier corresponding to the BIER-MPLS Label of the first OAM response message and the bit string in the message header of the first OAM response message. Based on the group identifier and the bit string, the BFIR ID is calculated, and the BFIR ID is detected to see whether its own ID is consistent with the ID of the BFIR. When the two are consistent, the BFIR determines that the destination BFR of the first OAM response message is the BFIR.

[0342] When the BFIR determines that the destination BFR of the first OAM response message is the BFIR, the BFIR processes the message content of the first OAM response message.

[0343] The BFIR detects whether the first bit in the message header of the first OAM response message is set. When it is detected that the first bit is set, the BFIR determines that the message is an OAM message. Further, when the BFIR detects that the message type of the OAM message is a reply type, the BFIR determines that the OAM message is a first OAM response message.

[0344] When it is determined that the message is the first OAM response message, the BFIR may also obtain information such as a timestamp and a reply code according to the payload of the first OAM response message.

[0345] For example, the BFIR calculates the transmission delay of the first OAM response message according to the timestamp in the payload.

[0346] For another example, the BFIR may obtain the detection result of the first OAM request message according to the reply code in the payload.

[0347] For another example, the BFIR may obtain information such as the transmission path of the first OAM request message according to the ID of the first BFIR, the ID of the intermediate BFR1 and the reply code carried in the first OAM response message.

[0348] It should be noted that after sending the first OAM request message, the BFIR sets a timer. If the BFIR does not receive the first OAM response message from the BFER within a predetermined time period, it can be determined that the BFIR and the BFER are disconnected.

[0349] It should also be noted that the processing methods of the intermediate BFR2 and the second BFER for the first OAM request message are similar to steps 1006 to 1017. Therefore, if Figure 1 In the network environment shown, when there is no fault, after the BFIR sends the first OAM request message, it will receive the first OAM response messages from the first BFER and the second BFER respectively, thereby realizing connectivity detection for multiple BFERs at the same time.

[0350] In summary, this embodiment obtains a first OAM request message according to the ID of at least one BFER; sends the OAM request message to at least one BFER, and the OAM request message is used to detect the connection status between the BFIR and the BFER; solves the problem that the BFIR cannot diagnose or process the fault when a transmission failure occurs during the transmission of a multicast message; and achieves the effect of realizing connectivity detection through the OAM message and being able to diagnose multiple BFERs at the same time.

[0351] This embodiment also sets the first bit in the message header of the message. When BFR receives the message, it can identify the message as an OAM message through the first bit, so that BFR can quickly distinguish between OAM messages and BIER multicast messages, thereby improving the forwarding efficiency of BFR.

[0352] This embodiment also generates an OAM response message according to the OAM request message after the BFR receives the OAM request message, and adds information such as a timestamp, a reply code, and a sequence number to the OAM response message, so that when the BFIR receives the OAM response message, it can be aware of network delays and other conditions based on the information in the OAM response message, thereby expanding the use scenarios of the OAM message.

[0353] Hereinafter, another embodiment is used to illustrate how to implement hop-by-hop detection on an OAM message.

[0354] like Fig.11 As shown, it shows a method flow chart of a link detection method provided by another embodiment of the present invention. In this embodiment, the link detection method is applied to Figure 1 The implementation environment shown is used for illustration, and the method may include:

[0355] Step 1101: The BFIR obtains a group identifier and a bit string according to an ID of at least one BFER.

[0356] As a possible implementation, the BFIR may obtain the IP address of at least one BFER from a multicast flow overlay (English: Multicast Flow Overlay).

[0357] Since each BFR in the BIER network stores a mapping table between the BFR ID and the IP address, the BFIR can find the BFER ID corresponding to each IP address based on at least one IP address obtained, and obtain the group identifier and bit string corresponding to each BFER based on the ID. When the bit corresponding to the BFER in the bit string is set to 1, it is used to represent the BFER. Among them, the table structure of the mapping table between the BFR ID and the IP address can be shown in Table 1:

[0358] Table 1

[0359] BFR ID IP address 1 IP Address A 2 IP address B 3 IP Address C

[0360] For example, BFIR obtains IP address B from the multicast stream overlay layer, and finds the corresponding BFR ID 2 based on IP address B, that is, the ID of the first BFER is 2. Assuming that the length of the bit string specified in the BIER network is 256 bits, the group identifier corresponding to the first BFER is 0 according to the bit string length and ID calculation, and the first 252 bits of the corresponding bit string are all 0 and the last four bits are 0010, that is, the bit corresponding to the BFER is the second bit in the bit string.

[0361] When BFIR obtains multiple IP addresses from the multicast stream overlay layer, BFIR calculates the group identifier and bit string corresponding to each BFER respectively, and when the group identifiers are the same, it performs a sum operation on each bit string to obtain a bit string corresponding to multiple BFERs, and the corresponding bit of each BFER in the bit string is set to 1.

[0362] For example, BFIR obtains IP addresses B and C from the multicast stream overlay layer, and finds the corresponding BFR IDs 2 and 3, that is, the ID of the first BFER is 2, and the ID of the second BFER is 3. Assuming that the length of the bit string specified in the BIER network is 256 bits, according to the bit string length and ID calculation, the group identifier corresponding to the first BFER is 0, and the last four bits of the corresponding bit string are 0010. The group identifier corresponding to the second BFER is 0, and the last four bits of the corresponding bit string are 0100. The bit strings of the two are ANDed to obtain a bit string corresponding to both the first BFER and the second BFER, and the last four bits of the bit string are 0110.

[0363] Step 1102: The BFIR obtains a second OAM request message according to the bit string.

[0364] The second OAM request message can be considered as an OAM request message whose entire content is not completely generated. The message header of the second OAM request message includes the bit string corresponding to at least one BFER obtained in the previous step and the BFIR ID, and the payload of the second OAM request message includes the OAM message.

[0365] In order to identify the source of the OAM request message, the BFIR needs to obtain its own ID and add the ID to the message header of the second OAM request message. In addition, the BFIR also needs to add a bit string corresponding to at least one BFER to the message header of the second OAM request message to identify the destination BFER of the second OAM request message.

[0366] In order to enable the BFR in the BIER network to identify that the received message is an OAM request message, the BFIR also needs to set the first bit of the message header of the second OAM request message, that is, set the first bit from 0 to 1, and identify the message type as the request type in the second bit of the second OAM request message.

[0367] Optionally, the BFIR may also generate a type-length-value TLV carrying a group identifier and a bit string corresponding to at least one BFER, and add the TLV to the second OAM request message.

[0368] Step 1103, the BFIR inserts the first BIER-MPLS Label into the second OAM request message according to the group identifier to obtain the first OAM request message.

[0369] Among them, the first BIER-MPLS Label includes a label corresponding to the group identifier.

[0370] BIER-MPLS Label (not in Fig.12As shown in the figure) is a label inserted into an OAM message when an OAM message is encapsulated by MPLS, and the label corresponds to the group identifier of at least one BFER, wherein the correspondence between the BIER-MPLS Label and the group identifier of the BFER can be shown in Table 2:

[0371] Table 2

[0372] BIER-MPLS Label BFER group identification Label 101 1 Label 102 2 Label 103 3

[0373] The BFIR determines the corresponding BIER-MPLS Label based on the group identifier of at least one BFER, and inserts the BIER-MPLS Label into the second OAM request message to obtain the first OAM request message.

[0374] It should be noted that when the BFIR needs to simultaneously detect the links between two or more BFERs, if the group identifiers corresponding to the two or more BFERs are the same, that is, the situation shown in this embodiment, the corresponding BIER-MPLS Labels are also the same, and the BFIR only needs to generate a first OAM request message. However, if the group identifiers corresponding to two or more BFERs are different, the corresponding BIER-MPLS Labels are also different. The BFIR needs to classify them according to the same group identifier and generate an OAM request message for the BFER with the same group identifier. If they are divided into n categories, n OAM request messages are generated, and each OAM request message is used to detect one category of BFER.

[0375] Step 1104: The BFIR determines a first TTL, where the value of the first TTL is M, and M is used to identify the number of hops that the first OAM request message passes through from the BFIR to the first BFR.

[0376] Since hop-by-hop detection requires testing each hop separately. Fig.10 In different steps of the embodiment, the BFIR needs to set different TTLs for the first OAM request message to complete hop-by-hop detection. For example, when performing n-th hop detection, the TTL is set to n.

[0377] like Figure 1 As shown, when the BFIR detects the link between the BFIR and the first BFER hop by hop, the number of hops that the first OAM request message passes through from the BFIR to the intermediate BFR1 is 1, and the BFIR determines that the value of the first TTL is 1.

[0378] Obviously, if 4 hops are required between the BFIR and the first BFER, the BFIR sets the TTL of the first OAM request message to 1 when detecting the first hop; sets the TTL of the first OAM request message to 2 when detecting the second hop; sets the TTL of the first OAM request message to 3 when detecting the third hop; and sets the TTL of the first OAM request message to 4 when detecting the fourth hop. And so on, which will not be described in detail in this article.

[0379] Step 1105: The BFIR adds the first TTL to the first OAM request message.

[0380] In this embodiment, the BFIR sets the TTL of the BIER-MPLS Label of the first OAM request message to 1.

[0381] Step 1106: The BFIR sends a first OAM request message to the intermediate BFR1.

[0382] Step 1107: The intermediate BFR1 receives the first OAM request message from the BFIR.

[0383] Step 1108: The intermediate BFR1 determines, based on the first OAM request message, that the destination BFR corresponding to the first OAM request message is the intermediate BFR1.

[0384] The intermediate BFR1 determines the corresponding group identifier according to the BIER-MPLS Label in the first OAM request message, and the intermediate BFR1 also obtains the bit string from the message header of the first OAM request message.

[0385] The intermediate BFR1 calculates the ID of at least one target BFER according to the group identifier and the bit string, and detects whether the ID of the intermediate BFR1 belongs to the ID of at least one target BFER.

[0386] Since the target BFERs of the first OAM request message are the first BFER and the second BFER, the intermediate BFR1 detects that the ID of the intermediate BFR1 is not the target BFER of the first OAM request message. Then the following steps are continued:

[0387] 1. The middle BFR1 reduces the value of the first TTL by a preset value.

[0388] In this embodiment, the preset value is 1. Every time the first OAM request message arrives at a BFR, the TTL of the BIER-MPLS Label needs to be subtracted by one. Since the first TTL of the BIER-MPLS Label of the first OAM request message is 1, when the intermediate BFR1 subtracts one from the value of the first TTL, the first TTL becomes 0.

[0389] 2. The intermediate BFR1 determines that the value of the first TTL after the preset value is reduced reaches 0, and determines that the destination BFR corresponding to the first OAM request message is the intermediate BFR1.

[0390] Since the value of the first TTL after reducing the preset value reaches 0, the intermediate BFR1 determines that the destination BFR corresponding to the first OAM request message is the intermediate BFR1, that is, the intermediate BFR1 needs to respond to the message content of the first OAM request message and send a first OAM response message to the BFIR.

[0391] That is, the destination BFR corresponding to the first OAM request message is a BFR that receives the first OAM request message and does not continue to forward the first OAM request message, such as the intermediate BFR1 in this embodiment.

[0392] Step 1109: The intermediate BFR1 sends a first OAM response message to the BFIR according to the first OAM request message.

[0393] The intermediate BFR1 obtains the first OAM response message according to the first OAM request message.

[0394] After obtaining the first OAM response message according to the first OAM request message, the intermediate BFR1 sends the first OAM response message to the BFIR.

[0395] Step 1110 , the BFIR receives a first OAM response message from the intermediate BFR1 .

[0396] When the BFIR receives the first OAM response message from the intermediate BFR1 , it can be determined that the BFIR is connected to the intermediate BFR1 .

[0397] At the same time, the BFIR processes the first OAM response message sent by the intermediate BFR1 , and the processing process is similar to step 1017 .

[0398] It should be noted that after sending the first OAM request message, the BFIR sets a timer. If the BFIR does not receive the first OAM response message from the intermediate BFR1 within a predetermined time, it can be determined that the BFIR is not connected to the intermediate BFR1.

[0399] Step 1111: The BFIR obtains a second TTL according to the first OAM response message and the first TTL. The value of the second TTL is obtained by adding a preset value to the value of the first TTL.

[0400] At this time, the BFIR determines that the BFIR is connected to the intermediate BFR1. Further, the BFIR adds a preset value to the value of the first TTL to obtain a second TTL, and in this embodiment, the second TTL is set to 2. That is, the BFIR detects the next hop of the intermediate BFR1. In other words, the second TTL is used to identify the next hop BFR of the intermediate BFR1 on the link between the BFIR and the first BFER.

[0401] Step 1112: The BFIR inserts the second BIER-MPLSLabel into the second OAM request message based on the second TTL and the group identifier to obtain a third OAM request message.

[0402] The second BIER-MPLS Label includes a label and a second TTL, and the label corresponds to the group identifier corresponding to at least one BFER. The third OAM request message is used to detect the link between the BFIR and the second BFR, and the second BFR is the next hop BFR of the intermediate BFR1 on the link between the BFIR and the first BFER.

[0403] It should be noted that BFIR only needs to set the TTL of the BIER-MPLS Label of the second OAM request message, and the payload content of the second OAM request message remains unchanged to generate the third OAM request message. The first OAM request message differs from the third OAM request message only in the BIER-MPLS Label and TTL.

[0404] Since the BFIR does not know which BFR is the next hop of the intermediate BFR1, but the BFIR side knows that the second BFR, which is the next hop of the intermediate BFR1, is located on the link between the BFIR and the first BFER, and the second BFR and the intermediate BFR1 share the same path, the BFIR can send the third OAM request message to the first BFER, thereby sending the OAM request message to the second BFR.

[0405] Step 1113: The BFIR sends a third OAM request message to the intermediate BFR1.

[0406] Step 1114: The intermediate BFR1 receives the third OAM request message from the BFIR.

[0407] The intermediate BFR1 determines the corresponding group identifier according to the BIER-MPLS Label in the third OAM request message, and the intermediate BFR1 also obtains the bit string from the message header of the third OAM request message.

[0408] The intermediate BFR1 calculates the ID of at least one target BFER according to the group identifier and the bit string, and detects whether the ID of the intermediate BFR1 belongs to the ID of at least one target BFER.

[0409] Since the target BFERs of the third OAM request message are the first BFER and the second BFER, the intermediate BFR1 detects that the ID of the intermediate BFR1 is not the target BFER of the third OAM request message. Then the following steps are continued:

[0410] 1. The middle BFR1 reduces the value of the second TTL by a preset value.

[0411] In this embodiment, the preset value is 1. Every time the third OAM request message arrives at a BFR, the TTL of the BIER-MPLS Label needs to be reduced by one. Since the second TTL of the BIER-MPLS Label of the third OAM request message is 2, when the middle BFR1 reduces the value of the second TTL by one, the second TTL becomes 1.

[0412] 2. The intermediate BFR1 determines that the value of the second TTL after the preset value is reduced does not reach 0, and determines that the destination BFR corresponding to the third OAM request message is not the intermediate BFR1.

[0413] Since the value of the first TTL after the preset value is reduced does not reach 0, the intermediate BFR1 determines that the destination BFR corresponding to the third OAM request message is not the intermediate BFR1.

[0414] At this time, the intermediate BFR1 exchanges the BIER-MPLS Label in the third OAM request message and forwards it to the next-hop BFR, that is, the first BFER.

[0415] Step 1115: The intermediate BFR1 sends a third OAM request message to the first BFER.

[0416] Step 1116: The first BFER receives the third OAM request message from the first BFR1.

[0417] Step 1117: The first BFER determines, according to the third OAM request message, that the destination BFR corresponding to the third OAM request message is the first BFER.

[0418] The first BFER determines, according to the group identifier and the bit string included in the third OAM request message, that at least one BFER includes the first BFER;

[0419] The first BFER obtains the bit string of the third OAM request message and the group identifier corresponding to the BIER-MPLS Label, and calculates the ID of at least one target BFER based on the group identifier and the bit string. The first BFER detects whether its own ID is included in the ID of the at least one BFER; if the ID of the first BFER is included in the ID of the at least one BFER, the first BFER determines that the at least one target BFER corresponding to the third OAM request message includes the first BFER. That is, the first BFER needs to respond to the third OAM request message.

[0420] Step 1118: The first BFER sends a third OAM response message to the intermediate BFR1.

[0421] The first BFER obtains the third OAM response message. The obtaining process is similar to the process shown in step 1010 to step 1013, which will not be described in detail herein.

[0422] Then, the first BFER sends a third OAM response message to the intermediate BFR1.

[0423] Step 1119: The intermediate BFR1 receives the fourth OAM response message from the first BFER.

[0424] Since the TTL of the BIER-MPLS Label of the fourth OAM response message is set to the maximum value and the intermediate BFR1 is not the target BFIR of the fourth OAM response message, the intermediate BFR1 does not need to reply to the fourth response message and directly forwards the fourth response message to the next hop, namely the BFIR.

[0425] Step 1120: The intermediate BFR1 sends a fourth OAM response message to the BFIR.

[0426] Step 1121: The BFIR receives a fourth OAM response message from the first BFER.

[0427] The BFIR processes the fourth OAM response message, and the processing process is similar to step 1017 .

[0428] When the BFIR receives the fourth OAM response message from the first BFER, it can be determined that the BFIR is connected to the first BFER.

[0429] Of course, if the BFIR only receives the first OAM response message from the intermediate BFR1 but does not receive the fourth OAM response message from the first BFER within the predetermined time, it can be determined that the link between the intermediate BFR1 and the next hop BFR of the intermediate BFR1 fails.

[0430] In summary, this embodiment receives an OAM request message from a BFIR; determines, according to the OAM request message, that the destination BFR corresponding to the OAM request message is the first BFR; obtains an OAM response message according to the ID of the BFIR; and sends the OAM response message to the BFIR; solves the problem that the BFIR cannot diagnose or process the fault when a transmission failure occurs during the transmission of a multicast message; and achieves the effect of realizing connectivity detection through an OAM message and being able to diagnose multiple BFERs at the same time.

[0431] This embodiment also sets the TTL of the BIER-MPLS Label of the OAM request message to different values, so that the BFIR can detect each BFR on the forwarding path, thereby achieving the effect of quickly determining the location of the forwarding fault.

[0432] This embodiment also generates an OAM reply message according to the OAM request message after the BFR receives the OAM request message, and adds information such as a timestamp, a reply code, and a sequence number to the OAM reply message, so that the BFIR can analyze the information in the OAM reply message when receiving the OAM reply message, thereby expanding the use scenarios of the OAM message.

[0433] This embodiment also implements a multi-hop detection mechanism of the OAM message by setting the TTL in the OAM request message, and can detect each hop path between the BFIR and the BFER, and can accurately locate the fault point.

[0434] It should be supplemented that, in step 1109, the intermediate BFR1 obtains the first OAM response message according to the first OAM request message, which may include the following steps:

[0435] First, the intermediate BFR1 obtains the group identifier and bit string corresponding to the BFIR according to the BFIR ID.

[0436] The intermediate BFR1 obtains the ID of the BFIR from the message header of the first OAM request message, and obtains the group identifier and the bit string corresponding to the BFIR according to the ID.

[0437] Second, the intermediate BFR1 obtains a second OAM response message according to the bit string corresponding to the BFIR.

[0438] The second OAM response message can be considered as an OAM response message whose entire content is not completely generated. The message header of the second OAM response message includes a bit string corresponding to the BFIR and the ID of the intermediate BFR1, and the payload of the second OAM response message includes the OAM message.

[0439] The intermediate BFR1 adds the bit string corresponding to the BFIR to the message header of the second OAM response message to identify that the target BFR of the second OAM response message is the BFIR.

[0440] In order to identify the source of the second OAM response message, the intermediate BFR1 needs to obtain the ID of the intermediate BFR1 and add the ID to the message header of the second OAM response message. In addition, the intermediate BFR1 also needs to add the bit string corresponding to the intermediate BFR1 to the message header of the second OAM response message to identify that the source of the second OAM response message is the intermediate BFR1.

[0441] The intermediate BFR1 also needs to set the first bit of the message header of the second OAM response message, that is, set the first bit from 0 to 1, and identify the message type as the request type in the second bit of the second OAM request message.

[0442] Optionally, the intermediate BFR1 further obtains an ID of a BFIR, where the BFIR is a previous-hop BFR of the intermediate BFR1 on the link between the BFIR and the first BFER.

[0443] The intermediate BFR1 adds the ID of the BFIR to the previous hop forwarding route field in the payload of the second OAM response message.

[0444] One point that needs to be explained is that this embodiment does not limit the way in which the intermediate BFR1 obtains the ID of the BFIR. As a possible implementation method, before sending the first OAM request message to the intermediate BFR1, the BFIR can add its own ID to the first OAM request message. Accordingly, the intermediate BFR1 can obtain the ID of the BFIR from the first OAM request message. As another possible implementation method, since the first OAM request message is sent by the BFIR to the intermediate BFR1, and the label in the first OAM request message is a label agreed upon between the BFIR and the intermediate BFR1, the intermediate BFR1 can also obtain the ID of the BFIR through the label.

[0445] Optionally, the intermediate BFR1 may also detect whether the intermediate BFR1 is the target BFER of the OAM request message according to the TLV in the OAM request message, which may include the following steps:

[0446] 1. The intermediate BFR1 determines at least one BFER according to the TLV included in the OAM request message.

[0447] The intermediate BFR1 obtains the ID of at least one BFER according to the group identifier, the bit string and the length of the bit string carried by the TLV; the intermediate BFR1 detects whether its own ID is included in the ID of the at least one BFER; if the ID of the intermediate BFR1 is not included in the ID of the at least one BFER, the intermediate BFR1 determines that the at least one target BFER corresponding to the OAM request message does not include the intermediate BFR1.

[0448] 2. The intermediate BFR1 verifies that the destination BFR of the OAM request message is not the intermediate BFR1.

[0449] At this time, the intermediate BFR1 can also generate a corresponding reply code according to the verification result.

[0450] For example, reply code 1 indicates that intermediate BFR1 is the destination BFR of the OAM request message, and reply code 0 indicates that intermediate BFR1 is not the destination BFR of the OAM request message. Then intermediate BFR1 generates reply code 0 and adds it to the reply code field of the payload of the second OAM reply message.

[0451] Third, the intermediate BFR1 inserts BIER-MPLSLabel into the second OAM response message according to the group identifier corresponding to BFIR to obtain the first OAM response message.

[0452] Among them, the BIER-MPLS Label includes a label corresponding to the group identifier corresponding to the BFIR.

[0453] The intermediate BFR1 determines the corresponding BIER-MPLS Label according to the group identifier corresponding to the BFIR, and inserts the BIER-MPLS Label into the second OAM response message to obtain the first OAM response message encapsulated by MPLS.

[0454] Fourth, the intermediate BFR1 adds the TTL of the BIER-MPLS Label to the first OAM response message.

[0455] In order to prevent the first OAM response message from being unable to be forwarded to the BFIR because the TTL has been reduced to 0 when the first OAM response message reaches the BFR between the BFER and the BFIR, the intermediate BFR1 sets the TTL to the maximum value. Usually, the TTL is set to 255.

[0456] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0457] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

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

Claims

1. A bit forwarding ingress router BFIR, It is characterized in that The BFIR is located in a bit-indexed explicit replication BIER network, and the BFIR includes: A first obtaining unit is configured to obtain a first operation, administration and maintenance OAM request message according to an identification ID of at least one bit forwarding egress router BFER, wherein the first OAM request message includes the ID of the BFIR, a first bit string and a first group identifier to which the first bit string belongs, and the first bit string corresponds to the at least one BFER; The first sending unit is configured to send the first OAM request message to the at least one BFER.

2. The BFIR according to claim 1, It is characterized in that The first OAM request message further includes a type-length-value TLV, and the TLV is used to identify the BFER that sends the OAM response message.

3. The BFIR according to claim 2, It is characterized in that The TLV is used to carry the first group identifier, the first bit string and the length of the first bit string.

4. The BFIR according to any one of claims 1 to 3, It is characterized in that The first OAM request message also includes a bit-indexed explicit replication label BIER-MPLS Label based on multi-protocol label switching, and the BIER-MPLS Label includes a label corresponding to the first group identifier.

5. The BFIR according to any one of claims 1 to 3, It is characterized in that The first OAM request message also includes a second OAM request message, and the first obtaining unit is specifically configured to: Obtaining the first bit string according to the ID of the at least one BFER; The second OAM request message is obtained according to the first bit string, wherein a message header of the second OAM request message includes the first bit string and the ID of the BFIR.

6. The BFIR according to any one of claims 1 to 3, It is characterized in that The first OAM request message is used to perform connectivity detection on a link between the BFIR and the at least one BFER.

7. The BFIR according to claim 6, It is characterized in that The first OAM request message further includes a first lifetime TTL, and the number of hops corresponding to the first TTL is greater than or equal to the maximum number of hops that the BFIR passes through to reach the at least one BFER.

8. The BFIR according to any one of claims 1 to 3, It is characterized in that The first OAM request message is used to perform hop-by-hop detection on a link between the BFIR and the at least one BFER.

9. The BFIR according to claim 8, It is characterized in that The first OAM request message also includes a second TTL, and the number of hops corresponding to the second TTL is the number of hops that the BFIR passes through to reach the detected intermediate BFR.

10. The BFIR according to any one of claims 1 to 3, 7 and 9, It is characterized in that The first OAM request message also includes a first field, and the first field is used to record that the message type is a request type.

11. The BFIR according to any one of claims 1 to 3, 7 and 9, It is characterized in that The first OAM request message also includes a second field, and the second field is used to record that the payload type is OAM.

12. The BFIR according to any one of claims 1 to 3, 7 and 9, It is characterized in that The first OAM request message also includes a third field, and the third field is used to record that the protocol type of the OAM response message is BIER.

13. The BFIR according to any one of claims 1 to 3, 7 and 9, It is characterized in that The first OAM request message further includes a fourth field, and the fourth field is used to record a sending timestamp of the first OAM request message.

14. The BFIR according to any one of claims 1 to 3, 7 and 9, It is characterized in that The first OAM request message includes a fifth field, and the fifth field is used to record a sequence number used to distinguish OAM request messages.

15. The BFIR according to any one of claims 1 to 3, 7 and 9, It is characterized in that The BFIR also includes: The second receiving unit is configured to receive an OAM response message sent by the at least one BFER, wherein the OAM response message includes an ID of the at least one BFER and an ID of the BFIR.

16. The BFIR according to any one of claims 1 to 3, 7 and 9, It is characterized in that The BFIR also includes: The first receiving unit is configured to receive an OAM response message sent by an intermediate BFR, wherein the OAM response message includes an ID of a detected intermediate BFR and an ID of the BFIR.

17. The BFIR according to claim 15, It is characterized in that The OAM response message also includes a sixth field, and the sixth field is used to record that the destination device of the message is the device that receives the message.

18. The BFIR according to any one of claims 15 to 17, It is characterized in that The OAM response message also includes a seventh field, and the seventh field is used to record that the message type is a response type.

19. The BFIR according to claim 17, It is characterized in that The OAM response message further includes an eighth field, and the eighth field is used to record a sequence number used to distinguish the OAM response messages.

20. Bit Forwarding Router BFR, It is characterized in that The BFR is located in a bit-indexed explicit replication BIER network, and the BFR includes: A receiving unit, configured to receive an operation management and maintenance OAM request message from a bit forwarding ingress router BFIR, wherein the OAM request message includes an ID of the BFIR, a first bit string, and a first group identifier to which the first bit string belongs, wherein the first bit string corresponds to at least one BFER; a destination determination unit, configured to determine, according to the OAM request message, that the destination device of the OAM request message is the BFR; A first obtaining unit, configured to obtain an OAM response message according to the ID of the BFIR and the ID of the BFR, wherein the OAM response message includes the ID of the BFIR and the ID of the BFR; The first sending unit is configured to send the OAM response message to the BFIR.

21. The BFR according to claim 20, It is characterized in that The OAM request message also includes a type-length-value TLV, and the TLV is used to identify the BFER that sends the OAM response message.

22. The BFR according to claim 21, It is characterized in that The TLV is used to carry the first group identifier, the first bit string and the length of the first bit string.

23. The BFR according to any one of claims 20 to 22, It is characterized in that The OAM request message also includes a bit indexed explicit replication label BIER-MPLS Label based on multi-protocol label switching, and the BIER-MPLS Label includes the label corresponding to the first group identifier.

24. The BFR according to any one of claims 20 to 22, It is characterized in that The OAM request message is used to perform connectivity detection on a link between the BFIR and the at least one BFER.

25. The BFR according to claim 24, It is characterized in that The OAM request message further includes a first lifetime TTL, and the number of hops corresponding to the first lifetime TTL is greater than or equal to the maximum number of hops that the BFIR passes through to reach the at least one BFER.

26. The BFR according to any one of claims 20 to 22, It is characterized in that The OAM request message is used to perform hop-by-hop detection on the link between the BFIR and the at least one BFER.

27. The BFR according to claim 26, It is characterized in that The OAM request message also includes a second TTL, and the number of hops corresponding to the second TTL is the number of hops that the BFIR passes through to reach the detected intermediate BFR.

28. The BFR according to any one of claims 20 to 22 and 27, It is characterized in that The OAM request message also includes a first field, and the first field is used to record that the message type is a request type.

29. The BFR according to any one of claims 20 to 22 and 27, It is characterized in that The OAM request message also includes a second field, and the second field is used to record that the load type is OAM.

30. The BFR according to any one of claims 20 to 22 and 27, It is characterized in that The OAM request message also includes a third field, and the third field is used to record that the protocol type of the OAM response message is BIER.

31. The BFR according to any one of claims 20 to 22 and 27, It is characterized in that The OAM request message further includes a fourth field, and the fourth field is used to record a receiving timestamp of the OAM request message.

32. The BFR according to any one of claims 20 to 22 and 27, It is characterized in that The OAM response message also includes a fifth field, and the fifth field is used to record that the destination device of the message is the BFR.

33. The BFR according to any one of claims 20 to 22 and 27, It is characterized in that The OAM response message also includes a sixth field, and the sixth field is used to record that the message type is a response type.

34. The BFR according to any one of claims 20 to 22 and 27, It is characterized in that The OAM request message includes a seventh field, and the seventh field is used to record a sequence number used to distinguish the OAM request messages.

35. The BFR according to any one of claims 20 to 22 and 27, It is characterized in that The OAM response message further includes an eighth field, and the eighth field is used to record a sequence number used to distinguish the OAM response messages.

36. An operation management and maintenance (OAM) detection method, It is characterized in that Used in a bit-indexed explicit replication BIER network, the method comprises: The bit forwarding ingress router BFIR obtains a first operation management and maintenance OAM request message according to an identification ID of at least one bit forwarding egress router BFER, wherein the first OAM request message includes the ID of the BFIR, a first bit string, and a first group identifier to which the first bit string belongs, and the first bit string corresponds to the at least one BFER; The BFIR sends the first OAM request message to the at least one BFER.

37. The method according to claim 36, It is characterized in that The first OAM request message further includes a type-length-value TLV, and the TLV is used to identify the BFER that sends the OAM response message.

38. The method according to claim 37, It is characterized in that The TLV is used to carry the first group identifier, the first bit string and the length of the first bit string.

39. A method according to any one of claims 36 to 38, It is characterized in that The first OAM request message also includes a bit-indexed explicit replication label BIER-MPLS Label based on multi-protocol label switching, and the BIER-MPLS Label includes a label corresponding to the first group identifier.

40. The method according to any one of claims 36 to 38, It is characterized in that The first OAM request message also includes a second OAM request message, and the BFIR obtains the first OAM request message according to the identification ID of at least one BFER, including: Obtaining the first bit string according to the ID of the at least one BFER; The second OAM request message is obtained according to the first bit string, wherein a message header of the second OAM request message includes the first bit string and the ID of the BFIR.

41. A method according to any one of claims 36 to 38, It is characterized in that The first OAM request message is used to perform connectivity detection on a link between the BFIR and the at least one BFER.

42. The method according to claim 41, It is characterized in that The first OAM request message further includes a first lifetime TTL, and the number of hops corresponding to the first TTL is greater than or equal to the maximum number of hops that the BFIR passes through to reach the at least one BFER.

43. A method according to any one of claims 36 to 38, It is characterized in that The first OAM request message is used to perform hop-by-hop detection on a link between the BFIR and the at least one BFER.

44. The method according to claim 43, It is characterized in that The first OAM request message also includes a second TTL, and the number of hops corresponding to the second TTL is the number of hops that the BFIR passes through to reach the detected intermediate BFR.

45. A method according to any one of claims 36 to 38, It is characterized in that The first OAM request message also includes a first field, and the first field is used to record that the message type is a request type.

46. ​​A method according to any one of claims 36 to 38, It is characterized in that The first OAM request message also includes a second field, and the second field is used to record that the payload type is OAM.

47. A method according to any one of claims 36 to 38, It is characterized in that The first OAM request message also includes a third field, and the third field is used to record that the protocol type of the OAM response message is BIER.

48. The method according to any one of claims 36 to 38, It is characterized in that The first OAM request message further includes a fourth field, and the fourth field is used to record a sending timestamp of the first OAM request message.

49. The method according to any one of claims 36 to 38, It is characterized in that The first OAM request message includes a fifth field, and the fifth field is used to record a sequence number used to distinguish OAM request messages.

50. The method according to any one of claims 36 to 38, It is characterized in that The method further comprises: An OAM response message sent by the at least one BFER is received, where the OAM response message includes an ID of the at least one BFER and an ID of the BFIR.

51. A method according to any one of claims 36 to 38, It is characterized in that The method further comprises: An OAM response message sent by the intermediate BFR is received, where the OAM response message includes an ID of the detected intermediate BFR and an ID of the BFIR.

52. The method according to claim 50, It is characterized in that The OAM response message also includes a sixth field, and the sixth field is used to record that the destination device of the message is the device that receives the message.

53. The method according to claim 52, It is characterized in that The OAM response message also includes a seventh field, and the seventh field is used to record that the message type is a response type.

54. The method according to claim 52 or 53, It is characterized in that The OAM response message further includes an eighth field, and the eighth field is used to record a sequence number used to distinguish the OAM response messages.

55. An operation management and maintenance (OAM) detection method, It is characterized in that Used in a bit-indexed explicit replication BIER network, the method comprises: The bit forwarding router BFR receives an operation management and maintenance OAM request message from the bit forwarding inlet router BFIR, wherein the OAM request message includes the ID of the BFIR, a first bit string and a first group identifier to which the first bit string belongs, and the first bit string corresponds to at least one BFER; The BFR determines, according to the OAM request message, that a destination device of the OAM request message is the BFR; The BFR obtains an OAM response message according to the ID of the BFIR and the ID of the BFR, where the OAM response message includes the ID of the BFIR and the ID of the BFR; The BFR sends the OAM response message to the BFIR.

56. The method according to claim 55, It is characterized in that The OAM request message also includes a type-length-value TLV, and the TLV is used to identify the BFER that sends the OAM response message.

57. The method according to claim 56, It is characterized in that The TLV is used to carry the first group identifier, the first bit string and the length of the first bit string.

58. A method according to any one of claims 55 to 57, It is characterized in that The OAM request message also includes a bit indexed explicit replication label BIER-MPLS Label based on multi-protocol label switching, and the BIER-MPLS Label includes the label corresponding to the first group identifier.

59. A method according to any one of claims 55 to 57, It is characterized in that The OAM request message is used to perform connectivity detection on a link between the BFIR and the at least one BFER.

60. The method according to claim 59, It is characterized in that The OAM request message further includes a first lifetime TTL, and the number of hops corresponding to the first TTL is greater than or equal to the maximum number of hops that the BFIR passes through to reach the at least one BFER.

61. The method according to any one of claims 55 to 57, It is characterized in that The OAM request message is used to perform hop-by-hop detection on the link between the BFIR and the at least one BFER.

62. The method according to claim 61, It is characterized in that The OAM request message also includes a second TTL, and the number of hops corresponding to the second TTL is the number of hops that the BFIR passes through to reach the detected BFR.

63. The method according to any one of claims 55 to 57, 60 and 62, It is characterized in that The OAM request message also includes a first field, and the first field is used to record that the message type is a request type.

64. The method according to any one of claims 55 to 57, 60 and 62, It is characterized in that The OAM request message also includes a second field, and the second field is used to record that the load type is OAM.

65. The method according to any one of claims 55 to 57, 60, 62, It is characterized in that The OAM request message also includes a third field, and the third field is used to record that the protocol type of the OAM response message is BIER.

66. The method according to any one of claims 55 to 57, 60 and 62, It is characterized in that The OAM request message further includes a fourth field, and the fourth field is used to record a receiving timestamp of the OAM request message.

67. The method according to any one of claims 55 to 57, 60, 62, It is characterized in that The OAM response message also includes a fifth field, and the fifth field is used to record that the destination device of the message is the BFR.

68. The method according to any one of claims 55 to 57, 60 and 62, It is characterized in that The OAM response message also includes a sixth field, and the sixth field is used to record that the message type is a response type.

69. The method according to any one of claims 55 to 57, 60 and 62, It is characterized in that The OAM request message includes a seventh field, and the seventh field is used to record a sequence number used to distinguish the OAM request messages.

70. The method according to any one of claims 55 to 57, 60 and 62, It is characterized in that The OAM response message further includes an eighth field, and the eighth field is used to record a sequence number used to distinguish the OAM response messages.