BIER message transfer method, device, and storage medium
The BIER message forwarding method addresses the inoperability of segment routing in BIER networks by updating node information in the BIER message header to support various encapsulation types, enabling efficient message transfer and segment routing across diverse network environments.
Patent Information
- Application Number
- JP2024522695
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-12-02
- Filing Date
- 2022-08-05
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2042-08-05
AI Technical Summary
Existing segment routing technologies are inoperable in Bit Index Explicit Replication (BIER) networks due to the inability to determine route addresses for target routing across different encapsulation types, such as IPv6, IPv4, and MPLS, preventing the implementation of segment routing functionality.
A BIER message forwarding method that changes node information in the BIER message header to support various encapsulation types, allowing for segment routing by identifying and forwarding messages to target nodes through a series of routing nodes, each updating the header to match the next node in the path.
Enables segment routing functionality in BIER networks by determining route addresses and implementing directed route forwarding across networks with different encapsulation types, ensuring seamless message transfer.
Smart Images

Figure 2024536539000001_ABST
Abstract
Description
[Technical field]
[0001] This application is filed based on a Chinese patent application bearing application number 202111462084.7 and filing date December 2, 2021, and claims priority to the Chinese patent application, the entire contents of which are hereby incorporated by reference into this application.
[0002] The present application relates to the technical field of communications, and in particular to a BIER message transfer method, apparatus, and storage medium. [Background technology]
[0003] Following IP multicast forwarding, Bit Index Explicit Replication (BIER) is being developed. Unlike traditional multicast tree technology, BIER identifies the receiver by including a bitstring in the message that identifies the target node, and determines the target node to which the message is forwarded by BIER through the forwarding table entry of these bits. The BIER technology itself supports various encapsulation types and also supports compatibility between multiple encapsulation types.
[0004] Currently, designated route forwarding in a network is usually implemented through segment routing (SR for short). For example, in an MPLS network, it is implemented through SR-MPLS, and in an IPv6 network, it is implemented through SRv6. Different protocols correspond to different route information, and segment routing implemented using different encapsulation techniques can only play a role within the corresponding network. However, when a message passes through multiple networks such as IPv6, IPv4, and MPLS, the existing segment routing cannot function. Therefore, a method is required to implement segment routing functions in a BIER network that supports various encapsulation types. Summary of the Invention [Problem to be solved by the invention]
[0005] The following is a summary of the subject matter described in detail herein. This summary is not intended to be limiting of the scope of the claims.
[0006] The embodiments of the present application provide a BIER message transfer method, apparatus, and storage medium. [Means for solving the problem]
[0007] In a first aspect, the present embodiment comprises: A BIER message forwarding method applied to a first node, comprising: receiving a first BIER message including a first BIER message header including first node information and a BIER segment list including second node information; changing the first node information of the first BIER message header to the second node information to obtain a second BIER message header; forwarding a second BIER message corresponding to the second BIER message header to a second node corresponding to the second node information.
[0008] In a second aspect, the present embodiment comprises: A BIER message forwarding method applied to a third node, comprising: Obtaining a first BIER message according to a designated forwarding path, the first BIER message including a first BIER message header including first node information and a BIER segment list including second node information; and forwarding the first BIER message to a first node corresponding to the first node information according to the first BIER message header, wherein a second BIER message generated at the first node includes the second node information.
[0009] In a third aspect, the present embodiment comprises: 1. A BIER message forwarding method applied to a fifth node in a BIER network, comprising: receiving a first BIER message, the first BIER message including a first BIER message header table, the first BIER message header including first node information; determining whether the fifth node is the first node based on the first node information; if the fifth node is not the first node, forwarding the first BIER message to the first node.
[0010] In a fourth aspect, embodiments of the present application provide an apparatus, comprising a BIER message transfer system according to any one of the embodiments of the first, second and third aspects.
[0011] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having stored thereon computer-executable instructions for performing a BIER message transfer method as described in any one of the embodiments of the first, second and third aspects. The drawings are used to provide a further understanding of the technical solution of the present application, constitute a part of the specification, and are used to explain the technical solution of the present application together with the embodiments of the present application, and are not intended to limit the technical solution of the present application. [Brief description of the drawings]
[0012] [Figure 1] FIG. 2 is a networking diagram of a BIER sub-domain according to one embodiment of the present application. [Diagram 2] FIG. 2 is a networking diagram of a multi-BIER sub-domain according to another embodiment of the present application. [Diagram 3] A structural diagram of a BIER sub-domain segment list in a BIER segment list structure of a BIER message according to another embodiment of the present application. [Figure 4]FIG. 13 is a structural diagram of a BIER segment list of a BIER message according to another embodiment of the present application; [Diagram 5] 4 is a flowchart of steps of a BIER message forwarding method according to another embodiment of the present application. [Figure 6] 6 is a flowchart of detailed steps of step S520 of FIG. 5 according to another embodiment of the present application. [Figure 7] 7 is a flowchart of detailed steps of step S610 of FIG. 6 according to another embodiment of the present application. [Figure 8] 8 is a flowchart of detailed steps of step S710 of FIG. 7 according to another embodiment of the present application. [Figure 9] 9 is a flowchart of additional steps after step S810 of FIG. 8 according to another embodiment of the present application. [Figure 10] 4 is a flowchart showing detailed steps of a BIER message forwarding method according to another embodiment of the present application; [Figure 11] 6 is a flowchart of additional steps after step S520 of FIG. 5 according to another embodiment of the present application. [Figure 12] 13 is a flowchart of steps of a BIER message forwarding method applied to a third node according to another embodiment of the present application; [Figure 13] 13 is a flowchart of detailed steps of step S1210 of FIG. 12 according to another embodiment of the present application. [Figure 14] 13 is a flowchart of another detailed step of step S1210 of FIG. 12 according to another embodiment of the present application. [Figure 15] 13 is a flowchart of additional steps of the BIER message transfer method of FIG. 12 according to another embodiment of the present application. [Figure 16] 11 is a flowchart of steps of a BIER message forwarding method applied to a fifth node according to another embodiment of the present application; [Figure 17] FIG. 10 illustrates a method for forwarding a BIER message by a first node according to another embodiment of the present application. [Figure 18]FIG. 2 is a schematic diagram of a BIER message forwarding device according to another embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in more detail below with reference to the drawings and examples. It should be understood that the specific examples described in this specification are only used to explain the present application, and are not used to limit the present application.
[0014] It should be noted that although the functional module division is shown in the schematic diagram of the device and the logical order is shown in the flowchart, in some cases the module division within the device may differ, or the steps shown or described may be performed in a different order than that shown in the flowchart. The terms "first", "second", etc. in the specification and claims and the aforementioned drawings are not used to describe a particular order or priority, but are used to distinguish between similar objects.
[0015] The present embodiment provides a BIER message forwarding method, device, and storage medium. The BIER message forwarding method is applied to a first node, and includes the steps of receiving a first BIER message generated by a third node, the first BIER message including a first BIER message header including first node information and a BIER segment list including second node information, changing the first node information of the first BIER message header to second node information to obtain a second BIER message header, and forwarding the second BIER message corresponding to the second BIER message header to a second node corresponding to the second node information. The effect of segment routing and the function of designated path forwarding are realized in a BIER network supporting various encapsulation types by encapsulating forwarding path information in the BIER message header to determine address information of a target node.
[0016] While traditional IP multicast forwarding techniques perform multicasting through a multicast tree, Bit Index Explicit Replication (BIER) identifies recipients by including a bitstring in the message that identifies the target node, giving the BIER technique the advantage of supporting interchange between various encapsulation types, e.g., mpls, ipv6, ether, etc.
[0017] Here, designated route forwarding is often required to realize various new applications, such as deterministic networks, computing power networks, and service chains. The usual processing method is to realize the designated route forwarding function through segment routing (SR). For example, in MPLS networks, designated route forwarding is realized through SR-MPLS, and in IPv6 networks, designated route forwarding is realized through SRv6.
[0018] Since the BIER technology has the characteristic of supporting compatibility between various encapsulation types, such as mpls, ipv6, and ether, there exist situations where corresponding messages in the BIER network pass through networks such as IPv6, IPv4, and MPLS, and the current SR needs to determine the route address of the target routing according to the corresponding encapsulation technology. As a result, the current SR cannot determine the route address of the target routing to realize the segment routing function when the BIER network passes through networks such as IPv6, IPv4, and MPLS.
[0019] In response to the above problems, this application proposes a BIER message forwarding method that determines a route address for target routing when the BIER network passes through a network such as IPv6, IPv4, or MPLS, and realizes a segment routing function.
[0020] In addition, the BIER technology provides an encapsulation method for the BIER message header, and the Bitstring in the BIER message header contains the routing information of the target node. The current node can identify the receiving node by the Bitstring in the BIER message header and realize the function of solocasting or multicasting to the target node.
[0021] In the process of forwarding by BIER technology, BIER routing also includes Bit Forwarding Ingress Router (BFIR), Bit Forwarding Router (BFR) and Bit Forwarding Egress Router (BFER), where BFIR represents the input node of traffic, BFER represents the output node of traffic, BFR represents the node of intermediate forwarding traffic, and BFIR and BFER represent the direction of traffic in BIER network. In the conventional BIER technology, the BFR-id corresponding to BFER is stored in the BIER message, and before performing multicast or solocast, the related data is generated in advance through flooding in the BIER domain, so that the BFIR node can perform solocast or multicast to the corresponding target node just by obtaining the BFER information, but the BIER message generated by BFIR can only perform solocast or multicast to the corresponding BFER node, and cannot be forwarded according to the designated route.
[0022] In order to solve the above problems, the present application provides a BIER message transfer method, device, and storage medium. Hereinafter, the embodiments of the present application will be further described with reference to the drawings.
[0023] Please refer to FIG. 1, which is a networking diagram of a BIER sub-domain according to one embodiment of the present application.
[0024] When there are multiple nodes in the BIER domain through which the BIER passes during the forwarding process, it will be designated route forwarding. For example, a designated service message 1 needs to be forwarded through designated routes R1, R2, R4, R6, and R8, among which R1 to R8 are all routing nodes that can realize the BIER network function. During the service forwarding process, the message is forwarded step by step from R1 to R2, from R2 to R4, from R4 to R6, and from R6 to R8. During each jump, the target node information corresponding to the BFER information in the message is forwarded, thereby realizing designated route forwarding. For example, R2 corresponds to the BFER node of R1, and R8 corresponds to the BFER node of R6.
[0025] FIG. 1 corresponds to performing designated route forwarding in a single BIER subdomain, during which each routing node is identified by its corresponding bfd-id.
[0026] Please refer to FIG. 2, which is a networking diagram of multiple BIER sub-domains according to one embodiment of the present application.
[0027] In contrast to Fig. 1, where designated route forwarding is performed in a single BIER subdomain, in Fig. 2 designated route forwarding is performed in multiple BIER subdomains. When a designated route spans multiple subdomains, it is necessary to identify the routing of each node by both the subdomain ID and the bfd-id, so that, for example, in Fig. 2, the identification information of node R1 is (subdomain id:1, bfd-id:1) and the identification information of node R5 is (subdomain id:2, bfd-id:5).
[0028] The subdomain ID and routing ID (bfd-id) uniquely identify a specific target routing, and the ID codes in the figure are only for better interpretation of the characteristics of the BIER network. In general, the node information stored in Bitstring is all in the form of a binary string.
[0029] Please refer to FIG. 3, which is a structural diagram of a BIER sub-domain segment list in a BIER segment list structure of a BIER message according to one embodiment of the present application.
[0030] The bfr-id-list message structure in Figure 3 corresponds to the BIER subdomain segment list structure of the BIER message in the BIER message forwarding method of the present application, where the BIER subdomain segment list structure corresponds to the routing IDs, i.e., bfr-ids, of all routing nodes located on the specified forwarding path within this BIER subdomain, and in Figure 3, subdomain-id represents the subdomain id to which it belongs, and bfr-id-num represents the number of subsequent bfr-ids.
[0031] Please refer to FIG. 4, which is a structural diagram of a BIER segment list of a BIER message according to one embodiment of the present application.
[0032] Figure 3 is the message structure of a BIER segment list, where the BIER segment list is located after the BIER message header of a BIER message. In Figure 3, bfr-id-list-num represents the number of BIER subdomain segment lists contained in the BIER segment list, and protocol is the protocol field of the BIER segment list for parsing and processing the service messages following the BIER message.
[0033] The preliminary explanation of Figures 3 and 4 is only for better understanding of the technical solution of the present application, and the message structure proposed in Figures 3 and 4 also belongs to one of the corresponding inventive points of the present application, and the effect of designated path forwarding can be achieved through the BIER message forwarding method proposed in the present application.
[0034] Referring to FIG. 5, FIG. 5 is a flowchart of steps of a BIER message forwarding method according to one embodiment of the present application, applied to a first node, the BIER message forwarding method includes, but is not limited to, the following steps S510 to S530.
[0035] Step S510: Receive a first BIER message generated by a third node, the first BIER message including a first BIER message header including the first node information and a BIER segment list including the second node information.
[0036] The first node represents a node that is designated to pass through in the process of forwarding a message in the BEIR network, and the first node is capable of analyzing the first BIER message and obtaining information contained in the first BIER message.
[0037] The first BIER message represents a message parsed from a datagram obtained by the first node from the data link, the first BIER message represents a message segment encapsulating information corresponding to the first node, the address information of the first node is determined by the first BIER message, and the first BIER message includes a first BIER message header that is a BIER message header corresponding to the first node and a BIER segment list that represents subsequent data information used to determine a segment forwarding path.
[0038] In addition, the BIER message header includes target node information indicating that the BIER message corresponding to this BIER message header corresponds to BFER node information, and the BIER segment list includes second node information indicating a node specified after the first node in the specified forwarding path, where the second node is a BFER node corresponding to the BIER message generated at the first node.
[0039] Step S520: Change the first node information in the first BIER message header to the second node information to obtain a second BIER message header.
[0040] The first node information represents the target node information of the first BIER message, the target node information is the BFER node information corresponding to the BIER message, and the BFER node corresponding to the first node is the second node. The target node information of the first BIER message header is changed to the second node information to obtain a second BIER message header, and the function of segment-forwarding the message to the corresponding target node according to the second BIER message header is realized.
[0041] Note that the operation of encapsulating the BIER header is a BIER standard operation, described in detail in RFC8296, and is not an inventive point of this application. In addition, the protocol field of the BIER header corresponds to the BIER segment list type, and the BIER segment list data can be parsed by the protocol field of the BIER header.
[0042] In one embodiment, in the forwarding path, each BIER routing node, except for the final target node, can forward the message to the corresponding target node via the BIER message header as a first node, thereby realizing the segment routing function.
[0043] Step S530: Forward the second BIER message corresponding to the second BIER message header to the second node corresponding to the second node information.
[0044] The BIER feature of identifying the recipient by including a bitstring that identifies the target node in the message allows it to determine the target routing address when different encapsulation technologies are used. When combined with the segment information in the BIER segment list, it can determine the route address for target routing when the BIER network passes through networks such as IPv6, IPv4, and MPLS, thereby realizing the segment routing function.
[0045] During transmission in the BIER network, the BIER encapsulation method of each link may be different.
[0046] In one embodiment, every time forwarding based on a segment, the target node corresponding to the previous first node becomes the current first node, and re-encapsulates the message header based on the second node information of the target node corresponding to the current first node in the BIER segment list to obtain a second BIER message header corresponding to the second node, and realizes a segment jump to the second node according to the second BIER message header. For example, referring to Fig. 1, if a designated service needs to be forwarded via designated routes R1, R2, R4, R6, R8, R1, R2, R4, R6 are all first nodes, and node R2 receives the first BIER message forwarded by node R1 as the first node, the first BIER message header of the first BIER message includes node information corresponding to node R2, and the BIER segment list of the first BIER message includes R2, R4, R6, R8 information. Change the node information corresponding to node R2 in the first BIER message header of this first BIER message to node information corresponding to R4, pop up the R2 information contained in the BIER segment list of this first BIER message, obtain the second BIER message header corresponding to R4, and forward the message to node R4 according to this second BIER message header, and after R4 receives the message, it becomes the new first node and continues forwarding in the above manner, and thus the segment routing function is realized.
[0047] Referring to FIG. 6, in one embodiment, step S520 in the embodiment shown in FIG. 5 includes, but is not limited to, the following steps S610 and S620.
[0048] Step S610: Pop up the second node information in the BIER segment list.
[0049] Step S620: Change the first node information in the first BIER message header to the second node information to obtain a second BIER message header.
[0050] In one embodiment, the second node information in the BIER segment list is popped up, and the target node information in the first BIER message header is changed to the second node information to obtain a second BIER message header. The BIER segment list includes the message structure shown in FIG. 4, and the BIER segment list includes routing node information corresponding to each node to be passed through later in the forwarding path. Every time the target node information in the first BIER message header is changed to the second node information to obtain a second BIER message header, the second node information is obtained through the BIER segment list, the target node information in the first BIER message header is changed to the second node information, the second BIER message header is obtained again, and the second node information in the BIER segment list is popped up, which indicates that the routing node information corresponding to each node to be passed through later in the forwarding path other than the currently corresponding target node is included in the BIER segment list. The BIER segment list may also be understood as including target node information corresponding to the second node when the second node is the first node.
[0051] During the process of message forwarding, the BIER segment list changes according to the progress of the BIER routing nodes through which the BIER message passes, thus realizing the segment routing function.
[0052] Referring to FIG. 7, in one embodiment, the BIER segment list further includes third node information, and step S610 in the embodiment shown in FIG. 6 includes, but is not limited to, the following step S710.
[0053] Step S710: Pop up the second node information at the top of the BIER segment list in which the second node information and the third node information are arranged in this order.
[0054] In one embodiment, the BIER segment list further includes third node information, and the third node corresponding to the third node information is the corresponding target node when the second node is the first node. When the BIER segment list further includes third node information, the second node information and the third node information in the BIER segment list are arranged in a node designation order of the forwarding path, where the node designation order of the forwarding path refers to the order of each routing node on the forwarding path designated by the processor according to the service. For example, in FIG. 1, if the service 1 needs to be forwarded via the designated route R1, R2, R4, R6, R8, R1, R2, R4, R6, R8 are the node designation order, and when the second node information at the top of the BIER segment list is popped up, the second node information corresponding to the target node is located at the top of the BIER segment list, which indicates that the node information in the BIER segment list is sorted from front to back in the node designation order.
[0055] The BIER segment list includes information on a plurality of nodes through which the transfer route is designated.
[0056] When the BIER segment list includes multiple node information, the second node information and the third node information in the BIER segment list are arranged in the node designation order of the forwarding path, and the target nodes corresponding to each first node can be segmented and determined by popping up the second node information at the top of the BIER segment list, thereby realizing the segment routing function in the BIER network.
[0057] Referring to FIG. 8, in one embodiment, the second node information includes a BFR-id and a BIER sub-domain ID, and step S710 in the embodiment shown in FIG. 7 includes, but is not limited to, the following step S810.
[0058] Step S810: Pop up the second node information at the top of the BIER sub-domain segment list in the BIER segment list, where the BIER sub-domain segment list includes the BFR-ids of several BIER routings with the same sub-domain ID.
[0059] In one embodiment, each node information includes a BFR-id and a BIER subdomain ID. Referring to Figures 3 and 4, when segment forwarding is performed in a single BIER subdomain, the node information exists in the message structure of Figure 4, and the BIER segment list includes one BIER subdomain segment list (bfr-id-list), which is shown in Figure 3, and the subdomain-id in Figure 3 corresponds to the BIER subdomain id. The target routing address is determined according to the BFR-id and BIER subdomain ID in the BIER message header, and forwarding is performed.
[0060] The inclusion of the BFR-ids of several BIER routing nodes with the same subdomain ID in a BIER subdomain segment list represents BIER routing nodes that perform segment forwarding in a single BIER subdomain.
[0061] In one embodiment, the BIER segment list further includes a first BIER sub-domain segment list and a second BIER sub-domain segment list. Pop up the second node information at the beginning of the first BIER sub-domain segment list at the beginning of the BIER segment list, and arrange the first BIER sub-domain segment list and the second BIER sub-domain segment list in the BIER segment list in a node designation order of the forwarding path.
[0062] In one embodiment, the BIER segment list and the BIER sub-domain segment list are both stored in a queue data structure, and when node information at the top is popped up, the information following that node information in the BIER segment list and the BIER sub-domain segment list is indented toward the top to become the new top.
[0063] In one embodiment, referring to FIG. 4 , when a BIER segment list includes multiple BIER sub-domain segment lists, each BIER sub-domain segment list in the BIER segment list is arranged in the node designation order of the forwarding path, and by popping up the second node information at the beginning of the first BIER sub-domain segment list at the beginning of the BIER segment list, the target nodes corresponding to each first node can be segmented and determined, and the segment routing function in the BIER network can be realized.
[0064] Referring to FIG. 9, in one embodiment, after step S810 in the embodiment shown in FIG. 8, the following step S910 is included, but is not limited thereto.
[0065] Step S910: Pop up the first BIER sub-domain segment list, move the second BIER sub-domain segment list to the top of the BIER sub-domain segment list, and change the fourth node information to information corresponding to the target node to which the second node needs to forward.
[0066] In one embodiment, the BIER segment list includes some BIER sub-domain segment lists, and if the BIER sub-domain segment list does not include node information, the BIER sub-domain segment list.
[0067] After the first node receives the first BIER message, the BIER sub-domain segment list is popped up if the BIER sub-domain segment list does not contain the second node information, so as to ensure that the first node can directly obtain the corresponding second node information by reading the first BIER sub-domain segment list in the BIER segment list after receiving the first BIER message, and the segment forwarding function is realized.
[0068] Referring to FIG. 10, in one embodiment, in any of the embodiments shown in FIG. 5 to FIG. 9, the first BIER message header further includes a first protocol, and step S510 includes, but is not limited to, the following step S1010.
[0069] Step S1010: Parse the BIER segment list according to the first protocol to obtain the second node information.
[0070] In one embodiment, the protocol of the BIER message header adds a BIER segment list type, which indicates that there is a BIER segment list after the BIER header. After the first node receives the first BIER message, it parses the BIER segment list according to the first protocol included in the first BIER message header to obtain the second node information. The first protocol may be any protocol corresponding to the encapsulation type of the BIER segment list, and may be adjusted by those skilled in the art according to the actual situation.
[0071] In one embodiment, the type of the BIER segment list is fixed during the message transfer.
[0072] 11, in one embodiment, after step S1010 of the embodiment shown in FIG. 10, the following steps S1110 and S1120 are included, but are not limited thereto.
[0073] Step S1110: If the BIER segment list does not include the second node information, pop up the BIER segment list.
[0074] Step S1120: Change the first protocol to a second protocol for a service message located after the first BIER message.
[0075] After the first node receives a service message, the first node ensures that all the top node information in the BIER segment list contains corresponding second node information, and if the BIER segment list does not contain second node information, the BIER segment list is popped up, thereby ensuring that after the first node receives a service message, it can directly obtain the corresponding second node information by reading the top node information in the BIER segment list, and realizes the segment forwarding function.
[0076] In one embodiment, the BIER message is followed by a service message, which is the message that the final target node should process, for example, referring to Figure 1, if service 1 needs to be forwarded via designated routes R1, R2, R4, R6, R8, R8 is the final target node, and the first protocol is changed to a second protocol for the service message located after the first BIER message for subsequent service processing.
[0077] In one embodiment, when the BIER segment list is popped up, the service message is parsed according to the first protocol of the BIER message header to obtain the service information, and the service processing is performed according to the service information.
[0078] In one embodiment, after the first node receives the service message, it checks whether the BIER segment list is empty. If the BIER segment list is empty, it represents that the service message has reached the final target node and the current first node is the final target node. In this case, it parses the service message according to the first protocol in the BIER message header to obtain service information, and performs service processing according to the service information. The service message may be any message that needs to be processed by the segment routing function.
[0079] In one embodiment, when a BIER routing corresponds to multiple sub-domain IDs, a target sub-domain ID corresponding to the BIER routing is determined according to a forwarding path, and the BIER routing is added to a corresponding BIER routing segment list according to the target sub-domain ID.
[0080] In one embodiment, when one BIER routing corresponds to multiple subdomain IDs, a target subdomain ID corresponding to the BIER routing is determined according to a forwarding path, and the BIER routing is added to a corresponding BIER routing segment list according to its target subdomain ID, and each BIER routing in the BIER segment list corresponds to a unique BFR-id and subdomain ID.
[0081] In one embodiment, a target sub-domain ID corresponding to a BIER routing is determined according to a forwarding path, and the BIER routing is added to a corresponding BIER routing segment list according to a target sub-domain ID. For example, in Fig. 2, service 1 needs to be forwarded via designated paths R1, R2, R4, R5, R6, where R1, R2, R4 belong to BIER sub-domain 1, R5, R6 belong to BIER sub-domain 2, and R4 corresponds to sub-domains 1 and 2. To facilitate processing, sub-domain 1 is the target sub-domain ID corresponding to R4, and R4 is added to a BIER routing segment list corresponding to sub-domain 1.
[0082] Note that according to the standard, devices in different BIER subdomains may have the same bfr-id, but for convenience of explanation we assign them different bfr-ids here.
[0083] In one embodiment, referring to Figures 3 and 4, the BIER segment list further includes a subdomain number representing the number of subdomains that have not been completely traversed in the forwarding path, and the subdomain ID list further includes a subdomain ID of the corresponding subdomain and the number of routings within the corresponding domain.
[0084] In one embodiment, the forwarding paths corresponding to the first node and the second node include a strict path, which represents that the first node and the second node are directly adjacent in the BIER network, and a loose path, which represents that there exists some non-forwarding routed BIER routing between the first node and the second node in the BIER network.
[0085] Referring to FIG. 12, FIG. 12 is a flowchart of steps of a BIER message forwarding method according to another embodiment of the present application, which is applied to a third node and includes, but is not limited to, the following steps S1210 and S1220.
[0086] Step S1210: According to the designated forwarding path, obtain a first BIER message, which includes a first BIER message header including the first node information and a BIER segment list including the second node information.
[0087] Step S1220: forward the first BIER message to a first node corresponding to the first node information according to the first BIER message header, and a second BIER message generated in the first node includes the second node information.
[0088] In one embodiment, the third node is a source node of a designated forwarding path, for example, referring to FIG. 1, service 1 needs to be forwarded via designated path R1, R2, R4, R6, R8, and R1 is a third node.
[0089] In one embodiment, a first BIER message is obtained at a third node according to a designated forwarding path, the first BIER message includes a first BIER message header and a BIER segment list, the target node information of the first BIER message header includes the first node information, and the BIER segment list includes the second node information. The first BIER message is forwarded to a first node corresponding to the first node information according to the first BIER message header, and the target node information of a second BIER message generated at the first node includes the second node information, thereby realizing a segment routing function in the BIER network.
[0090] In one embodiment, another BIER segment list structure message organization method is provided, in which the BIER segment list structure does not have a protocol field, and the BIER segment list is placed in a generic segment header, the protocol field in the BIER header is filled in with the protocol type of the generic segment header, and the Next Header in the generic segment header is filled in with the type of the service message, thereby achieving the effect of parsing the BIER segment list and the effect of parsing the service message, and realizing the segment routing function.
[0091] Referring to Figure 13, Figure 13 is a flowchart of detailed steps of step S1210 of Figure 12 according to another embodiment of the present application, when the BIER segment list further includes a first BIER sub-domain segment list and a second BIER sub-domain segment list, and the segment list includes second node information and third node information, the BIER message forwarding method includes, but is not limited to, the following step S1310.
[0092] Step S1310: Generate a BIER segment list including the third node information, the first node information, and the second node information arranged in this order according to the designated forwarding path.
[0093] 14, FIG. 14 is a flowchart of detailed steps of step S1210 of FIG. 12 according to another embodiment of the present application, in which the BIER message forwarding method includes, but is not limited to, the following step S1410.
[0094] Step S1410: According to the specified forwarding path, generate a BIER segment list including a first BIER sub-domain segment list including first node information corresponding to the first node and a second BIER sub-domain segment list including second node information corresponding to the second node, arranged in this order.
[0095] In one embodiment, each node information includes a BFR-id and a BIER subdomain ID. Referring to Figures 3 and 4, when segment forwarding is performed in multiple BIER subdomains, the node information exists in the message structure of Figure 4, and the BIER segment list includes multiple BIER subdomain segment lists (bfr-id-list), and the BIER subdomain segment list is shown in Figure 3, and the subdomain-id in Figure 3 corresponds to the BIER subdomain id. The target routing address is determined according to the BFR-id and BIER subdomain ID in the BIER message header, and forwarding is performed.
[0096] In one embodiment, the BIER segment list includes a first BIER sub-domain segment list and a second BIER sub-domain segment list, and the first BIER sub-domain segment list and the second BIER sub-domain segment list in the BIER segment list are arranged in a node designation order of a forwarding path. Here, the node designation order of a forwarding path is the order of sub-domain IDs corresponding to each routing node on the forwarding path designated by the processor according to the service. For example, in FIG. 2, service 1 needs to be forwarded via designated routes R1, R2, R4, R5, R6, R1, R2, R4, R6, R8 are the node designation order, and the corresponding BIER sub-domain 1 and BIER sub-domain 2 of R1, R2, R4, R6, R8 correspond to the order of sub-domain IDs. When the second node information at the top of the first BIER subdomain segment list at the top of the BIER segment list is popped up, the second node information at the top of the first BIER subdomain segment list of the corresponding target node is located at the top of the BIER segment list, which indicates that the node information in the BIER segment list is sorted from front to back in the node specification order.
[0097] Referring to FIG. 15, FIG. 15 is a flowchart of additional steps of the method of FIG. 12 according to another embodiment of the present application, where the BIER message forwarding method includes, but is not limited to, the following steps S1510 and S1520.
[0098] Step S1510: Determine a target sub-domain ID corresponding to the BIER routing according to a forwarding path.
[0099] Step S1520: Add the BIER routing to the corresponding BIER subdomain segment list according to the target subdomain ID.
[0100] In one embodiment, when one BIER routing corresponds to multiple subdomain IDs, determine the target subdomain ID corresponding to the BIER routing according to the forwarding path, and add the BIER routing to the corresponding BIER routing segment list according to the target subdomain ID, and ensure that each BIER routing in the BIER segment list corresponds to a unique BFR-id and subdomain ID.
[0101] In one embodiment, a target sub-domain ID corresponding to a BIER routing is determined according to a forwarding path, and the BIER routing is added to a corresponding BIER routing segment list according to a target sub-domain ID. For example, in Fig. 2, service 1 needs to be forwarded via designated paths R1, R2, R4, R5, R6, where R1, R2, R4 belong to BIER sub-domain 1, R5, R6 belong to BIER sub-domain 2, and R4 corresponds to sub-domains 1 and 2. To facilitate processing, sub-domain 1 is the target sub-domain ID corresponding to R4, and R4 is added to a BIER routing segment list corresponding to sub-domain 1.
[0102] Note that according to the standard, devices in different BIER subdomains may have the same bfr-id, but for convenience of explanation we assign them different bfr-ids here.
[0103] Referring to FIG. 16, FIG. 16 is a flowchart of steps of a BIER message forwarding method according to another embodiment of the present application, which is applied to a fifth node and includes, but is not limited to, the following steps S1610 to S1630.
[0104] Step S1610: Receive a first BIER message including a first BIER message header including first node information.
[0105] Step S1620: Based on the target node information, determine whether the fifth node is the first node.
[0106] Step S1630: If the fifth node is not the first node, forward the first BIER message to the first node.
[0107] In the process of BIER network forwarding, if there is a BFR routing that only forwards services and does not process services, the fifth node is this BFR routing, and in order to distinguish such BFR routing from the first node routing which is BFER, the fifth node determines whether the routing node is the first node by comparing the target node information with the current node information.
[0108] In one embodiment, a first BIER message including a first BIER message header table is received, and target node information in the BIER message header includes first node information. Determine whether a routing node is the first node based on the target node information, and if the routing node is not the first node, forward the first BIER message to the first node, and process the first BIER message in the first node, thereby realizing a segment routing function.
[0109] Referring to FIG. 17, FIG. 17 is a diagram illustrating a BIER message forwarding method according to another embodiment of the present application, which includes, but is not limited to, the following steps S1710 to S1770.
[0110] Step S1710: The BIER message is received.
[0111] Step S1720: Determine whether the BFR-id in the BIER message header of the BIER message corresponds to the current node, and if so, execute step S1730.
[0112] Step S1730: By parsing the BIER segment list of the BIER message.
[0113] Step S1740: Encapsulate a BIER message header according to the first BFR-id of the first BIER sub-domain segment list in the BIER sub-domain segment list, and pop up this BFR-id at the same time.
[0114] Step S1750: If the BIER sub-domain segment list is empty, pop up the BIER sub-domain segment list.
[0115] Step S1760: If the BIER segment list is empty, pop up the segment list.
[0116] Step S1770: Transfer according to the BIER message.
[0117] In one embodiment, the process from when a BIER message is generated in a single BIER subdomain to when it is forwarded is as follows. As shown in FIG. 3, a bfr-id-list structure is defined, including but not limited to subdomain-id (bier subdomain ID), bfr-id-num (representing the number of bfr-ids that follow), and a bfr-id list. As shown in FIG. 4, a BIER segment list structure is defined, including but not limited to bfr-id-list-num (representing the number of bfr-id-lists that follow), protocol (representing the message type after the segment list structure), and a bfr-id-list list. The protocol in the BIER message header adds a BIER segment list type, indicating that there is a BIER segment list after the BIER message header. In the networking diagram of a single BIER subdomain shown in FIG. 1, the subdomain ID is 1, and the bfr-ids of nodes R1 to R8 are 1 to 8, respectively. From R1 to R8, the designated route 1 is R1, R2, R4, R6, R8, and the designated route 2 is R1, R3, R5, R7, R8. A message for service 1 is forwarded from R1 to R8, and when a controller or network manager or device configuration interface specifies that the message for service 1 is to be forwarded via path 1, a message is constructed on the R1 device. It searches for the first node on path 1, R1, and finds that it is the current node, so it is skipped. The BIER message header is followed by a BIER segment list header, where the bfr-id-list-num field is set to 1 and the protocol field is filled in with the protocol type of the message for service 1. This is followed by a bfr-id-list structure, where the subdomain-id field is 1, the bfr-id-num is 3, followed by three bfr-ids, with values 4, 6, and 8, respectively. The bfr-id-list structure is followed by the service message.When the BIER message arrives at R2, it finds that the bfr-id in the message is the current node, so it continues to parse the subsequent BIER segment list, extracts the BIER subdomain ID 1, extracts the first bfr-id 4, builds the BIER message header, and continues BIER forwarding, and for the bfr-id-list structure in the BIER segment list, it changes the bfr-id-num to 2, pops up bfr-id 4, and leaves only bfr-id 6 and 8. When the BIER message arrives at R4, it repeats step 10, and for the bfr-id-list structure in the BIER segment list, it changes the bfr-id-num to 1, pops up bfr-id 6, and leaves only bfr-id 8. When the BIER message arrives at R6, it repeats step 10, and after the last bfr-id 8 is popped up, the bfr-id-list becomes empty, so it pops up this bfr-id-list. Furthermore, if the BIER segment list is empty, it also pops up the BIER segment list. The protocol field of the BIER message header is filled with the protocol identifier of the service message, and the message is then BIER message header + service message. When the BIER message arrives at R8, if it finds that the bfr-id in the message is the current node, it will continue to analyze the service message and perform service message processing. Here, it may be specified to repeat the above steps from route 2 for messages of service 2.
[0118] Corresponding to the process from when a BIER message is generated to when it is forwarded in a single BIER subdomain, the process from when a BIER message is generated to when it is forwarded in multiple BIER subdomains is as follows. In the networking scenario of multiple BIER subdomains shown in Figure 2, the subdomain ID of BIER subdomain 1 is 1, the subdomain ID of BIER subdomain 2 is 2, and the subdomain ID of BIER subdomain 3 is 3. Device R3 is in both BIER subdomain 1 and subdomain 3, R4 is in both BIER subdomain 1 and subdomain 2, device R7 is in both BIER subdomain 2 and subdomain 3, and the bfr-ids of R1 to R9 are 1 to 9, respectively. In the networking scenario of multiple BIER subdomains shown in Figure 2, route 1 from R1 to R6 is specified as R1, R2, R4, R5, R6, and route 2 is specified as R1, R3, R8, R7, R5, R6. A message for service 1 is forwarded from R1 to R6, and when the controller or network manager or device configuration interface specifies that the message for service 1 is forwarded via path 2, the R1 device constructs a message. It searches for the first node on path 2, and if it is the current node, it skips it. It searches for the second node on path 2, finds the BIER forwarding information for R3 (BIER subdomain 1, bfr-id 3), and encapsulates the BIER message header (this BIER message header encapsulation is a BIER standard operation, described in detail in RFC8296, and is not an inventive point of this application). Here, the protocol field of the BIER message header is filled in with the BIER segment list type, and the BIER message header is followed by a BIER segment list header. The node after the path is in two BIER subdomains, so it has two bfr-id-lists, and the bfr-id-list-num field of the segment list header is filled in with 2, and the protocol field is filled in with the protocol type of the message for service 1. It is followed by two bfr-id-list structures.In the first bfr-id-list, the subdomain-id is 3, the bfr-id-num is 2, followed by two bfr-ids with the values 8 and 7, respectively. In the second bfr-id-list, the subdomain-id field is 2, the bfr-id-num is 2, followed by two bfr-ids with the values 5 and 6, respectively. The remaining process is the same as in the above example of a BIER message being generated and forwarded in a single BIER subdomain, and will not be repeated here.
[0119] Further, referring to Fig. 18, an embodiment of the present application provides a message forwarding device 1800. The message forwarding device 1800 includes a memory 1820, a processor 1810, and a computer program stored in the memory 1820 and executable by the processor 1810. When the processor 1810 executes the computer program, any of the above-mentioned message forwarding methods is realized, for example, the above-mentioned method steps S510 to S530 in Fig. 5, method steps S610 to S620 in Fig. 6, method step S710 in Fig. 7, method step S710 in Fig. 8, and method step S810 in Fig. 9. 9, method step S910 of FIG. 10, method step S1110 to step S1120 of FIG. 11, method step S1210 to S1230 of FIG. 12, method step S1310 of FIG. 13, method step S1410 of FIG. 14, method steps S1510 to S1520 of FIG. 15, method steps S1610 to S1630 of FIG. 16, and method steps S1710 to S1770 of FIG. 17 are performed.
[0120] Further, an embodiment of the present application provides a computer-readable storage medium having computer-executable instructions stored thereon which, when executed by one or more control processors, perform, for example, the above-mentioned method steps S510-S530 of FIG. 5, method steps S610-S620 of FIG. 6, method step S710 of FIG. 7, method step S810 of FIG. 8, method step S910 of FIG. 9, method step S1010 of FIG. 10, method steps S1110-S1120 of FIG. 11, method steps S1210-S1230 of FIG. 12, method step S1310 of FIG. 13, method step S1410 of FIG. 14, method steps S1510-S1520 of FIG. 15, method steps S1610-S1630 of FIG. 16, and method steps S1710-S1770 of FIG. 17.
[0121] The embodiment of the present application provides a BIER message forwarding method, an apparatus, and a storage medium. The BIER message forwarding method is applied to a first node, and the method includes the steps of receiving a first BIER message generated by a third node, the first BIER message header including a first node information and a BIER segment list including a second node information, changing the first node information of the first BIER message header to the second node information to obtain a second BIER message header, and forwarding a second BIER message corresponding to the second BIER message header to a second node corresponding to the second node information. The target node characteristics are determined according to the encapsulation forwarding path information of the BIER message header, and the target node is changed in the process of segment forwarding through a manner of adding a segment list after the BIER message header, thereby realizing a segment routing function in a BIER network supporting various encapsulation types, and achieving the effect of designated path forwarding in the BIER network.
[0122] All or part of the steps in the methods and systems disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processor, digital signal processor, microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (e.g., computer readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or any other medium that can be used to store the desired information and that can be accessed by a computer. Additionally, communication media typically includes computer readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transmission mechanism, and may include any information delivery media as known to those skilled in the art.
[0123] The above describes the preferred embodiments of the present application in detail, but the present application is not limited to the above embodiments. Those skilled in the art may make various equivalent modifications or substitutions under common conditions that do not violate the spirit of the present application, and all of these equivalent modifications or substitutions are intended to be included within the scope defined by the claims of the present application.
Claims
1. A BIER message forwarding method applied to a first node, comprising: receiving a first BIER message generated by a third node, the first BIER message header including the first node information and a BIER segment list including the second node information; changing the first node information of the first BIER message header to the second node information to obtain a second BIER message header; forwarding a second BIER message corresponding to the second BIER message header to a second node corresponding to the second node information.
2. The step of changing the first node information of the first BIER message header to the second node information to obtain a second BIER message header includes: popping up the second node information in the BIER segment list; and modifying the first node information of the first BIER message header to the second node information to obtain a second BIER message header.
3. The BIER segment list further includes third node information, and the step of popping up the second node information in the BIER segment list includes: The method according to claim 2 , further comprising popping up the second node information at the top of the BIER segment list in which the second node information and the third node information are arranged in this order.
4. The second node information includes a BFR-id and a BIER subdomain ID, and the step of popping up the second node information at the top of the BIER segment list includes: The method of claim 3, further comprising the step of popping up the second node information at the top of a BIER sub-domain segment list in the BIER segment list, the BIER sub-domain segment list including the BFR-ids of several BIER routings having the same sub-domain ID.
5. The BIER segment list includes the second node information in a first BIER sub-domain segment list and the fourth node information in a second BIER sub-domain segment list, and after the step of popping up the second node information at the top of the BIER sub-domain segment list in the BIER segment list, 5. The method of claim 4, further comprising the steps of popping up the first BIER sub-domain segment list, moving the second BIER sub-domain segment list to the top of the BIER sub-domain segment list, and changing the fourth node information to information corresponding to a target node to which the second node needs to forward.
6. The first BIER message header further includes a first protocol, and the step of receiving the first BIER message generated by a third node includes: The method according to any one of claims 1 to 5, comprising the step of parsing the BIER segment list according to the first protocol to obtain second node information.
7. the BIER segment list further includes a second protocol, and after the step of changing the first node information of the first BIER message header to the second node information to obtain a second BIER message header, if the BIER segment list does not include the second node information, popping up the BIER segment list; and c) changing the first protocol to the second protocol for service messages located after the first BIER message.
8. A BIER message forwarding method applied to a third node, comprising: Obtaining a first BIER message according to a designated forwarding path, the first BIER message including a first BIER message header including first node information and a BIER segment list including second node information; forwarding the first BIER message to a first node corresponding to the first node information according to the first BIER message header, wherein a second BIER message generated at the first node includes the second node information.
9. When the designated forwarding path is a path in which a third node, a first node, and a second node are arranged in this order, the step of obtaining a first BIER message according to the designated forwarding path includes: The method of claim 8 , further comprising: generating a BIER segment list including third node information, the first node information, and the second node information arranged in this order according to the designated forwarding path.
10. When the designated forwarding path is a path in which a third node, a first node located in the first BIER subdomain, and a second node located in the second BIER subdomain are arranged in this order, the step of obtaining a first BIER message according to the designated forwarding path includes: The method of claim 8, further comprising: generating a BIER segment list including a segment list of a first BIER subdomain including first node information corresponding to the first node and a segment list of a second BIER subdomain including second node information corresponding to the second node, arranged in this order according to the specified forwarding path.
11. If BIER routing supports multiple subdomain IDs, determining a target sub-domain ID corresponding to the BIER routing according to the forwarding path; The method of claim 8 , further comprising: adding the BIER routing to a corresponding BIER subdomain segment list according to the target subdomain ID.
12. A BIER message forwarding method applied to a fifth node in a BIER network, comprising: receiving a first BIER message, the first BIER message including a first BIER message header table, the first BIER message header including first node information; determining whether the fifth node is the first node based on the first node information; if the fifth node is not the first node, forwarding the first BIER message to the first node.
13. A BIER message forwarding device including a memory, a processor, and a computer program stored in the memory and executable by the processor, The apparatus, wherein the processor, when executing the computer program, implements the BIER message transfer method according to any one of claims 1 to 12.
14. A computer-readable storage medium having stored thereon computer-executable instructions for carrying out the BIER message transfer method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Message transmission method and device
CN106656794A
Method, device and system for establishing BIER forwarding table entry
CN110784411A
Packet forwarding method, packet transmission device, and packet reception device
WO2020088696A1
