Beruflich Dokumente
Kultur Dokumente
2202 1358_06_2000_c2 2000, Cisco Cisco Systems, Inc. Inc. CQFE rev17 Russ Davis 1999, Systems,
Agenda
Multi Protocol Label Switching
MPLS Concepts LSRs and labels Label assignment and distribution Label Switch Paths ATM LSRs Loop detection/prevention LDP concepts Configurations
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
Distributed cache
IP VIP
First Packet Subsequent Packets
www.Cisco.com
Main components
Forwarding Information Base (FIB)
Adjacency table
www.Cisco.com
Adjacency Database
www.Cisco.com
FIB Table
Shadow copy of the IP routing table Classless Routing protocol independent One for each route in IP routing table Each entry has one or more path Each path has nexthop IP address and nexthop interface Each path points to an adjacency
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
Adjacency Table
Maintains IP address to Mac-rewrite mapping
Populated by ARP table, Frame Relay map table and ATM map table, etc. Mac-rewrite of the nexthop is all thats required to switch packet
CQFE rev14 Russ Davis
www.Cisco.com
FIB Table
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
Adjacency Table
www.Cisco.com
8
CEF Operation
www.Cisco.com
MPLS Concepts
www.Cisco.com
10
MPLS Concepts
www.Cisco.com
11
MPLS Concepts
www.Cisco.com
12
MPLS Concepts
Label
Label is a short fixed length, locally significant used to identify a FEC
Label is assigned on the network layer address but it is not encoding of the network layer address Label has local significance between LSRs
www.Cisco.com
13
MPLS Concepts
Labeled Packet
Packet into which a label has been encoded
Label could reside inside network or data link layer (ATM)
www.Cisco.com
14
MPLS Concepts
Upstream
Where the packet source is
Downstream
Towards the destination
www.Cisco.com
15
www.Cisco.com
16
MPLS Concepts
Label Assignment
Assignment is done by the LSR down stream
Downstream LSR informs the upstream LSR of the binding
www.Cisco.com
17
MPLS Concepts
www.Cisco.com
18
MPLS Concepts
www.Cisco.com
19
MPLS Concepts
MPLS allows:
Packet classification only where the packet enters the network The packet classification is encoded as a label In the core, packets are forwarded without having to re-classify them No further packet analysis Label swapping
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
20
MPLS concepts
Packet forwarding: FEC and Next-Hop
www.Cisco.com
22
MPLS concepts
Packet forwarding: FEC and Next-Hop
Next-Hop
Interface Serial1
171.68.10/24
...
171.68.9.1
...
...
0
IP packet D=171.68.10.23 IP packet D=171.68.10.12
171.68.10/24
Rtr-A
Router-A forwards packets with different destination addresses using the same route, same next-hop and same interface
www.Cisco.com
23
MPLS concepts
Packet forwarding: FEC and Next-Hop
www.Cisco.com
24
MPLS concepts
Packet forwarding: FEC and Next-Hop
In I/F In Lab Address Prefix Out I/F Out Lab In I/F In Lab Address Prefix Out I/F Out Lab
4 ...
x 171.68.10 3 ...
Next-Hop ... ...
5 ...
5 171.68.10 1
...
...
...
3
4 Rtr-B
Label = 5 IP packet D=171.68.10.12
0 Rtr-A
1
Label = 3 IP packet D=171.68.10.12
171.68.10/24
IP packet D=171.68.10.12 Router-B classify the IP packet into a FEC and assign the corresponding label.
Router-A forwards labelled packets by looking at the label value against the label table. No packet classification into FEC is done.
www.Cisco.com
25
MPLS concepts
MPLS forwarding
MPLS forwarding is performed in the same way in ATM switches and routers. However,
ATM queuing is given by the label value (VCI) Router queuing may be given by EXP bits in label header
ATM switches do not have capabilities to analyse layer 3 headers Labels may be distributed by different protocols
LDP, RSVP, PIM, BGP, ...
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
26
MPLS concepts
Label Switch Routers
LSR: Label Switch Router Can be an ATM switch or a router Edge-LSRs do label imposition and label removal
Label imposition where the packet enters the MPLS network
All LSRs use existing IP routing protocols to exchange routing information All LSRs use a label distribution protocol
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
27
ATM switches use input port,VPI,VCI values and map them to output port,VPI,VCI values
Label is encoded in same fields
VPI/VCI field used to carry label information Existing software can work for label swapping
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
28
MPLS concepts
Labels
Label format and length depends on encapsulation
MPLS LSRs always forward packets based on the value of the label at the top of the stack
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
29
MPLS concepts
Labels
ATM Cell Header
GFC VPI VCI PTI CLP HEC DATA
Label
www.Cisco.com
30
LSRs assign a label to each FEC Label distribution may be upstream or downstream driven Most implementations use downstream with two variants
Unsolicited Downstream
Downstream on demand no need for upstream allocation
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
32
Rtr-A
In I/F In Lab Address Prefix Out Out I/F Lab In I/F
Rtr-B
In Lab Address Prefix Out Out I/F Lab
RtrC
In I/F In Lab Address Prefix Out Out I/F Lab
171.68.10
... ...
5 ...
5 171.68.10
... ...
7 ...
7 171.68.10
... ...
IGP derived routes
...
LSRs assign a label to each FEC LSRs distribute labels to the upstream neighbours
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
33
171.68.10/24
171.68.40/24 Rtr-A
Rtr-B
RtrC
Request label for destination 171.68.10/24
LSRs assign a label to each FEC Upstream LSRs request labels to downstream neighbours Downstream LSRs distribute labels upon request
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
34
www.Cisco.com
35
5 8 ...
Downstream LSR do not know how to reassemble correctly cells into packets. VPI/VCI values are identical for all cells
5
AT M cell
3 IP Packet 8
AT M cell
3
AT M cell
3
AT M cell
3
AT M cell
3
AT M cell
171.68
8
AT M cell
8
AT M cell
AT M cell
www.Cisco.com
36
5 8 ...
ATM-LSR requested additional label for same FEC in order to distinguish between incoming interfaces (Downstream on Demand)
5
AT M cell
4 IP Packet 8
AT M cell
3
AT M cell
4
AT M cell
3
AT M cell
4
AT M cell
171.68
8
AT M cell
8
AT M cell
AT M cell
www.Cisco.com
37
5 8 ...
ATM-LSR transmitted cells in sequence in order for the downstream LSR to re-assembling correctly the cells into packets
5
AT M cell
3 IP Packet 8
AT M cell
3
AT M cell
3
AT M cell
3
AT M cell
3
AT M cell
171.68
8
AT M cell
8
AT M cell
AT M cell
www.Cisco.com
38
www.Cisco.com
39
An LSR may label forward packet to a next-hop that does not have yet label information for that FEC
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
40
www.Cisco.com
41
www.Cisco.com
42
An LSR may label forward packet to a next-hop that does not have yet label information for that FEC
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
43
Label stack is copied in the payload of the FIRST cell of the packet
LSR nodes label switch packets based ONLY on the label at the top of the stack
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
44
5 171.68.10
... ...
...
171.68.10/24
Label = 5
Rtr-A
Label = 7
Label = 21 IP packet D=171.68.10.12
Label = 21
IP packet D=171.68.10.12
Rtr-A forwards the labelled packet based on the label at the top of the label stack
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
45
Label space
LSRs must be able to distinguish between labelled packets
A label corresponds to a particular FEC
Same label can be assigned to different FECs if and only if the LSR can distinguish the interface from which the packet will arrive
i.e: the LSR can identify who us the upstream neighbour who insert the label
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
46
Label space
Per interface label space
Label are unique in a per interface base
www.Cisco.com
47
Label space
Label = 5 IP packet D=171.68.10.15 In I/F In Lab Address Prefix Out Out I/F Lab
0 1
5 171.68.10
7 8
Next-Hop 2 5 171.68.10
1
Label = 5 IP packet D=171.68.10.12
0 Rtr-A
171.68.10/24
www.Cisco.com
48
Label space
Label = 5 IP packet D=171.68.10.15
In I/F 0 1 4 In Lab 5 5 5 Address Prefix 171.68.10 Out I/F 2 Out Lab 7 8 9
Next-Hop2 171.68.10
171.68.40 3
171.68.10/24
Same label is assigned to different FECs if LSR is able to distinguish the upstream neighbour who sent the packet
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
49
Label space
Label = 6 IP packet D=171.68.10.15
In I/F 0 1 ... In Lab 5 6 ... Address Prefix 171.68.10 Out I/F 2 Out Lab 7 8 ...
Next-Hop2 171.68.10
... ...
Label = 6
IP packet D=171.68.10.12
Label not being previously advertised to that neighbour. The packet is dropped
www.Cisco.com
50
LSP is the sequence of LSRs through which the labelled packets have to go through in order to reach the egress LSR
www.Cisco.com
51
IngressLSR Egress-LSR
LSR-ingress to LSR-egress path is the same for packets of the same FEC
LSPs are unidirectional
Return traffic takes another LSP
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
52
The egress LSR will not have to do a lookup and remove itself the label
One lookup is saved in the egress LSR
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
53
Serial1
Serial2 Null
Summary route is propagate through the IGP and label is assigned by each LSR
Egress LSR summarises more specific routes and advertises a label for the new FEC
171.68.10/24
Egress LSR needs to do an IP lookup for finding more specific route Egress LSR need NOT to receive a labelled packet
CQFE rev14 Russ Davis
54
The LSR which does summarisation will be the end node LSR of all LSPs related to the summary address
Aggregation point
The LSR will have to examine the second level label of each packet
If no second label, the LSR has to examine the IP header No summarisation in ATM-LSRs
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
55
171.68.44/24
8
Specific routes 171.68.10/24 171.68.44/24
0
1
Area Border router summarises and advertises a single label for the summary route
171.68.10/24
www.Cisco.com
56
At each hop the LSR selects the LSP where to forward the packet Similar to IP routing where each hop makes its own route selection
www.Cisco.com
57
www.Cisco.com
58
Need labels for LSP-1 going through LSR-1 LSR-2 LSR-4 LSR-5
LSR-4
LSR-5
Egress
LSR-1 request an explicit LSP to LSR-5: LSR1, LSR-2, LSR-4, LSR-5 The request travels hop-by-hop and when it reaches the egress point labels are advertised back to the ingress LSR
www.Cisco.com
59
Use label 9 for LSR-6 Use label 3 for LSR-6 LSR-4 LSR-5
Egress
www.Cisco.com
60
LSR-6
www.Cisco.com
61
Label information is carried in VPI/VCI field with different techniques to encode labels
www.Cisco.com
62
Loops and TTL In IP networks TTL is used to prevent packets to travel indefinitely in the network
MPLS may use same mechanism but not on all encapsulations
TTL is present in the label header for PPP and LAN headers
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
63
www.Cisco.com
64
Ingress
LSR-5
Egress
www.Cisco.com
65
Each LSR inserts (append) its ID into label mappings messages LSR receiving an LDP message will check the ID list If its own ID is found the loop is detected
.
CQFE rev14 Russ Davis
1999, Cisco Systems, Inc.
www.Cisco.com
66
Discovery messages
Used to discover and maintain the presence of new peers Hello packets (UDP) sent to all-routers-insubnet multicast address
www.Cisco.com
67
Session messages
Establish, maintain and terminate LDP sessions
Advertisement messages
Create, modify, delete label mappings
Notification messages
Error signalling
www.Cisco.com
68
Configuration
www.Cisco.com
69
Configuration
To enable to type of label distribution protocol you want to run, this is done per interface basis
mpls label-protocol [ tdp ldp both]
www.Cisco.com
70
Configuring TTL
By default ip ttl is copied into mpls packet To disable you need the following command
no tag-switching ip propagate-ttl no mpls ip prapagate-ttl
TTL propagation if disabled has to be done on both ingress and egress LSR
CQFE rev14 Russ Davis
www.Cisco.com
71