Top Banner
Fundamentals Multiprotocol Label Switching MPLS I Rafael Sebastian Departament de tecnologies de la Informació i les Comunicaciones Universitat Pompeu Fabra Design of Telecommunication Infrastructures 2008-2009
61

Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Apr 23, 2018

Download

Documents

hoangnhan
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Fundamentals

Multiprotocol Label

Switching – MPLS I

Rafael SebastianDepartament de tecnologies de la Informació i les Comunicaciones

Universitat Pompeu Fabra

Design of Telecommunication

Infrastructures

2008-2009

Page 2: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Evolution of MPLS

MPLS Architecture

Forwarding Labeled Packets

Review Test

2008/2009 VPN – Rafael Sebastian 2

Table of Contents

Page 3: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Explain the driving factors behind MPLS

List the benefits of forwarding labeled

packets instead of forwarding IP packets

Explain the applications of MPLS that have

received widespread acceptance

2008/2009 VPN – Rafael Sebastian 3

Goals of the section

Page 4: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Definition

Benefits

Review Questions

2008/2009 VPN – Rafael Sebastian 4

Evolution of MPLS

Page 5: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

MPLS labels used to forward packets instead

of IP address

F/R and ATM were based on label switching

MPLS helps integrating IP and ATM

2008/2009 VPN – Rafael Sebastian 5

What is MPLS?

EV

OL

UT

ION

OF

MP

LS

-D

efi

nit

ion

Networking technology that uses labels attached

to packets to forward them through the network

Page 6: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

ATM and F/R were the top WAN technologies

IP extended everywhere IP over VPNs

Private networks

Use of L2 WAN technologies

Overlay Networks

Migration from traditional VPNs to MPLS

VPNs

2008/2009 VPN – Rafael Sebastian 6

Pre-MPLS Protocols

EV

OL

UT

ION

OF

MP

LS

-D

efi

nit

ion

Page 7: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Switching IP packets use to be time

consuming:

Read IP header (32 bits)

Check unicast/multicast

Look up destination address (routing table)

Switching Labels hardware process

These days IP switching is as fast as Label

switching

2008/2009 VPN – Rafael Sebastian 7

Improved switching?

EV

OL

UT

ION

OF

MP

LS

-B

en

efi

ts

Page 8: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

MPLS Concept

Label Ingress packet based on destination address

(or other criteria) and switch all the traffic

MPLS + IP

Carry all the IP capable data (data, telephone,…)

AToM (Any Transport over MPLS)

MPLS can transport IPv4, IPv6, Ethernet, HDLC,

PPP and other Layer 2 technologies

2008/2009 VPN – Rafael Sebastian 8

Unified Network

Infrastructure

EV

OL

UT

ION

OF

MP

LS

-B

en

efi

ts

Page 9: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

IP won the Layer 3 battle & ATM the Layer 2

IP over ATM was needed (WAN backbone)

RFC 1483, Multiprotocol Encapsulation over ATM

Adaptation Layer 5 Management burden

LANE (LAN Emulation)

MPOA (Multiprotocol over ATM) Complex

Final Solution MPLS

Intelligence on the ATM Networks

2008/2009 VPN – Rafael Sebastian 9

IP over ATM Integration

EV

OL

UT

ION

OF

MP

LS

-B

en

efi

ts

Page 10: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 10

BGP-Free Core

EV

OL

UT

ION

OF

MP

LS

-B

en

efi

ts

BGP-Free Core

Edge MPLS

Router

Edge MPLS

Router

BGP Router

Reflector

MPLS Network

Edge MPLS

Router

Edge MPLS

Router

Edge MPLS

Router

Page 11: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 11

MPLS VPNs (peer-to-peer)

EV

OL

UT

ION

OF

MP

LS

-B

en

efi

ts

Makes the peer-to-peer model easy to

implement

Privateness guaranteed through Virtual

Routing Forwarding (VRF)

VPN A

Site 1VPN A

Site 2

VRFVRFMPLS Backbone

Data Labels

CE Router

PE Router PE Router

CE Router

Page 12: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 12

Optimal Traffic Flow

EV

OL

UT

ION

