multiprotocol label switching muhammad abdullah shafiq

21
MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

Upload: jackeline-canfield

Post on 19-Jan-2016

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

MULTIPROTOCOL LABEL SWITCHING

Muhammad Abdullah Shafiq

Page 2: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

MPLS

Multi-Protocol Label Switching

Label Based Packet Forwarding

Forwarding Equivalence Class (FEC)

Each FEC maps a Label

Page 3: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

WHY MPLS ? TRADITIONAL IP FORWARDING VS. MPLS BASED FORWARDING

Traditional IP based Forwarding Based on Longest Prefix Match Inefficient, slow searching

Page 4: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

MPLS BASED FORWARDING

R1 – R4 : Label Switched Path Labels : Indexes

Searching is based on labels which are indexes to forwarding table.

Page 5: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

OTHER ADVANTAGES OF MPLS

Forwarding requires Label lookups and replacements Simple switches can do it.

Explicitly routed LSP Vs. Source Routing Label ~ Route No need to carry identity of route with packet.

Page 6: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

LABEL ENCAPSULATION

Page 7: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

MPLS DOMAIN Ingress Router

Handles traffic entering MPLS Domain

Egress Router Handles traffic leaving MPLS Domain

Label Switched Path (LSP) Path traversed by packet

Label Switching Router (LSR) Forwards packets based on labels.

Page 8: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq
Page 9: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

LABEL BINDING

FEC ~ Label binding (Forwarding Equivalence Class)

Upstream & Downstream LSR (w.r.t. binding)

If Packet travels : Ru Rd FEC F ~ Label L Ru: Upstream LSR Rd: Downstream LSR

Page 10: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

LABEL ASSIGNMENT & DISTRIBUTION

Downstream Assigned Label binding is assigned by downstream LSR

Upstream Distribution Label bindings are distributed upstream

Label Distribution Protocols (LDP) To inform the ‘peers’ about label bindings To learn each other’s MPLS capabilities May use TCP for reliability

Page 11: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

LABEL ASSIGNMENT & DISTR. (CONTD.)

Page 12: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

LABEL STACK

A labeled packet may carry more than one label.

Arranged as Last In First Out (LIFO) stack

Processing is based on top label.

Unlabelled packet ~ empty packet stack

Top label: level m

Bottom Label: at level 1

Uses: LSP tunnel and MPLS hierarchy

Page 13: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

LABEL STACK OPERATIONS

PUSH Insert a label on top of stack E.g when forwarding a packet that arrives

unlabeled but is to be forwarded with label.

POP Remove the top label e.g. at egress router

SWAP Replace the top label with new label. Normal forwarding between LSRs.

Page 14: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

THE FORWARDING TABLE

Page 15: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

Invalid incoming labels An LSR with no binding of incoming label.

Option 1: forward as unlabeled packet Upstream and downstream forward to each other. May cause a loop.

Option 2: Discard packet.

Page 16: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

LSP CONTROL

What about FEC that corresponds address prefixes learned via dynamic routing ?

Two solutions: Independent LSP Control

Each LSR binds independently Distributes that bindings to peers

Ordered LSP Control Only egress LSR for FEC binds and distributes Used when some properties in paths followed are

desired (e.g. explicit specified path)

Page 17: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

LSP ROUTE SELECTION

Hop by Hop

Each node chooses next hop independently

Explicitly routed

A single LSR specifies the LSRs in LSP

Page 18: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

AGGREGATION

Traffic in multiple FECs may go to same egress.

Combining multiple FECs to single FEC.

Use single label for union of FECs.

Aggregation reduces the number of labels.

Page 19: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

TUNNELING

Ru acts to deliver packets to Rd when they are not consecutive routers. Tunnel from Ru to Rd Tunneled Packet

Two methods: Hop by hop routed tunnel Explicitly routed tunnel

Page 20: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

HIERARCHY

LSP R1, R2, R3, R4

Suppose R2 and R3 are not connected directly

R2 , R21, R22, R23 R3 forms internal tunnel.

Actual sequence: R1, R2, R21, R22, R23, R3, R4

Page 21: MULTIPROTOCOL LABEL SWITCHING Muhammad Abdullah Shafiq

QUESTIONS