SlideShare a Scribd company logo
1 of 7
MPLS v1.01 – Aaron Balchunas
* * *
All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
1
- Multiprotocol Label Switching -
Multiprotocol Label Switching
Multiprotocol Label Switching (MPLS) is a Layer-2 switching
technology. MPLS-enabled routers apply numerical labels to packets, and
can make forwarding decisions based on these labels. The MPLS
architecture is detailed in RFC 3031.
MPLS reduces CPU-usage on routers, by allowing routers to make
forwarding decisions solely on the attached label, as opposed to parsing the
full routing table.
Labels can based on a variety of parameters:
• Destination IP network
• Source IP address
• QoS parameters
• VPN destination
• Outgoing interface
• Layer-2 circuit
MPLS is not restricted to IP, or any specific Layer-2 technology, and thus is
essentially protocol-independent.
Labels are applied to and removed from packets on edge Label Switch
Routers (edge LSRs). Only edge routers perform a route-table lookup on
packets. All core routers (identified simply as LSRs) in the MPLS network
forward solely based on the label.
As a packet traverses the core MPLS network, core routers will swap the
label on hop-by-hop basis.
MPLS is completely dependent on Cisco Express Forwarding (CEF) to
determine the next hop.
(Reference: http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/mpls_tsw.htm;
http://www.cisco.com/en/US/tech/tk436/tk428/technologies_q_and_a_item09186a00800949e5.shtml)
MPLS v1.01 – Aaron Balchunas
* * *
All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
2
Cisco Express Forwarding (CEF)
Multilayer switches contain both a switching and routing engine. A packet
must first be “routed,” allowing the switching engine to cache the IP traffic
flow. After this cache is created, subsequent packets destined for that flow
can be “switched” as opposed to “routed,” reducing latency.
This concept is often referred to as route once, switch many. Cisco refers to
this type of Multilayer switching as NetFlow switching or route cache
switching.
As is their habit, Cisco replaced NetFlow multilayer switching with a more
advanced method called Cisco Express Forwarding (CEF). CEF is
enabled by default on all Catalyst multi-layer switches (at least, those that
support CEF). CEF cannot even be disabled on the Catalyst 3550, 4500 and
6500.
CEF contains two basic components:
• Layer 3 Engine – Builds the routing table and then “routes” data
• Layer 3 Forwarding Engine – “Switches” data based on the FIB.
The Layer 3 Engine builds its routing table using either static routes, or
routes dynamically learned through a routing protocol (such as RIP or
OSPF).
The routing table is then reorganized into a more efficient table called the
Forward Information Base (FIB). The most specific routes are placed at
the top of the FIB. The Layer 3 Forwarding Engine utilizes the FIB to then
“switch” data in hardware, as opposed to “routing” it through the Layer 3
Engine’s routing table.
The FIB contains the following information:
• Destination networks
• Destination masks
• Next-hop addresses
• The MAC addresses of each next hop (called the Adjacency Table)
To view the CEF FIB table:
Switch# show ip cef
MPLS v1.01 – Aaron Balchunas
* * *
All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
3
The MPLS Label
Two forms of MPLS exist:
• Frame Mode MPLS – utilizes a 32-bit label that is injected between
the Layer-2 and Layer-3 headers.
• Cell Mode MPLS – used with ATM, and utilizes the VPI/VCI fields
ATM header as the label.
This guide will concentrate on Frame Mode MPLS. The 32-bit label has the
following format:
Label Experimental Bottom-of-Stack TTL
20 bits 3 bits 1 bit 8 bits
• Label (20 bits) –
• Experimental (3 bits) – This field is officially undefined, but is used
by Cisco as an IP precedence value.
• Bottom-of-Stack (1 bit) – This field indicates the last label, as
multiple labels are supported in the same packet. A value of 1
identifies the last label in the stack.
• TTL (8 bits) – This field indicates the number of router this label can
‘live’ through.
An Ethernet header is modified to indicate the presence of an MPLS label.
• 0x8847 – indicates a labeled unicast IP packet
• 0x8848 – indicates a labeled multicast IP packet
(Reference: http://www.iec.org/online/tutorials/mpls/topic03.html; http://www.rfc-editor.org/rfc/rfc3032.txt)
MPLS v1.01 – Aaron Balchunas
* * *
All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
4
The MPLS Components
MPLS router designations include:
• LSR (Label Switch Router) – responsible for forwarding packets
through the provider core based on the packet’s label. Cisco refers to
this as a P (provider) router.
• Edge LSR (Label Edge Router) – responsible for adding or
removing labels from packets. Cisco refers to this as a PE (provider
edge) router.
• Non-Label Routers – Cisco refers to this as C (customer) routers
LSRs perform the following functions:
• Control Plane - exchanges routing and label information
• Data Plane - forwards actual packets based on label information
The Control Plane, in charge of information exchange, builds and maintains
the following tables:
• Routing Table – routing information is exchanged between LSRs
using a routing protocol, such as IGRP, EIGRP, IS-IS, OSPF, or BGP.
• Label Information Base (LIB) – label information is exchanged
between LSRs using a label protocol, such as LDP (Label
Distribution Protocol) or TDP (Tag Distribution Protocol)
LDP is now default on Cisco devices, and uses TCP port 646. TDP is a
Cisco-proprietary label protocol, and uses TCP port 711.
Label convergence will occur after routing convergence is completed. Label
protocols require the underlying routing infrastructure in order to function.
The Data Plane, in charge of information forwarding, maintains the
following tables:
• The CEF Forwarding Information Base (FIB) –for forwarding
unlabeled packets. Contains destination IP networks, and the Layer-2
address of the next-hop router.
• Label Forwarding Information Base (LFIB) – for forwarding
labeled packets.
MPLS v1.01 – Aaron Balchunas
* * *
All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
5
The MPLS Process
There are four scenarios detailing how LSRs forward packets:
1. An unlabeled IP packet is received, and is routed unlabeled to the
next hop.
2. An unlabeled IP packet is received, a label is inserted in the header,
and is switched to the next hop.
3. A labeled IP packet is received, the label is swapped, and is switched
to the next hop.
4. A labeled IP packet is received, the label is stripped off, and is routed
to the next hop or destination.
Frame-mode MPLS performs as follows:
1. An edge LSR receives a packet.
2. The edge LSR performs a routing table lookup to determine the next
hop (or exit interface).
3. If destined for the MPLS network, the edge router inserts the label
between the Layer-2 and Layer-3 headers.
4. The edge LSR forwards the labeled packet to the core LSR.
5. Core LSRs will route solely based on the label, and will not perform a
routing table lookup.
MPLS v1.01 – Aaron Balchunas
* * *
All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
6
Configuring Basic MPLS
The first step in configuring MPLS is enabling CEF switching, which can be
accomplished globally (for all interfaces), or on a per interface basis:
Router(config)# ip cef
Router(config)# interface serial0/0
Router(config-if)# ip route-cache cef
To view CEF information:
Router(config)# show ip cef
Next, MPLS must be enabled on the interface:
Router(config)# interface serial0/0
Router(config-if)# mpls ip
The desired label protocol can then be specified (either ldp, tdp, or both):
Router(config)# interface serial0/0
Router(config-if)# mpls label protocol ldp
Router(config)# interface serial0/0
Router(config-if)# mpls label protocol tdp
Router(config)# interface serial0/0
Router(config-if)# mpls label protocol both
If a label protocol is not specified, Cisco devices will default to ldp (as of the
IOS version 12.4).
Because the MPLS label increases the size of the frame by 32 bits (4 bytes),
the mtu for mpls packets should be adjusted to accommodate this:
Router(config)# interface serial0/0
Router(config-if)# mpls mtu 1504
MPLS VPNs require two labels, thus the mtu should be adjusted
accordingly:
Router(config)# interface serial0/0
Router(config-if)# mpls mtu 1508
(Reference: http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a008045543c.html)
MPLS v1.01 – Aaron Balchunas
* * *
All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
7
MPLS VPNs
Cisco identifies two key categories of VPNs:
• Overlay – connections are set up and maintained by the service
provider. However, the provider has no knowledge of, and does not
participate in, the customer’s routing infrastructure.
• Peer-to-Peer – the provider directly participates in routing the
customer’s infrastructure. Routes from multiple customers are not
kept separate. This may require customers to readdress their networks.
MPLS VPNs provide the best of both words. Advantages of MPLS VPNs
include:
• The provider directly participates in routing the customer
infrastructure.
• Peer-to-peer peering is not required, leading to a scalable
infrastructure.
• Customer networks do not need to be readdressed
• Routes from multiple customers are kept separate.
MPLS VPNs use two labels.
MPLS separates customer routes by assigning each a unique Virtual
Routing Instance (VRI), stored in a Virtual Routing and Forwarding
(VRF) table.
If the addressing structure of multiple clients overlaps, each network is
assigned a unique 64-bit route distinguisher (RD). The IP network and RD
combination is called a VPNv4 address.
Route targets are BGP attributes that designate MPLS VPN membership of
routes.

More Related Content

Similar to mpls.pdf

Mpls Traffic Engineering ppt
Mpls Traffic Engineering pptMpls Traffic Engineering ppt
Mpls Traffic Engineering pptNitin Gehlot
 
Multiprotocol label switching (mpls) - Networkshop44
Multiprotocol label switching (mpls)  - Networkshop44Multiprotocol label switching (mpls)  - Networkshop44
Multiprotocol label switching (mpls) - Networkshop44Jisc
 
MPLS Lecture1(H)-102020.pdf
MPLS Lecture1(H)-102020.pdfMPLS Lecture1(H)-102020.pdf
MPLS Lecture1(H)-102020.pdfMulugetaTsehay1
 
MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)Vipin Sahu
 
Cisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study NotesCisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study NotesDuane Bodle
 
Multi Protocol Label Switching. (by Rahil Reyaz)
Multi Protocol Label Switching. (by Rahil Reyaz)Multi Protocol Label Switching. (by Rahil Reyaz)
Multi Protocol Label Switching. (by Rahil Reyaz)RAHIL REYAZ
 
MPLS (Multi-Protocol Label Switching)
MPLS  (Multi-Protocol Label Switching)MPLS  (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)NetProtocol Xpert
 
ENSA_UNIT 1.pdfasasasaasafsedfsecfwefw wefwefw qeda
ENSA_UNIT 1.pdfasasasaasafsedfsecfwefw wefwefw qedaENSA_UNIT 1.pdfasasasaasafsedfsecfwefw wefwefw qeda
ENSA_UNIT 1.pdfasasasaasafsedfsecfwefw wefwefw qedadrainagememes
 
MPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - BasicMPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - BasicEricsson
 
ENSA_Module_1.pptx
ENSA_Module_1.pptxENSA_Module_1.pptx
ENSA_Module_1.pptxserieux1
 

Similar to mpls.pdf (20)

MPLS
MPLSMPLS
MPLS
 
yun-MPLS.ppt
yun-MPLS.pptyun-MPLS.ppt
yun-MPLS.ppt
 
Mpls Traffic Engineering ppt
Mpls Traffic Engineering pptMpls Traffic Engineering ppt
Mpls Traffic Engineering ppt
 
MPLS-extra.ppt
MPLS-extra.pptMPLS-extra.ppt
MPLS-extra.ppt
 
Multiprotocol label switching (mpls) - Networkshop44
Multiprotocol label switching (mpls)  - Networkshop44Multiprotocol label switching (mpls)  - Networkshop44
Multiprotocol label switching (mpls) - Networkshop44
 
MPLS Lecture1(H)-102020.pdf
MPLS Lecture1(H)-102020.pdfMPLS Lecture1(H)-102020.pdf
MPLS Lecture1(H)-102020.pdf
 
MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)
 
Cisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study NotesCisco Exam # 642 611 Mpls Study Notes
Cisco Exam # 642 611 Mpls Study Notes
 
Mpls Services
Mpls ServicesMpls Services
Mpls Services
 
Multi Protocol Label Switching. (by Rahil Reyaz)
Multi Protocol Label Switching. (by Rahil Reyaz)Multi Protocol Label Switching. (by Rahil Reyaz)
Multi Protocol Label Switching. (by Rahil Reyaz)
 
MPLS
MPLSMPLS
MPLS
 
MPLS
MPLS MPLS
MPLS
 
QOS of MPLS
QOS of MPLSQOS of MPLS
QOS of MPLS
 
J010136172
J010136172J010136172
J010136172
 
MPLS (Multi-Protocol Label Switching)
MPLS  (Multi-Protocol Label Switching)MPLS  (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)
 
ENSA_UNIT 1.pdfasasasaasafsedfsecfwefw wefwefw qeda
ENSA_UNIT 1.pdfasasasaasafsedfsecfwefw wefwefw qedaENSA_UNIT 1.pdfasasasaasafsedfsecfwefw wefwefw qeda
ENSA_UNIT 1.pdfasasasaasafsedfsecfwefw wefwefw qeda
 
Mpls
MplsMpls
Mpls
 