OF

MP

LS

-B

en

efi

ts

Site A

Site B

Site C

ATM

Switch

ATM

Switch

VC1 VC2ATM

Switch

ATM & F/R depend on VC

No optimal traffic flow

unless full-meshed

Page 13: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 13

Traffic Engineering

EV

OL

UT

ION

OF

MP

LS

-B

en

efi

ts

Optimal use of the network infrastructure

Not all traffic through the least-cost path

(dictated by IP routing protocol)

Traffic is spread more evenly over the

available links

R4 R5 R8

R1

R2 R3

R6

R7

OC3

OC12

Page 14: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian

14

MPLS-TE

EV

OL

UT

ION

OF

MP

LS

-B

en

efi

ts

R4 R5 R8

R1

R2 R3

R6

R7

OC3

OC12

Page 15: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

1. What are the MPLS applications mentioned in this chapter?

2. Name three advantages of running MPLS in a service provider

network.

3. What are the advantages of the MPLS VPN solution for the

service provider over all the other VPN solutions?

4. Name the four technologies that can be used to carry IP over

ATM.

5. Name two pre-MPLS protocols that use label switching.

6. What do the ATM switches need to run so that they can operate

MPLS?

7. How do you ensure optimal traffic flow between all the customer

sites in an ATM or Frame Relay overlay network?

2008/2009 VPN – Rafael Sebastian 15

Review Questions

EV

OL

UT

ION

OF

MP

LS

–R

evie

w Q

uesti

on

s

Page 16: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Evolution of MPLS

MPLS Architecture

Forwarding Labeled Packets

Review Test

2008/2009 VPN – Rafael Sebastian 16

Table of Contents

Page 17: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Explain the format of an MPLS label

Describe a stack of MPLS labels and explain

where it resides in the frame

Tell what a LSR is and what its functions

Describe what a LSP and a FEC are

Explain the difference between LIB and LFIB

Determine how labels are distributed in an

MPLS network

2008/2009 VPN – Rafael Sebastian 17

Goals of the section

Page 18: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Evolution of MPLS

MPLS Architecture

Forwarding Labeled Packets

Review Test

2008/2009 VPN – Rafael Sebastian 18

Table of Contents

Page 19: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

MPLS Labels

Basic Components

Label Distribution

Review Questions

2008/2009 VPN – Rafael Sebastian 19

MPLS Architecture

Page 20: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

MPLS Label is a field of 32 bits

LABEL: 20 bits (max. 1,048,575 labels, 16

labels reserved)

EXP: For QoS

BoS: Set to 1 in the Bottom Label of the

packet

TTL: Time To Live

2008/2009 VPN – Rafael Sebastian 20

MPLS Labels

MP

LS

AR

CH

ITE

CT

UR

E –

MP

LS

Lab

els

Page 21: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Several Label could be used to route the

packet though the MPLS network

The labels are stacked one on top of the next

one

2008/2009 VPN – Rafael Sebastian 21

Label Stacking

MP

LS

AR

CH

ITE

CT

UR

E –

MP

LS

Lab

els

Label EXP 0 TTL

Label EXP 0 TTL

Label EXP 1 TTL

Page 22: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 22

Label Location

MP

LS

AR

CH

ITE

CT

UR

E –

MP

LS

Lab

els

IP

headerData

Ethernet

Header

MPLS

Label

IP

header

Data MAC

trailer

Frame Formats (frame-mode MPLS)

PPP

Header

MPLS

Label

IP

header

Data MAC

trailer

F/R

Header

MPLS

Label

IP

header

Data MAC

trailer

OSI Layer 2.5

Page 23: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

LSR: Router that supports MPLS

LSP: is a sequence of LSRs that switch a labeled

packet through an MPLS network or part of an MPLS

network

2008/2009 VPN – Rafael Sebastian 23

LSR & LSP –Label Switched Router

Label Switched Path

MP

LS

AR

CH

ITE

CT

UR

E –

Basic

Co

mp

on

en

ts

Ingress

LSREgress

LSRLSR LSR

Label Switched Path (LSP)

Nested LSP

Page 24: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

FEC: group of packets forwarded along the

