Escolar Documentos
Profissional Documentos
Cultura Documentos
DCW MPLS-1
EE6364
Introduction1
DCW MPLS-2
EE6364
MPLS Terminologies:
1. MPLS Node:
A node which is running MPLS. It is aware of MPLS control
protocols and is capable of forwarding packets based on labels.
2. MPLS Domain:
A contiguous set of nodes which operate MPLS routing and
forwarding, and which are under one administrative domain.
3. Forward Equivalence Class (FEC):
A group of IP packets that are forwarded in the same manner
(e.g., forwarded to the same next hop, treated with the same
priority).
4. Label:
A short fixed length identifier which is carried by a packet and is
used to identify a FEC, usually of local significance.
5. Shim:
A space in a packet between the layer2 and layer 3 headers. A
label is encoded in the shim.
6. Labeled Packet
A packet into which a label has been encoded.
7. Label Switch Router (LSR):
An MPLS node which is capable of forwarding layer 3 packets. A
LSR can be at the ingress or egress of the MPLS domain, or at
the core of the domain. If a LSR is in the core of the MPLS
domain. It routes the packet based on the label and swap the
label before the packet is sent to the output port of the node. If a
LSR is at the ingress or egress of the MPLS domain. It generates
a label in the ingress, and removes the label at the egress.
8. Label Swapping:
The operation consisting of looking up an incoming label to
determine the outing label, encapsulation, output port, and other
data handling information.
9. Label Switched Path (LSP):
A sequence of LSRs that is to be followed by a packet.
10. Label Stack:
An order set of labels.
11. Label Binding:
The process that two MPLS nodes agree on the assignment of a
label to a FEC.
DCW MPLS-3
EE6364
Label
MPLS is layer 2 independent. The link layer can be ATM, frame relay,
Ethernet MAC layer, or PPP. If ATM is used as the data link layer, the
label is the ATM VPI/VCI. If frame relay is used, the label is the DLCI.
In these two data link layers, the label is located in the link layer
header. If other data link layer is used, the label will be place in a
shim, which is located between the layer2 and layer 3 headers. The
MPLS label is four octets long. The position and the format of the
label are as follows:
L2 Header Shim L3 Header Data
Bits 20 3 1 8
DCW MPLS-4
EE6364
R3
R2 R6
A LSR
HEWLETT
Vectra
Office
PACKARD
R1
LSR LSR
2 R4 Edge
Edge
LSR
LSR R7
1 3
LSR MPLS C
4
Domain
Edge R5 HEWLETT
Vectra
Office
PACKARD
LSR
B
HEWLETT
Vectra
Office
PACKARD
In this network, R1, R5 and R7 are edge LSRs. The edge LSRs can
be ingress or egress. When hosts in network A are sending packets
to network C, R1 is the ingress LSR, and R7 egress LSR. However, if
hosts in network C are sending packets to network A, R1 becomes
the egress LSR, and R7 ingress LSR. The ingress LSR will push the
label, LSRs in the core network will swap the label, and the egress
LSR will pop the label.
DCW MPLS-5
EE6364
swaps the old label with the new label and routed the new labeled
packet to the output port. Other LSRs will perform the same tasks.
The labeled packet will reach the egress LSR, R7. It then examines
the label and performs a table loop-up at the forwarding table to find
that the packet is to be sent to network C. It then removes the label
and sends an unlabelled packet to network C.
In the above example, the LSP includes <R1, R2, R3, R6, R7>,
where R1 and R7 are ingress and egress LSRs respectively. R6, the
LSR next to the egress LSR, is called the penultimate LSR. The
MPLS standard specifies that the label can be popped at the
penultimate LSR instead of the egress LSR. Label popping at the
penultimate LSR is called penultimate hop popping (PHP).
If label popping is done by the egress LSR, the egress LSR has to
perform two table look-ups: (1) one label forwarding table look up to
determine that it is the egress LSR and to pop the label, and (2) one
IP routing table look up to determine the output port. However, if the
penultimate LSR performs the label forwarding table look up and
determines that it is the penultimate LSR, it can then pop the label
and send an unlabelled packet to the egress LSR. The egress LSR
then is required to perform the IP routing table look up only.
Special labels are reserved between the penultimate LSR and the
egress LSR, so that the penultimate LSR can be informed that it is
the penultimate LSR in a LSP.
DCW MPLS-6
EE6364
Label Stack
pop
push
MPLS Domain 1 pop
push
MPLS Domain 2
R1 R2 R3 R4 R5 R6
Depth 0 Depth 0
Depth 1 Depth 1
Depth 1
Depth 2 Depth 2
DCW MPLS-7
EE6364
In the data traffic driven label binding, the assignment and distribution
of labels are triggered when an LSR detects patterns in the traffic that
justify the use of labels. For example, in a FTP session, the LSR
identifies a sequence of packets being transferred, it then triggers the
label binding process to establish an LSP.
DCW MPLS-8
EE6364
The sequence of label binding from the egress LSR to the ingress
LSR establishes an LSP. Depending on the way the label binding is
triggered, there are several types of LSPs.
LSP
Topology Request
Driven Driven
RFC 3031, the MPLS Architecture RFC, does not specify a single
label distribution protocol. In fact, several label distribution protocols
are being standardized. Some existing protocols have been
extended, and new protocols have been defined. Examples of
existing protocols that are being extended are RSVP-TE2 and MPLS-
BGP3. A new protocol that has been defined is Label Distribution
Protocol 4(LDP).
DCW MPLS-9
EE6364
RSVP-TE:
DCW MPLS-10
EE6364
If the sender node has knowledge of a route that has high likelihood
of meeting the tunnel's QoS requirements, or that makes efficient use
of network resources, or that satisfies some policy criteria, the sender
can decide to use the route for some or all of its sessions. To do this,
the sender node adds an EXPLICIT_ROUTE object to the RSVP
Path message.
DCW MPLS-11
EE6364
Ingress Egress
Edge LSR LSR LSR LSR Edge LSR
R1 R2 R3 R4 R5
Path
(Label- Path Path
Request) (Label- (Label- Path
Request) Request) (Label-
Request)
RESV
RESV (Label)
RESV (Label)
RESV (Label) ResvConf
(Label) ResvConf
ResvConf
ResvConf
DCW MPLS-12
EE6364
DCW MPLS-13
EE6364
Ingress Egress
Edge LSR LSR LSR LSR Edge LSR
R1 R2 R3 R4 R5
Label
Request Label
Label
Request Label
Request
Request
Label
Label Mapping
Label
Label Mapping
Mapping
Mapping
DCW MPLS-14
EE6364
The mapping from the EXP field to the PHB for a given LSP is
either explicitly signaled at the label set-up or relies on a pre-
configured mapping.
DCW MPLS-15
EE6364
MPLS Fast-Reroute
Both methods can be used to protect links and nodes during network
failure.
This method creates detour LSPs for each protected LSP at each
potential point of local repair. It allows for forwarding around the next
downstream node and link. With this method, each node along the
LSPs path creates an alternate LSP around the downstream node
and headed towards the egress node. During a failure, the label is
swapped and sent to the alternate path. No label stacking is needed.
8 P. Pan, G. Swallow, A. Atlas, Fast Reroute Extensions to RSVP-TE for LSP Tunnels,
RFC 4090, May 2005.
DCW MPLS-16
EE6364
and sent into the alternate path using the new label. No label stacking
is needed.
R2 R3
R1 R4 R5
Ingress Egress
Node Node
R6
R7
The following figure illustrates the facility backup method for link
protection. Each node creates an alternate LSP around the
downstream link.
R2 R3
R1 R4 R5
Ingress Egress
Node Node
R6
R7
DCW MPLS-17
EE6364
The following figure illustrates the facility backup method for node
protection. Each node creates an alternate LSP around the
downstream node and the interconnecting link.
R2 R3
R1 R4 R5
Ingress Egress
Node Node
R6
R7
DCW MPLS-18
EE6364
Emulated Service
Pseudo Wire
PSN Tunnel
Attached Attached
Circuit Circuit
PE 1 PW 1 PE 2
CE 1 CE 2
PW 2
DCW MPLS-19
EE6364
DCW MPLS-20
EE6364
Payload
PW Demultiplexer
PSN
Data Link
Physical
DCW MPLS-21
EE6364
bits
0 7 15 23 31
10 L. Martini, ed. Pseudowire Setup and Maintenance Using LDP, RFC 4447, April, 2006.
DCW MPLS-22
EE6364
0000 0000 Frg Length (6b) Sequence Number (16b) Control Word
PPP Frame
(Exclude flags, Address, Control fields, and FCS)
Where
Frg: 2-bit fragmentation field. Frg=00, if the entire (unfragmented)
payload is carried in a MPLS packet, Frg=01, the MPLS packet
carrying the first fragment, Frg=10, carrying the last fragment,
Frg=11, carrying the intermediate fragment.
Length: 6-bit length field. If the length of the payload is greater than
64, this field is set to zero.
Sequence number: 16 bit.
11. L. Martini, E. Rosen, G. Heron, A. Malis, Encapsulation Methods for Transport of PPP/High-
Level Data Link Control (HDLC) over MPLS Networks, RFC 4618, Sep. 2006.
DCW MPLS-23
EE6364
where
F: FECN bit
B: BECN bit
D: DE bit
C: C/R (Command/Response) bit
12
L. Martini, C. Kawa, A. Malis, Encapsulation Methods for Transport of Frame Relay over
Multiprotocol Label Switching (MPLS) Networks, RFC 4619, Sep. 2006.
DCW MPLS-24
EE6364
bits
0 7 15 23 31
Tunnel Label Exp 0 TTL MPLS Header
Ethernet Frame
(No preamble, SFD, and FCS)
13L. Martini, E. Rosen, N. El-Aawar, G. Heron, Encapsulation Methods for Transport of Ethernet
over MPLS Networks, RFC 4448, April 2006.
DCW MPLS-25
EE6364
This type of L2VPN has been available over ATM and Frame Relay
backbones. VPWS can been provided using MPLS pseudowire.
In a VPLS, each CE device has one or more LAN interfaces that are
connected to a service providers network, which functions as a
virtual backbone network. Two CEs are connected to the same virtual
backbone if and only if they are members of the same VPLS instance
(i.e., same VPN).
DCW MPLS-26
EE6364
The PE bridge function treats the Emulated LAN as it would any other
LAN to which it has an interface. Forwarding decisions are made in
the manner that is normal for bridges, which is based on MAC Source
Address learning.
DCW MPLS-27