Priorities and Preemption

Priorities and preemption are used to allow TE tunnels to be established preferentially to transmit important services, preventing resource competition during tunnel establishment.

If there is no path meeting the bandwidth requirement of a desired tunnel, a device can tear down an established tunnel and use bandwidth resources assigned to that tunnel to establish a desired tunnel. This is called preemption. The following preemption modes are supported:
  • Hard preemption: A CR-LSP with a higher priority can directly delete preempted resources assigned to a CR-LSP with a lower priority. Some traffic is dropped on the CR-LSP with a lower priority during the hard preemption process. The CR-LSP with a lower priority is immediately deleted after its resources are preempted.
  • Soft preemption: A CR-LSP with a higher priority can directly preempt resources assigned to a CR-LSP with a lower priority, but the CR-LSP with a lower priority is not deleted immediately after its resources are preempted. During the soft preemption process, the bandwidth assigned to the CR-LSP with a lower priority gradually decreases to 0 kbit/s. Some traffic is forwarded while some may be dropped on the CR-LSP with a lower priority. The CR-LSP with a lower priority is deleted after the soft preemption timer expires.

CR-LSPs use setup and holding priorities to determine whether to preempt resources. Both the setup and holding priority values range from 0 to 7. The smaller the value, the higher the priority. If only the setup priority is configured, the value of the holding priority is equal to that of the setup priority. The setup priority must be lower than or equal to the holding priority for a tunnel.

The priority and preemption attributes are used in conjunction to determine resource preemption among tunnels. If multiple CR-LSPs are to be established, CR-LSPs with high priorities can be established 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.

Figure 1 shows the bandwidth of each link. Two TE tunnels are established.
  • Tunnel 1: established over the path LSRA → LSRF → LSRD. Its bandwidth is 155 Mbit/s, and its setup and holding priority values are 0.
  • Tunnel 2: established over the path LSRB → LSRF → LSRC. Its bandwidth is 155 Mbit/s, and its setup and holding priority values are 7.
If the link between LSRF and LSRD fails, LSRA recalculates a path LSRA → LSRF → LSRC → LSRE → LSRD for tunnel 1. The link between LSRF and LSRC is shared by tunnels 1 and 2, but has insufficient bandwidth for these two tunnels. As a result, preemption is triggered.
Figure 1 Preemption based on priorities
  • If hard preemption is used, since Tunnel 1 has a higher priority than Tunnel 2, LSRF sends an RSVP message to tear down Tunnel 2. As a result, some traffic on Tunnel 2 is dropped if Tunnel 2 is transmitting traffic.
  • In soft preemption mode, Tunnel 2 is reestablished along the path LSRB → LSRD → LSRE → LSRC if LSRB does not tear down original Tunnel 2 after receiving a Resv message from LSRF. Original Tunnel 2 is torn down after traffic switchover is complete.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >