Академический Документы
Профессиональный Документы
Культура Документы
Presentation_ID
Cisco Confidential
MPLS Introduction
Presentation_ID
Cisco Confidential
Presentation_ID
Cisco Confidential
Cisco Confidential
MPLS Concepts
Few components play a role in creating an MPLS
network
IGP: Core Routing Protocol
MPLS Label (or shim, think OSI layer 2.5)
Encapsulation of MPLS label (push/pop/swap)
Forwarding Equivalence Class (FEC)
Label Distribution Protocol (LDP)
MPLS Applications related protocols: MP-BGP, RSVP, etc.
Presentation_ID
Cisco Confidential
MPLS Terminology
Acronyms
PE - Provider edge router (or Label Edge Router (LER))
P - Provider core router (or Label Switch Router (LSR))
CE - Customer Edge router (also referred to as CPE)
ASBR - Autonomous System Boundary Router
RR - Route Reflector
TE -Traffic Engineering
TE Head end - Router that initiates a TE tunnel
TE Midpoint - Router where the TE Tunnel transits
Presentation_ID
Cisco Confidential
MPLS Concepts
In Core:
Forward using labels (as
opposed to IP addr)
Label indicates service class
and destination
Label Swapping or Switching
At Edge:
Classify packets
Label them
Label Imposition
At Edge:
Remove Labels and
forward packets
Label Disposition
PE or Label
Switch Router
(LER)
(ATM Switch or
IP Router)
Presentation_ID
Cisco Confidential
MPLS Operation
1a. Existing routing protocols (e.g. OSPF, IS-IS)
establish reachability to destination networks
1b. Label Distribution Protocol (LDP)
establishes label to destination
network mappings
Cisco Confidential
4. LER at egress
removes label and
delivers packet
3. LSR switches
packets using label
swapping
8
MPLS Labels
Presentation_ID
Cisco Confidential
TCP
Header
DATA
IP
Header
TCP
Header
DATA
Frame
Header
IP
Header
TCP
Header
DATA
FCS
Frame
Frame
Header
IP
Header
TCP
Header
DATA
FCS
Bits
011010101
Presentation_ID
Cisco Confidential
Segment
Packet
10
Label
EXP S
TTL
Label = 20 bits
COS/EXP = Class of Service, 3 bits
S = Bottom of Stack, 1 bit
TTL = Time to Live, 8 bits
Presentation_ID
Cisco Confidential
11
011010101
Presentation_ID
TCP
Header
DATA
IP
Header
TCP
Header
DATA
Segment
Packet
Frame
Header
MPLS
Label
IP
Header
TCP
Header
DATA
FCS
Frame
Frame
Header
MPLS
Label
IP
Header
TCP
Header
DATA
FCS
Bits
Cisco Confidential
12
MPLS MTU
You need to account for the increased packet size
Change the physical MTU of the interface
Or
Use the mpls mtu <n> command
Presentation_ID
Cisco Confidential
13
Cisco Confidential
14
MPLS in hardware
Presentation_ID
Cisco Confidential
15
Presentation_ID
Cisco Confidential
16
Routing
Process
Route
Updates/
Adjacency
MPLS
Process
LIB
LFIB
Cisco Confidential
Updates/
Adjacency
FIB
MPLS Traffic
Presentation_ID
Label Bind
IP Traffic
17
Routing Basics
Presentation_ID
Cisco Confidential
18
address
prefix
I/F
128.89
171.69
128.89
171.69
...
128.89
I/F
I/F
...
...
128.89
0
0
128.89.25.4
Data
128.89.25.4
Data
1
128.89.25.4
Data
128.89.25.4
Data
171.69
Cisco Confidential
19
Address
Prefix
Out Out
Iface label
In
label
Address
Prefix
Out Out
Iface label
128.89
128.89
171.69
171.69
...
...
...
...
In
label
Address
Prefix
Out Out
Iface label
128.89
...
...
128.89
Routing Updates
(OSPF, EIGRP, )
Presentation_ID
Cisco Confidential
171.69
20
Address
Prefix
Out Out
Iface label
In
label
Address
Prefix
128.89
171.69
...
...
Out Out
Iface label
128.89
171.69
...
...
...
...
...
...
In
label
Address
Prefix
Out Out
Iface label
128.89
...
...
...
...
128.89
Label Distribution
Protocol (LDP)
171.69
Cisco Confidential
21
Address
Prefix
Out Out
Iface label
In
label
Address
Prefix
128.89
171.69
...
...
Out Out
Iface label
128.89
171.69
...
...
...
...
...
...
In
label
Address
Prefix
Out Out
Iface label
128.89
...
...
...
...
128.89
0
128.89.25.4
1
128.89.25.4
Data
9
128.89.25.4
Data
Cisco Confidential
Data
128.89.25.4
Data
171.69
22
Presentation_ID
Cisco Confidential
23
Cisco Confidential
24
Presentation_ID
Cisco Confidential
25
Presentation_ID
Cisco Confidential
26
Downstream on-demand
Upstream node requests a label for a learned prefix via the
downstream node
Presentation_ID
Cisco Confidential
27
Network X
E
Cisco Confidential
28
X = 25!
A
X = 25!
B
Network X
E
Cisco Confidential
29
Routing table of C
Network Next-hop
X
D
Routing table of D
Network Next-hop
X
E
Routing table of E
Network Next-hop
X
conn
RQ X!
A!
C!
D!
E!
Network X!
Cisco Confidential
30
Cisco Confidential
31
Cisco Confidential
32
Presentation_ID
Cisco Confidential
33
Presentation_ID
Cisco Confidential
34
Presentation_ID
Cisco Confidential
35
Cisco Confidential
36
R7!
R6!
R5!
R2!
R3!
R4!
R8!
R9!
R1!
Presentation_ID
Cisco Confidential
Normally
Routed Path!
Traffic
Engineering
Route"
37
R7!
R6!
R5!
R2!
R3!
R4!
R8!
R9!
R1!
Presentation_ID
TE!
TE!
TE!
LDP!
LDP!
LDP!
LDP!
Packet!
Packet!
Packet!
Packet!
Cisco Confidential
38
Session Initialization
LDP peer exchange and negotiate Session parameters
Protocol version, label distribution method, timer values,
label ranges, etc.
Active LSR will track this parameter and reply with
initialization message; and keepalives are exchanged
Presentation_ID
Cisco Confidential
39
LDP Session
R2#sh mpls ldp neighbor!
Peer LDP Ident: 192.168.0.3:0; Local LDP Ident 192.168.0.2:0!
TCP connection: 192.168.0.3.11000 - 192.168.0.2.646!
State: Oper; Msgs sent/rcvd: 1658/1659; Downstream!
Up time: 23:58:08!
LDP discovery sources:!
Serial2/0, Src IP addr: 10.0.1.10!
Addresses bound to peer LDP Ident:!
10.0.1.10
10.0.1.13
192.168.0.3!
!
!
R2s loopback or Router-Id is 192.168.0.2!
R3s loopback or Router-Id is 192.168.0.3!
Presentation_ID
Cisco Confidential
40
Loop Detection
LDP relies on loop-detection mechanisms built into IGPs that are used
to determine the path
If, however, a loop is generated (that is, mis-configuration with static
routes), the TTL field in the label header is used to prevent indefinite
looping of data packets
TTL functionality in the label header is equivalent to TTL in the IP
headers
TTL is usually copied from the IP headers to the label headers (TTL
propagation)
0
1
2
3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Label
Presentation_ID
Cisco Confidential
EXP S
TTL
41
Label Stacking
There may be more than one label in an MPLS packet
Need to account for 4 bytes in MTU per label
Last label in the stack is marked with End of Stack (EOS) bit
0
1
2
3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Label
Presentation_ID
Cisco Confidential
EXP S
TTL
42
MPLS Configuration
Presentation_ID
Cisco Confidential
43
Lab Topology
30
S2/0
CE
R5
Presentation_ID
S0/0
S3/0
172.16.0.0/30
E0/0
PE
PE
E1/0
E1/0
R4
E0/0
10.0.34.0/30
Cisco Confidential
R1
30
0/
1.
8.
.4
/
S3/0
16
.1
IGP=OSPF
R2
CE
2.
68
E1/0
S2/0
S0/0
172.16.0.4/30
19
2.
1
R7
10.0.48.0/30
19
R8
PE
E0/0
E0/0
10.0.27.0/30
/ 30
E0/0
S0/0
E1/0
E1/0
10.0.78.0/30
10 .
0.2
R9
3.0
CE
S0/0
CE
R3
R6
44
Cisco Confidential
45
MPLS Configuration
1. Enable CEF
7. Verify
Presentation_ID
Cisco Confidential
46
Presentation_ID
Cisco Confidential
47
Verification Commands
Which interfaces are running MPLS?
R2#sh mpls interfaces
Interface
Serial2/0
Serial5/0
R2#
IP
Yes (ldp)
Yes (ldp)
Tunnel
No
No
Presentation_ID
Cisco Confidential
48
Presentation_ID
Cisco Confidential
49
label: imp-null
label: 16
label: 17
Presentation_ID
Cisco Confidential
50
Bytes Label
Switched
0
0
0
0
0
0
0
Outgoing
interface
Fa2/0
Fa2/0
Fa2/0
Fa2/0
Fa2/0
Fa2/0
Fa2/0
Next Hop
Bytes Label
Switched
0
0
0
0
0
0
Outgoing
interface
Se2/0
Se2/0
Se5/0
Se5/0
Se2/0
Se5/0
Next Hop
22
10.128.23.3
10.128.23.3
10.128.23.3
10.128.23.3
10.128.23.3
10.128.23.3
10.128.23.3
point2point
point2point
point2point
point2point
point2point
point2point
22
10.0.1.24/30
Se2/0
point2point
22
10.0.1.24/30
Se5/0
point2point
R2#
Presentation_ID
Cisco Confidential
51
Outgoing
Prefix
Bytes Label
Outgoing
Label
Label or VC
or Tunnel Id
Switched
interface
19
19
10.0.0.8/32
Se5/0
Next Hop
point2point
Presentation_ID
Cisco Confidential
52
32 msec
R2#
Presentation_ID
Cisco Confidential
53
forwarded
local
Presentation_ID
Cisco Confidential
54
IP
Yes (ldp)
Yes (ldp)
Tunnel
No
No
Presentation_ID
Cisco Confidential
55
inuse
R2#
Presentation_ID
prefixes
12
assigned
in labels
12
Cisco Confidential
learned
out labels
20
56
Presentation_ID
Cisco Confidential
57
Presentation_ID
Cisco Confidential
58