same path and treated in the same way

Same FEC = same Label

Same Label NOT ALLWAYS same FEC (ej.

Because of different EXP)

Ingress LSR classifies packets into FECs

Based on: IP source/destination, IP DiffServ

Code Point, BGP prefix…

2008/2009 VPN – Rafael Sebastian 24

FECForwarding Equivalent Class

MP

LS

AR

CH

ITE

CT

UR

E –

Basic

Co

mp

on

en

ts

Page 25: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 25

Label Distribution

MP

LS

AR

CH

ITE

CT

UR

E –

Lab

el

Dis

trib

uti

on

Ingress

LSREgress

LSRLSR

Label Switched Path (LSP) Green Path

IP Packet IP Packet L

Switch

Label LL

IP Packet

Pop

LabelL

IP Packet L

To Green

Network?

Green

Network

Page 26: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Piggyback the labels on an existing IP

routing protocol

No new protocol is needed on LSR

Routing and label protocol are sync

Implementation in distance vector routing

protocol is straightforward (EIGRP)

Extension of IP protocol required

Link state routing protocol have problems

2008/2009 VPN – Rafael Sebastian 26

How to distribute labels? (I)

MP

LS

AR

CH

ITE

CT

UR

E –

Lab

el

Dis

trib

uti

on

Page 27: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Running a Separate Protocol for Label

Distribution

Routing protocol independent

A new protocol needed in the LSRs

Several varieties

Tag Distribution Protocol (TDP) [Cisco/deprecated]

Label Distribution Protocol (LDP)

Resource Reservation Protocol (RSVP)

2008/2009 VPN – Rafael Sebastian 27

How to distribute labels? (II)

MP

LS

AR

CH

ITE

CT

UR

E –

Lab

el

Dis

trib

uti

on

Page 28: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

LSR

1. Define a Label (binding) for each IGP IP Prefix

2. Redistribute this binding to all LDP neighbors

3. Receive the remote bindings and add them to LIB

Label space can be per-platform or per-interface

Each LSR has only one local binding

Several remote bindings can be received for the same prefix One needs to be picked

Set-up Label Forwarding Information Base (LFIB)

Swapping incoming for outgoing label

2008/2009 VPN – Rafael Sebastian 28

Label Distribution Protocol -LDP

MP

LS

AR

CH

ITE

CT

UR

E –

Lab

el

Dis

trib

uti

on

LIB: Label Information Base

Page 29: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 29

Label Distribution Protocol -LDP

MP

LS

AR

CH

ITE

CT

UR

E –

Lab

el

Dis

trib

uti

on

Ingress

LSRLSR LSR LSR

LDP LDP LDP

10.0.0.0/8

Label 106

10.0.0.0/8

Label 19

10.0.0.0/8

Label 44

IGP Prefix

10.0.0.0/8

Remote binding

from downstring

neighbor

Remote binding

from downstring

neighbor

Remote binding

from downstring

neighbor

Local binding

for 10.0.0.0/8

Label 44

Local binding

for 10.0.0.0/8

Label 19

Local binding

for 10.0.0.0/8

Label 106

Page 30: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

The LFIB is the table used to forward labeled

packets

Incoming label from the local binding

Outgoing label chosen from remote binding from all the possibilities (based on best path)

LFIB populated by

LDP

RSVP: For MPLS-TE

BGP: For MPLS VPNs

VPN – Rafael Sebastian 30

Label Forwarding

Information Base - LFIB

MP

LS

AR

CH

ITE

CT

UR

E –

Lab

el

Dis

trib

uti

on

2008/2009

Page 31: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

MPLS has no Network Level Protocol (NLP)

identifier field

LSR do not need to know about payload, only

the top MPLS label is important

LSR only needs to have a binding for the top

level label

Egress LSR removes all labels and assign

NLP

VPN – Rafael Sebastian 31

MPLS Payload?

MP

LS

AR

CH

ITE

CT

UR

E –

Lab

el

Dis

trib

uti

on

2008/2009

Page 32: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Where does it

come from?

VPN – Rafael Sebastian 32

MPLS Label SpacesPer-Interface vs. Per-Platform