MPLS
MPLSMPLS
MPLS
 
MPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - BasicMPLS Deployment Chapter 1 - Basic
MPLS Deployment Chapter 1 - Basic
 
ENSA_Module_1.pptx
ENSA_Module_1.pptxENSA_Module_1.pptx
ENSA_Module_1.pptx
 

More from Huynh MVT

MPLS-based Layer 3 VPNs.pdf
MPLS-based Layer 3 VPNs.pdfMPLS-based Layer 3 VPNs.pdf
MPLS-based Layer 3 VPNs.pdfHuynh MVT
 
MPLS Virtual Private Networks.pdf
MPLS Virtual Private Networks.pdfMPLS Virtual Private Networks.pdf
MPLS Virtual Private Networks.pdfHuynh MVT
 
mplste-130112120119-phpapp02.pdf
mplste-130112120119-phpapp02.pdfmplste-130112120119-phpapp02.pdf
mplste-130112120119-phpapp02.pdfHuynh MVT
 
MPLS-VPN-Technology.pdf
MPLS-VPN-Technology.pdfMPLS-VPN-Technology.pdf
MPLS-VPN-Technology.pdfHuynh MVT
 
TÀI LIỆU BỒI DƯỠNG ĐẢNG VIÊN MỚI.2021.pdf
TÀI LIỆU BỒI DƯỠNG ĐẢNG VIÊN MỚI.2021.pdfTÀI LIỆU BỒI DƯỠNG ĐẢNG VIÊN MỚI.2021.pdf
TÀI LIỆU BỒI DƯỠNG ĐẢNG VIÊN MỚI.2021.pdfHuynh MVT
 
