Method and device for supporting segment routing label network multicast, and medium
By advertising the multicast segment identifier to network nodes in the segment routing label network and using specific protocols and TLVs, the problem of multicast segment identifier distribution and learning is solved, the correct forwarding of multicast traffic is achieved, and multicast avoidance is avoided Traffic forwarding error.
Patent Information
- Application Number
- PCT/CN2023/136864
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2023-12-06
- Publication Date
- 2024-10-03
AI Technical Summary
Existing interior gateway protocols and border gateway protocols fail to effectively support the distribution and learning of multicast segment identifiers in segment routing label networks, resulting in multicast traffic forwarding errors.
By advertising the host address of the current network node to other network nodes in the segment routing label network and configuring the multicast segment identifier, it ensures that network nodes can recognize and process the multicast segment identifier, thereby achieving correct forwarding of multicast traffic. Specific methods include carrying the multicast segment identifier in the routing prefix, and using specific TLVs and flag bits in protocols such as ISIS, OSPF, and BGP to propagate and learn the multicast segment identifier.
It realizes the correct forwarding of multicast traffic in the segment routing label network, avoids the situation where unicast traffic mistakenly encapsulates the multicast segment identifier, improves the network node's ability to identify and process the multicast segment identifier, and ensures that the multicast segment identifier is correctly forwarded. Accurate forwarding of broadcast traffic.
Smart Images

