SlideShare a Scribd company logo
1
Multi-Protocol Label Switching
(MPLS)
2
MPLS Overview
• A forwarding scheme designed to speed up
IP packet forwarding (RFC 3031)
• Idea: use a fixed length label in the packet
header to decide packet forwarding
– Label carried in an MPLS header between the
link layer header and network layer header
• Support any network layer protocol and link
layer protocol
3
MPLS Header Format
• Label: 20-bit label value
• Exp: experimental use
– Can indicate class of service
• S: bottom of stack indicator
– 1 for the bottom label, 0 otherwise
• TTL: time to live
Label Exp S TTL
20 3 1 8
4
Forwarding Equivalence Class
• An MPLS capable router is called a label
switching router (LSR)
• Forwarding Equivalence Class (FEC): A subset of
packets that are all treated the same way by an
LSR
• A packet is assigned to an FEC at the ingress of an
MPLS domain
5
Forwarding Equivalence Class
• A packet’s FEC can be determined by one or more
of the following:
– Source and/or destination IP address
– Source and/or destination port number
– Protocol ID
– Differentiated services code point
– Incoming interface
• A particular PHB (scheduling and discard policy)
can be defined for a given FEC
6
MPLS Operation
• At ingress LSR of an MPLS domain, an MPLS header is
inserted to a packet before the packet is forwarded
– Label in the MPLS header encodes the packet’s FEC
• At subsequent LSRs
– The label is used as an index into a forwarding table that
specifies the next hop and a new label.
– The old label is replaced with the new label, and the packet
is forwarded to the next hop.
• Egress LSR strips the label and forwards the packet to final
destination based on the IP packet header
7
MPLS Operation
Intf
In
Label
In
Intf
Out
3 40 1
Intf
In
Label
In
Intf
Out
Label
Out
3 50 1 40
1
2
3
1
2
1
2
3
3
FEC Intf
Out
Label
Out
a 1 50
50
40
8
Label Switched Path
• For each FEC, a specific path called Label Switched Path
(LSP) is assigned
– The LSP is unidirectional
• To set up an LSP, each LSR must
– Assign an incoming label to the LSP for the corresponding FEC
• Labels have only local significance
– Inform the upstream node of the assigned label
– Learn the label that the downstream node has assigned to the LSP
• Need a label distribution protocol so that an LSR can
inform others of the label/FEC bindings it has made
• A forwarding table is constructed as the result of label
distribution.
9
Intf
In
Label
In
Intf
Out
3 40 1
Intf
In
Label
In
Intf
Out
Label
Out
3 50 1 40
Label Distribution
47.1
47.2
47.3
1
2
3
1
2
1
2
3
3
Dest Intf
Out
Label
Out
47.1 1 50 Mapping: 40
Request: 47.1
10
LSP Route Selection
• Hop-by-hop routing: use the route
determined by the dynamic routing protocol
• Explicit routing (ER): the sender LSR can
specify an explicit route for the LSP
– Explicit route can be selected ahead of time or
dynamically
11
Explicitly Routed LSP
• Advantages
– Can establish LSP’s based on policy, QoS, etc.
– Can have pre-established LSP’s that can be
used in case of failures.
• Signaling protocols
– CR-LDP
– RSVP-TE
12
Diffserv-Aware MPLS
• MPLS can be used together with Differentiated Services to
provide QoS.
• LSPs are configured between each ingress-egress pair.
– For each ingress-egress pair, a separate LSP can be created for
each traffic class, or
– Can create a single LSP for each ingress-egress pair and use the
Exp bits to differentiate packet classes.
• Scalable: as the number of flows increases, the number of
LSPs does not increase.
13
Diffserv-Aware MPLS
• Operations of routers in an ISP network
– At the ingress router, in addition to policing, a MPLS
header is inserted into the packet.
– Core routers process the packets based on the label and
Exp fields
– At the egress router, the MPLS header is removed.
• Whether a ISP’s architecture is DS field-based or
MPLS-based is transparent to other ISPs
 The DS field based architecture and the MPLS
