Академический Документы
Профессиональный Документы
Культура Документы
Label
Switching
971
sprevidi@cisco.com
NW’98
Agenda
• Introduction to MPLS
• MPLS forwarding
• Label Distribution Protocol
• Traffic Engineering
• MPLS VPN
• MPLS QoS
Resource
Resource Multicast
Multicast Explicit
Explicit &
& Virtual
Virtual
Destination-based
Destination-based IP
IP Class
Class
Reservation
Reservation Routing
Routing Static
Static Private
Private
Unicast
Unicast Routing
Routing of
of Service
Service
(eg
(eg RSVP)
RSVP) (PIM
(PIM v2)
v2) Routes
Routes Networks
Networks
Label Forwarding Information Base (TFIB)
Per-Label Forwarding, Queuing, and Multicast
Mechanisms
ATM Cell Header GFC VPI VCI PTI CLP HEC DATA
LAN MAC Label Header MAC HeaderLabel Info Header Layer 3 Header
Label = 20 bits
EXP = Experimental, 3 bits
S = Bottom of stack, 1bit
TTL = Time to live, 8 bits
• Introduction to MPLS
• MPLS forwarding
• Label Distribution Protocol
• Traffic Engineering
• MPLS VPN
• MPLS QoS
Routing Table
Label Information
Base (TIB)
128.89
0
0
1 You can reach 128.89 through me
You can reach 128.89 and 1
171.69 through me
171.69
128.89
0
0 128.89.25.4 Data 128.89.25.4 Data
1
1
128.89.25.4 Data 128.89.25.4 Data
171.69
Packets forwarded
based on IP address
0 128.89
1 0
1 0 128.89
1 2 0
Use tag 9 for 128.89
Use tag 10 for 128.89
Use tag 4 for 128.89 3
1
Use tag 5 for 171.69 Use tag 7 for 171.69
1 128.89
0
1 2 0
I need a tag for 128.89
I need a tag for 128.89 I need another tag for 128.89
3
1 I need a tag for 171.69
I need a tag for 171.69
0 128.89
0
128.89.25.4 Data
1
9 128.89.25.4 Data
128.89.25.4 Data 4 128.89.25.4 Data 1
117.59
0 128.89.25
0
1 128.89.25.4 Data
1 128.89.25.4 Data
7 128.89.25.4 Data 4 128.89.25.4 Data
128.89.26
Prefixes that share a Remove tag one De-
path can share tag hop prior to de- aggregation
aggregation point point does L3
lookup
MPLS-ARCH-sprevidi-0699 © 1999, Cisco Systems, Inc. 22
Internet IGP Labelling
• Apply labels to IGP At Edge:
routes - Look up IP address, find BGP next hop
- Look up BGP next hop, find IGP route & label
Conserves labels - apply IGP label, forward
MPLS Network
ATM Network
• Introduction to MPLS
• MPLS forwarding
• Label Distribution Protocol
• Traffic Engineering
• MPLS VPN
• MPLS QoS
R1 R2
<tR1,P> <tR2,P>
Untagged packet
Untagged packet FIB
Labelled packet
Untagged packet
Labelled packet TFIB
Labelled packet
Ru Rd
Upstream P dest D Downstream
LSR LSR
Label for D
MPLS space ID
Router(LSR)-ID
R1 R4 R1 R4
R1 R2
L1
R1 R2
L1
L2
R1 R2
L1
R1 Session for L2 R2
L2 (ATM)
R1
• Introduction to MPLS
• MPLS forwarding
• Label Distribution Protocol
• Traffic Engineering
• MPLS VPN
• MPLS QoS
R5
R1
R6
R7
10
LSP tunnels
• RSVP extensions
• Initiated at source router
• Complete path in forward messages
• Label established by reply messages
• Rapid tear down on link failure
R5
R1 Pop
49
17
R6 R7
22
21
LSP tunnel configuration
R6 R7
D2
21
LSP tunnels Forwarding
R8 R9
R3
R4
R2
S1 IP routed
R5
R1
Label-Switched R6 R7
swap label
Tunnel routed 49 ->17
by filter
BGP NH = R5 Label-Switched Label-Switched D2
Label 25 pushed swap label Pop TE label
Label 49 pushed 17 ->22
21
LSP Tunnels forwarding
• Introduction to MPLS
• MPLS forwarding
• Label Distribution Protocol
• Traffic Engineering
• MPLS VPN
• MPLS QoS
VPN A VPN A
VPN A VPN A
VPN B VPN B
VPN C VPN C VPN C VPN C
VPN B VPN B
VPN A VPN A
Connection-Oriented Connectionless
VPN Topology VPN Topology
PE P P PE
P P
PE PE
• Full mesh of BGP peers => scalability issues for Very Large VPN’s
• Use of BGP Route Reflector to scale the VPN BGP peering
• for resiliency peers “multiple VPN PE” to multiple VPN RR
• PE needs to have the routing information only for the
VPN’s it is connected to.
• peer RR together to allow inter VPN communications
<VPN_B,10.1> ,, iBGP
<VPN_B,10.2> iBGP next
NH= hopPE2
PE1 , T2
T1 T7T8
<VPN_B,10.2> , iBGP next hop PE2 T2 T8
<VPN_B,10.3> , iBGP next hop PE3 T3 T9
• Ingress PE receives normal IP <VPN_A,11.6> , iBGP next hop PE1 T4 T7
Packets from CE router <VPN_A,10.1> , iBGP next hop PE4 T5 TB
<VPN_A,10.4> , iBGP next hop PE4 T6 TB
<VPN_A,10.2> , iBGP next hop PE2 T7 T8
• PE router does “IP Longest Match”
from VPN_B FIB , find iBGP next hop
PE2 and impose a stack of Labels’s :
exterior Label T2 + Interior Label T8
Server Farm
VPN_A
VPN_B VPN_A Public 11.5.0.0
CE
VPN_B
VPN_A
10.2.0.0 CE 10.1.0.0
PE PE PE CE
VPN_A
11.6.0.0
CE VPN_B
PE CE 10.3.0.0
VPN_B
10.1.0.0 CE
Firewall
VPN_A
CE 11.5.0.0
VPN_B
VPN_A
10.2.0.0 CE PE PE controlling PE CE 10.1.0.0
inter-VPN
VPN_A
11.6.0.0 CE
PE PE CE VPN_B
VPN_B 10.3.0.0
CE
10.1.0.0
VPN_A
10.2.0.0
CE RR VPN_C
VPN_B 11.5.0.0
10.2.0.0CE
P P eBGP CE
PE2 PE
VPN_A iBGP
P P RR VPN_C
11.6.0.0 P P 10.1.0.0
CE PE PE3
VPN_B PE1
SP1 iBGP
CE P P
10.1.0.0
VPN_D
SP2 PE4 CE 10.3.0.0
• Introduction to MPLS
• Label forwarding
• Label Distribution Protocol
• Traffic Engineering
• MPLS VPN
• MPLS QoS
ATM-LSR
MPLS
IP Diff-Serv QoS
end-to-end
Non-MPLS
Conventional
Router
Non-MPLS
MPLS Edge
Routers Frame-LSR
IP QoS
over MPLS QoS IP QoS over
IP QoS over
FR, LL, SDH, ATM
FR, LL, SDH, ATM MPLS QoS over
ATM MPLS, Frame MPLS
MPLS ATM-LSR
IP QoS
Non-MPLS
end-to-end
Conventional
Router Non-MPLS
MPLS Edge
Routers Frame-LSR
MPLS-ARCH-sprevidi-0699 © 1999, Cisco Systems, Inc. 73
Mapping IP QoS into EXP
MPLS
DS QoS DS
ATM LSR= ATM
Switch running MPLS
EXP= F(DS byte)
IP QoS
IP QoS over over MPLS QoS IP QoS over
FR, LL, SDH, ATM FR, LL, SDH, ATM
MPLS QoS over
ATM MPLS, Frame MPLS
MPLS ATM-LSR
IP QoS
Non-MPLS
end-to-end
Conventional
Router Non-MPLS
MPLS Edge
Routers Frame-LSR
MPLS-ARCH-sprevidi-0699 © 1999, Cisco Systems, Inc. 74
Supporting MPLS QoS over non-ATM
MPLS
• Two modes:
•Single `VC’ ABR
•Multi-`VC’ TBR
(closer to Frame QoS)
•Each has advantages and drawbacks
• Single-VC ABR:
•No Loss in the ATM fabric
•Discard possible only on the Edge performed by Routers
•Resource Allocation optionally per Pair of Edge Routers. Sharing of
bandwidth across QoS indirect via WRED profiles