You are on page 1of 4

Content-Type: text/x-zim-wiki

Wiki-Format: zim 0.4


Creation-Date: 2015-07-22T13:50:41+03:00
====== 1. Multi Protocol Label Switched ======
Created Wednesday 22 July 2015
**- MPLS Header where :**
- 20 bits are reserved for Label Space
- 3 bits used for QoS
- 1 bit for Bottom Stack
- 8 bits used for TTL mechanism
{{./pasted_image.png}}
- MPLS supports Label Stacking , here the BoS dictatest the header posit
ion , if "0" zero it indicates that it is not the last Label , if it is "1" one
it indicatest that it is the last label of the stack
- Once a Label is pushed the frame on the wire change meaning that in th
e L2 header we will have a new Protocol ID value
- Labe Switch Router is a router that supports MPLS functions and forwar
d MPLS traffic :
- Ingress LSR : receives a unlabeled packet inserts a label or l
abel stack in front of the packet and forward it on the data link
- Performs the PUSH operation
- If the PUSH operations is performed on an unlabeld pac
ket the LSR is also called an __imposiong LSR__
- Intermediate LSR / Tranzit LSR : receives an incoming labeled
packet performs operations on it , switch the packet on the correct data link
- Performs the SWAP operation
- Egress LSR : receives a labeled packet , removes the label or
label stack and send them on a data link
- Performs the POP operation
- if after the POP results a packet without labeled the
LSR is also called a __disposing LSR__
- Ingress LSR and Egress LSR are EDGE LSR
**- Label Switched Path:**
- Is a sequence of LSR that switch a labeled packet through an M
PLS network :
- LSP are unidirectional
**- Forwarding Equivalence Class :**
- a group or flow of packets that are forwarded along the same p
ath and ar treated the same with regard to the forwarding treatment
- all packets belonging to the same FEC have the same label
- not all packets that have the same label belong to the same FE
C , as example their EXP values might differ , so the fowarding threatment could
be different
- the router that decide which packet belong to which FEC is the
ingress LSR
- Examples of FEC:
- Packets with Layer 3 destination IP address matching a
certain prefix
- Multicast packets belonging to a certain group
- Packets with the same forwarding treatment , based on
the precedence or IP DiffServ Code Point
- Layer 2 frames carred acros an MPLS network received o
n one VC or subinterface ingress LSR and transmitted on onve VC or subinterface
on the egress LSR
- Packets with Layer 3 destination IP addresses that bel
ong to a set of BGP prefixes all with the same BGP next hop

**- Label Operations :**


- Pop : the top label is removed , the packet is forwarded with
the remaining label stack or as an unlabeled packet
- Swap : The top label is removed and replaced with a new label
- Push : the top label is replaced with a new label swapped , an
d one or more labels are added ( pushed ) on top of the swapped label
- Untagged/No label : The stack is removed , and the packet is f
owarded unlabled
- Aggregate : the label stack is removed and an IP lookup is don
e on the IP packet
**- Reserved Labels (0-15)** :
- unknown Labeled packets are dropped
- Implicit NULL Label is 3 , it is used by the egress PE to sign
al to its nearest P router to perform PHP on the packet destined to it
- Explicit NULL it is used to preserve the Qos of the packet , i
t has the label 0
- Router Alert Label has value 1 , present anyware in the label
stack but not at bottom , when present the packet will strip the label and will
process the packet in software , not hardware over the LFIB
- OAM Alert Label 14 , used to signal different OAM funcitonalit
y over the MPLS Network
**- TTL Operations :**
- Push : once the router decides how a packet will be forward ,
it will decrement the TTL by 1, it will update the TTL in the IP packet , it wil
l copy the new TTL in the new label attached and will forward the packet
- Swap : the old label is stripped , from the stripped label th
e TTL decresed by 1 and copied in the new imposed label , and the packet is forw
arded
- Pop : the old label is stripped , from the stripped label the
TTL is decresed by 1 and overrides the TTL in the next heade ( IP or MPLS label)
- When TTL expires in transit , an message of ICMP time exceeded
is sent along the LSP of the original packet , one reaching the destination it
will bounce back to the source where the packet was originated
**- MPLS Fragmentation:**
- if a LSR detects that the outgoing Data link has its MTU small
er than the fowarded packet it will fragment the packet
- the fragmentation process:
1. The label stack is stripped off
2. The packet is fragmented
3. Each fragment will pe imposed with the label previous stripped label
stack
4. Each fragment will be fowarded along the Data Link
- **MPLS Control Plane Elements:**
__- Label Distribution Protocol:__
- used to discover neighor LSR
- it uses the Routing Information Base to form a local b
inding database ( Label Information Base )
- it advertise and received Label bindings populating an
d manteining the LIB
__- Label Information Base :__
- buid and stores the prefix to label binding
__- MAC Table (ARP) :__
- it stores the MAC to port bindings
- it is used in conjunction with some tables (RIB/LIB) t

o generate fast forwarding structures (FIB/LFIB) , by providing the L2 encapsula


tion details
- **An LSR can use different modes when distributiing labels to other LS
R .:**
- **Label distribution mode:**
**- Donwstream-on-Demand label distribution:**
- each LSR request its next-hop ( in dow
nstream) LSR a label binding for each FEC
- each LSR receive one binding per FEC f
rom its downstream LSR on that FEC
- the downstream LSR is the next-hop rou
ter indicated by the IP routing table
- in this mode the LIB shows only one re
mote binding
- used on LC-ATM interface
**- Unsolicited Downstream label distribution**
- each LSR distributes a binding to its
adjacent LSR without those LSRs requesting a label
- each LSR receive remote label binding
from each LSR
- each LSR distributes a binding to its
local FEC
- in this model we can see more than one
remote binding in LIB
- All non LC-ATM interface uses UD mode
- **Label retention mode** :
**- Liberal label retention mode :**
- an LSR keeps all received remote bindi
ngs in the LIB
- not all received FEB bindings received
from its neigbhors will be placed in LFIB ,
- in this mode a LDP peers doesnt need t
o request new bindings in case of a incident , it has store all its neighbor map
pings
- LLR gives quicker adaptation to routin
g changes
- All non LC-ATM interfaces uses LLR mod
e
- **Conservative label retention m**ode
- does not stores the all remote binding
s in the LIB , but it stores only the remote bindings that is associated with t
he next hop LSR for a particular FEC
- gives fewer labels to store and a bett
er usage of the available memory
- CLR is the default mode for LC-ATM int
erfaces
**- LSP Control Modes:**
**- Independent LSP Control mode:**
- each LSR creates a local binding for a
particular FEC as soon as it recognizes the FEC
- Usuali this means that the prefix for
that FEC is in the RIB
- one disadvantage is that some LSR begi
n to label switch packets before the complet LSP is set up end to end
- It assigns a label mapping for each IG
P prefixe in the RIB
- Independent is used Ethernet Switches

**- Ordered LSP Control mode:**


- an LSR only creates a local binding
r a FEC if it recognize that it is the egress LSR for a FEC or if the LSR has
ceived a label binding from next hop for this FEC
- It assings a label mapping for each
P prefixes marked as connected in RIB , or for prefixes for which it received
e binding
- Used by ATM switches

fo
re
IG
th