Download Chapter 21 - William Stallings, Data and Computer Communications

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

RapidIO wikipedia , lookup

Internet protocol suite wikipedia , lookup

Zero-configuration networking wikipedia , lookup

Peering wikipedia , lookup

Distributed firewall wikipedia , lookup

Computer network wikipedia , lookup

CAN bus wikipedia , lookup

Wake-on-LAN wikipedia , lookup

Net bias wikipedia , lookup

Network tap wikipedia , lookup

Airborne Networking wikipedia , lookup

IEEE 1355 wikipedia , lookup

Cracking of wireless networks wikipedia , lookup

Asynchronous Transfer Mode wikipedia , lookup

IEEE 802.1aq wikipedia , lookup

Recursive InterNetwork Architecture (RINA) wikipedia , lookup

Deep packet inspection wikipedia , lookup

UniPro protocol stack wikipedia , lookup

Quality of service wikipedia , lookup

Routing in delay-tolerant networking wikipedia , lookup

Multiprotocol Label Switching wikipedia , lookup

Transcript
Data and Computer
Communications
Tenth Edition
by William Stallings
Data and Computer Communications, Tenth
Edition by William Stallings, (c) Pearson
Education - 2013
CHAPTER 23
Multiprotocol Label Switching
"No ticket! Dear me, Watson, this is really very
singular. According to my experience it is not
possible to reach the platform of a Metropolitan
train without exhibiting one's ticket.”
—The Adventure of the Bruce-Partington Plans
Sir Arthur Conan Doyle
Role of MPLS
 Efficient
technique for forwarding and
routing packets
 Designed with IP networks in mind
• Can be used with any link-level protocol
 Fixed-length
label encapsulates an IP
packet or a data link frame
 MPLS label contains all information
needed to perform routing, delivery, QoS,
and traffic management functions
 Is connection oriented
MPLS Growth

Internet Engineering Task Force (IETF) is the
lead organization in developing MPLS-related
specifications and standards
 Deployed in almost every major IP network
 Reasons MPLS is accepted:
Embraced IP
Built-in flexibility
Protocol neutral
Adapts existing protocols
Is adaptable
Supports metrics
Scales
Background of MPLS
 IP
switching (Ipsilon)
 Tag switching (Cisco Systems)
 Aggregate route-based IP switching (IBM)
 Cascade (IP navigator)
 IETF set up the MPLS working group (1997)


First set of proposed standards (2001)
Key specification is RFC 3031
Connection-Oriented
QoS Support
 Connectionless
networks cannot provide
firm QoS commitments
 Has powerful traffic management and QoS
capabilities
 MPLS imposes framework on an IP-based
Internet
 Provides the foundation for sophisticated
and reliable QoS traffic contracts
Traffic Engineering

Ability to define routes dynamically, plan
resource commitments on the basis of known
demand, and optimize network utilization
 Effective use can substantially increase usable
network capacity
 ATM provided strong traffic engineering
capabilities prior to MPLS
 With basic IP there is a primitive form
MPLS
• Is aware of flows with QoS requirements
• Possible to set up routes on the basis of flows
• Paths can be rerouted intelligently
MPLS Support
Enhancement
to the way a
connectionless
IP-based
internet is
operated
Forwarding equivalence class (FEC) A group of
IP packets that are forwarded in the same manner
(e.g., over the same path, with the same forwarding
treatment).
Label stack An ordered set of labels.
Frame merge Label merging, when it is applied
to operation over frame-based media, so that the
potential problem of cell interleave is not an issue.
MPLS domain A contiguous set of nodes that
operate MPLS routing and forwarding and that are
also in one Routing or Administrative Domain
Label merging The replacement of multiple
incoming labels for a particular FEC with a single
outgoing label.
MPLS edge node An MPLS node that connects
an MPLS domain with a node that is outside of the
domain, either because it does not run MPLS,
and/or because it is in a different domain. Note that
if an LSR has a neighboring host that is not running
MPLS, then that LSR is an MPLS edge node.
Label swap The basic forwarding operation
consisting of looking up an incoming label to
determine the outgoing label, encapsulation, port,
and other data handling information.
Label swapping A forwarding paradigm allowing
streamlined forwarding of data by using labels to
identify classes of data packets that are treated
indistinguishably when forwarding.
Label switched hop The hop between two MPLS
nodes, on which forwarding is done using labels.
Label switched path The path through one or
more LSRs at one level of the hierarchy followed
by a packets in a particular FEC.
Label switching router (LSR) An MPLS node
that is capable of forwarding native L3 packets.
Merge point A node at which label merging is
done.
MPLS egress node An MPLS edge node in its
role in handling traffic as it leaves an MPLS
domain.
MPLS ingress node An MPLS edge node in its
role in handling traffic as it enters an MPLS
domain.
Table
23.1
Key
MPLS
Terms
MPLS label A short, fixed-length physically
contiguous identifier that is used to identify a FEC,
usually of local significance. A label is carried in a
packet header.
MPLS node A node that is running MPLS. An
MPLS node will be aware of MPLS control
protocols, will operate one or more L3 routing
protocols, and will be capable of forwarding
packets based on labels. An MPLS node may
optionally be also capable of forwarding native L3
packets.
(Table is on page 779
in textbook)
MPLS Operation
 Label
