Detailed Description
In order to solve the problems in the prior art, the invention provides a method, equipment and a storage medium for notifying a BIER-MPLS label, which can notify a discontinuous label to the outside when the maximum value of SI in sub-domain, BSL and SI information changes and the equipment cannot continuously allocate a label in a larger range on the original label, thereby avoiding the influence on the forwarding of the original BIER message in the whole BIER domain.
The present invention will be described in further detail below with reference to the drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Example one
As shown in fig. 1, an embodiment of the present invention provides a method for advertising a BIER-MPLS label, where the method includes:
s101, dividing a plurality of BIER-MPLS labels into at least 2 label intervals;
s102, the label intervals are announced through a routing protocol.
The embodiment of the invention divides a plurality of BIER-MPLS labels into at least 2 label intervals, and respectively announces each label interval through the routing protocol, thereby being capable of announcing the newly added BIER-MPLS labels in the network on the premise of not changing the announcement of the original BIER-MPLS labels when the value range of SI is enlarged, thereby effectively solving the problem of multicast data message forwarding cutoff caused by the change of the value range of SI, and further not influencing the original BIER message forwarding.
The embodiment of the invention is used for BFR equipment (equipment for short), and comprises BFIR and BFER.
On the basis of the above embodiment, a modification of the above embodiment is further proposed.
In the embodiment of the present invention, optionally, the label value of the BIER-MPLS label in each label interval is in a continuous state.
In the embodiment of the present invention, optionally, the label values of the BIER-MPLS labels in any two label intervals do not overlap.
In this embodiment of the present invention, optionally, the dividing the multiple BIER-MPLS labels into at least 2 label intervals includes:
when the label values of the plurality of BIER-MPLS labels are not continuous, the plurality of BIER-MPLS labels are divided into at least 2 label intervals.
In this embodiment of the present invention, optionally, the separately advertising each tag interval by a routing protocol includes:
for any tag interval: setting BIER-MPLS label information of the label interval in the routing protocol;
advertising the BIER-MPLS label information through the routing protocol.
Wherein, the BIER-MPLS Label information at least carries a starting set identifier si (si Base) of the BIER-MPLS Label, a starting Label value (Label Range Base) of the BIER-MPLS Label, and a Range length (Label Range Size) of the BIER-MPLS Label in the Label interval.
Specifically, the BIER-MPLS Label information may adopt the following format < SI Base, Label Range Size >.
Further, the method further comprises:
and determining the value range of the SI according to the range length of the BIER-MPLS label.
Further, in the embodiment of the present invention, when the routing protocol advertises the BIER-MPLS Label, it uses < SI Base, Label Range Size > information (i.e. BIER-MPLS Label information) to advertise, where the information is used to identify the starting SI information corresponding to the BIER-MPLS Label in the Label interval, and the Label Range Size not only determines the Range of taking the Label (BIER-MPLS Label) but also determines the Range of taking the SI Base as the start.
In the embodiment of the invention, when the labels allocated to the Sub-domain, BSL and SI by the equipment are discontinuous, the BIER-MPLS labels are divided into a plurality of label intervals through the SI Base and are respectively notified, wherein the values of the BIER-MPLS labels in each interval are continuous.
In the embodiment of the invention, when the equipment announces the BIER-MPLS information corresponding to the same < Sub-domain, BSL > combination in a segmented mode, the ranges of SI segments are not overlapped.
In the embodiment of the invention, when the equipment announces the BIER-MPLS information corresponding to the same < Sub-domain, BSL > combination in a segmentation mode, the ranges of label values (also called label values) corresponding to SI segments are not overlapped, and the label values are all effective MPLS label values.
For example, the device advertises BIER-MPLS Label information of 1 domain and 256 BSL, where the maximum SI value is 6, the device assigns a Label [10000, 10003] for the SI value Range [0, 3], assigns a Label [20000, 20002] for the SI value Range [4, 6], and when the routing protocol advertises externally, the routing protocol generates two pieces of information of SI Base, Label Range Base, and Label Range Size, where the two pieces of information are respectively advertized by the routing protocol
<SI Base=0,Lable Range Base=10000,Label Range Size=4>;
<SI Base=4,Lable Range Base=20000,Label Range Size=3>。
The notification mode adopted by the embodiment of the invention can notify the newly added BIER-MPLS label in the network on the premise of not changing the notification of the original BIER-MPLS label when the value range of the SI is enlarged, thereby not influencing the forwarding of the original BIER message.
Specifically, the setting of the BIER-MPLS label information of the label interval in the routing protocol includes:
extending TLV (type, length, value) in the routing protocol, and setting the BIER-MPLS label information in the TLV.
For example, as shown in fig. 1, sub-sub-TLV advertising BIER-MPLS label information IS extended in a routing protocol (e.g., IS-IS protocol), and the sub-sub-TLV format has the following field meanings:
type: the sub-sub-TLV type of BIER-MPLS is announced in a segmented mode, and 1 byte is announced;
length: the sub-sub-TLV length is 1 byte;
rsv: reserved field, 4 bits;
BSL: BSL information corresponding to the announced BIER-MPLS information has 4 bits;
SI Base: 1 byte of initial SI information corresponding to the announced BIER-MPLS information;
lbl Range Size: the label value interval range (i.e. range length) of the advertised BIER-MPLS information, 1 byte;
label Range Base: the initial label value of the announced BIER-MPLS information is 3 bytes, and the rightmost 20 bits of the initial label value are effective label values.
As another example, as shown in fig. 2, a sub-TLV is extended in a routing protocol (e.g., OSPF protocol) to advertise BIER-MPLS label information, where each field of the sub-TLV format has the following meaning:
type: newly adding OSPF subsection notice BIER-MPLS sub-TLV type, 2 bytes;
length: the sub-TLV length, 2 bytes;
BSL: 1 byte of BSL information corresponding to the announced BIER-MPLS information;
SI Base: 1 byte of initial SI information corresponding to the announced BIER-MPLS information;
lbl Range Size: the label value interval range of the announced BIER-MPLS information is 1 byte;
the Label Range Base is the initial Label value of the BIER-MPLS information announced, 3 bytes, and the rightmost 20 bits are effective Label values.
As shown in fig. 3, sub-TLV advertisement BIER-MPLS label information is extended from a routing protocol (e.g., BGP protocol), and the meaning of each field of the sub-TLV format is:
type: newly adding BGP subsection notice BIER-MPLS sub-TLV type, 2 bytes;
length: the sub-TLV length is 2 bytes, and the value is 12;
BSL: 1 byte of BSL information corresponding to the announced BIER-MPLS information;
SI Base: 1 byte of initial SI information corresponding to the announced BIER-MPLS information;
lbl Range Size: the interval range of the announced BIER-MPLS information is 1 byte;
label Range Base: the initial label value of the announced BIER-MPLS information is 3 bytes, and the rightmost 20 bits of the initial label value are effective label values.
Example two
An embodiment of the present invention provides a bit-wise forwarding router device, where the device includes a memory and a processor, where the memory stores a computer program for advertising a BIER-MPLS label, and the processor executes the computer program to implement the steps of the method according to any one of the embodiments.
The embodiment of the invention divides a plurality of BIER-MPLS labels into at least 2 label intervals, and respectively announces each label interval through the routing protocol, thereby being capable of announcing the newly added BIER-MPLS labels in the network on the premise of not changing the announcement of the original BIER-MPLS labels when the value range of SI is enlarged, thereby effectively solving the problem of multicast data message forwarding cutoff caused by the change of the value range of SI, and further not influencing the original BIER message forwarding.
In detail, the processor executes the computer program to realize the following steps:
dividing a plurality of BIER-MPLS labels into at least 2 label intervals;
and respectively advertising each label interval through a routing protocol.
Optionally, the label value of the BIER-MPLS label in each label interval is in a continuous state.
Optionally, the label values of the BIER-MPLS labels in any two label intervals do not overlap.
Optionally, the dividing the plurality of BIER-MPLS labels into at least 2 label intervals includes:
when the label values of the plurality of BIER-MPLS labels are not continuous, the plurality of BIER-MPLS labels are divided into at least 2 label intervals.
Optionally, the advertising each label interval by the routing protocol includes:
for any tag interval: setting BIER-MPLS label information of the label interval in the routing protocol;
advertising the BIER-MPLS label information through the routing protocol.
Wherein, the BIER-MPLS label information at least carries the initial set identifier SI of the BIER-MPLS label, the initial label value of the BIER-MPLS label and the range length of the BIER-MPLS label in the label interval.
Further, the following steps are also implemented:
and determining the value range of the SI according to the range length of the BIER-MPLS label.
Specifically, the setting of BIER-MPLS label information of the label interval in the routing protocol includes:
extending TLVs in the routing protocol in which the BIER-MPLS label information is set.
Of course, in the specific implementation of the embodiment of the present invention, reference may be made to the first embodiment, and corresponding technical effects may also be achieved.
EXAMPLE III
The present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by at least one processor, the computer program implements the steps of the method according to any one of the embodiments.
Computer-readable storage media in embodiments of the invention may be RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium; or the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit.
Of course, when the embodiment of the present invention is specifically implemented, reference may be made to the first embodiment and the second embodiment, and corresponding technical effects are also provided.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.