MP

LS

AR

CH

ITE

CT

UR

E –

Lab

el

Dis

trib

uti

on

2008/2009

FEC 1

FEC 2

LSR C

LSR B

LSR A

IP Packet L1

Per-Interface:Look at label & incoming Interface

Per-Platform:Look ONLY at labelFEC2 needs New L2 Label

Page 33: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Modes when distributing Labels

Label distribution mode

Downstream-on-Demand (DoD) label distribution

Unsolicited Downstream (UD) label distribution

Label retention mode

Liberal Label Retention (LLR) mode

Conservative Label Retention (CLR) mode

LSP control mode

Independent LSP Control mode

Ordered LSP Control mode

VPN – Rafael Sebastian 33

MPLS Modes

MP

LS

AR

CH

ITE

CT

UR

E –

Lab

el

Dis

trib

uti

on

2008/2009

Page 34: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

1. Name the four fields that are part of a label.

2. How many labels can reside in a label stack?

3. In which layer does MPLS fit in the OSI reference

model?

4. Which table does an LSR use to forward labeled

packets?

5. What type of interfaces use the Downstream-on-

Demand label distribution mode and the per-interface

label space?

6. Why does the MPLS label have a Time To Live (TTL)

field?

2008/2009 VPN – Rafael Sebastian 34

Review Questions

MP

LS

AR

CH

ITE

CT

UR

E –

Revie

w Q

uesti

on

s

Page 35: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

1. How many octets are there in the MPLS label stack header?A. 1

B. 2

C. 3

D. 4

2. In frame-mode MPLS, the MPLS label stack resides

___________ and ___________. (Choose two.)A. Before the Layer 2 header

B. After the Layer 2 header

C. Before the Layer 3 payload

D. After the Layer 3 payload

3. How many bits make up the label portion of the MPLS label

stack?A. 3

B. 16

C. 20

D. 32

2008/2009 VPN – Rafael Sebastian 35

Test Questions

MP

LS

Fu

nd

am

en

tals

Revie

w T

est

Page 36: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

4. An MPLS-capable router/switch is called a(n) ___________?A. LSA

B. LSR

C. LRR

D. TSR

5. Which device in the network only connects to service

provider equipment?A. P

B. PE

C. CE

D. C

6. Which network device typically imposes the labels?A. P

B. PE

C. CE

D. C

2008/2009 VPN – Rafael Sebastian 36

Test Questions

MP

LS

Fu

nd

am

en

tals

Revie

w T

est

Page 37: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Evolution of MPLS

MPLS Architecture

Forwarding Labeled Packets

Review Test

2008/2009 VPN – Rafael Sebastian 37

Table of Contents

Page 38: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Explain how labeled packets are forwarded

Name the reserved MPLS labels and know

what they are used for

Determine the importance of MPLS MTU

Explain what happens to labeled packets

that have TTL expiring

Explain what happens with labeled packets

that need to be fragmented

2008/2009 VPN – Rafael Sebastian 38

Goals of the section

Page 39: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Forwarding Labeled packets

Label Numbers

TTL Behavior of Labeled Packets

MPLS MTU

Review Questions

2008/2009 VPN – Rafael Sebastian 39

Forwarding Labeled Packets

Page 40: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 40

Summary MPLSReview

Ingress

LSRLSR LSR LSR

IGP Prefix

10.0.0.0/8

LDP

10.0.0.0/8

Label 44

Remote binding

from downstring

neighbor

Local binding

for 10.0.0.0/8

Label 44

LDP

10.0.0.0/8

Label 19

Remote binding

from downstring

neighbor

Local binding

for 10.0.0.0/8

Label 19

LDP

10.0.0.0/8

Label 106

Remote binding

from downstring

neighbor

Local binding

for 10.0.0.0/8

Label 106

FO

RW

AR

DIN

G P

AC

KE

TS

–R

evie

w

Page 41: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Possible label operations: swap, push, and pop.

The LSR sees the 20-bit field in the top label

looks up this value in the LFIB,

tries to match it with a value in the local labels

list.

2008/2009 VPN – Rafael Sebastian 41