T-REC-G.984.3-200402-S!!PDF-E.pdf
T-REC-G.984.3-200402-S!!PDF-E.pdfT-REC-G.984.3-200402-S!!PDF-E.pdf
T-REC-G.984.3-200402-S!!PDF-E.pdfHuynh MVT
 
WIMAX-THUYET-TRINH.pptx
WIMAX-THUYET-TRINH.pptxWIMAX-THUYET-TRINH.pptx
WIMAX-THUYET-TRINH.pptxHuynh MVT
 
Nguyen dinh phu pic ccs
Nguyen dinh phu pic ccsNguyen dinh phu pic ccs
Nguyen dinh phu pic ccsHuynh MVT
 
Mang va-truyen-so-lieu
Mang va-truyen-so-lieuMang va-truyen-so-lieu
Mang va-truyen-so-lieuHuynh MVT
 
Ky thuat-chuyen-mach -ky-thuat-chuyen-mach-1
Ky thuat-chuyen-mach -ky-thuat-chuyen-mach-1Ky thuat-chuyen-mach -ky-thuat-chuyen-mach-1
Ky thuat-chuyen-mach -ky-thuat-chuyen-mach-1Huynh MVT
 
Dien tu tuong tu ii
Dien tu tuong tu iiDien tu tuong tu ii
Dien tu tuong tu iiHuynh MVT
 
