Professional Documents
Culture Documents
eROU08 - MPLS Traffic Engineering
eROU08 - MPLS Traffic Engineering
12 December 2018
1:00 PM AEST Brisbane (UTC+10)
Introduction
• Presenter Warren Finch
Training Officer
warren@apnic.net
Specialties:
Security
Routing & Switching
Virtualisation
Automation
2
Overview of
MPLS TE
3
Why MPLS Traffic Engineering?
4
Optimal Traffic Engineering
Tunnel 1 R3
R1 R2 R6
Tunnel 2
R4 R5
IP TE MPLS TE
Shortest path Determines the path at the source based on additional
parameters (available resources and constraints, etc.)
Equal cost load balancing Load sharing across unequal paths can be achieved.
5
How MPLS TE Works
• Dynamically
Path Calculation • Manually
• RSVP-TE
Path Setup • (CR-LDP)
• Autoroute
Forward the Traffic • Static
Down to the Tunnel • Policy
6
Terminology—Head, Tail, LSP
Upstream Downstream
TE Tunnel R1 to R4
R1 R2 R3 R4
8
Attributes
TE Tunnel
• Available Bandwidth
• Tunnel Required
• Attribute flags (Link
Bandwidth
Affinity)
• Tunnel Affinity &
• Administrative weight
Mask
(TE-specific link
• Priority
metric)
9
Bandwidth on Physical Link
• Bandwidth – the amount of reservable bandwidth on a
physical link
GE0/0/5
R1
10
Bandwidth Required by Tunnel
• Bandwidth required by the tunnel across the network
TE Tunnel LSP
R1 R2
11
Priority
• Each tunnel has 2 priorities:
– Setup priority
– Holding priority
• Value: 0~7, 0 indicated the highest priority, 7 indicates the lowest
priority.
BW=300 Kbps
R1 R2 R3 R4
TE Tunnel 1 R1 to R4
BW=200 kbps Priority: S1=3 H1=3
S2 < H1
TE Tunnel 2 R1 to R3
BW=200 kbps Priority: S2=2 H2=2
12
Priority
• Each tunnel has 2 priorities:
– Setup priority
– Holding priority
• Value: 0~7, 0 indicated the highest priority, 7 indicates the lowest
priority.
BW=300 Kbps
R1 R2 R3 R4
13
Administrative Weight (TE Metric)
• Two costs are associated with a link
– TE cost (Administrative weight)
– IGP cost
• The default TE cost on a link is the same as the IGP cost.
We can also configure as following:
Router(config)# interface ethernet 0/1
Router(config-if)# mpls traffic-eng administrative-weight 20
R1 R2
14
Link-State Protocol Extensions/ IGP
Flooding
• TE finds paths other than shortest-cost. To do this, TE
must have more info than just per-link cost
• OSPF and IS-IS have been extended to carry additional
information
– Physical bandwidth
– RSVP configured bandwidth
– RSVP available bandwidth
– Link TE metric
– Link affinity
16
Bandwidth Significant Change
• Each time a threshold is crossed, an update message is
sent. Ethernet 1/0
BW%& Threshold
100
90
80
70
Tunnel 4
50 Update
Tunnel 3
30 Update
Tunnel 2
Tunnel 1
17
Path Calculation
and Setup
18
Tunnel Path Selection
TE Tunnel
R1 R2
C-SPF
• Shortest-cost path is found that meets administrative
constraints
• These constraints can be
– bandwidth
– link attribute (aka color, resource group)
– priority
• The addition of constraints is what allows MPLS-TE to
use paths other than just the shortest one
Explicit Path Option
• explicit = take specified path.
• Router sets up path you specify.
R4
TE Tunnel
R1 R2 R5
R3
Strict and Loose Path
• Paths are configured manually. Each hop is a physical interface or
loopback.
A A
Explicit Path
AtoE:
B 1: next-address Explicit Path
B AtoE:
B.B.B.B
2: next-address 1: next-address
D.D.D.D B.B.B.B
C D 3: next-address C D 2: next-address
E.E.E.E loose E.E.E.E
E E
23
RSVP-TE
• After calculating the path, tunnel will be set up by using
RSVP-TE.
• RSVP has three basic functions:
– Path setup and maintenance
– Path teardown
– Error signalling
24
Setup of TE LSP
• In following topo, R1 will set up a TE tunnel from R1 to R4:
1 2 3
Path Path Path
TE Tunnel LSP
R1 R2 R3 R4
6 5 4
Resv Resv Resv
25
Forwarding
Traffic Down
Tunnels
26
Routing Traffic Down a Tunnel
• Once the tunnel is established and operational, it’s ready to
forward data traffic.
• However, no traffic will enter the tunnel unless the IP
routing tables and FIB tables are modified.
• How to get traffic down the tunnel?
1. Static route
2. Auto route
3. Policy routing
27
Example Topology
• In the following topology, cost=10 for each link.
• Tunnel 1 has been created on Router A from A to G.
Router B Router F
Router H
Router A Router E
Router G
Router I
Router C Router D
Static Route
• Configure a static route pointing down the tunnel interface.
Router B
Router F
Router H
Router A Router E
Router G
29
Auto Route
• Auto route allows a TE tunnel to participate in IGP route
calculations as a logical link. The tunnel interface is used as
the outbound interface of the route.
Router B Router F
Router H
Router A Router E
Router G
Router I
Router C Router D
Auto Route - Forwarding Adjacency
• Bidirectional tunnels: tunnel 1 AtoG, tunnel 2 GtoA
• Configure following commands on both Router A and G
Router B Router F
Router H
Router A Router E
Router G
Router I
Router C Router D
Auto Route - Forwarding Adjacency
• Similar commands on Router G
Router B Router F
Router H
Router A Router E
Router G
Router I
Router C Router D
Policy Routing
Router B
Router F
Router H
Router A Router E
Router G
35
36