Label Operation

FO

RW

AR

DIN

G P

AC

KE

TS

–F

orw

ard

ing

16 34 16 34 16 16

IP IP IP IP IP IP

55 23

SWAP PUSH POP

Page 42: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

CEF (IP) or LFIB (Label) lookup

2008/2009 VPN – Rafael Sebastian 42

IP vs Label Lookup

FO

RW

AR

DIN

G P

AC

KE

TS

–F

orw

ard

ing

25

IP

IP

16

IP

Lookup in CEF Table

Lookup in LFIB Table

IP

Protocol field

L2 Header?

28

IP

IP

Page 43: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 43

Example case

FO

RW

AR

DIN

G P

AC

KE

TS

–F

orw

ard

ing

18

[IP]

[IP]

10.200.254.4

IP-to-Label CEF Table

router# show ip cef 10.200.254.4

10.200.254.4/32, version 44, epoch 0, cached adjacency 10.200.200.2 0 packets, 0 bytes

tag information set, all rewrites owned

local tag: 20

fast tag rewrite with Et0/0/0, 10.200.200.2, tags imposed {18}

via 10.200.200.2, Ethernet0/0/0, 0 dependencies

next hop 10.200.200.2, Ethernet0/0/0

valid cached adjacency

tag rewrite with Et0/0/0, 10.200.200.2, tags imposed {18}

Eth0/0/0 10.200.200.2

Extract of LFIBrouter# show mpls forwarding-table

Local Outgoing Prefix Bytes tag Outgoing Next Hop

tag tag or VC or Tunnel Id switched interface

16 Untagged 10.1.1.0/24 0 Et0/0/0 10.200.200.2

17 16 10.200.202.0/24 0 Et0/0/0 10.200.200.2

18 Pop tag 10.200.203.0/24 0 Et0/0/0 10.200.200.2

19 Pop tag 10.200.201.0/24 0 Et0/0/0 10.200.200.2

20 18 10.200.254.4/32 0 Et0/0/0 10.200.200.2

21 Pop tag 10.200.254.2/32 0 Et0/0/0 10.200.200.2

22 17 10.200.254.3/32 0 Et0/0/0 10.200.200.2

Page 44: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 44

Example case

FO

RW

AR

DIN

G P

AC

KE

TS

–F

orw

ard

ing

16

[IP]

[IP]

10.200.254.4

Label-to-Label MPLS Forwarding table

Eth0/0/0 10.200.200.2

router#show mpls forwarding-table10.200.254.4

Local Outgoing Prefix Bytes tag Outgoing Next Hoptag tag or VC or Tunnel Id switched interface23 16 [T] 10.200.254.4/32 0 Tu1 point2point

[T] Forwarding through a TSP tunnel.

router#show mpls forwarding-table 10.200.254.4 detailLocal Outgoing Prefix Bytes tag Outgoing Next Hop

tag tag or VC or Tunnel Id switched interface23 16 10.200.254.4/32 0 Tu1 point2point

MAC/Encaps=14/22, MRU=1496, Tag Stack{20 16}, via Et0/0/000604700881D00024A4008008847 0001400000010000No output feature configured

router#show mpls forwarding-tablevrf cust-one

Local Outgoing Prefix Bytes tag Outgoing Next Hoptag tag or VC or Tunnel Id switched interface23 Aggregate 10.10.1.0/24[V] 0

23

20

Page 45: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

router#show mpls forwarding-table

Local Outgoing Prefix Bytes tag Outgoing Next Hop

tag tag or VC or Tunnel Id switched interface

17 Pop tag 10.200.254.3/32 252 Et1/3 10.200.203.2

Pop tag 10.200.254.3/32 0 Et1/2 10.200.201.2

18 16 10.200.254.4/32 10431273 Et1/2 10.200.201.2

16 10.200.254.4/32 238 Et1/3 10.200.203.2

2008/2009 VPN – Rafael Sebastian 45

Load Balancing

FO

RW

AR

DIN

G P

AC

KE

TS

–F

orw

ard

ing

LSR LSR

16

16

Per platform

LSR LSR

16

26

Per Interface

Page 46: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 46