Bài giảng-mạng-viễn-thông-2016
Bài giảng-mạng-viễn-thông-2016Bài giảng-mạng-viễn-thông-2016
Bài giảng-mạng-viễn-thông-2016Huynh MVT
 
Kien truc-co-ban-cua-stm32-arm-cortex-m3
Kien truc-co-ban-cua-stm32-arm-cortex-m3Kien truc-co-ban-cua-stm32-arm-cortex-m3
Kien truc-co-ban-cua-stm32-arm-cortex-m3Huynh MVT
 
Bài giảng môn học phương pháp nghiên cứu khoa học
Bài giảng môn học phương pháp nghiên cứu khoa họcBài giảng môn học phương pháp nghiên cứu khoa học
Bài giảng môn học phương pháp nghiên cứu khoa họcHuynh MVT
 
Vxl ch03-8051-3.1 3.2-v03
Vxl ch03-8051-3.1 3.2-v03Vxl ch03-8051-3.1 3.2-v03
Vxl ch03-8051-3.1 3.2-v03Huynh MVT
 
Ngon ngu c theo chuan ansi
Ngon ngu c theo chuan ansiNgon ngu c theo chuan ansi
Ngon ngu c theo chuan ansiHuynh MVT
 
Arduino cho người mới bắt đầu
Arduino cho người mới bắt đầuArduino cho người mới bắt đầu
Arduino cho người mới bắt đầuHuynh MVT
 
Tổng quan về Intenet of Thing
Tổng quan về Intenet of ThingTổng quan về Intenet of Thing
Tổng quan về Intenet of ThingHuynh MVT
 
Experimental Evaluation of Distortion in Amplitude Modulation Techniques for ...
Experimental Evaluation of Distortion in Amplitude Modulation Techniques for ...Experimental Evaluation of Distortion in Amplitude Modulation Techniques for ...
Experimental Evaluation of Distortion in Amplitude Modulation Techniques for ...Huynh MVT
 
Amplitude Modulation Circuit Implementation for use in a Communication Course...
Amplitude Modulation Circuit Implementation for use in a Communication Course...Amplitude Modulation Circuit Implementation for use in a Communication Course...
Amplitude Modulation Circuit Implementation for use in a Communication Course...Huynh MVT
 

More from Huynh MVT (20)

MPLS-based Layer 3 VPNs.pdf
MPLS-based Layer 3 VPNs.pdfMPLS-based Layer 3 VPNs.pdf
MPLS-based Layer 3 VPNs.pdf
 
MPLS Virtual Private Networks.pdf
MPLS Virtual Private Networks.pdfMPLS Virtual Private Networks.pdf
MPLS Virtual Private Networks.pdf
 
mplste-130112120119-phpapp02.pdf
mplste-130112120119-phpapp02.pdfmplste-130112120119-phpapp02.pdf
mplste-130112120119-phpapp02.pdf
 
MPLS-VPN-Technology.pdf
MPLS-VPN-Technology.pdfMPLS-VPN-Technology.pdf
MPLS-VPN-Technology.pdf
 
TÀI LIỆU BỒI DƯỠNG ĐẢNG VIÊN MỚI.2021.pdf
TÀI LIỆU BỒI DƯỠNG ĐẢNG VIÊN MỚI.2021.pdfTÀI LIỆU BỒI DƯỠNG ĐẢNG VIÊN MỚI.2021.pdf
TÀI LIỆU BỒI DƯỠNG ĐẢNG VIÊN MỚI.2021.pdf
 
T-REC-G.984.3-200402-S!!PDF-E.pdf
T-REC-G.984.3-200402-S!!PDF-E.pdfT-REC-G.984.3-200402-S!!PDF-E.pdf
T-REC-G.984.3-200402-S!!PDF-E.pdf
 