based architecture can easily inter-operate.
14
Diffserv-Aware MPLS
• A customer domain still needs a BB to
– Allocate services
– Request for resources on behalf of the customer domain
when the SLA is dynamic.
• BBs may not be needed in the MPLS-based ISP
networks
– Ingress router can make the admission control decision
– If the resource request is granted, ingress router sends a
PATH message to egress router through a LSP
15
Why MPLS Protection?
• IP restoration is very slow
– OSPF, RIP, etc. require a redistribution of updated
link status information in response to a failure.
– Routing table convergence time on the order of
seconds.
– Looping and packet loss can occur during
convergence
• MPLS enables fast failure restoration
16
MPLS Protection Approaches
• End-to-End protection
– A backup LSP is set up in advance from the source
LSR to the destination LSR of the primary LSP.
• The backup LSP is link and node disjoint with the
primary LSP
• Need reserve resources for the backup LSP
– Source LSR responsible for restorationsender
must be notified of the failure
17
MPLS Protection Approaches
• Local protection
– When establishing a primary LSP, a backup LSP
for each possible link or node failure is set up
• Resources reserved for each backup LSP
– Failure detecting LSR responsible for switching
traffic to the backup LSR
– Faster restoration than end-to-end protection
18
Local Protection
• Problem: must create a separate set of
backup LSPs for every primary LSP
• Can a single LSP backup a set of
primary LSPs?
• Yes! Use MPLS label stacking.
19
Label Stacking
• A packet may carry multiple labels, organized as a last-in-
first-out stack
• A label may be added to/removed from the stack at any
LSR
• Processing always done on the top label
• Allow the aggregation of LSPs into a single LSP for a
portion of the route, creating a tunnel
– At the beginning of the tunnel, the LSR assigns the same label to
packets from different LSPs by pushing the label onto each
packet’s stack
– At the end of the tunnel, the LSR pops the top label
20
Local Protection Using Label
Stacking
• Bypass tunnel: a LSP used to protect a
set of LSPs passing over a common
facility.
• Label stacking allows different primary
LSPs to use the same bypass tunnel for
failure protection.
21
Local Protection Using Label
Stacking
When a failure occurs:
• LSR at the beginning of the tunnel will
– Switch packets received on the protected LSP x onto the
bypass tunnel
– Replace the old label with a new label that will be
understood by the last node in the bypass tunnel to indicate
LSP x
– Push the bypass tunnel's label onto the label-stack of the
redirected packets.
• LSR at the end of the tunnel will
– Pop the bypass tunnel's label
– Examine the top label to determine the protected LSP that
the packet is to follow.
22
Summary of MPLS
• Simplify packet forwarding based on a
fixed length label
• Enable explicit routing in IP networks
– Can be used for traffic management, QoS
routing
• Enable fast restoration from failures.

More Related Content

Similar to MPLS.ppt

MPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - BasicMPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - Basic
Ericsson
 
MPLS_cisco.ppt
MPLS_cisco.pptMPLS_cisco.ppt
MPLS_cisco.ppt
ssuserd0c720
 
An introduction to MPLS networks and applications
An introduction to MPLS networks and applicationsAn introduction to MPLS networks and applications
An introduction to MPLS networks and applications
Shawn Zandi
 
yun-MPLS.ppt
yun-MPLS.pptyun-MPLS.ppt
yun-MPLS.ppt
ssuserd0c720
 
Traffic Engineering Fault Tolerance Using MPLS Routing - Optical Fiber Commun...
Traffic Engineering Fault Tolerance Using MPLS Routing - Optical Fiber Commun...Traffic Engineering Fault Tolerance Using MPLS Routing - Optical Fiber Commun...
Traffic Engineering Fault Tolerance Using MPLS Routing - Optical Fiber Commun...
Sakkar Chowdhury
 
Mpls basics introduction
Mpls basics introductionMpls basics introduction
Mpls basics introduction
Philip Agu Bah
 
MPLS101.ppt
MPLS101.pptMPLS101.ppt
MPLS101.ppt
ssuserd0c720
 
MPLS-jpl.ppt
MPLS-jpl.pptMPLS-jpl.ppt
MPLS-jpl.ppt
demon667714
 
Digital network lecturer3
Digital network  lecturer3Digital network  lecturer3
Digital network lecturer3
Jumaan Ally Mohamed
 
MPLS-extra.ppt
MPLS-extra.pptMPLS-extra.ppt
MPLS-extra.ppt
SidharthSharma546629
 
Multi-Protocol Label Switching
Multi-Protocol Label SwitchingMulti-Protocol Label Switching
Multi-Protocol Label Switchingseanraz
 
Multiprotocol label switching (mpls) - Networkshop44
Multiprotocol label switching (mpls)  - Networkshop44Multiprotocol label switching (mpls)  - Networkshop44
Multiprotocol label switching (mpls) - Networkshop44
Jisc
 
MPLS
MPLSMPLS
MPLS - Multiprotocol Label Switching
MPLS - Multiprotocol Label SwitchingMPLS - Multiprotocol Label Switching
MPLS - Multiprotocol Label Switching
Peter R. Egli
 
Mpls Services
Mpls ServicesMpls Services
Mpls Services
Kristof De Brouwer
 