Implicit Null Label

FO

RW

AR

DIN

G P

AC

KE

TS

–L

ab

els

Nu

mb

ers

Labels 0 to 15 reserved,

Implicit null label: value “3”

Used by LSR that does not want to assign

a label to a FEC

In egress routers it avoids a lookup

Ingress

LSR LSR LSREgress

LSR

25

IPv4IPv4

215

IPv4 IPv4 IPv4

InLabel

OutLabel

65 pop

Implicit NULL

(Label 3)

(penultimate hop popping (PHP))

Page 47: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 47

Explicit Null Label

FO

RW

AR

DIN

G P

AC

KE

TS

–L

ab

els

Nu

mb

ers

Using Implicit null label

MPLS header is removed one hop before

EXP bits (QoS) are removed

Explicit null label (label value “0”)

Packet are still label

Label 0 is removed without lookup

EXP bits are kept

Page 48: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 48

Unreserved Labels

Labels have 20 bits [16,1.048.575]

Some routers (e.g. Cisco) uses 16-100.000

Enough for labelling all IGP prefixes

For BGP prefixes additional labels might be

needed

FO

RW

AR

DIN

G P

AC

KE

TS

–L

ab

els

Nu

mb

ers

Page 49: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

TTL: Time to Live

8 bits field (max.255 hops)

If TTL = 0 packet is dropped & ICMP to sender

2008/2009 VPN – Rafael Sebastian 49

IP-to-Label & Label-to-IP

FO

RW

AR

DIN

G P

AC

KE

TS

–T

TL

Beh

avio

r

Ingress

LSR LSR LSREgress

LSR

TTL=253 TTL=249TTL=252

TTL=251

IPv4 Packet

MPLS Label

TTL=252

TTL=252

Copy

TTL=250

Copy

back

Page 50: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 50

TTL Label-to-Label

FO

RW

AR

DIN

G P

AC

KE

TS

–T

TL

Beh

avio

r

LSRLSR

TTL=253

TTL=252

IPv4 Packet

MPLS Label

TTL=253

TTL=252

TTL=251

TTL=249

TTL=249

LSR

TTL=253

TTL=252

TTL=252

TTL=249

TTL=253

TTL=252

TTL=251

TTL=248

Swap

TTL=253

TTL=252

TTL=248

TTL=248

Push

TTL=253

TTL=252

TTL=248

Pop

Page 51: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

TTL Expired

2008/2009 VPN – Rafael Sebastian 51

TTL expiration

FO

RW

AR

DIN

G P

AC

KE

TS

–T

TL

Beh

avio

r

IPv4 Packet

MPLS Label

Ingress

LSR

LSR LSR Egress

LSR

TTL=2 ICMP

TimeExceededTTL=255

TTL=255

TTL=1

TTL=1

LSR

ICMP

TimeExceededTTL=255

TTL=254

ICMP

TimeExceededTTL=253

ICMP

TimeExceededTTL=248

ICMP

TimeExceededTTL=251

TTL=249

ICMP

TimeExceededTTL=251

TTL=250

ICMP

TimeExceededTTL=251

TTL=251

ICMP

TimeExceededTTL=252

I have a

route

Page 52: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 52

MPLS MTU

FO

RW

AR

DIN

G P

AC

KE

TS

–M

PL

S M

TU

Maximum transfer unit (MTU)

Maximum frame size that can be sent on a data

link without fragmentation

MPLS frames are bigger than IP

