1. IP(Internet Protocol) VS MPLS(Multi Protocol Label Switching)
-IP is connectionless packet forwarding, hop by hop (router along the path looking to the routing table every time it received the packet in order to find the next hop). There is a delay of the packets when reach the destination.
-There is no QoS on the IP network. It's a best effort mechanism.
-MPLS is connection oriented packet switching, it is end to end connection. Packet forwarding based on the label. Label switching within MPLS domain while traditional routing on the edge between MPLS domain and IP.
2. MPLS label
-MPLS label is stacked between the L2 header layer and L3 header layer
-The label is 20 bits, equal to 1048576 values.
-Label is local identifier. It is only in between the sending out port of upstream router and receiving port of downstream router. It's used to identify the specific FEC, and FEC is used to identify the MPLS packets.
-Bottom of stack(s bit) to identify if the next header is MPLS header(S=0) or IP header(S=1)
-Label stack: the MPLS header stacks on another in IP frame:
-The first MPLS header is regarded as the Top Label(or outer label) and the last MPLS header is considered as the Bottom Label(or inner label):
2-The MPLS domain or network and its element:
-LSR is the core router in MPLS network. It provides the function of label switching and label distribution.
-LER is the router at the MPLS edge. It distributes corresponding labels for the traffic to MPLS domain. It provides functions of traffic classification through FEC, label mapping and label removing.
-FEC is a group or set of data which have the same attributes. The FEC is characterized by
by address, tunnel or Class of Service (CoS), QoS. The same labels are distributed to an FEC on a device. Packets belong to the same FEC is handling/treated as the same way in the MPLS network. Different MPLS labels belong to different FEC.
-LSP is created by LSR in the MPLS domain by using LDP(Label Distribution Protocol)
-Ingress LSR: indicates the beginning of an LSP. Only one ingress exists on an LSP. The ingress pushes a new label to the packet and encapsulates the IP packet as an MPLS packet to forward.
-Egress LSR: indicates the end node of an LSP. Only one egress exists on an LSP. The egress mainly pops labels out of MPLS packets and forwards the packets that restore the IP packet.
-Transit LSR: indicates the middle node of an LSP. Multiple transit LSRs may exist on an LSP.
-When received the arrived packets, Ingress will classify the data into FEC and doing the PUSH operation (add the label into FEC), the transit LSR node will do the SWAP operation(replace the old label with the new label) and the Egress node will do the POP(remove the label from the packets) before the packets going out of the MPLS domain.
4. Label distribution and management
-Label is distributed by downstream LSR to upstream LSR. Downstream LSR distributed labels to specific FEC and downstream LSR informs upstream LSR through label advertisement protocol in order upstream LSR to create a label forwarding table and LSP.
-Forwarding of packets based on top label in stack, when the LSR received a packet it will check the top label and decides on the next hop.
-Based on routing protocol, all the nodes create the label information base(LIB) which is under control of LDP.
-Labels are assigned and exchanged between adjacent neighboring LSR, hop by hop.
-Label distribution is driven by several modes:
-According to the routing table, each node establishes a Label Information Base (LIB) under the control of LDP.

No comments:
Post a Comment