39
TO 3-7-06 p. 1 Spring 2006 EE 5304/EETS 7304 Internet Protocols Tom Oh Dept of Electrical Engineering [email protected] Lecture 10 Multiprotocol Label Switching (MPLS)

Spring 2006 EE 5304/EETS 7304 Internet Protocols

  • Upload
    abiba

  • View
    54

  • Download
    0

Embed Size (px)

DESCRIPTION

Spring 2006 EE 5304/EETS 7304 Internet Protocols. Lecture 10. Multiprotocol Label Switching (MPLS). Tom Oh Dept of Electrical Engineering [email protected]. Administrative Issues. We will have test 2 on April 4. Test will consists of Lecture 6-10 - PowerPoint PPT Presentation

Citation preview

Page 1: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 1

Spring 2006

EE 5304/EETS 7304 Internet Protocols

Tom OhDept of Electrical Engineering

[email protected]

Lecture 10

Multiprotocol Label Switching (MPLS)

Page 2: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 2

Administrative Issues

We will have test 2 on April 4.

Test will consists of Lecture 6-10

Multiple choice, true/false, short answers

We will have review for test 2 today.

You can use one 3 ½ x 5 card.

Page 3: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 3

Outline (Comer, pg. 232)

Motivations (IP vs ATM)

Idea of label switching

MPLS standards

MPLS traffic engineering

Page 4: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 4

Early 1990s “IP vs ATM”

IP ATM

Computer scientists Public carriers

DoD, IETF ITU

Since 1978 Since 1988

Variable Fixed, short

Data All services

Connectionless Connection-oriented

Complex prefix match Simple VPI/VCI lookup

Best effort Guaranteed QoS

Developed by:

Standardized by:

Prevalence:

Packet lengths:

Designed for:

Packet forwarding:

Routing tables:

QoS:

Simple ComplexTraffic control:

Page 5: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 5

Strengths of ATM

High speed, high throughput switches

VPI/VCI lookup is an exact match algorithm (compared to longest prefix match for IP addresses)

More control over traffic (virtual circuits compared to hop-by-hop routing in IP)

Bandwidth can be reserved on virtual circuits Traffic flows can be “pinned” to specific routes, allowing

more uniform traffic distribution in network

Page 6: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 6

Why MPLS (1/4)

Internet is getting bigger in any dimension Traffic volume Number of user Number of nodes Bandwidth Required

ISPs need higher performance switching & routing equipment

Scalability

Many solutions being proposed to address those problems: IP V6 IP over ATM Gigabit Ethernet IP Switching

Page 7: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 7

IP over ATM

Overlay model

IP over ATM described in RFC 1483

“Classical IP over ATM” in RFC 1577

Problem of mapping IP onto ATM was taken up by a number

of standard bodies.

IP over ATM

IP over Large Public Data Networks

LAN emulation

Multiprotocol over ATM

Why MPLS (2/4)

Page 8: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 8

WHY MPLS (3/4)

Leverage existing ATM hardware

Ultra fast-forwarding

IP traffic engineering Constraint-based routing

Virtual Private Networks Controllable tunneling mechanism

Voice/Video on IP Delay variation + QoS constraints Diversity routing for load-balancing and reliability

Page 9: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 9

Idea of Label Switching

How to take advantage of ATM strengths without adopting ATM entirely or changing IP control plane (routing protocols)?

Generalize idea of VPI/VCI lookup to “label”

Label is an extra field attached to IP packet header that serves as an index pointing to an entry in routing table

Label

Routing table

Packet

Exact matchEntry contains next hop (or output port) and new outgoing label value

Page 10: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 10

Label Switching (cont)

LSR (label switching router) is router capable of forwarding packets based on label

Where is the label attached?

Assume LSR are deployed gradually in “islands” in Internet

Edge LSR will attach label which is used throughout island

Island of LSRs

IP packets from other routers

Attach label

Detach label

IP packets

Page 11: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 11

BEST OF BOTH WORLDS

• MPLS + IP forms a middle ground that combines the best of IP and the best of circuit switching technologies.

• ATM and Frame Relay cannot easily come to the middle so IP has!!

CIRCUITSWITCHING

PACKETForwarding

MPLS+IP

IP ATM

HYBRID

Page 12: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 12

AT&T Next Generation Network Architecture: The

Concept of One [Eslambolchi, 2002]

Page 13: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 13

Next Generation Network Architecture