mpls.ppt
mpls.pptmpls.ppt
mpls.ppt
IbraheimZidan
 
MPLS
MPLSMPLS
MPLS
KHNOG
 

Similar to MPLS.ppt (20)

MPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - BasicMPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - Basic
 
MPLS_cisco.ppt
MPLS_cisco.pptMPLS_cisco.ppt
MPLS_cisco.ppt
 
MPLS
MPLSMPLS
MPLS
 
An introduction to MPLS networks and applications
An introduction to MPLS networks and applicationsAn introduction to MPLS networks and applications
An introduction to MPLS networks and applications
 
yun-MPLS.ppt
yun-MPLS.pptyun-MPLS.ppt
yun-MPLS.ppt
 
Traffic Engineering Fault Tolerance Using MPLS Routing - Optical Fiber Commun...
Traffic Engineering Fault Tolerance Using MPLS Routing - Optical Fiber Commun...Traffic Engineering Fault Tolerance Using MPLS Routing - Optical Fiber Commun...
Traffic Engineering Fault Tolerance Using MPLS Routing - Optical Fiber Commun...
 
Mpls basics introduction
Mpls basics introductionMpls basics introduction
Mpls basics introduction
 
MPLS101.ppt
MPLS101.pptMPLS101.ppt
MPLS101.ppt
 
MPLS-jpl.ppt
MPLS-jpl.pptMPLS-jpl.ppt
MPLS-jpl.ppt
 
Digital network lecturer3
Digital network  lecturer3Digital network  lecturer3
Digital network lecturer3
 
MPLS-extra.ppt
MPLS-extra.pptMPLS-extra.ppt
MPLS-extra.ppt
 
Mpls101
Mpls101Mpls101
Mpls101
 
Multi-Protocol Label Switching
Multi-Protocol Label SwitchingMulti-Protocol Label Switching
Multi-Protocol Label Switching
 
Mpls
MplsMpls
Mpls
 
Multiprotocol label switching (mpls) - Networkshop44
Multiprotocol label switching (mpls)  - Networkshop44Multiprotocol label switching (mpls)  - Networkshop44
Multiprotocol label switching (mpls) - Networkshop44
 
MPLS
MPLSMPLS
MPLS
 
MPLS - Multiprotocol Label Switching
MPLS - Multiprotocol Label SwitchingMPLS - Multiprotocol Label Switching
MPLS - Multiprotocol Label Switching
 
Mpls Services
Mpls ServicesMpls Services
Mpls Services
 
mpls.ppt
mpls.pptmpls.ppt
mpls.ppt
 
MPLS
MPLSMPLS
MPLS
 

Recently uploaded

Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 

Recently uploaded (20)

Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 

