The present disclosure relates to the technical field of communications.
With the rapid development of Internet, multicast technologies have been used more and more widely. A Bit Indexed Explicit Replication (BIER) technology is a multicast data forwarding technology, which implements forwarding according to the shortest path to a destination node. A Bit Indexed Explicit Replication Traffic Engineering (BIER-TE) technology further transmits, on the basis of the BIER technology, traffic according to an established link until the traffic reaches the destination node.
Inevitably, link failure may occur in a network. In the event of a failure that a next hop device is inaccessible, fast switching (that is, Fast Re-Route (FRR)) is required. For the BIER forwarding, because internal protocols, such as Open Shortest Path First (OSPF), Intermediate System to Intermediate System (ISIS) or Border Gateway Protocol (BGP), can form a FRR forwarding table, the fast switching to the formed FRR table in the event of the failure is possible. However, for the BIER-TE forwarding, because forwarding is performed according to a pre-determined link, the only solution to the link failure is to calculate a backup path in advance. However, the process of calculating the backup forwarding path is complex and difficult, and the more reliable the scheme is, the higher the computation complexity will be. Up to now, there is no effective method to solve the problem of the BIER-TE FRR technologies.
The embodiments of the present disclosure provide a multicast fast switching method, which includes the following operations. When forwarding a multicast BIER-TE packet, a forwarding node detects whether an abnormality occurs in a forwarding link between the forwarding node and a next node. In responsive to detecting that an abnormality occurs in the forwarding link between the forwarding node and the next nod, the forwarding node determines whether the multicast BIER-TE packet is configured with a multicast fast switching tag. In responsive to determining, by the forwarding node, that the multicast BIER-TE packet is configured with the multicast fast switching tag, multicast fast switching is performed according to the multicast fast switching tag.
The embodiments of the present disclosure provide a multicast fast switching method, which includes the following operation. When encapsulating the BIER-TE packet, an ingress node adds a FRR-BIER tag in a BIER-TE header of the multicast BIER-TE packet, and adds a BIER header for FRR behind the BIER-TE header.
The embodiments of the present disclosure provide a multicast fast switching device, which is applied to a forwarding node and includes: a detecting module, a determining module and a switching module. The detecting module is configured to detect, when forwarding multicast BIER-TE packet, whether an abnormality occurs in the forwarding link between the forwarding node and the next node. The determining module is configured to determine, when the detecting module detects that an abnormality occurs in the forwarding link between the forwarding node and the next node, whether the multicast BIER-TE packet is configured with a multicast fast switching tag. The switching module is configured to perform, when the determining module determines that the multicast BIER-TE packet is configured with the multicast fast switching tag, multicast fast switching according to the multicast fast switching tag.
The embodiments of the present disclosure provide a multicast fast switching device, which is applied to an ingress node and includes an adding module. The adding module is configured to, when encapsulating a multicast BIER-TE packet, add a FRR-BIER tag in a BIER-TE header of the multicast BIER-TE packet, and add a BIER header for FRR behind the BIER-TE header.
The embodiments of present disclosure provide a multicast fast switching device, which includes: a processor and a memory coupled with the processor. The memory stores a program for multicast fast switching that is able to run on the processor. When executed by the processor, the program for multicast fast switching implements the multicast fast switching method provided by the embodiments of the present disclosure.
The present disclosure provides a computer storage medium, which stores the program for multicast fast switching. When executed by the processor, the program for multicast fast switching implements the multicast fast switching method provided by the embodiments of the present disclosure.
The exemplary embodiments of the present disclosure are elaborated below in combination with the accompanying drawings. It should be understood that the exemplary embodiments elaborated below are intended only to illustrate and explain the present disclosure and not to limit the present disclosure.
In the BIER technology, a specific BIER header, in which all destination nodes of multicast traffic are annotated in the form of bit string, is encapsulated in a packet. A forwarding node of an intermediate network routes the packet to ensure that the traffic can be sent to all the destination nodes. The forwarding node of the intermediate network floods and sends node information through protocols, such as an OSPF protocol, an ISIS protocol, a BGP protocol or a Babel protocol, to form a Bit Index Forwarding Table (BIFT) for guiding BIER forwarding.
In the BIER-TE technology, when the multicast traffic is encapsulated, the bit string is also encapsulated in the BIER header, but each bit in the bit string is used to identify a specific link rather than the destination node. During forwarding, the forwarding node processes the packet in a different way from the traditional BIER way. For example, firstly, a BIER-TE forwarding table to be queried is similar to a BIER forwarding table only in the form, but in fact, the BIER-TE forwarding table is a completely independent forwarding table, and each bit in the forwarding table represents a link rather than a node; secondly, during forwarding according to the forwarding table, forwarding and corresponding processing are conducted only according to the bit corresponding to the link connected with the node, so as to ensure that the packet will not loop back and can reach the destination correctly. The draft-eckert-bier-te-frr draft has clearly specified several applicable scenarios and calculation methods of the BIER-TE FRR technologies, as well as their limitations and disadvantages. However, up to now, there is no effective method to solve the problem of the BIER-TE FRR technologies.
At S201, when forwarding a BIER-TE packet, a forwarding node detects whether an abnormality occurs in a forwarding link between the forwarding node and a next node.
At S202, in responsive to detecting that an abnormality occurs in the forwarding link between the forwarding node and the next node, the forwarding node determines whether the multicast BIER-TE packet is configured with a multicast fast switching tag.
At S203, in responsive to determining, by the forwarding node, that the multicast BIER-TE packet is configured with the multicast fast switching tag, multicast fast switching is performed according to the multicast fast switching tag.
In the embodiments of the present disclosure, the method may further include the following operation: in responsive to determining, by the forwarding node, that the multicast BIER-TE packet is not configured with the multicast fast switching tag, the multicast BIER-TE packet is forwarded as a normal multicast BIER-TE packet.
In an embodiment, the operation that the forwarding node determines whether the multicast BIER-TE packet is configured with the multicast fast switching tag may include the following operations. The forwarding node determines whether there is a FRR-BIER tag in a BIER-TE header of the multicast BIER-TE packet according to the multicast BIER-TE packet. In responsive to determining that there is the FRR-BIER tag in the BIER-TE header of the multicast BIER-TE packet, the forwarding node determines that the multicast BIER-TE packet is configured with the multicast fast switching tag; and in responsive to determining that there is no FRR-BIER tag in the BIER-TE header of the multicast BIER-TE packet, the forwarding node determines that the multicast BIER-TE packet is not configured with the multicast fast switching tag. In the embodiments, the FRR-BIER tag is used for indicating that there is a BIER header for FRR in the multicast BIER-TE packet.
In an embodiment, the operation that in responsive to determining, by the forwarding node, that the multicast BIER-TE packet is configured with the multicast fast switching tag, the multicast fast switching is performed according to the multicast fast switching tag may include the following operation. In responsive to determining that the multicast BIER-TE packet is configured with the multicast fast switching tag, the forwarding node deletes the BIER-TE header in the multicast BIER-TE packet, and performs the multicast fast switching according to the BIER header in the multicast BIER-TE packet.
In an embodiment, the method may further include the following operations. The forwarding node determines whether the forwarding node is a transport node according to the BIER-TE header. In responsive to determining that the forwarding node is the transport node, and determining that there is the FRR-BIER tag in the BIER-TE header, the forwarding node deletes a bit, which represents the forwarding node, in the BIER header.
A multicast fast switching method provided by the embodiments of the present disclosure includes the following operation. When encapsulating a BIER-TE packet, an ingress node adds a FRR-BIER tag in a BIER-TE header of the multicast BIER-TE packet, and adds a BIER header for FRR behind the BIER-TE header. Thus, the forwarding node may perform the multicast fast switching according to the BIER header when an abnormality occurs in the forwarding link.
In an embodiment, the ingress node performs, according to a user configuration or a FRR-BIER protection instruction issued by a remote controller, the operations of adding the FRR-BIER tag in the BIER-TE header of the multicast BIER-TE packet and adding the BIER header for FRR behind the BIER-TE header.
In an embodiment, the switching module 303 is further configured to forward the multicast fast switching as a normal multicast BIER-TE packet when the determining module 302 determines that the multicast BIER-TE packet is not configured with the multicast fast switching tag, and delete the BIER-TE header in the multicast BIER-TE packet and perform the multicast fast switching according to the BIER header in the multicast BIER-TE packet when the determining module 302 determines the multicast BIER-TE packet is configured with the multicast fast switching tag.
The embodiments of the present disclosure also provide a multicast fast switching device, which is applied to an ingress node and includes an adding module. The adding module is configured to, when encapsulating a multicast BIER-TE packet, add a FRR-BIER tag in a BIER-TE header of the multicast BIER-TE packet, and add a BIER header for FRR behind the BIER-TE header. Thus, the forwarding node can perform the multicast fast switching according to the BIER header when an abnormality occurs in the forwarding link.
The embodiments of the present disclosure also provide a multicast fast switching device, which includes: a processor and a memory coupled with the processor. The memory stores a program for multicast fast switching that is able to run on the processor. When executed by the processor, the program for multicast fast switching implements the multicast fast switching method provided by the embodiments.
The embodiments of the present disclosure also provide a computer storage medium, which stores the program for multicast fast switching. When executed by the processor, the program for multicast fast switching implements the multicast fast switching method provided by the embodiments.
As shown in
Specifically, when the ingress node encapsulates a BIER-TE packet, in addition to a normal encapsulation link Bit Position (BP) and other information, a FRR-BIER tag is also added in the BIER-TE header to indicate that there is a BIER header, which can be used for fast switching, encapsulated after the BIER-TE header. The FRR-BIER tag may be implemented in such a way that one or more bits in a reserved field in the BIER-TE header are set to a specific value. The encapsulation of other fields in the BIER-TE header may refer to a normal BIER-TE encapsulation format. The BIER header for FRR is encapsulated behind the BIER-TE header and in front of the specific traffic data (payload). The bit string of the BIER header represents BFR-id of all egress nodes. The Proto field in the BIER header should also include the payload field in the BIER-TE header. Other fields may refer to the normal BIER encapsulation format. The encapsulation format may refer to
In an embodiment, the ingress node selects whether to perform FRR BIER protection. The selection may be performed based on configuration. For example, all or part of the traffic may be configured to require the protection. Or, a FRR BIER protection instruction may be issued by a controller through NETCONF, RESTCONF, BGP-Link State (LS) extension and other forms to make the ingress node enable the protection function.
A processing flow of the forwarding node is shown in
It is to be noted that if the forwarding node does not support a FRR BIER protection function, then the indication field (i.e., FRR-BIER tag) in the BIER-TE header is ignored and the forwarding follows a normal BIER-TE process.
Another processing flow of the forwarding node is shown in
In the network, a transport node refers to a node which needs to de-encapsulate the packet to forward the packet out of a BIER-TE domain (that is, the node is an egress node) and also forward the packet to the next node in the domain. In the case that a certain forwarding node is a BIER-TE transport node, when there is no failure in the link required for BIER-TE forwarding, but the BIER header for FRR is included in the packet, the bit representing the node in the BIER header is deleted before forwarding, so as to reduce the possible subsequent repeated packets.
In an embodiment, if a node in the network can process the BIER header for future FRR in a preset manner or a manner of inheriting a BIER-TE format, the length of the BIER header for FRR may be further reduced, for example, the field with the same meaning as the BIER-TE header may be omitted in the BIER header to achieve the effect of reducing the overhead of the length of the header.
The BIER domain also supports the BIER-TE forwarding. Assuming that for certain specific traffic, the ingress node is R1 and the egress nodes are R2 to R6, the calculated BIER-TE forwarding paths are as shown in the hollow arrow in
When the BIER-TE header is encapsulated, if the packet requires FRR BIER protection, a FRR-BIER bit is set, and a BIER header for FRR is added behind the BIER-TE header and in front of the payload, as shown in
Processing for several link abnormalities is described below.
As shown in
When the forwarding module of the node R1 performs BIER-TE forwarding, if a failure (abnormality) is found in a link lbp1, the node R1 deletes the BIER-TE header of the packet, and directly uses the BIER header for forwarding. In this case, the BIER forwarding table has been modified due to the impact of link convergence, the actually used BIER forwarding table, for example, is shown in Table 2, and the packet flow follows the path in
The other processing performed by the forwarding node provided in the embodiments of the present disclosure is elaborated below in combination with
R3 is a forwarding node in the network. When the node R3 receives a BIER-TE packet forwarded from the upstream node R12 and prepares to perform BIER-TE forwarding, if the link is found to be normal, the node R3 forwards the packet in accordance with the normal BIER-TE process, and the used BIER-TE forwarding table, for example, is shown in Table 3.
When performing BIER-TE forwarding, the forwarding module of the node R3 first finds that the node R3 is the egress node. After the node R3 de-encapsulates and forwards the packet, if the link lbp6 involved in forwarding is found to have a failure (abnormality), the node R3 deletes the BIER-TE header of the packet, and directly uses the BIER header for forwarding. In this case, the BIER forwarding table has been modified due to the impact of link convergence, and the actually used BIER forwarding table, for example, is shown in Table 4. The packet flow also follows the normal BIER shortest path, which will not be repeated here.
As shown in
Similarly, the node R2 in the network is also a transport node, and the processing flow for the node R2 is similar to the processing flow for the node R3. Because the node R2 has deleted the bit for representing itself from the BIER header for FRR when performing BIER-TE forwarding, when the node R3 deletes the BIER-TE header and forwards according to the BIER header in the case of a failure in the link lbp6, the node R3 will not transmit the packet to the node R2 repeatedly since the bit representing the node R2 in the BIER header has been deleted, thereby avoiding repeated packets.
For the encapsulation format, as shown in
Through the above description, those skilled in the art may clearly know that the method in the embodiments may be implemented by means of software plus a necessary common hardware platform, or certainly by means of hardware. Based on this understanding, the essence of the technical solution of the embodiments of the present disclosure or the part of the technical solution making a contribution to the related art can be embodied in the form of software product. The computer software product may be stored in a storage medium (for example, a Read-Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, and a compact disc) and includes a number of instructions to make a computer device (which can be a personal computer, a server or a network device, etc.) perform all or part of the method in each embodiment of the present disclosure.
Those skilled in the art should appreciate that the above modules and operations of the present disclosure may be implemented by general-purpose computing devices, and the computing devices may be centralized in a single computing device or distributed on a network composed of multiple computing devices. Optionally, the computing devices may be implemented by a program code which is capable of being executed by the computing device, so that the program code may be stored in a storage device and executed by the computing device. In some situations, the presented or described operations may be executed in an order different from that described here. The modules or the operations may be made into integrated circuit modules, respectively; or multiple modules and operations may be made into a single integrated circuit module. Therefore, the present disclosure is not limited to any particular combination of hardware and software.
According to the solutions provided by the embodiments of the present disclosure, in the network supporting both the BIER forwarding and the BIER-TE forwarding, when there is a failure in the BIER-TE forwarding link, fast switching can be performed so that the packet can successfully reach the egress node. The method provided by the embodiments of the present disclosure can be implemented simply, greatly improves the reliability of multicast service deployment, and plays a very important role in promoting the development of multicast technology.
Although the solution of the embodiments of the present disclosure is described in detail above, the present disclosure is not limited to the description, and those skilled in the art may make various modifications according to the principles of the present disclosure. Accordingly, any modification made according to the principles of the present disclosure should be understood as falling in the protection scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201810517110.3 | May 2018 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2019/081726 | 4/8/2019 | WO | 00 |