(Dec 2002, J. Jaffee: Lucent President)

M. El-Sayed and J. Jaffee, “A View of Telecommunications Network Evolution”, IEEE Communication Magazine, Dec. 2002.

Page 14: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 14

Multiprotocol Label Switching (MPLS)

Various companies experimented with proprietary label switching

1997 IETF MPLS working group began to standardize technology integrating ATM-like "label swapping" for packet forwarding with IP layer routing

Use existing IP routing protocols MPLS-enabled routers = LSRs

Ingress edge LSR examines packets and classifies to a flow called forwarding equivalence class (FEC)

FEC = class of packets that should be handled same way along same routes

Page 15: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 15

MPLS (cont)

FEC granularity is arbitrary - one or more IP "flows" can be mapped to one FEC

Packets are assigned label to identify FEC

Label value is arbitrary, only serves to identify packets of same FEC

Label might be VPI/VCI field in ATM header, DLCI field in frame relay header, or added "shim" label inserted between data link layer header and network layer header → "multiprotocol”

Shim label IP packetLayer 2 headerLayer 2 frame

Page 16: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 16

MPLS Shim Header (Label) (1/2)

Page 17: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 17

MPLS (cont)

Core LSRs forward packets based only on MPLS labels, no need to inspect IP header

Incoming label is looked up in forwarding table called label forwarding information base (LFIB)

LFIB contains next hop, forwarding instructions, and new label value

Contiguous LSRs constitute an MPLS domain (maybe an island within IP network)

Concatenated labels constitute a label switched path (LSP) through MPLS domain

Page 18: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 18

MPLS (cont)

MPLS domain

Ingress edge LSR1

Egress edge LSR3

LSP

Dest. address Next hop Out-label

172.12.3 LSR2 6

In-label Next hop Out-label

6 LSR3 4

In-label Next hop

4 R4

LSR2

LSR1 table

LSR2 table

LSR3 table

Page 19: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 19

MPLS (cont)

Egress LSR removes label

LSPs are established by a label distribution protocol (LDP) and a routing protocol

LSRs learn topology of network using existing routing protocols, eg, OSPF

A label distribution protocol coordinates assignment of labels among routers, can be standardized LDP [RFC 3031] or extension of RSVP (RSVP-TE)

Page 20: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 20

IP+ATM

ATM switches already use label switching for packet forwarding (label = VPI/VCI fields) → ATM switches do not need changes in forwarding hardware to support MPLS

IP+ATM refers to combination of ATM, MPLS, and IP technologies in ATM switches

ATM switches do need changes in control plane (software)

Need to operate IP routing protocols to exchange routing info with regular IP routers

Need to support LDP

Page 21: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 21

MPLS Traffic Engineering

Traffic engineering tries to ensure sufficient resources are available in network to meet traffic demands

Includes uniform distribution of traffic as much as possible

Hop-by-hop IP routing is not designed for traffic engineering

MPLS allows explicit routing - labels “pin” traffic flows to specific routes

Page 22: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 22

MPLS Traffic Engineering (cont)

Hop-by-hop IP routing

Dest.

Router chooses

least-cost route to

dest.

All traffic goes one way

MPLS explicit routing

Dest.

Router forwards by

label

Label2

Label1

Label2

Label1

Page 23: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 23

Spring 2006

EE 5304/EETS 7304 Internet Protocols

Tom OhDept of Electrical Engineering

[email protected]

Lecture 10

Quality of Service (QoS) in IP

Page 24: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 24

Outline

Intserv (Integrated services)

Diffserv (Differentiated services)

Page 25: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 25

Support of QoS in IP

TCP/IP protocol architecture designed in late 1970s to enable a scalable, decentralized internet

IP allows different types of networks to interconnect but only best-effort service (although ToS field in IP header recognizes need for QoS)

TCP adds reliability above IP – the only QoS parameter provided

Success of Internet attests to correctness of TCP/IP design philosophy but mid-1990s Internet was opened to commercial traffic and ISPs

Page 26: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 26

QoS Support in IP (cont)

New applications are regularly being tried, not imagined in 1970s

Examples: streaming audio/video, voice over IP, desktop videoconferencing, distance learning,…

Many applications require QoS better than best-effort

Page 27: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 27

IETF Integrated Services (Intserv)

Early 1990s IETF Intserv working group began specifications of architecture based on:

