Escolar Documentos
Profissional Documentos
Cultura Documentos
Learning Outcomes
know the motivation/objectives of MPLS know the challenge and basic ideas of MPLS know how MPLS works know how to assign labels (globally vs. locally) know how to forward IP packets and switch labels in MPLS domain know how to allocate and distribute labels know the difference between IP routing and MPLS routing and how they work know how MPLS-VPN works
2
10
Challenge
How to design routing and switching in the core network of the Internet with the following objectives: Handle a vast volume of traffic (Scalability) Provide different qualities of service (QoS) Load-balance the traffic in the core network (Traffic Engineering)
11
Outline
Problems on the Internet Solution to the problems: MPLS How MPLS solves those problems How MPLS works
Packet forwarding & Label Switching Label Distribution Label Allocation Schemes
13
15
R1
R1
Outline
Problems on the Internet Solution to the problems: MPLS How MPLS solves those problems How MPLS works
Packet forwarding & Label Switching Label Distribution Label Allocation Schemes
Solution
Multi-Protocol Label Switching (MPLS)
20
22
23
Outline
Problems on the Internet Solution to the problems: MPLS How MPLS solves those problems How MPLS works
Packet forwarding & Label Switching Label Distribution Label Allocation Schemes
Problems solved
Problem 1: Normal IP forwarding is slow Solution: Packets forwarded with labels using exact-match table lookup => make packet forwarding faster
25
26
27
Problems solved
Problem 2: Difficult to provide QoS. Solution: The traffic in a flow will follow a predefined path enable to reserve the resources (e.g bandwidth and buffer) along that path make the provision of QoS much easier
28
29
30
31
32
33
34
35
36
Problems solved
Problem 3: Unbalanced traffic distribution and the danger of causing route oscillation Solution: From packet-based routing to predetermined flow-based routing more control on how the traffic distribute in the network (traffic engineering) load-balance traffic
37
R1
R1
Provide QoS Implement Traffic Engineering Build highly scaleable Virtual Private Networks (VPNs) Support multi-protocols: IP, ATM, frame relay
40
Outline
Problems on the Internet Solution to the problems: MPLS How MPLS solves those problems How MPLS works
Packet forwarding & Label Switching Label Distribution Label Allocation Schemes
Core LSRs 43
Outline
Problems on the Internet Solution to the problems: MPLS How MPLS solves those problems How MPLS works
Packet forwarding & Label Switching Label Distribution Label Allocation Schemes
The packet with the new label is forwarded to the next LSR
45
46
47
49
Example: Blocking?
50
Outline
Problems on the Internet Solution to the problems: MPLS How MPLS solves those problems How MPLS works
Packet forwarding & Label Switching Label Distribution Label Allocation Schemes
Label Distribution
Label Distribution Protocol (LDP) is used to distribute the labels when LSP is setup Egress router starts to distribute labels and passes them to its upstream LSRs Each LSR
Receives outgoing label from downstream LSR Allocates and distributes incoming labels to upstream LSR
52
Outline
Problems on the Internet Solution to the problems: MPLS How MPLS solves those problems How MPLS works
Packet forwarding & Label Switching Label Distribution Label Allocation Schemes
Destination IP-prefix
Aggregate flows destined to the same destination network Scale better Easy to implement due to the same information carried in IP routing protocols
Egress router
Aggregate flows destined to the same egress router Scale much better Less control of individual traffic flows
54
Question
How to decide which label allocation scheme to be used?
55
Answer
For very premier users who are willing pay a lot, application flow scheme can be used For VPN users in a remote network, Destination IP-prefix scheme can be used For the purpose of traffic engineering in the MPLS domain, Egress router approach can be used
56
Outline
Problems on the Internet Solution to the problems: MPLS How MPLS solves those problems How MPLS works
Packet forwarding & Label Switching Label Distribution Label Allocation Schemes
IP Routing
Distributing Routing Information (IP routing) Forwarding Packets (normal IP forwarding )
58
Address Prefix
I/F 1 1
I/F 0
I/F 0 1
128.89
128.89
0
1
You Can Reach 128.89 and 171.69 thru Me
0
You Can Reach 128.89 thru Me
1 171.69
You Can Reach 171.69 thru Me
59
128.89
0
1
128.89.25.4 Data
128.89.25.4 Data
0 1
128.89.25.4 Data
128.89.25.4
Data
171.69
61
MPLS Routing
Distributing Routing Information (IP routing) Assigning Labels (label distribution protocol) Forwarding Packets (fast label switching) Label Sharing (flow aggregation)
63
0 1 0
128.89
You Can Reach 128.89 thru Me You Can Reach 128.89 and 171.69 thru Me
171.69
64
What label switching does is to extend the forwarding table by adding a label field. One for the incoming label and one for the outgoing label. Note that the topology of the network is discovered using unmodified layer 3 protocols such as OSPF.
65
0 1 0
128.89
Use Label 9 for 128.89 Use Label 4 for 128.89 and Use Label 5 for 171.69
171.69
66
67
0 0
1
128.89.25.4 Data 4 128.89.25.4 Data
128.89
171.69
68
Question
How does the MLPS domain route an IP packet with IP address 171.69.25.4?
70
Address Out Out In Label Prefix I'face Label 4 5 4 4 128.89 171.69 117.59 0 1 0
X X
1 1 1
4 5 4
2 7 7
7 X X
...
...
...
...
0 0 1
7 128.89.25.4 Data
128.89.25
1 128.89.25.4 Data
128.89.25.4 Data 128.89.25.4 Data
117.59
71
Question
Why is label removed one hop prior to deaggregation point?
73
Answer
When label sharing traffic (with different destination networks) arrive at the Egress LSR, they may want to go to different outgoing lines Due to label sharing, label switching cannot separate traffic with same label but different destination networks while normal IP packet forwarding (at layer 3) can do so Therefore, label needs to be removed one hop prior to de-aggregation point in order to do normal IP packet forwarding at the last/Egress LSR
74
Outline
Problems on the Internet Solution to the problems: MPLS How MPLS solves those problems How MPLS works
Packet forwarding & Label Switching Label Distribution Label Allocation Schemes
MPLS-VPN Terminology
Provider Network (P-Network)
The backbone under a Service Providers control
PE router
Provider Edge router. Part of the P-Network and interfaces to Customer Edge routers
P router
Provider (core) router, without knowledge of VPN
78
CE router
Customer Edge router. Part of the C-network and interfaces to a PE router
79
10.2.0.0 CE
VPN_B
BGP sessions
CE
VPN_A
11.5.0.0
VPN_A
10.2.0.0
VPN_A
CE CE
PE
P P
P P
PE
CE
10.1.0.0
11.6.0.0
VPN_B
PE
CE
PE
CE
VPN_B
10.3.0.0
10.1.0.0
81
10.2.0.0 CE
VPN_B
VPN_A
PE2
P PE4
CE CE
Data
11.5.0.0
VPN_A
10.2.0.0
VPN_A
CE PE1 CE
CE
P P
10.1.0.0
11.6.0.0
VPN_B
T8T2 Data
PE3
CE
VPN_B
10.3.0.0
10.1.0.0
Ingress PE3 receives normal IP Packets from CE router of VPN_B 10.3 PE3 router does IP Longest Match for VPN_B 10.2 , find BGP next hop (i.e.PE2) PE2 and impose a stack of labels: Exterior Label T2 + Interior Label T8
<VPN_B,10.1> , BGP next hop PE1 <VPN_B,10.2> , BGP next hop PE2 <VPN_B,10.3> , BGP next hop PE3 <VPN_A,11.6> , BGP next hop PE1 <VPN_A,10.1> , BGP next hop PE4 <VPN_A,11.5> , BGP next hop PE4 <VPN_A,10.2> , BGP next hop PE2
T1 T7 T2 T8 T3 T9 T4 T5 T6 T7 T7 TB TB T8
84
10.2.0.0 CE Data
VPN_B
VPN_A
T2 Data
CE
TB T2 Data
11.5.0.0
VPN_A
10.2.0.0
VPN_A
CE CE
CE
PE2
P P
P
TAT2 Data
PE4
T8 T2 Data
CE
10.1.0.0
11.6.0.0
VPN_B
PE1
PE3
CE
VPN_B
10.3.0.0
10.1.0.0
in / out
T8, T8 TA Tw
T9 Tx Ta Ty Tb Tz T7 Tu
All Subsequent P routers do switch the packet solely on Interior Label Egress PE2 router removes Interior Label Egress PE2 uses Exterior Label to select which VPN/CE to forward the packet to Exterior Label is removed and packet routed to VPN_B 10.2s 10.2 CE router
85