switching routers (LSRs)
• Nodes capable of switching and routing packets on
the basis of label
 Labels
define a flow of packets between
two endpoints
 Assignment of a particular packet is done
when the packet enters the network of
MPLS routers
 Connection-oriented technology
Label Assignment
 Based
on:
Workstations
Server
4
1
1
3
2
1
4
3
2
MPLS
domain
ordinary
IP router
IP packet
labeled
IP packet
Label switching
router (LSR)
LAN switch
Figure 21.1 MPLS Operation
LSR
2
Data
flow
LSR
5
LSR
7
LSR
3
LSR
1
LSR
6
Label
requests
LSR
4
Label
distribution
Figure 23.3 LSP Creation and Packet Forwarding through an MPLS Domain
Label Stacking
 One


of the most powerful features of MPLS
Processing is always based on the top label
At any LSR a label may be removed or added
 Allows

creation of tunnels
Tunnel refers to traffic routing being determined
by labels
 Provides
considerable flexibility
 Unlimited stacking
UNLIMITED
STACKING
bits:
20
Label value
3
1
TC S
TC = traffic class
S = bottom of stack bit
Figure 23.4 MPLS Label Format
8
Time to live
Traffic Class (TC)
 RFCs
3270 and 5129
 No unique definition of the TC bits has
been standardized
 DS:


Assign a unique label value to each DS perhop-behavior scheduling class
Map the drop precedence into the TC field
 ECN:

Three possible ECN values are mapped into
the TC field
Time to Live Field (TTL)
 Key
field in the IP packet header
 Decremented at each router and packet is
dropped if the count falls to zero
• Done to avoid looping
• Having the packet remain too long in the Internet
due to faulty routing
 Included
in the label so that the TTL
function is still supported
Top of stack (S = 0)
LSR examines this
label and may
swap or pop
Layer 2 header
Intermediate labels
(S = 0) LSR can only
examine each label in
turn if all upper
labels are popped
MPLS
label
Bottom of stack
S=1
MPLS
label
Label stack
Labeled packet
Figure 23.5 Encapsulation for Labeled Packet
Transported protocol
Data link header
(e.g., PPP)
MPLS
label stack
IP header
Data
Data link
trailer
IP header
Data
MAC trailer
(a) Data link frame
MAC header
LLC header
MPLS
label stack
(b) IEEE 802 MAC frame
VPI/VCI field
top MPLS
label
MPLS
label stack
IP header
Data
IP header
Data
ATM cell header
(c) ATM cell
DLCI field
top MPLS
label
MPLS
label stack
FR header
(d) Frame relay frame
Figure 23.6 Position of MPLS Label Stack
FR trailer
FECs, LSPs, and Labels
Traffic is
grouped
into FECs
Traffic in an
FEC
transits an
MPLS
domain
along an
LSP
Individual
packets in
an FEC are
uniquely
identified
At each
LSR each
labeled
packet is
forwarded
on the basis
of its label
value
LSP Topology
 Unique

Single path through the MPLS domain is
needed
 Unique

egress LSR, multiple ingress LSRs
Traffic assigned to a single FEC can arise from
different sources that enter the network at
different ingress LSRs
 Multiple

ingress and egress LSR
egress LSRs for unicast traffic
RFC 3031
 Multicast

RFC 5332
Route Selection
 Refers
to the selection of an LSP for a
particular FEC
 Supports two options:

Hop-by-hop routing
• Each LSR independently chooses the next hop for
each FEC
• Does not readily support traffic engineering or
policy routing

Explicit routing
• A single LSR specifies some or all of the LSRs
• Can be set up ahead of time or dynamically
Requirements for Label
Distribution

Each LSR on the LSP must do the following:



Assign a label to the LSP to be used to recognize
incoming packets that belong to the
corresponding FEC
Inform all potential upstream nodes of the label
assigned by this LSR to this FEC, so that these
nodes can properly label packets to be sent to
this LSR
Learn the next hop for this LSP and learn the
label that the downstream node has assigned to
this FEC; this will enable this LSR to map an
incoming label to an outgoing label
Label Distribution

Label distribution protocol enables two LSRs to
learn each other’s MPLS capabilities
 RFC 3031 refers to a new label distribution
protocol and to enhancements of existing
protocols
Hop-by-hop route selection
• No attention is paid to traffic engineering or
policy routing concerns
• Ordinary routing protocol is used to determine
the next hop by each LSR
Label Distribution Protocol
 Protocols
that communicate which label
goes with which Forwarding Equivalence
Class (FEC)



Label Distribution Protocol (LDP; RFC 5036)
Resource Reservation Protocol – Traffic
Engineering (RSVP-TE; RFC 3209)
Multiprotocol BGP as extended for Layer 3
VPNs (L3VPNs; RFC 4364)
 Once
a route is established LDP is used
to establish the LSP and assign labels
in address out out
label prefix i'face label
ingress
edge node
in address out out
label prefix i'face label
128.89
1
19
19
128.89
0
24
171.69
1
20
20
171.69
1
22
2
0
in address out out
label prefix i'face label
24
128.89
0
egress
edge node
1
0
128.89
1
use label 19 for 128.89
use label 20 for 171.69
1
use label 24 for 128.99
use label 22 for 171.69
171.69
Figure 23.7 Assigning Labels Using LDP Downstream Allocation
LDP Messages

Discovery

Each LSR announces and maintains its presence in a
network
• Hello messages

Session establishment and maintenance


Advertisement


LDP peers
Create, change, and delete label mappings for FECs
Notification messages

Provide advisory information and to signal error
information
Bit:
0
31
16
Version
PDU Length
LDP Identifier
(a) Header format
Bit:
0 1
U
31
16
Message Type
Message Length
Message ID
Mandatory Parameters
Optional Parameters
(b) Message format
Bit:
0 1 2
UF
31
16
Type
Length
Value
(c) Type-length-value (TLV) parameter encoding
Figure 23.8 LDP PDU Formats
Traffic Engineering
 RFC
2702
 Allocate traffic to the network to maximize
utilization of the network capacity
 Ensure the most desirable route through the
network while meeting QoS requirements
20 Mbps
traffic to R5
10 Mbps
traffic lost
60 Mbps
aggregate
OC3
155 Mbps
R8
R3
OC3
150 Mbps
SONET
50 Mbps
GigE
1 Gbps
R2
R1
GigE
OC3
155 Mbps 1 Gbps
R6
40 Mbps
traffic to R5
R4
OC3
155 Mbps
GigE
1 Gbps
R5
R7
(a) A shortest-path solution
20 Mbps traffic
to R5 from R8
20 Mbps
traffic to R5
R8
OC3
155 Mbps
R3
OC3
150 Mbps
R2
R1
40 Mbps
traffic to R5
GigE
OC3
155 Mbps 1 Gbps
SONET
50 Mbps
R4
OC3
155 Mbps
GigE
1 Gbps
R6 GigE
1 Gbps
R5
R7
40 Mbps traffic
to R5 from R1
(b) A traffic-engineered solution
Figure 23.9 Traffic Engineering Example
60 Mbps
aggregate
Elements of MPLS Traffic
Engineering (MPLS TE)

Information distribution


Path calculation


Shortest path through a network that meets the
resource requirements of the traffic flow
Path setup


A link state protocol is necessary to discover the
topology of the network
Signaling protocol to reserve the resources for a
traffic flow and to establish the LSP
Traffic forwarding

Accomplished with MPLS using the LSP
Unicast link
attributes
TE
database
User-specified
LSP constraints
CSPF
calculation
LSP
paths
RSVP-TE
signaling
TE-extended
IGP
Routing
table
RSVP-TE= Resource Reservation Protocol - Traffic Engineering
CSPF = Constrained shortest-path first
IGP = Interior gateway protocol (interior routing protocol; e.g., OSPF)
LSP = Label switching path
TE = traffic engineering
Figure 23.10 CSPF Flowchart
PATH
(ERO = {R4, R8, R9})
PATH
(ERO = {R8, R9})
R4
R1
PATH
(ERO = R9})
R8
R9
Ingress
LSR
Egress
LSR
(a) Use of PATH message
RESV
Label = 17
2
R1
RESV
Label = 20
3
6
R4
RESV
Label = 3
2
5
R8
Ingress
LSR
Ingress Routing Table
In
Out
IP route (2, 17)
4
R9
Egress
LSR
MPLS Table
In
Out
(3, 17) (6, 20)
MPLS Table
In
Out
(2, 20) (5, 3)
(b) Use of RESV message
Figure 23.11 RSVP-TE Operation
Virtual Private Network (VPN)


Private network
configured within a
public network in order
to take advantage of
management facilities
of larger networks
Traffic designated as
VPN traffic can only go
from a VPN source to
a destination in the
same VPN
Widely used by enterprises to:
• Create wide area networks (WANs)
• Provide site-to-site communications
to branch offices
• Allow mobile user to dial up their
company LANs
Attachment circuit (AC) In a Layer 2 VPN
the CE is attached to PE via an AC. The AC
may be a physical or logical link.
Customer edge (CE) A device or set of
devices on the customer premises that attaches
to a provider provisioned VPN.
Tunnel Connectivity through a PSN that is
used to send traffic across the network from
one PE to another. The tunnel provides a
means to transport packets from one PE to
another. Separation of one customer's traffic
from another customer's traffic is done based
on tunnel multiplexers
Table
23.2
VPN
Layer 2 VPN (L2VPN) An L2VPN
Tunnel multiplexer An entity that is sent
interconnects sets of hosts and routers based on with the packets traversing the tunnel to make Terminology
Layer 2 addresses.
it possible to decide which instance of a service
a packet belongs to and from which sender it
Layer 3 VPN (L3VPN) An L3VPN
was received. In an MPLS network, the tunnel
interconnects sets of hosts and routers based on multiplexor is formatted as an MPLS label.
Layer 3 addresses.
Virtual channel (VC) A VC is transported
Packet switched network (PSN) A network within a tunnel and identified by its tunnel
through which the tunnels supporting the VPN multiplexer. In an MPLS-enabled IP network,
services are set up.
a VC label is an MPLS label used to identify
traffic within a tunnel that belongs to a
Provider edge (PE) A device or set of
particular VPN; i.e., the VC label is the tunnel
devices at the edge of the provider network
multiplexer in networks that use MPLS labels.
with the functionality that is needed to
interface with the customer.
Virtual private network (VPN) A generic
term that covers the use of public or private
networks to create groups of users that are
separated from other network users and that
may communicate among them as if they were
on a private network.
Customer
LAN
Customer
LAN
CE
VPN
unaware
VPN
unaware
VC
attachment
circuit
PE
VC
Tunnel
PE
VC
VPN aware;
tunnel endpoint
Label switching
router (LSR)
LAN switch
CE
MPLS
Network
VPN aware;
tunnel endpoint
CE = customer edge
PE = provider edge
VC = virtual channel
VPN = virtual private network
Figure 23.12 Layer 2 VPN Concepts
Layer 3 VPN
 Based
on VPN routes between CEs based
on IP addresses
 CE implements IP and is thus a router
 CE routers advertise network to provider
 Provider uses an enhanced version of
BGP to establish VPNs between CEs
 MPLS tools establish routes
Summary


The role of MPLS
Background








Label stacking
Label format
Label placement
FECs, LSPs, and labels

Route selection
Label distribution








Requirements
Protocol
LDP messages
LDP message format
Traffic engineering

MPLS operation
Labels


Connection-oriented QoS
support
Traffic engineering
VPN support
Multiprotocol support

Elements of MPLS traffic
engineering
Constrained shortestpath first algorithm
RSVP-TE
VPNs


Layer 2 VPN
Layer 3 VPN