📝 Forwarding based on label MPLS (16 MCQs)
Label-Based Forwarding Through an MPLS Network
Multiprotocol Label Switching forwards packets using short labels rather than performing a full IP destination lookup at every MPLS transit hop. An ingress Label Edge Router classifies incoming traffic and adds a label stack. Label Switch Routers use the top label to select an outgoing interface and replacement label. Such services allow hosts on different physical links to communicate through intermediate network devices.
Label Information and Forwarding Equivalence Classes
Packets that require similar forwarding treatment can be assigned to a Forwarding Equivalence Class. MPLS labels identify the forwarding treatment for a packet along a label-switched path. Label entries specify incoming labels, outgoing labels, and interfaces, while the label stack can support layered services. Implementation details may vary, but addressing and forwarding principles remain consistent across participating routers.
Push, Swap and Pop Label Operations
At the network edge, an ingress router pushes a label onto a packet. Transit Label Switch Routers swap the incoming label for an outgoing label according to their label forwarding tables. Near or at the egress, the label is removed, and the packet continues toward its final destination using the appropriate network-layer forwarding.
Tracing a Label Swap Across Two Routers
An ingress router assigns label 100 to a packet and sends it to a transit router. The transit router has an entry mapping incoming label 100 to outgoing label 240 on another interface. It swaps the label to 240 and forwards the packet along the label-switched path. The values show the practical outcome of the rule and the role of the network device.
MPLS Relationship with IP Routing
MPLS can use IP routing information to establish label-switched paths and can carry different network-layer protocols. It is often described as operating between traditional Layer 2 and Layer 3 concepts. The labels support traffic engineering and service separation, while IP addressing may still be used at network edges. The design allows different underlying link technologies to carry the same network-layer packet.
Misconceptions About MPLS Labels
'An MPLS label is the same as an IP address' is incorrect because it is a local forwarding identifier. 'Every router performs only ordinary IP lookup' is incorrect within the label-switched core because transit routers use label tables. 'MPLS encrypts user data' is incorrect because labels do not provide confidentiality.
MPLS Label Operations in Examinations
Identify ingress, transit, and egress roles, then trace label push, swap, and pop operations. Read a label forwarding entry using its incoming label and interface, and determine the outgoing label. Distinguish a label-switched path from an IP route, and explain what MPLS labels do not provide. Use the given prefix, protocol fields, and units consistently when working through a scenario.
MPLS Forwarding Terms
- MPLS - label-based packet forwarding method
- Label - local forwarding identifier
- LER - edge device adds/removes labels
- LSR - core device swaps labels
- FEC - groups packets by treatment
- Label stack - ordered labels on packet
📝 All Forwarding based on label MPLS MCQs
Q1. A router receives a packet destined for 192.168.1.10. Its forwarding table contains an entry for network 192.168.1.0/24 pointing to Interface 2. What action will the router take?
📖 Explanation: The /24 entry matches the destination address because the first 24 bits of 192.168.1.10 fall within 192.168.1.0/24. Longest‑prefix matching selects that entry, so the router forwards the packet through the specified Interface 2. No other entry overrides it, and the packet is not discarded or broadcast.
Q2. Which statement best distinguishes a fixed‑length prefix from a variable‑length prefix in IPv4 routing?
📖 Explanation: Fixed‑length prefixes imply that every network entry uses the same mask length, which is rarely the case in practice. Variable‑length prefixes (VLSM) let administrators assign different mask lengths to suit the size of each subnet, providing flexibility and efficient address utilization.
Q3. What is the maximum number of usable host addresses in a /30 IPv4 subnet?
📖 Explanation: A /30 subnet reserves 30 bits for the network prefix, leaving 2 bits for host addresses. The total host combinations are , but the network and broadcast addresses cannot be assigned to hosts, leaving usable host addresses.
Q4. Two routing entries overlap: 10.0.0.0/8 via Interface 1 and 10.0.0.0/12 via Interface 2. A packet destined for 10.0.5.1 arrives. Which interface will be chosen?
📖 Explanation: Routers apply the longest‑prefix match rule: the entry with the most specific mask (largest prefix length) wins. Here /12 is longer than /8, so the packet matches the /12 entry and is forwarded out Interface 2.
Q5. How does using variable‑length subnet masks (VLSM) affect the size of a router’s forwarding table compared with using only fixed‑length masks?
📖 Explanation: VLSM enables more precise subnetting, which can lead to a larger number of distinct network prefixes (increasing table size) when many small subnets exist. Conversely, it can also allow aggregation of contiguous subnets into a single entry, decreasing the total number of entries. The effect is context‑dependent.
Q6. In label‑switching (e.g., MPLS), how does the forwarding decision differ from traditional IP forwarding based on longest‑prefix match?
📖 Explanation: MPLS routers replace the IP header lookup with a fast label lookup in a forwarding information base (FIB). The label identifies the pre‑computed path, so the router does not need to parse the destination IP address or apply longest‑prefix matching at each hop, dramatically speeding up forwarding.
Q7. A packet arrives with a label stack where the top label is L1 and the second label is L2. The router swaps the top label with L3 and forwards the packet. What label stack does the next hop receive?
📖 Explanation: Label swapping replaces only the topmost label. After the operation, the new top label becomes L3 while the second label remains L2, preserving the original order beneath the swapped label. The next hop therefore sees the stack .}
Q8. Considering address exhaustion, which statement correctly contrasts IPv4 address space with MPLS label space?
📖 Explanation: IPv4 addresses embed network hierarchy, enabling routing based on prefix length. MPLS labels, by contrast, are flat identifiers assigned per hop and carry no hierarchical meaning; they are locally significant and interpreted only by adjacent label‑switching routers.
Q9. How does the length of the network prefix affect the number of possible subnets that can be created within a given address block?
📖 Explanation: Increasing the prefix length adds more bits to the network portion, which can be varied to define separate subnets. For example, extending a /16 block to /20 adds 4 bits, yielding distinct subnets. Thus, longer prefixes enable a greater number of subnets at the cost of fewer host addresses per subnet.
Q10. Given the address block 10.0.0.0/8, how many equal‑size subnets of /12 can be created?
📖 Explanation: Moving from a /8 to a /12 adds 4 bits to the network prefix (). Each added bit doubles the number of possible subnets, so the total subnets are . Therefore, sixteen /12 subnets can be carved out of the original /8 block.
Q11. What is a primary scalability trade‑off when an operator replaces traditional IP routing with MPLS label‑switching?
📖 Explanation: MPLS introduces label distribution protocols (e.g., LDP, RSVP‑TE) that must maintain per‑path label bindings, increasing control‑plane state. However, once labels are established, data‑plane forwarding uses simple label lookups, which are far faster and scale better than per‑hop IP longest‑prefix matches.
Q12. In which scenario can MPLS label‑switching reduce end‑to‑end latency compared with conventional IP forwarding?
📖 Explanation: Each MPLS hop performs a rapid label lookup instead of parsing the IP header and consulting a potentially large routing table. In a multi‑hop environment, the cumulative time saved by avoiding repeated longest‑prefix matches can noticeably lower overall latency, especially in high‑throughput backbone networks.
Q13. If a router receives a packet that should be forwarded based on a label but the incoming label is missing or unreadable, which fallback mechanism is most commonly used?
📖 Explanation: When a label cannot be used, the router typically re‑encapsulates the payload in an IP packet and applies normal IP routing. This ensures delivery continuity, albeit with higher processing overhead, rather than discarding the packet or broadcasting it indiscriminately.
Q14. How do Label Distribution Protocol (LDP) and RSVP‑TE differ in the way they assign labels?
📖 Explanation: LDP advertises labels for routes without guaranteeing bandwidth, suitable for standard forwarding. RSVP‑TE, by contrast, establishes label‑switched paths with explicit resource reservation, enabling traffic engineering for QoS‑critical flows. Their differing objectives lead to distinct label‑assignment behaviors.
Q15. Design a three‑level hierarchical labeling scheme for a provider network consisting of core, distribution, and access layers. Which of the following best represents such a scheme?
📖 Explanation: A hierarchical scheme assigns a short, high‑level label for the core (e.g., 100) and progressively longer or more specific labels as traffic moves toward the distribution (10) and access (1) layers. This ordering allows upstream routers to make coarse‑grained forwarding decisions while downstream routers refine the path using more specific labels.
Q16. In IPv4 addressing, what does the suffix (host) portion of an address represent?
📖 Explanation: The suffix, often called the host identifier, uniquely distinguishes a device (or interface) within the network defined by the prefix. It does not convey routing information; instead, it enables the destination host to be addressed once the packet reaches the correct network segment.