Академический Документы
Профессиональный Документы
Культура Документы
• MPLS TE allows for a TE scheme where the head-end router of the LSP can
calculate the most efficient route through the network towards the tail-end
router of the LSP.
• MPLS TE provides efficient traffic forwarding through the network, avoiding
underutilized and over-utilized links.
• MPLS TE takes into account the configured (static) bandwidths of links.
• MPLS TE takes link attributes into account (like delay, jitter)
• MPLS TE adapts automatically to changing bandwidth and link attributes
• Source-based routing is applied to the traffic-engineered load as opposed to
the IP destination-based routing
• Only link-state routing protocols can be used, as the bandwidth and link
attributes have to be known by the head-end router of the LSP since all routers
have the same topology information of the area running a link-state routing
protocol.
3. PCALC/CSPF- An algorithm to calculate the best path from the head-end router to
the tail-end router of the LSP
5. A way to forward traffic onto the tunnel using Static routing, Policy-based routing,
Autoroute, Forwarding adjacency and Class-based Tunnel Selection
Distribution of TE information:
• The head-end of the TE tunnel must have all topology information to see all
the possible paths, but it must also have the constraints information of the
links available to it.
• OSPF or IS-IS must be extended to carry these constraints information.
• These constraints information for the TE tunnel of the links are as follows-
• Three new LSAs were defined called Opaque LSAs. Opaque LSA type 9 has a
flooding scope limited to local-link. Opaque LSA type 10 has a flooding scope
limited to the area (intra-area) and Opaque LSA type 11 has a flooding scope
that is autonomous system wide (inter-area like LSA type 5).
• MPLS TE uses LSA type 10 for intra-area MPLS TE.
• A new bit was defined ‘O’ in the Options field of OSPF Hello packet header.
It indicates whether a router is capable of sending and receiving Opaque
LSAs. The Options field is present in OSPF Hello, DBD packets and all
LSAs.
• The TE LSA Type 10 carries one or more TLVs. These TLVs carry specific
MPLS TE data.
• The Router TLV carries the router ID for TE.
• The Link TLV carries a set of sub-TLVs describing a single link for MPLS
TE.
The Link Type indicates whether the link is point-to-point or multi-access. The Link
ID is set to the router ID of the neighbor. The bandwidth parameters are specified in
bytes per second. The Unreserved bandwidth is 32 bytes because it is the available
bandwidth at each priority level (8 priority levels from 0 to 7).
These parameters can be viewed using show ip ospf database opaque-area command
on the head-end router.
interface Tunnel 1
tunnel destination 4.4.4.4
interface Tunnel 1
tunnel destination 4.4.4.4
tunnel mpls traffic-eng bandwidth [sub-pool | global] <bandwidth>
The global keyword indicates a regular TE tunnel, and sub-pool keyword indicates a
Diffserve-aware TE tunnel.
3. Affinity bits: A link can have attribute flags associated with it. These attribute
flags indicate whether a tunnel with specific resources can cross that link.
On the tunnel configuration on the head-end router, affinity bits and mask can be
configured to control whether the tunnel is allowed to cross the link with those
attribute-flags.
interface Tunnel 1
tunnel mpls traffic-eng affinity <properties> mask <mask>
The nth-bit of Attribute-flag should match the nth-bit of Affinity properties if the nth-
bit of the mask is 1; if the nth-bit of mask is 0, no match is required.
4. Path setup Option: You can configure the path option on the tunnel configuration
on the head-end router. A tunnel path can be set-up either explicitly or dynamically.
In Explicit way, you specify the router-ID or link IP addresses of all the routers along
the path to the tail-end router (including the tail-end router).
In dynamic way, you let the head-end router figure out how the TE tunnel should be
best routed through the network toward the tail-end router.
To configure,
interface Tunnel 1
tunnel destination 4.4.4.4
tunnel mpls traffic-eng path-option 1 explicit name TE_PATH
tunnel mpls traffic-eng path-option 2 dynamic
!
ip explicit-path name TE_PATH
next-address 1.1.1.1
next-address 2.2.2.2
next-address 3.3.3.3
The more preferred path option is tried first. Only if the path is not available, the next
option is tried.
5. Setup and Holding Priorities: Both the setup and holding priorities indicate with
their relative values whether a TE tunnel can pre-empt another tunnel. The lower the
priority value, the higher the importance.
interface Tunnel 1
tunnel mpls traffic-eng priority <setup-priority> <holding-priority>
The setup priority indicates how important the tunnel is to pre-empt another tunnel(s).
The holding priority indicates how much the weight of the tunnel is to hold on to its
reservations on the link. When a tunnel is first set up, its Setup priority is considered
when deciding whether to admit or cancel the tunnel. When another tunnel comes
along and competes with the existing tunnel for link bandwidth, the Setup priority os
new tunnel is compared to the Holding priority of the existing tunnel.
Very important tunnel should be configured with setup priority and holding priority
set to 0.
To configure,
mpls traffic-eng reoptimize events link-up
• PCALC is the special SPF algorithm (called CSPF) that MPLS TE uses.
• OSPF/IS-IS has been extended to carry link resources/constraints and so
PCALC can calculate the path not just based on cost but based on these
resources.
• Links that do not have sufficient bandwidth or that do not have right resources
are pruned off while the SPF tree is built.
• The result of PCALC is a Path.
• This path is an explicit path which is a sequence of IP addresses, where each
IP address represents an interface on the router.
• This explicit path is then used to setup or signal the TE LSP.
• PCALC always builds only one path, not two or more.
RSVP:
To view RSVP PATH and RESV messages on the router, use debug ip rsvp dump-
messages command.
FRR- Link Protection (NHOP):
interface tunnel 1
tunnel mpls traffic-eng path-option 1 explicit name PATH
tunnel mpls traffic-eng path-option 2 dynamic
tunnel mpls traffic-eng fast-reroute
This command sets the flag in Session Attribute object of RSVP PATH message to
0x01, which indicates the tunnel wants link protection.
To configure the PLR (Brussels router) to use the backup tunnel in case of link
failure,
• When the protected node is operating, the Brussels router swaps the incoming
label 33 to label 30 and advertises the packet to Berlin router. The Berlin
router swaps the incoming label 30 to label 31 and forwards the packet to
Rome router since it advertised label 31 to all its upstream routers.
• When the protected node is not operating, a mechanism is required on Rome
router to send label 31 to Brussels router so that Brussels router can impose
that label onto the packet and when it finally reaches the Rome router, it can
POP it and follow the usual process.
• Hence, the Rome router (NNHOP router) advertises label 31 in the sub-object
of the RRO object in the RESV message to the Brussels router (PLR).
• When the packets need to be forwarded to the backup tunnel, the PLR swaps
incoming label 33 with label 31 first, then imposes label 17 (that it received
from its downstream Frankfurt LSR for backup tunnel) and then forwards the
packet to the Frankfurt router.
• The Frankfurt router pops the top label 17 and forwards the packet to the
Rome router. The Rome router pops the top label 31 and forwards the IP
packet to the Sydney router.
• To configure FRR Node protection on the head-end router
interface Tunnel 1
tunnel mpls traffic-eng fast-reroute node-protect
This command sets the flag in the RSVP PATH message to 0x10 to indicate that the
tunnel needs node protection.
CE1 router:
PE1 router:
PE4 router:
The following output shows that the outgoing interface for 4.4.4.4/32 is Tunnel 1.
The following output shows that the downstream router of PE1 advertises label 17 for
the tail-end router 4.4.4.4.
The following output shows that the outgoing vpnv4 label for remote CE2 prefix is
22. This is the vpnv4 label.
The following output shows the labels imposed for the remote CE2 prefix. Top label
17 is the TE label while the bottom label 22 is the vpnv4 label. At every intermediate
LSR the top TE label is swapped while at the PE4 router, label 22 is popped.
The following output shows the traceroute from CE1 router to the remote CE2 router.
MPLS TE Tunnel with tail-end as P router:
PE1 router:
P3 router:
The following output shows that the PE1 router forwards all traffic behind the tail-end
router to the Tunnel 1.
The below output shows that the PE1 router receives Label 23 for the vpnv4 prefix
12.1.1.1/32. The next-hop for PE1 router to reach 12.1.1.1/32 is its iBGP next-hop
neighbor 4.4.4.4.
The below output shows the tags imposed for the prefix 12.1.1.1/32. The top label 19
is the TE label received for Tunnel 1. The second label 19 is the label received from
P3 router for the targeted LDP session for BGP next-hop prefix 4.4.4.4/32 and the
bottom label 23 is the vpnv4 label received from iBGP neighbor 4.4.4.4.
The following output shows the traceroute of 12.1.1.1 from the CE1 router.
Traffic from CE2 to CE1 does not go through the TE tunnel 1 since it is only
unidirectional. The targeted-LDP session is only to advertise the label for the BGP
next-hop router-id so at the tail-end router, we will have two labels and label
switching will be correct.
MPLS VPN with MPLS TE: Failure detection with RSVP Hellos
P2 router: P3 router:
The following output on P2 router shows that the backup tunnel is “ready” for use.
The LSP identifier indicates the source address of the primary LSP being protected.
When the protected link was shut down, the backup link becomes “active”.
The traceroute output from the CE1 router shows the path followed through the
backup tunnel after the protected link was shut down.
• Interarea MPLS TE tunnel is the one which spans multiple IGP (OSPF or IS-
IS) areas. The LSP spans from a head-end LSR in one area to a tail-end LSR
in another area through the backbone area.
• The LSR that acts as a head-end of this LSP should be able to pass the
constraints (using RSVP-TE) associated with this LSP to a path computation
server (usually an ABR). The ABR has the topology and TE information of
more than one area including the backbone area. The ABR computes the path
for the LSP. The ABR may compute the whole or partial path. In the latter
case, the computed path would include loose hops.
• Loose Hops: An LSR should be able to specify loose ERO hops, and let some
intermediate LSRs to expand it to strict hops. (Strict hops are defined using
explicit path-option for a single area).
• This mechanism requires the ability of the LSR that originates the LSP to pass
the constraints associated with that LSP to the ABR. It also requires the ability
of the head-end LSR to pass the address of the tail-end LSR, and the ability for
the ABR to pass back to the head-end LSR the ERO that contains the results
of the path computation.
Area1 router: Area2 router:
The following output shows that MPLS TE tunnel. The asterisk (*) shows the loose
hops.