WIMAX-THUYET-TRINH.pptx
WIMAX-THUYET-TRINH.pptxWIMAX-THUYET-TRINH.pptx
WIMAX-THUYET-TRINH.pptx
 
Nguyen dinh phu pic ccs
Nguyen dinh phu pic ccsNguyen dinh phu pic ccs
Nguyen dinh phu pic ccs
 
Mang va-truyen-so-lieu
Mang va-truyen-so-lieuMang va-truyen-so-lieu
Mang va-truyen-so-lieu
 
Ky thuat-chuyen-mach -ky-thuat-chuyen-mach-1
Ky thuat-chuyen-mach -ky-thuat-chuyen-mach-1Ky thuat-chuyen-mach -ky-thuat-chuyen-mach-1
Ky thuat-chuyen-mach -ky-thuat-chuyen-mach-1
 
Dien tu tuong tu ii
Dien tu tuong tu iiDien tu tuong tu ii
Dien tu tuong tu ii
 
Bài giảng-mạng-viễn-thông-2016
Bài giảng-mạng-viễn-thông-2016Bài giảng-mạng-viễn-thông-2016
Bài giảng-mạng-viễn-thông-2016
 
Kien truc-co-ban-cua-stm32-arm-cortex-m3
Kien truc-co-ban-cua-stm32-arm-cortex-m3Kien truc-co-ban-cua-stm32-arm-cortex-m3
Kien truc-co-ban-cua-stm32-arm-cortex-m3
 
Bài giảng môn học phương pháp nghiên cứu khoa học
Bài giảng môn học phương pháp nghiên cứu khoa họcBài giảng môn học phương pháp nghiên cứu khoa học
Bài giảng môn học phương pháp nghiên cứu khoa học
 
Vxl ch03-8051-3.1 3.2-v03
Vxl ch03-8051-3.1 3.2-v03Vxl ch03-8051-3.1 3.2-v03
Vxl ch03-8051-3.1 3.2-v03
 
Ngon ngu c theo chuan ansi
Ngon ngu c theo chuan ansiNgon ngu c theo chuan ansi
Ngon ngu c theo chuan ansi
 
Arduino cho người mới bắt đầu
Arduino cho người mới bắt đầuArduino cho người mới bắt đầu
Arduino cho người mới bắt đầu
 
Tổng quan về Intenet of Thing
Tổng quan về Intenet of ThingTổng quan về Intenet of Thing
Tổng quan về Intenet of Thing
 
Experimental Evaluation of Distortion in Amplitude Modulation Techniques for ...
Experimental Evaluation of Distortion in Amplitude Modulation Techniques for ...Experimental Evaluation of Distortion in Amplitude Modulation Techniques for ...
Experimental Evaluation of Distortion in Amplitude Modulation Techniques for ...
 
Amplitude Modulation Circuit Implementation for use in a Communication Course...
Amplitude Modulation Circuit Implementation for use in a Communication Course...Amplitude Modulation Circuit Implementation for use in a Communication Course...
Amplitude Modulation Circuit Implementation for use in a Communication Course...
 

Recently uploaded

Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Recently uploaded (20)

Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

