Got it

MPLS label switching detaylari

Latest reply: Nov 16, 2021 05:13:11 290 4 5 0 0



mpls label switching


MPLS Forwarding Process

Basic Concepts

Label operations involved in MPLS packet forwarding include push, swap, and pop:

  • Push: When an IP packet enters an MPLS domain, the ingress node adds a new label to the packet between the Layer 2 header and the IP header. Alternatively, an LSR adds a new label to the top of the label stack.

  • Swap: When a packet is transferred within the MPLS domain, a local node swaps the label at the top of the label stack in the MPLS packet for the label allocated by the next hop according to the label forwarding table.

  • Pop: When a packet leaves the MPLS domain, the label is popped out of (removed from) the MPLS packet.

    A label is invalid at the last hop of an MPLS domain. The penultimate hop popping (PHP) feature applies. On the penultimate node, the label is popped out of the packet to reduce the size of the packet that is forwarded to the last hop. Then, the last hop directly forwards the IP packet or forwards the packet by using the second label.

    By default, PHP is configured on the egress node. The egress node supporting PHP allocates the label with the value of 3 to the penultimate hop.

Basic Forwarding Process

LSPs that support PHP are used in the following example to describe how MPLS packets are forwarded.

Figure 2-6  Basic MPLS forwarding process
download?uuid=d685a3ff7baa412b86b098220cd34fd1

As shown in Figure 2-6, the LSRs have distributed MPLS labels and set up an LSP with the destination address of 4.4.4.2/32. MPLS packets are forwarded as follows:

  1. The ingress node receives an IP packet destined for 4.4.4.2. Then, the ingress node adds Label Z to the packet and forwards it.

  2. When the downstream transit node receives the labeled packet, the node replaces Label Z by Label Y.

  3. When the transit node at the penultimate hop receives the packet with Label Y, the node pops out Label Y because the label value is 3. The transit node then forwards the packet to the egress node as an IP packet.

  4. The egress node receives the IP packet and forwards it to 4.4.4.2/32.

Detailed MPLS Packet Forwarding Process

Basic Concepts

The following entities are used in MPLS packet forwarding:

  • Tunnel ID

    Each tunnel is assigned a unique ID to ensure that upper layer applications (such as VPN and route management) on a tunnel use the same interface. The tunnel ID is 32 bits long and is valid only on the local end.

  • NHLFE

    A next hop label forwarding entry (NHLFE) is used to guide MPLS packet forwarding.

    An NHLFE specifies the tunnel ID, outbound interface, next hop, outgoing label, and label operation.

    FEC-to-NHLFE (FTN) maps each FEC to a group of NHLFEs. An FTN can be obtained by searching for tunnel IDs that are not 0x0 in a FIB. The FTN is available on the ingress only.

  • ILM

    The incoming label map (ILM) maps each incoming label to a group of NHLFEs.

    The ILM specifies the tunnel ID, incoming label, inbound interface, and label operation.

    The ILM on a transit node identifies bindings between labels and NHLFEs. Similar a FIB that provides forwarding information based on destination IP addresses, the ILM provides forwarding information based on labels.

Detailed Forwarding Process

Figure 2-7  Detailed MPLS packet forwarding process
download?uuid=9fb47919d21c4ef2ae3894de7baf8f53

Figure 2-7 shows the detailed MPLS packet forwarding process.

When an IP packet enters an MPLS domain, the ingress node searches the FIB to check whether the tunnel ID matching the destination IP address is 0x0.

  • If the tunnel ID is 0x0, the packet is forwarded along the IP link.

  • If the tunnel ID is not 0x0, the packet is forwarded along an LSP.

During MPLS forwarding, LSRs find the matching FIB entries, ILM entries, and NHLFEs for MPLS packets based on tunnel IDs.

  • The ingress node processes MPLS packets as follows:

  1. Searches the FIB to find the tunnel ID matching the destination IP address.

  2. Finds the NHLFE matching the tunnel ID in the FIB and associates the FIB entry with the NHLFE entry.

  3. Checks the NHLFE to obtain the outbound interface, next hop, outgoing label, and label operation.

  4. Pushes the label into IP packets, processes the EXP field according to QoS policy, and processes the TTL field, and then sends the encapsulated MPLS packets to the next hop.

    download?uuid=260f40e8c6ee4155a815ba319ed9b860

    For details on how the ingress node processes the EXP field and TTL field, see Understanding MPLS QoS in the MPLS QoS Configuration and Processing MPLS TTL.

A transit node processes MPLS packets as follows:

  • If the label value is greater than or equal to 16, the transit node replaces the label with a new label replaces and processes the EXP field and TTL field. After that, the transit node forwards the MPLS packet with the new label to the next hop.

  • If the label value is 3, the transit node pops out the label and processes the EXP field and TTL field. After that, the transit node forwards the packets through an IP route or based on the next layer label.

  1. Finds the ILM matching the MPLS label to obtain the Tunnel ID.

  2. Finds the NHLFE matching the Tunnel ID in the ILM.

  3. Checks the NHLFE to obtain the outbound interface, next hop, outgoing label, and label operation.

  4. Processes the MPLS packets according to the label value:

The egress node forwards MPLS packets based on the ILM and forwards IP packets based on the routing table

  • When the S flag in the label is 1, the label is at the bottom of the label stack, and the packet is directly forwarded through an IP route.

  • When the S field in the label is 0, a next-layer label exists, and the packet is forwarded based on the next layer label.

  • When the egress node receives IP packets, it checks the FIB and performs IP forwarding.

  • When the egress node receives MPLS packets, it checks the ILM for the label operation and processes the EXP field and TTL field.


Good
View more
  • x
  • convention:

Good share thanks
View more
  • x
  • convention:

Excellent! Keep up the good work!
View more
  • x
  • convention:

AL_93
Moderator Created Nov 16, 2021 05:13:11

Good article! Thank you
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.