On a label switched path (LSP), traffic forwarding is determined by the labels added to packets by the ingress node of the LSP. An LSP can be considered as a tunnel because traffic is transparently transmitted on intermediate nodes along the LSP.
Figure 1 illustrates the preceding terms. Two LSPs are available on the network. The path LSRA->LSRB->LSRC->LSRD->LSRE is the primary LSP with an LSP ID of 2. The path LSRA->LSRF->LSRG->LSRH->LSRE is the backup LSP with an LSP ID of 1024. The two LSPs form an MPLS TE tunnel with a tunnel ID of 100, and the tunnel interface is Tunnel1.
Total link bandwidth
Bandwidth of a physical link.
Maximum reservable bandwidth
Maximum bandwidth that a link can reserve for an MPLS TE tunnel. The maximum reservable bandwidth must be lower than or equal to the total link bandwidth.
TE metric
Cost of a TE link. TE metrics are used to control MPLS TE path calculation, making path calculation more independent of IGP routing. By default, IGP metrics are used as TE metrics.
SRLG
Shared risk link group (SRLG), a group of links that share a physical resource, such as an optical fiber. Links in an SRLG have the same risk. If one link fails, other links in the SRLG also fail.
The SRLG attribute is used in CR-LSP hot standby and TE fast reroute (FRR) to enhance TE tunnel reliability. For details about SRLG, see SRLG.
A 32-bit vector that identifies link attributes, also called a link color. Each bit can be set to 0 or 1 by the network administrator. A link administrative group identifies an attribute, such as the link bandwidth or performance. A link administrative group can also be used for link management. For example, it can identify that an MPLS TE tunnel passes through a link or that a link is transmitting multicast services. The administrative group attribute must be used with the affinity attribute to control path selection.
An MPLS TE tunnel is composed of several constraint-based routed label switched paths (CR-LSPs). The constraints for LSP setup are tunnel attributes.
Bandwidth constraints
Bandwidth constraint is mainly the tunnel bandwidth.
Path constraints
Path constraints include explicit path, priority and preemption, route pinning, affinity attribute, and hop limit.
Constraint-based routing (CR) is a mechanism to create and manage these constraints, which are described in the following:
Tunnel bandwidth
The bandwidth of a tunnel must be planned according to requirements of the services to be transmitted over the tunnel. The planned bandwidth is reserved on the links along the tunnel to provide bandwidth guarantee.
Explicit path
An explicit path is a CR-LSP manually set up by specifying the nodes to pass or avoid. Explicit paths are classified into the following types:
Strict explicit path
On a strict explicit path, all the nodes are manually specified and two consecutive hops must be directly connected. A strict explicit path precisely controls the path of an LSP.
As shown in Figure 2, LSRA is the ingress node, and LSRF is the egress node. An LSP from LSRA to LSRF is set up over a strict explicit path. LSRB Strict indicates that this LSP must pass through LSRB, which is directly connected to LSRA. LSRC Strict indicates that this LSP must pass through LSRC, which is directly connected to LSRB. The rest may be deduced by analogy. In this way, the path that the LSP passes through is precisely controlled.
Loose explicit path
A loose explicit path passes through the specified nodes but allows intermediate nodes between the specified nodes.
As shown in Figure 3, an LSP is set up over a loose explicit path from LSRA to LSRF. LSRD Loose indicates that this LSP must pass through LSRD, but LSRD may not be directly connected to LSRA.
Priority and preemption
Priority and preemption determine resources allocated to MPLS TE tunnels based on the importance of services to be transmitted on the tunnels.
Setup priorities and holding priorities of tunnels determine whether a new tunnel can preempt the resources of existing tunnels. If the setup priority of a new CR-LSP is higher than the holding priority of an existing CR-LSP, the new CR-LSP can occupy resources of the existing CR-LSP. The priority value ranges from 0 to 7, among which the value 0 indicates the highest priority, and the value 7 indicates the lowest priority. The setup priority of a tunnel must be lower than or equal to the holding priority of the tunnel.
The priority and preemption attributes determine resource preemption among tunnels. If multiple CR-LSPs need to be set up, CR-LSPs with higher setup priorities can be set up by preempting resources. If resources (such as bandwidth) are insufficient, a CR-LSP with a higher setup priority can preempt resources of an established CR-LSP with a lower holding priority.
Path locking can prevent a CR-LSP from changing its path when routes change. This feature ensures continuity of service traffic and improves service reliability.
The affinity attribute is a 32-bit vector that specifies the links required for a TE tunnel. This attribute is configured on the ingress node of a tunnel and must be used with the link administrative group attribute.
Among the bits mapping the 1 bit in the mask, at least one administrative group bit and the corresponding affinity bit must be 1. The administrative group bits corresponding to the 0 bits in the affinity attribute must also be 0.
For example, if the affinity attribute is 0x0000FFFF of a tunnel and the mask is 0xFFFFFFFF, the administrative group attribute of an available link must have all 0s in its leftmost 16 bits and at least one 1 bit in its rightmost 16 bits. Therefore, links with the administrative group values in the range of 0x00000001 to 0x0000FFFF can be selected for the tunnel.
An LSR does not check the administrative group bits mapping 0 bits in the mask.
For example, if the affinity attribute of a tunnel is 0xFFFFFFFF and the mask is 0xFFFF0000, the administrative group attribute of an available link must have at least one 1 bit in its leftmost 16 bits. The rightmost 16 bits of the administrative group attribute can be 0 or 1. Therefore, links with the administrative group values in the range of 0x00010000 to 0xFFFFFFFF can be selected for the tunnel.
Devices from different vendors may follow different rules to compare the administrative group and affinity attributes. When using devices from different vendors on your network, understand their implementations and ensure that they can interoperate with one another.
A network administrator can use the administrative group and affinity attributes to control path selection for tunnels.
Hop limit
Hop limit is a condition for path selection during CR-LSP setup. Similar to the administrative group and affinity attributes, hop limit controls the number of hops allowed on a CR-LSP.