Figure CN2023136864_03102024_PF_FP_ABST
Abstract
Description
Method, device and medium for supporting segment routing label network multicast
[0001] Related applications
[0002] This application claims priority to Chinese patent application No. 202310340830.8 filed on March 27, 2023, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of communications, and in particular to a method for supporting segment routing label network multicast, a device for supporting segment routing label network multicast, and a computer-readable storage medium. Background Art
[0004] Currently, the Interior Gateway Protocol (IGP) and Border Gateway Protocol (BGP) that support segment routing technology do not yet have clear definitions for the distribution and learning of multicast segment identifiers, making it easy for errors to occur during use.
[0005] Summary of the Invention
[0006] The main purpose of this application is to provide a method for supporting segment routing label network multicast, a device for supporting segment routing label network multicast, and a computer-readable storage medium, aiming to solve the technical problem in conventional technology that gateway protocols are difficult to support the implementation of segment routing-based forwarding multicast traffic in segment routing label networks.
[0007] To achieve the above objectives, the present application provides a method for supporting multicast in a segment routing label network, the method being applied to a network node performing multicast forwarding operations in a segment routing label network, the method comprising:
[0008] Notifying the first host address of the current network node to other network nodes in the segment routing label network;
[0009] Among them, the first host address is configured with the first multicast segment identifier of the current network node, and the first multicast segment identifier is used to instruct the current network node to multicast forward the first traffic, and to instruct other network nodes in the segment routing label network to unicast forward the first traffic, and the first traffic is the traffic whose forwarding information matches the first multicast segment identifier.
[0010] The present application also provides a device for supporting segment routing label network multicast, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the method for supporting segment routing label network multicast as described above are implemented.
[0011] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for supporting segment routing label network multicast as described above are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] FIG1 is a flow chart of an embodiment of a method for supporting segment routing label network multicast according to an embodiment of the present application;
[0013] FIG2 is a schematic diagram of an ISIS prefix segment identifier TLV and a newly added multicast flag bit in an embodiment of a method for supporting segment routing label network multicast according to an embodiment of the present application;
[0014] 3 is a schematic diagram of an OSPFv2 extended prefix TLV and a flag field in the extended prefix TLV in an embodiment of a method for supporting segment routing label network multicast according to an embodiment of the present application;
[0015] 4 is a schematic diagram of an OSPFv2 prefix segment identifier TLV and a newly added multicast flag in an embodiment of a method for supporting segment routing label network multicast according to an embodiment of the present application;
[0016] 5 is a schematic diagram of flag bits of the intra-domain prefix TLV, inter-domain prefix TLV, external prefix TLV and prefix option fields of OSPFv3 in an embodiment of a method for supporting segment routing label network multicast according to an embodiment of the present application;
[0017] 6 is a schematic diagram of an OSPFv3 prefix segment identifier TLV and a newly added multicast flag in an embodiment of a method for supporting segment routing label network multicast according to an embodiment of the present application;
[0018] 7 is a schematic diagram of a BGP prefix segment identifier TLV and a newly added multicast flag bit in an embodiment of a method for supporting segment routing label network multicast according to an embodiment of the present application;
[0019] FIG8 is a schematic diagram of a multicast segment identifier forwarding structure in an embodiment of a method for supporting segment routing label network multicast according to an embodiment of the present application;
[0020] FIG9 is a schematic diagram of the structure of the operating equipment of the hardware operating environment involved in the embodiment of the present application.
[0021] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0022] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0023] Currently, a multicast segment identifier (MSI) is used to identify each device that supports the MSI forwarding structure. After receiving multicast traffic, the ingress device encapsulates a multicast segment list. Each element in the MSI forwarding structure is a MSI forwarding structure. Because the MSI forwarding structure itself instructs nodes on how to forward traffic, intermediate devices do not need to learn and maintain the forwarding state of each multicast distribution tree. Furthermore, devices that do not support the MSI forwarding structure can forward MSIs as unicast prefix segment identifiers, ensuring good backward compatibility. However, the interior gateway protocols and border gateway protocols that currently support segment routing do not yet have clear definitions for the distribution and learning of MSIs, making their use prone to errors.
[0024] In addition, under ideal circumstances, if all network nodes in the segment routing label network support multicast forwarding operations and can recognize ordinary unicast segment identifiers and newly added multicast segment identifiers, then unicast traffic can be encapsulated with unicast segment identifiers, and multicast traffic can be encapsulated with multicast segment identifiers. However, because some network nodes cannot understand the newly added multicast segment identifiers and learn and use them as ordinary unicast segment identifiers, unicast traffic may be encapsulated with multicast segment identifiers.
[0025] An embodiment of the present application provides a method for supporting multicast in a segment routing label network. Referring to FIG. 1 , in one embodiment of the method for supporting multicast in a segment routing label network, the method is applied to a network node that performs a multicast forwarding operation in a segment routing label network. The method includes:
[0026] Step A: Notify the first host address of the current network node to other network nodes in the segment routing label network;
[0027] Among them, the first host address is configured with the first multicast segment identifier of the current network node, and the first multicast segment identifier is used to instruct the current network node to multicast forward the first traffic, and to instruct other network nodes in the segment routing label network to unicast forward the first traffic. The first traffic is the traffic whose forwarding information matches the first multicast segment identifier.
[0028] In this embodiment, a method is provided for a network node performing a multicast forwarding operation in a segment routing label network to advertise its multicast segment identifier.
[0029] First, a first host address is configured for the current network node. The first host address is an IPv4 (Internet Protocol Version 4) host address or an IPv6 (Internet Protocol Version 6) host address. A first multicast segment identifier for segment routing is configured for the first host address. The first multicast segment identifier is a prefix segment identifier. The configuration of the multicast segment identifier satisfies network uniqueness, that is, it uniquely identifies a network node in a segment routing label network.
[0030] Secondly, the current network node announces its first host address to other network nodes in the same segment routing label network. The routing prefix of the first host address carries the corresponding first multicast segment identifier. Other network nodes learn the first multicast segment identifier of the first host address through the corresponding gateway protocol and generate a label unicast forwarding entry just like learning a normal prefix segment identifier.
[0031] Afterwards, when the network node receives the outermost multicast segment identifier of the segment list encapsulated by the traffic and it is the multicast segment identifier of another device, it will forward it in a labeled unicast manner; and when the network node receives the outermost multicast segment identifier of the segment list encapsulated by the traffic and it is the multicast segment identifier announced by the current network node itself, it will perform multicast replication and forwarding according to the instructions of the multicast segment identifier forwarding structure.
[0032] Exemplarily, the first host address further includes a multicast flag bit corresponding to the multicast segment identifier and tag bit information coordinated with the multicast segment identifier; wherein the multicast flag bit is used to represent the multicast capability of the current network node.
[0033] In this embodiment, the routing prefix of the first host address of the current network node carries a multicast segment identifier and sets a corresponding multicast flag bit, as well as tag bit information coordinated with the multicast segment identifier. The multicast flag bit is used to indicate the multicast capability of the current network node. The multicast flag bit is set or cleared accordingly with the tag bit coordinated with the multicast segment identifier, supporting multicast forwarding traffic by network nodes in a segment routing label network.
[0034] Referring to Figure 2, in one embodiment, a network node that supports ISIS (Intermediate system to intermediate system) segment routing can carry the prefix segment identifier TLV as shown in Figure 2 in the announced extended IP reachability TLV (TLV-135), multi-topology IPv4 IP reachability TLV (TLV-235), IPv6 IP reachability TLV (TLV-236), and multi-topology IPv6 IP reachability TLV (TLV-237), and add a multicast flag bit (M, multicast) in the flag field of the prefix segment identifier TLV (Type-Length-Value).
[0035] The network node is configured with a local IPv4 or IPv6 host address, a multicast segment identifier for the host address, and advertises the host address in ISIS. The corresponding reachability TLV (TLV-135 and TLV-235 for IPv4 and TLV-236 and TLV-237 for IPv6) advertises the host address and sets the M flag in the flags field of the prefix segment identifier sub-TLV it carries.
[0036] In addition to the M flag being set, the Prefix Segment Identifier sub-TLV also needs to have the N flag set, the P flag set, and the E flag cleared. The N flag is set to associate the multicast segment identifier with a unique network node, while the P flag is set and the E flag is cleared to prevent the penultimate hop from popping out and retain the outermost multicast segment identifier for continued forwarding.
[0037] In the embodiment shown in FIG. 2 , the mark bit information includes not only the setting information of the multicast flag bit M, but also the corresponding setting or clearing information of the supporting flag fields such as N, P, and E.
[0038] 7 , in one embodiment, a network node supporting BGP (Border Gateway Protocol) segment routing carries the BGP prefix segment identifier TLV shown in FIG7 in the network layer reachability information announced by the IPv4 / IPv6 labeled unicast address family, and a multicast (M) flag bit is added to the flag field of the prefix segment identifier.
[0039] The network node is configured with a local IPv4 / IPv6 host address, a multicast segment identifier for the address, and advertises the address under the IPv4 / IPv6 labeled unicast address family of BGP. The corresponding labeled unicast address family network layer reachability information is advertised for the host address, and the multicast flag in the flag field of the prefix segment identifier carried by the host address is set.
[0040] In the embodiment shown in FIG. 7 , the mark bit information is the setting information of the multicast flag bit M.
[0041] An embodiment of the present application provides a method for supporting segment routing label network multicast. In one embodiment of the method for supporting segment routing label network multicast, notifying other network nodes in the segment routing label network of a first host address of a current network node includes:
[0042] Carrying a multicast segment identifier in the routing prefix corresponding to the first host address of the current network node;
[0043] The first multicast segment identifier of the current network node is announced to other network nodes in the segment routing label network by announcing the routing prefix.
[0044] When announcing the first host address of the current network node to other network nodes in the segment routing label network, the multicast segment identifier is included in the routing prefix corresponding to the first host address of the current network node. By announcing the routing prefix to other network nodes in the segment routing label network, the first multicast segment identifier of the current network node is announced to the other network nodes. In other words, the multicast segment identifier is included in the routing prefix corresponding to the host address, thereby completing the announcement of the first multicast segment identifier of the current network node in the segment routing label network.
[0045] Exemplarily, carrying the multicast segment identifier in the routing prefix corresponding to the first host address of the current network node includes:
[0046] When the gateway protocol is ISIS or OSPF, the prefix segment identifier sub-TLV is carried in the routing prefix TLV corresponding to the gateway protocol; wherein the prefix segment identifier sub-TLV carries the multicast segment identifier and sets the multicast flag bit;
[0047] When the gateway protocol is the BGP protocol, the network layer reachability information corresponding to the routing prefix carries a prefix segment identifier TLV; wherein the prefix segment identifier TLV carries a multicast segment identifier and sets the multicast flag bit.
[0048] 2 , a network node supporting ISIS segment routing carries the prefix segment identifier TLV as shown in FIG2 in the advertised extended IP reachability TLV (TLV-135), multi-topology IPv4 IP reachability TLV (TLV-235), IPv6 IP reachability TLV (TLV-236), and multi-topology IPv6 IP reachability TLV (TLV-237), i.e., carries the prefix segment identifier TLV in the reachability TLV, and adds a multicast (M, multicast) flag bit to the flag field of the prefix segment identifier TLV. The multicast flag bit can be set at a position including but not limited to index=6 of the Flags field, or can be set at other agreed field positions.
[0049] 3 and 4 , a network node supporting OSPF (Open Shortest Path First) v2 segment routing carries the extended prefix TLV shown in FIG3 in the advertised extended prefix opaque link state advertisement (Extended Prefix Opaque Link State Advertisement). The extended prefix TLV in FIG3 carries the prefix segment identifier sub-TLV shown in FIG4 , and a multicast (MC) flag is added to the flag field of the prefix segment identifier sub-TLV. The multicast flag can be set at index = 6 of the Flags field, including but not limited to, or at other agreed field positions.
[0050] The network node is configured with a local IPv4 host address, a multicast segment identifier for this host address, and advertised in OSPFv2. The extended prefix TLV advertises this host address and sets the multicast MC flag in the flags field of the prefix segment identifier sub-TLV it carries, as well as the N flag in the flags field of the extended prefix TLV itself. The NP flag in the prefix segment identifier sub-TLV with the MC flag set must also be set, and the E flag cleared. Setting the NP flag and clearing the E flag disables popping of the penultimate hop, retaining the outermost label for forwarding.
[0051] Network nodes along the multicast forwarding path determine whether to forward the traffic as multicast or unicast by checking whether the traffic's outermost multicast segment identifier is equal to the multicast segment identifier it advertises. The remaining flag bits in the Prefix Segment Identifier sub-TLV are used in the same manner as conventional OSPFv2 segment routing. The N flag in the Flags field of the Extended Prefix TLV itself indicates that the prefix corresponds to a unique network node.
[0052] 5 and 6, the network nodes supporting OSPFv3 segment routing carry the intra-domain prefix TLV, inter-domain prefix TLV and external prefix TLV shown in FIG5 , respectively, in the announced extended intra-domain prefix link state advertisement (E-Intra-Area-Prefix-LSA), extended inter-domain prefix link state advertisement (E-Inter-Area-Prefix-LSA), extended autonomous domain external link state advertisement and extended non-completely stubby area link state advertisement (E-AS-External-LSA and E-NSSA-LSA). Each prefix TLV in FIG5 can carry the prefix segment identifier sub-TLV as shown in FIG6 , and a multicast (MC) flag bit is newly added to the flag field of the prefix segment identifier sub-TLV. Among them, the multicast flag bit can be set at the index=6 position including but not limited to the Flags field, and can also be set at other agreed field positions.
[0053] The network node is configured with a local IPv6 host address, a multicast segment identifier for this address, and advertises this host address in OSPFv3. The Prefix TLV advertises this host address and sets the multicast MC flag in the Flags field of the Prefix Segment Identifier sub-TLV it carries, as well as the N flag in the Prefix Options field of the Prefix TLV itself. The Prefix Segment Identifier sub-TLV sets the MC flag in the Flags field, the NP flag, and the E flag. Setting the NP flag and the E flag disables popping of the penultimate hop, retaining the outermost label for forwarding.
[0054] Network nodes along the multicast forwarding path determine whether to forward the traffic as multicast or unicast by checking whether the traffic's outermost multicast segment identifier is equal to the multicast segment identifier it advertises. The remaining flag bits in the Prefix Segment Identifier sub-TLV are used in the same manner as conventional OSPFv3 segment routing. The N flag in the Prefix Options field of the Prefix TLV itself indicates that the prefix is unique to a single network node.
[0055] Referring to Figure 7 , a network node supporting BGP segment routing carries the BGP Prefix Segment Identifier TLV shown in Figure 7 in the network layer reachability information advertised by the IPv4 / IPv6 labeled unicast address family. A multicast (M) flag bit is newly added to the Flags field of the Prefix Segment Identifier. The multicast flag bit can be set at, including but not limited to, index = 0 of the Flags field, or at other agreed field locations.
[0056] The network node is configured with a local IPv4 / IPv6 host address, a multicast segment identifier for the address, and advertises the address under the IPv4 / IPv6 labeled unicast address family of BGP. The corresponding labeled unicast address family network layer reachability information is advertised for the host address, and the multicast flag in the flag field of the prefix segment identifier carried by the host address is set.
[0057] In this embodiment, the host address is announced under ISIS. The TLV used by ISIS to announce the prefix information carries the prefix segment identifier sub-TLV, wherein a multicast flag bit is newly added to the flag field of the prefix segment identifier sub-TLV, and the newly added multicast flag bit will be set.
[0058] The host address is advertised in OSPF. OSPFv2 carries the Prefix-Segment Identifier TLV in the Extended Prefix TLV of the Opaque Link-State Advertisement (Opaque LSA). OSPFv3 carries the Prefix-Segment Identifier TLV in the Intra-Domain Prefix TLV, Inter-Domain Prefix TLV, and External Prefix TLV of the Extended LSA. A multicast flag bit is added to the Flags field of the Prefix-Segment Identifier TLV and is set.
[0059] The host address is advertised under the BGP label address family. BGP carries the prefix segment identifier TLV in the network layer reachability information. A multicast flag bit is added to the flag field of the prefix segment identifier TLV, and the newly added multicast flag bit is set.
[0060] This standard clearly defines the distribution of multicast segment identifiers and provides clear guidance for IS-IS, OSPF, and BGP in distributing multicast segment identifiers. Network nodes advertise multicast segment identifiers to support segment-routed multicast traffic in segment-routed label networks.
[0061] An embodiment of the present application provides a method for supporting segment routing label network multicast. In one embodiment of the method for supporting segment routing label network multicast, the method further includes:
[0062] Step B: obtaining a routing prefix of a second host address advertised by other network nodes in the segment routing label network, obtaining a second multicast segment identifier corresponding to the other network node based on the second host address, and generating a unicast forwarding entry based on the second multicast segment identifier;
[0063] The unicast forwarding entry is used to instruct the current network node to unicast forward the second traffic, where the second traffic is traffic whose forwarding information matches the second multicast segment identifier.
[0064] In this embodiment, a method for learning a multicast segment identifier carried in a routing prefix is provided, wherein the network node's notification and learning can be performed simultaneously, with no restriction on the order of the two.
[0065] After receiving the routing prefix of the second host address sent by other network nodes in the segmented routing label network, the second multicast segment identifier corresponding to the other network node is obtained according to the second host address corresponding to the routing prefix, and a unicast forwarding table entry is generated based on the second multicast segment identifier to instruct the current network node to unicast forward the received second traffic, wherein the second traffic is the traffic whose forwarding information matches the second multicast segment identifier.
[0066] In one embodiment, if the current network node cannot recognize the multicast flag bit set in the prefix segment identifier, that is, it cannot understand the meaning of the extended multicast flag bit from the existing protocol, according to the conventional support for segment routing in the ISIS, OSPF and BGP protocols, the multicast segment identifier will be treated as an ordinary unicast prefix segment identifier, a unicast forwarding table entry will be generated for it, and the received second traffic will be forwarded in a unicast manner. If, however, the device can understand the multicast flag bit set in the prefix segment identifier, that is, it can understand the meaning of the multicast flag bit in the pre-agreed designated bit position, in addition to generating a unicast forwarding table entry for the multicast segment identifier, it will record that the multicast segment identifier is not used for unicast LFA (Loop Free Alternate) calculation, and unicast traffic originating from the current network node will not use the multicast segment identifier. When the outermost label of the received traffic is equal to the non-locally advertised multicast segment identifier, it will be forwarded in a unicast manner based on the generated unicast forwarding table entry.
[0067] In this embodiment, by setting a learning rule for the multicast segment identifier carried in the routing prefix, it supports segment routing-based multicast traffic in a segment routing label network.
[0068] An embodiment of the present application provides a method for supporting segment routing label network multicast. In one embodiment of the method for supporting segment routing label network multicast, after generating a unicast forwarding entry based on a second multicast segment identifier, the method includes:
[0069] Step C: Receive traffic and parse it to obtain forwarding information of the traffic, including the outermost multicast segment identifier of the traffic encapsulation;
[0070] Step E: When the processing node indicated by the outermost multicast segment identifier is not the current network node, unicast forwarding traffic according to the unicast forwarding table entry corresponding to the outermost multicast segment identifier;
[0071] Step F: When the processing node indicated by the outermost multicast segment identifier is the current network node, multicast forwarding traffic.
[0072] In this embodiment, a method for a network node to process received traffic is provided.
[0073] After each network node in the segment routing label network completes the advertising and learning of multicast segment identifiers, the current network node receives traffic encapsulated with a multicast segment list. If the processing node indicated by the outermost multicast segment identifier in the multicast segment list is not the current network node, the traffic is unicast-forwarded to the network node indicated by the outermost multicast segment identifier via the unicast forwarding table entry corresponding to the outermost multicast segment identifier. If the processing node indicated by the outermost multicast segment identifier is the current network node, the traffic is multicast-forwarded to one or more network nodes indicated by the forwarding structure in the multicast segment list.
[0074] Exemplarily, after receiving traffic and parsing to obtain forwarding information of the traffic, the following steps are included:
[0075] Step D1: after determining that the outermost multicast segment identifier is different from the multicast segment identifier corresponding to the current network node, determining that the processing node indicated by the outermost multicast segment identifier is not the current network node;
[0076] Step D2: After determining that the outermost multicast segment identifier is the same as the multicast segment identifier corresponding to the current network node, determine that the processing node indicated by the outermost multicast segment identifier is the current network node.
[0077] After receiving the traffic and parsing the traffic forwarding information, and before determining whether to unicast forward or multicast forward the traffic, it is determined whether the processing node indicated by the outermost multicast segment identifier of the traffic encapsulation included in the traffic forwarding information is the current network node.
[0078] If the outermost multicast segment identifier is different from the multicast segment identifier corresponding to the current network node, it can be determined that the processing node indicated by the outermost multicast segment identifier is not the current network node; correspondingly, if the outermost multicast segment identifier is the same as the multicast segment identifier corresponding to the current network node, it can be determined that the processing node indicated by the outermost multicast segment identifier is the current network node.
[0079] In this embodiment, by setting a forwarding processing rule based on a multicast segment identifier, it is possible to support segment routing-based multicast traffic in a segment routing label network.
[0080] An embodiment of the present application provides a method for supporting segment routing label network multicast. In one embodiment of the method for supporting segment routing label network multicast, before multicast forwarding traffic, the method further includes:
[0081] Step F1: Determine the traffic type corresponding to the traffic;
[0082] Step F2: When the traffic type is determined to be unicast traffic, the traffic is forwarded in a unicast manner.
[0083] Step F3: when the traffic type is determined to be multicast traffic, multicast forwarding the traffic;
[0084] In this embodiment, a method for detecting and correspondingly handling misuse of a multicast segment identifier by a node that does not support segment routing multicast forwarding capabilities in a segment routing label network is provided.
[0085] Because network nodes that do not support multicast segment identifiers may exist in a segment routing label network, these nodes mistakenly use multicast segment identifiers as ordinary unicast segment identifiers. Therefore, when a network node that supports multicast segment identifiers receives traffic with the outermost segment identifier equal to the locally advertised multicast segment identifier, it may still be unicast traffic.
[0086] Therefore, in this embodiment, after determining that the processing node indicated by the outermost multicast segment identifier of the traffic is the current network node and before multicast forwarding the traffic, the traffic type is judged to determine whether the multicast segment identifier is misused.
[0087] Determine the traffic type. If the traffic type is multicast traffic, determine that there is no misuse of the multicast segment identifier and forward the traffic by multicast. If the traffic type is unicast traffic, determine that there is misuse of the identifier and forward the traffic by unicast.
[0088] Referring to Figure 8, the multicast segment identifier forwarding structure includes a multicast segment identifier, a next hop node index Next Hop Index of the node indicated by the multicast segment identifier, and a sibling node index Sibling Index; the multicast segment identifier is used to indicate a unique network node in a segment routing label network; the next hop node index is used to indicate the position of the multicast segment identifier forwarding structure of the first downstream node of the node indicated by the multicast segment identifier in the multicast segment list; the sibling node index is used to indicate the position of the multicast segment identifier forwarding structure of the sibling node having the same parent node as the node indicated by the multicast segment identifier in the multicast segment list; the multicast segment identifier forwarding structure is used to determine the child multicast segment list corresponding to the independent downstream subtree of the node.
[0089] The first 32 bits of the multicast segment identifier forwarding structure are a standard label structure, the first 16 bits of the second 32 bits are the next hop node index, and the last 16 bits of the second 32 bits are the sibling node index. As the outermost multicast segment identifier forwarding structure, the valid values of its next hop node index are only the first preset value and the second preset value, and the valid value of its sibling node index is only the first preset value. In one implementation, the first preset value is 0x0000 and the second preset value is 0x0002. The first preset value indicates that the current network node has no other downstream independent subtrees, and the second preset value indicates the position of the root node of the first independent downstream subtree of the current network node in the multicast segment list. When the outermost multicast segment identifier is the same as the multicast segment identifier corresponding to the current network node, and the subsequent 32 bits are the third preset value or the fourth preset value, the traffic type is determined to be multicast traffic. In other cases, the traffic type is determined to be unicast traffic. In one implementation, the third preset value is 0x00000000, and the fourth preset value is 0x00020000, because the third preset value and the fourth preset value cannot be a valid label structure, nor can they be a valid IP header and Ethernet header.
[0090] In this embodiment, by setting detection and corresponding processing rules and methods for misuse of multicast segment identifiers, segment routing-based multicast traffic is supported in a segment routing label network.
[0091] In this embodiment, a clear definition is given to the distribution and learning of multicast segment identifiers. Network nodes advertise and learn multicast segment identifiers, thereby supporting segment routing-based multicast traffic in a segment routing label network.
[0092] In addition, an embodiment of the present application also provides a support device for segmented routing label network multicast, which includes: a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the computer program is executed by the processor, the steps of the above-mentioned method for supporting segmented routing label network multicast are implemented.
[0093] In addition, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for supporting segment routing label network multicast as described above are implemented.
[0094] Refer to Figure 9, which is a schematic diagram of the operating device structure of the hardware operating environment involved in the embodiment of the present application.
[0095] As shown in Figure 9, the operating device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may include a standard wired interface and a wireless interface (such as a wireless fidelity (WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) or a stable non-volatile memory (NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0096] Those skilled in the art will appreciate that the structure shown in FIG9 does not constitute a limitation on the operating device, and may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components.
[0097] As shown in FIG9 , the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a computer program.
[0098] In the operating device shown in FIG9 , the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the operating device of the present application can be set in the operating device, and the operating device calls the computer program stored in the memory 1005 through the processor 1001 and performs the following operations:
[0099] Notifying the first host address of the current network node to other network nodes in the segment routing label network;
[0100] Among them, the first host address is configured with the first multicast segment identifier of the current network node, and the first multicast segment identifier is used to instruct the current network node to multicast forward the first traffic, and to instruct other network nodes in the segment routing label network to unicast forward the first traffic. The first traffic is the traffic whose forwarding information matches the first multicast segment identifier.
[0101] In one embodiment, the first host address further includes a multicast flag bit corresponding to the multicast segment identifier and tag bit information coordinated with the multicast segment identifier; wherein the multicast flag bit is used to represent the multicast capability of the current network node.
[0102] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:
[0103] Advertises the primary host address of the current network node to other network nodes in the segment routing label network, including:
[0104] Carrying a multicast segment identifier in the routing prefix corresponding to the first host address of the current network node;
[0105] The first multicast segment identifier of the current network node is announced to other network nodes in the segment routing label network by announcing the routing prefix.
[0106] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:
[0107] The multicast segment identifier is carried in the routing prefix corresponding to the first host address of the current network node, including:
[0108] When the gateway protocol is ISIS or OSPF, the prefix segment identifier sub-TLV is carried in the routing prefix TLV corresponding to the gateway protocol; wherein the prefix segment identifier sub-TLV carries the multicast segment identifier and sets the multicast flag bit;
[0109] When the gateway protocol is BGP, the network layer reachability information corresponding to the routing prefix carries a prefix segment identifier TLV. The prefix segment identifier TLV carries a multicast segment identifier and sets a multicast flag bit.
[0110] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:
[0111] Obtaining a routing prefix of a second host address advertised by other network nodes in the segment routing label network, obtaining a second multicast segment identifier corresponding to the other network node based on the second host address, and generating a unicast forwarding table entry based on the second multicast segment identifier;
[0112] The unicast forwarding entry is used to instruct the current network node to unicast forward the second traffic, where the second traffic is traffic whose forwarding information matches the second multicast segment identifier.
[0113] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:
[0114] After the unicast forwarding entry is generated based on the second multicast segment identifier, the method includes:
[0115] Receive traffic and parse it to obtain forwarding information of the traffic, including the outermost multicast segment identifier of the traffic encapsulation;
[0116] In a case where the processing node indicated by the outermost multicast segment identifier is not the current network node, unicast forwarding the traffic through the unicast forwarding table entry corresponding to the outermost multicast segment identifier;
[0117] In the case where the processing node indicated by the outermost multicast segment identifier is the current network node, the multicast forwarding traffic is performed.
[0118] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:
[0119] After receiving traffic and parsing it to obtain forwarding information, it includes:
[0120] After determining that the outermost multicast segment identifier is different from the multicast segment identifier corresponding to the current network node, determining that the processing node indicated by the outermost multicast segment identifier is not the current network node;
[0121] After determining that the outermost multicast segment identifier is the same as the multicast segment identifier corresponding to the current network node, it is determined that the processing node indicated by the outermost multicast segment identifier is the current network node.
[0122] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:
[0123] Before multicast traffic is forwarded, it also includes:
[0124] Determine the traffic type of the traffic;
[0125] When the traffic type is determined to be unicast traffic, the traffic is forwarded unicast;
[0126] If the traffic type is determined to be multicast traffic, the traffic is forwarded in multicast mode.
[0127] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to conventional technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network node, etc.) to execute the methods described in each embodiment of the present application.
[0129] The above are merely optional embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for supporting segment routing label network multicast, wherein: The method is applied to a network node that performs a multicast forwarding operation in a segment routing label network, and the method comprises: Notifying other network nodes in the segment routing label network of a first host address of the current network node; Among them, the first host address is configured with the first multicast segment identifier of the current network node, the first multicast segment identifier is set to indicate that the current network node multicast forwards the first traffic, and is set to indicate other network nodes in the segment routing label network unicast forward the first traffic, and the first traffic is the traffic whose forwarding information matches the first multicast segment identifier.
2. The method for supporting segment routing label network multicast according to claim 1, wherein: The first host address also includes a multicast flag bit corresponding to the multicast segment identifier and mark bit information coordinated with the multicast segment identifier; wherein the multicast flag bit is set to represent the multicast capability of the current network node.
3. The method for supporting segment routing label network multicast according to claim 1, wherein: The notifying the first host address of the current network node to other network nodes in the segment routing label network includes: Carrying the multicast segment identifier in a routing prefix corresponding to the first host address of the current network node; The routing prefix is notified to other network nodes in the segment routing label network, so as to notify the other network nodes of the first multicast segment identifier of the current network node.
4. The method for supporting segment routing label network multicast according to claim 3, wherein: The carrying of the multicast segment identifier in the routing prefix corresponding to the first host address of the current network node includes: In the case where the gateway protocol is the ISIS protocol or the OSPF protocol, a prefix segment identifier sub-TLV is carried in the routing prefix TLV corresponding to the corresponding gateway protocol; wherein the prefix segment identifier sub-TLV carries a multicast segment identifier and sets a multicast flag bit; When the gateway protocol is the BGP protocol, the network layer reachability information corresponding to the routing prefix carries a prefix segment identifier TLV; wherein the prefix segment identifier TLV carries a multicast segment identifier and sets a multicast flag bit.
5. The method for supporting segment routing label network multicast according to claim 1, wherein: The method further comprises: Acquire a routing prefix of a second host address advertised by other network nodes in the segment routing label network, obtain a second multicast segment identifier corresponding to the other network node based on the second host address, and generate a unicast forwarding table entry based on the second multicast segment identifier; The unicast forwarding table entry is configured to instruct the current network node to unicast forward the second traffic, where the second traffic is the traffic whose forwarding information matches the second multicast segment identifier.
6. The method for supporting segment routing label network multicast according to claim 5, wherein: After the unicast forwarding entry is generated based on the second multicast segment identifier, the method includes: Receive traffic and parse to obtain forwarding information of the traffic, wherein the forwarding information includes an outermost multicast segment identifier of the traffic encapsulation; In a case where the processing node indicated by the outermost multicast segment identifier is not the current network node, unicast forwarding the traffic through a unicast forwarding table entry corresponding to the outermost multicast segment identifier; In the case where the processing node indicated by the outermost multicast segment identifier is the current network node, the traffic is forwarded by multicast.
7. The method for supporting segment routing label network multicast according to claim 6, wherein: After receiving the traffic and parsing to obtain the forwarding information of the traffic, the following steps are included: After determining that the outermost multicast segment identifier is different from the multicast segment identifier corresponding to the current network node, determining that the processing node indicated by the outermost multicast segment identifier is not the current network node; After determining that the outermost multicast segment identifier is the same as the multicast segment identifier corresponding to the current network node, it is determined that the processing node indicated by the outermost multicast segment identifier is the current network node.
8. The method for supporting segment routing label network multicast according to claim 6, wherein: Before the multicast forwarding of the traffic, the method further includes: determining a flow type of the flow; In the case where it is determined that the traffic type is unicast traffic, unicast forwarding the traffic; In the case where it is determined that the traffic type is multicast traffic, the traffic is forwarded by multicast.
9. A device for supporting segment routing label network multicast, wherein: The supporting device for segment routing label network multicast includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the supporting method for segment routing label network multicast as described in any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium, wherein: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for supporting segment routing label network multicast according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Method and controller for realizing segmented routing and computer readable storage medium
CN109962850A
Multicast method and routing equipment
CN111181855A
Multicast systems and methods for Segment Routing
US20180324090A1
Communication method based on segment routing over internet protocol version 6 (SRV6)
WO2023011149A1
Compact segment routing multicast for ipv6
WO2023288146A2