IP packet + (4 bytes * #labels)

MPLS Maximum Receive Unit

Used in the LFIB to keep track of how big labeled

packets can be

Page 53: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Baby Giant frames

Frames slightly bigger than expected by a certain

data link (e.g. Ethernet frame (1500 bytes) + 1 Label

(4 bytes)

If hardware is capable we can choose to send this

kind of frames

MTU discovery

To discover maximum MTU allowed over a path

To avoid fragmentation and increase performance

2008/2009 VPN – Rafael Sebastian 53

Giant and Baby Giant frames

FO

RW

AR

DIN

G P

AC

KE

TS

–M

PL

S M

TU

Page 54: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Frames larger than MTU fragmented

Fragmentation

Remove all the MPLS stack

Fragment the IP packet

Perform operations over the stack

Add the stack to the fragmented packets

If DF = 1 in IP Header

Packet drop and ICMP message sent

2008/2009 VPN – Rafael Sebastian 54

Fragmentation in MPLS

FO

RW

AR

DIN

G P

AC

KE

TS

–M

PL

S M

TU

Page 55: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

2008/2009 VPN – Rafael Sebastian 55

Path MTU Discovery

FO

RW

AR

DIN

G P

AC

KE

TS

–M

PL

S M

TU

LSR LSR

ICMP

Fragmentationneeded

TTL=255

LSR

DF=1 DF=1

ICMP

Fragmentationneeded

TTL=255

DF=1 DF=1 DF=1 DF=1

DF=1 DF=1 DF=1 DF=1 DF=1

Page 56: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

Evolution of MPLS

MPLS Architecture

Forwarding Labeled Packets

Review Test

2008/2009 VPN – Rafael Sebastian 56

Table of Contents

Page 57: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

1. What does the push operation do on a labeled packet?

2. What does the outgoing label entry of “Aggregate” in the

LFIB LSR mean?

3. What label value signals the penultimate LSR to use

penultimate hop popping (PHP)?

4. Why does an LSR forward the ICMP message “time

exceeded” along the LSP of the original packet with the TTL

expiring instead of returning it directly?

5. Is using Path MTU Discovery a guarantee that there will be

no MTU problems in the MPLS network?

6. Why is MTU such an important parameter in MPLS

networks?

2008/2009 VPN – Rafael Sebastian 57

Review Questions

FO

RW

AR

DIN

G P

AC

KE

TS

–R

evie

w Q

uesti

on

s

Page 58: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

7. What is the process of removing a label by the next-to-last

router called?A. Popping

B. Fast switch popping

C. Penultimate hop popping

D. Label disposition

8. Which field of the MPLS label stack is used for Quality of

Service (QoS)?A. Label C. S

B. B. Experimental D. TTL

9. Which of the following is not a suitable application for

MPLS?A. Quality of Service

B. Virtual private networks

C. Routing protocol replacement

D. Traffic engineering

2008/2009 VPN – Rafael Sebastian 58

Test Questions

MP

LS

Fu

nd

am

en

tals

Revie

w T

est

Page 59: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

10. In MPLS, VPNs and traffic engineering are made possible

by ______. (Choose the most appropriate answer.)A. Label stacking

B. Label popping

C. Label imposition

D. Label switching

11. Cisco’s proprietary version of MPLS is called ___________.A. Multi-protocol tag switching

B. Multi-Protocol Label Switching

C. Tag forwarding

D. Tag switching

12. Which protocol does MPLS use to exchange labels with

neighbors?A. LDP

B. LIB

C. TDP

D. FIB

2008/2009 VPN – Rafael Sebastian 59

Test Questions

MP

LS

Fu

nd

am

en

tals

Revie

w T

est

Page 60: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

13. For MPLS or tag switching to work, ___________ must be

enabled.A. LFIB

B. LIB

C. FIB

D. CEF

14. To indicate the bottom of a stack, the S bit is set to

___________.A. 0

B. 1

C. 2

D. None of the above

15. An IP prefix is analogous to a(n) ___________.A. FIB

B. LFIB

C. FEC

D. CEF

2008/2009 VPN – Rafael Sebastian 60

Test Questions

MP

LS

Fu

nd

am

en

tals

Revie

w T

est

Page 61: Fundamentals - UV · MPLS helps integrating IP and ATM ... Ingress LSR classifies packets into FECs ... Packet Pop L Label IP Packet L To Green Network? Green Network Piggyback the

16. LSPs are ___________.A. Unidirectional

B. Bi-directional

C. None of the above

17. An ATM switch that is MPLS-enabled is called a(n)

___________.A. ATM-LSR

B. Edge-LSR

C. ATMF-LSR

D. Core-LSR

2008/2009 VPN – Rafael Sebastian 61

Test Questions

MP

LS

Fu

nd

am

en

tals

Revie

w T

est