Guaranteed service: hard QoS per packet flow• Bandwidth, packet delay, delay jitter• Flow can be identified by <source IP address, destination IP

address, protocol field, source port, destination port> Resource reservations

• Applications request QoS through standardized Resource Reservation Protocol (RSVP) [RFC 2205]

Or controlled-load service: better than best-effort

Page 28: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 28

Intserv (cont)

Sender generates RSVP Path message with service specification RSpec and traffic description TSpec

TSpec = peak (max.) rate, average rate, min/max packet size, etc.

RSpec = required bandwidth, slack (tolerable node delay), etc.

Path message finds a route to receiver (remembered by every router) and assigns a unique identifier to session

Receiver returns RSVP Resv message in backward direction to request bandwidth

Resv message carries RSpec and TSpec

Page 29: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 29

Intserv (cont)

Admission control: every router has chance to admit/reject new sessions and reserve enough resources to ensure the requested QoS

Calculates necessary resources to meet requested QoS based on TSpec

Decides to accept or reject new session Reserves resources (if accepted) Forwards Resv message to next router

Page 30: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 30

Problems with Intserv

Not scalable to very large networks: routers process requests for each flow and store state info (bandwdith reservation), which increases with number of flows

Reservation overhead is costly for short-lived sessions

RSVP must be deployed to all routers

Not flexible: small number of predefined service classes

Page 31: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 31

IETF Differentiated Services (diffserv)

Late 1990s IETF Diffserv working group objectives:

Deployable in gradual stages Scalable and flexible service architecture, eg, no per-flow

state info. Minimal overhead on backbone routers Service differentiation with coarse granularity (different

classes of service) instead of absolute guaranteed services with fine granularity (per flow)

Page 32: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 32

Stateless Core for Scalability

Edge: -assign DSCP -packet classification -traffic conditioning

Stateless core: -forward by PHB

Complex edge routers

Simple core routers

Page 33: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 33

Diffserv (cont)

To keep core stateless, packets are classified to service class at network edge

Packets carry their service class designation in diffserv code point (DSCP)

DSCP = first 6 bits re-interpreted from ToS field in IP packet header

26 = 64 possible codepoints

Network core uses DSCP in packet header

Core routers forward packets according to their DSCP

Page 34: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 34

Diffserv (cont)

Diffserv idea: define per-node functional components that can be put together to make different end-to-end services, instead of predefining end-to-end services

Example: intserv guarantees packet delay < D, but not clear what each router should do

DSCP identifies a specific predefined per-hop behavior (PHB)

PHB = instructions for treating packet described in terms of "external behavior"

Eg, queue packet at head of line or back of line No state info. needed in each core router

Page 35: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 35

Diffserv (cont)

2 PHBs defined: EF and AF

Expedited forwarding (EF) PHB

Forward packets with minimal delay and loss (ie, guaranteed minimum bandwidth)

Only way to guarantee is limiting rate of incoming traffic at network edges => bandwidth brokers keep network-wide view of used/available resources and make decisions for admitting traffic

Other mechanisms: traffic priorities, weighted fair queueing, traffic shaping,...?

Page 36: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 36

Diffserv (cont)

Assured forwarding (AF) PHB

Statistical service with lower assurance than guaranteed service

4 relative classes can be defined (standard, bronze, silver, gold)

3 packet discarding priorities in each class

Page 37: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 37

TEST 2 Review

ATM

Cell format, QoS, ATM Services, CAC

IPv4 and ICMP

Role of IP Interworking, IPv4 header, Fragmentation, IP address, ICMP

More about IP Addresses

IP addresses, ARP Dynamic Host Configuration Protocol Subnetting Classless inter-domain routing (CIDR)

Page 38: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 38

TEST 2 Review-cont

Network Address translation (NAT) Virtual Private Networking (VPN) Mobile IP

IPv6

Motivation and highlights IPv6 Header, flow label, Next Header IPv6 extensions IPv6 addresses Transitioning from IPv4 to IPv6

Page 39: Spring 2006 EE 5304/EETS 7304 Internet Protocols

TO 3-7-06 p. 39

TEST 2 Review-Cont

Router, Type of Routers

Generic router and generation routers.

ATM Switching Origins, ATM switching

ATM Fabrics (Space Division Switch, Shared Medium Switch Shared Memory Switch, and Fully Interconnected Switch).

MPLS

Idea of Label Switching MPLS Standards MPLS traffic engineering