Enabling TE FRR and Configuring Attributes for an Automatic Bypass Tunnel
Context
After auto TE FRR is enabled, the system automatically sets up a bypass tunnel for the primary tunnel.
Perform the following configurations on the ingress node of the primary MPLS TE tunnel.
Procedure
- Run system-view
The system view is displayed.
- Run interface tunnel interface-number
The view of the primary tunnel interface is displayed.
- Run mpls te fast-reroute [ bandwidth ]
TE FRR is enabled.
To guarantee the tunnel bandwidth, you must specify the parameter bandwidth.
- (Optional) Run mpls te bypass-attributes [ bandwidth bandwidth ] [ priority setup-priority [ hold-priority ] ]
Attributes are set for the automatic bypass tunnel.
The bypass tunnel attributes can be configured only after the mpls te fast-reroute bandwidth command is run on the primary tunnel.
- After TE FRR with bandwidth protection is enabled:
If no attributes are configured for a bypass tunnel, by default, the bypass tunnel uses the same bandwidth as that of the primary tunnel, and both the setup priority and the holding priority are 7.
- The bypass tunnel bandwidth cannot exceed the primary tunnel bandwidth.
The setup priority of a bypass tunnel must be lower than or equal to the holding priority. These priorities cannot be higher than the corresponding priorities of the primary tunnel.
If you run the mpls te priority command to set a priority for a primary tunnel after setting a priority for a bypass tunnel, the priority of the bypass tunnel restores the default value. That is, both the setup priority and holding priority of the bypass tunnel are 7.
If TE FRR with bandwidth protection is disabled, the bypass tunnel attributes are automatically deleted.
- (Optional) Configure affinities for the automatic bypass tunnel.
Affinities determine link attributes of an automatic bypass tunnel. Affinities and a link administrative group attribute are used together to determine over which links the automatic bypass tunnel can be established.
Perform either of the following configurations:
Configure an administrative group attribute and affinity property through a hexadecimal number.
- Configure a hexadecimal number for the link's administrative group attribute.
Run quit
The system view is displayed.
Run interface interface-type interface-number
The interface view of the link through which a bypass tunnel passes is displayed.
Run mpls te link administrative group value
An administrative group attribute is specified.
The default administrative group attribute for the link is 0x0.
(Optional) Run mpls te auto-frr attributes { bandwidth bandwidth | priority setup-priority [ hold-priority ] | hop-limit hop-limit-value }
The bypass tunnel attributes are configured.
By default, no bypass tunnel attributes are configured.
(Optional) Run mpls te auto-frr attributes affinity property properties [ mask mask-value ] or mpls te auto-frr attributes affinity { include-all | include-any | exclude } bit-name &<1-32>
An affinity for a bypass tunnel is configured.
By default, no affinity is configured for a bypass tunnel.
Run quit
The system view is displayed.
- Configure an affinity value for the bypass tunnel.
Run interface tunnel tunnel-number
The tunnel interface view of the primary tunnel is displayed.
Run mpls te bypass-attributes affinity property properties [ mask mask-value]
An affinity of the bypass tunnel is configured.
By default, no affinity value is configured for the bypass tunnel.
Configure an administrative group attribute and affinity property through a name.
Naming an affinity makes the affinity easy to understand and maintain. Setting an affinity name is recommended.
- Configure a mapping template for affinity names and bits.
Run quit
The system view is displayed.
Run path-constraint affinity-mapping
An affinity name mapping template is configured, and the template view is displayed.
By default, no affinity name template is created.
Run attribute affinity-name bit-sequence bit-number
Mappings between affinity bits and names are configured.
This step can be performed to configure one affinity bit. Repeat this step to configure more affinity bits. You can configure some or all 32 affinity bits.
By default, no mapping between affinity bits and names is configured.
Run quit
The system view is displayed.
Configure an affinity name template on each node used to calculate the path over which an automatic bypass tunnel is established. The mapping relationship on all the nodes must be the same. In this way, affinity names have the same meaning during path calculation for the tunnel.
- Configure an administrative group name for a link.
Run interface interface-type interface-number
The interface view of the link through which a bypass tunnel passes is displayed.
Run mpls te link administrative group name bit-name &<1-32>
An administrative group attribute is specified.
In this command, bit-name must be within the range defined in the affinity name template.
By default, the administrative group attribute value of a link is 0x0, and no administrative group name is configured for the link.
Run quit
The system view is displayed.
- Configure an affinity name for the bypass tunnel.
Run interface tunnel tunnel-number
The tunnel interface view of the primary tunnel is displayed.
Run mpls te bypass-attributes affinity { include-all | include-any | exclude } bit-name &<1-32>
An affinity of the bypass tunnel is configured.
In this command, bit-name must be within the range defined in the affinity name template.
By default, no affinity name is configured for the bypass tunnel.
Run quit
The system view is displayed.
If an automatic bypass tunnel that satisfies the specified affinity cannot be established, a node will bind a manual bypass tunnel satisfying the specified affinity to the primary tunnel.
- Run commit
The configurations are committed.