MPLS.ppt

  • 2. 2 MPLS Overview • A forwarding scheme designed to speed up IP packet forwarding (RFC 3031) • Idea: use a fixed length label in the packet header to decide packet forwarding – Label carried in an MPLS header between the link layer header and network layer header • Support any network layer protocol and link layer protocol
  • 3. 3 MPLS Header Format • Label: 20-bit label value • Exp: experimental use – Can indicate class of service • S: bottom of stack indicator – 1 for the bottom label, 0 otherwise • TTL: time to live Label Exp S TTL 20 3 1 8
  • 4. 4 Forwarding Equivalence Class • An MPLS capable router is called a label switching router (LSR) • Forwarding Equivalence Class (FEC): A subset of packets that are all treated the same way by an LSR • A packet is assigned to an FEC at the ingress of an MPLS domain
  • 5. 5 Forwarding Equivalence Class • A packet’s FEC can be determined by one or more of the following: – Source and/or destination IP address – Source and/or destination port number – Protocol ID – Differentiated services code point – Incoming interface • A particular PHB (scheduling and discard policy) can be defined for a given FEC
  • 6. 6 MPLS Operation • At ingress LSR of an MPLS domain, an MPLS header is inserted to a packet before the packet is forwarded – Label in the MPLS header encodes the packet’s FEC • At subsequent LSRs – The label is used as an index into a forwarding table that specifies the next hop and a new label. – The old label is replaced with the new label, and the packet is forwarded to the next hop. • Egress LSR strips the label and forwards the packet to final destination based on the IP packet header
  • 7. 7 MPLS Operation Intf In Label In Intf Out 3 40 1 Intf In Label In Intf Out Label Out 3 50 1 40 1 2 3 1 2 1 2 3 3 FEC Intf Out Label Out a 1 50 50 40
  • 8. 8 Label Switched Path • For each FEC, a specific path called Label Switched Path (LSP) is assigned – The LSP is unidirectional • To set up an LSP, each LSR must – Assign an incoming label to the LSP for the corresponding FEC • Labels have only local significance – Inform the upstream node of the assigned label – Learn the label that the downstream node has assigned to the LSP • Need a label distribution protocol so that an LSR can inform others of the label/FEC bindings it has made • A forwarding table is constructed as the result of label distribution.
  • 9. 9 Intf In Label In Intf Out 3 40 1 Intf In Label In Intf Out Label Out 3 50 1 40 Label Distribution 47.1 47.2 47.3 1 2 3 1 2 1 2 3 3 Dest Intf Out Label Out 47.1 1 50 Mapping: 40 Request: 47.1
  • 10. 10 LSP Route Selection • Hop-by-hop routing: use the route determined by the dynamic routing protocol • Explicit routing (ER): the sender LSR can specify an explicit route for the LSP – Explicit route can be selected ahead of time or dynamically
  • 11. 11 Explicitly Routed LSP • Advantages – Can establish LSP’s based on policy, QoS, etc. – Can have pre-established LSP’s that can be used in case of failures. • Signaling protocols – CR-LDP – RSVP-TE
  • 12. 12 Diffserv-Aware MPLS • MPLS can be used together with Differentiated Services to provide QoS. • LSPs are configured between each ingress-egress pair. – For each ingress-egress pair, a separate LSP can be created for each traffic class, or – Can create a single LSP for each ingress-egress pair and use the Exp bits to differentiate packet classes. • Scalable: as the number of flows increases, the number of LSPs does not increase.
  • 13. 13 Diffserv-Aware MPLS • Operations of routers in an ISP network – At the ingress router, in addition to policing, a MPLS header is inserted into the packet. – Core routers process the packets based on the label and Exp fields – At the egress router, the MPLS header is removed. • Whether a ISP’s architecture is DS field-based or MPLS-based is transparent to other ISPs  The DS field based architecture and the MPLS based architecture can easily inter-operate.
  • 14. 14 Diffserv-Aware MPLS • A customer domain still needs a BB to – Allocate services – Request for resources on behalf of the customer domain when the SLA is dynamic. • BBs may not be needed in the MPLS-based ISP networks – Ingress router can make the admission control decision – If the resource request is granted, ingress router sends a PATH message to egress router through a LSP
  • 15. 15 Why MPLS Protection? • IP restoration is very slow – OSPF, RIP, etc. require a redistribution of updated link status information in response to a failure. – Routing table convergence time on the order of seconds. – Looping and packet loss can occur during convergence • MPLS enables fast failure restoration
  • 16. 16 MPLS Protection Approaches • End-to-End protection – A backup LSP is set up in advance from the source LSR to the destination LSR of the primary LSP. • The backup LSP is link and node disjoint with the primary LSP • Need reserve resources for the backup LSP – Source LSR responsible for restorationsender must be notified of the failure
  • 17. 17 MPLS Protection Approaches • Local protection – When establishing a primary LSP, a backup LSP for each possible link or node failure is set up • Resources reserved for each backup LSP – Failure detecting LSR responsible for switching traffic to the backup LSR – Faster restoration than end-to-end protection
  • 18. 18 Local Protection • Problem: must create a separate set of backup LSPs for every primary LSP • Can a single LSP backup a set of primary LSPs? • Yes! Use MPLS label stacking.
  • 19. 19 Label Stacking • A packet may carry multiple labels, organized as a last-in- first-out stack • A label may be added to/removed from the stack at any LSR • Processing always done on the top label • Allow the aggregation of LSPs into a single LSP for a portion of the route, creating a tunnel – At the beginning of the tunnel, the LSR assigns the same label to packets from different LSPs by pushing the label onto each packet’s stack – At the end of the tunnel, the LSR pops the top label
  • 20. 20 Local Protection Using Label Stacking • Bypass tunnel: a LSP used to protect a set of LSPs passing over a common facility. • Label stacking allows different primary LSPs to use the same bypass tunnel for failure protection.
  • 21. 21 Local Protection Using Label Stacking When a failure occurs: • LSR at the beginning of the tunnel will – Switch packets received on the protected LSP x onto the bypass tunnel – Replace the old label with a new label that will be understood by the last node in the bypass tunnel to indicate LSP x – Push the bypass tunnel's label onto the label-stack of the redirected packets. • LSR at the end of the tunnel will – Pop the bypass tunnel's label – Examine the top label to determine the protected LSP that the packet is to follow.
  • 22. 22 Summary of MPLS • Simplify packet forwarding based on a fixed length label • Enable explicit routing in IP networks – Can be used for traffic management, QoS routing • Enable fast restoration from failures.