mpls.pdf

  • 1. MPLS v1.01 – Aaron Balchunas * * * All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 1 - Multiprotocol Label Switching - Multiprotocol Label Switching Multiprotocol Label Switching (MPLS) is a Layer-2 switching technology. MPLS-enabled routers apply numerical labels to packets, and can make forwarding decisions based on these labels. The MPLS architecture is detailed in RFC 3031. MPLS reduces CPU-usage on routers, by allowing routers to make forwarding decisions solely on the attached label, as opposed to parsing the full routing table. Labels can based on a variety of parameters: • Destination IP network • Source IP address • QoS parameters • VPN destination • Outgoing interface • Layer-2 circuit MPLS is not restricted to IP, or any specific Layer-2 technology, and thus is essentially protocol-independent. Labels are applied to and removed from packets on edge Label Switch Routers (edge LSRs). Only edge routers perform a route-table lookup on packets. All core routers (identified simply as LSRs) in the MPLS network forward solely based on the label. As a packet traverses the core MPLS network, core routers will swap the label on hop-by-hop basis. MPLS is completely dependent on Cisco Express Forwarding (CEF) to determine the next hop. (Reference: http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/mpls_tsw.htm; http://www.cisco.com/en/US/tech/tk436/tk428/technologies_q_and_a_item09186a00800949e5.shtml)
  • 2. MPLS v1.01 – Aaron Balchunas * * * All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 2 Cisco Express Forwarding (CEF) Multilayer switches contain both a switching and routing engine. A packet must first be “routed,” allowing the switching engine to cache the IP traffic flow. After this cache is created, subsequent packets destined for that flow can be “switched” as opposed to “routed,” reducing latency. This concept is often referred to as route once, switch many. Cisco refers to this type of Multilayer switching as NetFlow switching or route cache switching. As is their habit, Cisco replaced NetFlow multilayer switching with a more advanced method called Cisco Express Forwarding (CEF). CEF is enabled by default on all Catalyst multi-layer switches (at least, those that support CEF). CEF cannot even be disabled on the Catalyst 3550, 4500 and 6500. CEF contains two basic components: • Layer 3 Engine – Builds the routing table and then “routes” data • Layer 3 Forwarding Engine – “Switches” data based on the FIB. The Layer 3 Engine builds its routing table using either static routes, or routes dynamically learned through a routing protocol (such as RIP or OSPF). The routing table is then reorganized into a more efficient table called the Forward Information Base (FIB). The most specific routes are placed at the top of the FIB. The Layer 3 Forwarding Engine utilizes the FIB to then “switch” data in hardware, as opposed to “routing” it through the Layer 3 Engine’s routing table. The FIB contains the following information: • Destination networks • Destination masks • Next-hop addresses • The MAC addresses of each next hop (called the Adjacency Table) To view the CEF FIB table: Switch# show ip cef
  • 3. MPLS v1.01 – Aaron Balchunas * * * All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 3 The MPLS Label Two forms of MPLS exist: • Frame Mode MPLS – utilizes a 32-bit label that is injected between the Layer-2 and Layer-3 headers. • Cell Mode MPLS – used with ATM, and utilizes the VPI/VCI fields ATM header as the label. This guide will concentrate on Frame Mode MPLS. The 32-bit label has the following format: Label Experimental Bottom-of-Stack TTL 20 bits 3 bits 1 bit 8 bits • Label (20 bits) – • Experimental (3 bits) – This field is officially undefined, but is used by Cisco as an IP precedence value. • Bottom-of-Stack (1 bit) – This field indicates the last label, as multiple labels are supported in the same packet. A value of 1 identifies the last label in the stack. • TTL (8 bits) – This field indicates the number of router this label can ‘live’ through. An Ethernet header is modified to indicate the presence of an MPLS label. • 0x8847 – indicates a labeled unicast IP packet • 0x8848 – indicates a labeled multicast IP packet (Reference: http://www.iec.org/online/tutorials/mpls/topic03.html; http://www.rfc-editor.org/rfc/rfc3032.txt)
  • 4. MPLS v1.01 – Aaron Balchunas * * * All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 4 The MPLS Components MPLS router designations include: • LSR (Label Switch Router) – responsible for forwarding packets through the provider core based on the packet’s label. Cisco refers to this as a P (provider) router. • Edge LSR (Label Edge Router) – responsible for adding or removing labels from packets. Cisco refers to this as a PE (provider edge) router. • Non-Label Routers – Cisco refers to this as C (customer) routers LSRs perform the following functions: • Control Plane - exchanges routing and label information • Data Plane - forwards actual packets based on label information The Control Plane, in charge of information exchange, builds and maintains the following tables: • Routing Table – routing information is exchanged between LSRs using a routing protocol, such as IGRP, EIGRP, IS-IS, OSPF, or BGP. • Label Information Base (LIB) – label information is exchanged between LSRs using a label protocol, such as LDP (Label Distribution Protocol) or TDP (Tag Distribution Protocol) LDP is now default on Cisco devices, and uses TCP port 646. TDP is a Cisco-proprietary label protocol, and uses TCP port 711. Label convergence will occur after routing convergence is completed. Label protocols require the underlying routing infrastructure in order to function. The Data Plane, in charge of information forwarding, maintains the following tables: • The CEF Forwarding Information Base (FIB) –for forwarding unlabeled packets. Contains destination IP networks, and the Layer-2 address of the next-hop router. • Label Forwarding Information Base (LFIB) – for forwarding labeled packets.
  • 5. MPLS v1.01 – Aaron Balchunas * * * All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 5 The MPLS Process There are four scenarios detailing how LSRs forward packets: 1. An unlabeled IP packet is received, and is routed unlabeled to the next hop. 2. An unlabeled IP packet is received, a label is inserted in the header, and is switched to the next hop. 3. A labeled IP packet is received, the label is swapped, and is switched to the next hop. 4. A labeled IP packet is received, the label is stripped off, and is routed to the next hop or destination. Frame-mode MPLS performs as follows: 1. An edge LSR receives a packet. 2. The edge LSR performs a routing table lookup to determine the next hop (or exit interface). 3. If destined for the MPLS network, the edge router inserts the label between the Layer-2 and Layer-3 headers. 4. The edge LSR forwards the labeled packet to the core LSR. 5. Core LSRs will route solely based on the label, and will not perform a routing table lookup.
  • 6. MPLS v1.01 – Aaron Balchunas * * * All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 6 Configuring Basic MPLS The first step in configuring MPLS is enabling CEF switching, which can be accomplished globally (for all interfaces), or on a per interface basis: Router(config)# ip cef Router(config)# interface serial0/0 Router(config-if)# ip route-cache cef To view CEF information: Router(config)# show ip cef Next, MPLS must be enabled on the interface: Router(config)# interface serial0/0 Router(config-if)# mpls ip The desired label protocol can then be specified (either ldp, tdp, or both): Router(config)# interface serial0/0 Router(config-if)# mpls label protocol ldp Router(config)# interface serial0/0 Router(config-if)# mpls label protocol tdp Router(config)# interface serial0/0 Router(config-if)# mpls label protocol both If a label protocol is not specified, Cisco devices will default to ldp (as of the IOS version 12.4). Because the MPLS label increases the size of the frame by 32 bits (4 bytes), the mtu for mpls packets should be adjusted to accommodate this: Router(config)# interface serial0/0 Router(config-if)# mpls mtu 1504 MPLS VPNs require two labels, thus the mtu should be adjusted accordingly: Router(config)# interface serial0/0 Router(config-if)# mpls mtu 1508 (Reference: http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a008045543c.html)
  • 7. MPLS v1.01 – Aaron Balchunas * * * All original material copyright © 2007 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 7 MPLS VPNs Cisco identifies two key categories of VPNs: • Overlay – connections are set up and maintained by the service provider. However, the provider has no knowledge of, and does not participate in, the customer’s routing infrastructure. • Peer-to-Peer – the provider directly participates in routing the customer’s infrastructure. Routes from multiple customers are not kept separate. This may require customers to readdress their networks. MPLS VPNs provide the best of both words. Advantages of MPLS VPNs include: • The provider directly participates in routing the customer infrastructure. • Peer-to-peer peering is not required, leading to a scalable infrastructure. • Customer networks do not need to be readdressed • Routes from multiple customers are kept separate. MPLS VPNs use two labels. MPLS separates customer routes by assigning each a unique Virtual Routing Instance (VRI), stored in a Virtual Routing and Forwarding (VRF) table. If the addressing structure of multiple clients overlaps, each network is assigned a unique 64-bit route distinguisher (RD). The IP network and RD combination is called a VPNv4 address. Route targets are BGP attributes that designate MPLS VPN membership of routes.