🎓 BookMCQ
← Back to 18. Introduction to Network Layer

📝 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
4
Easy
6
Medium
6
Hard

📝 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?

A.Drop the packet
B.Forward the packet out Interface 2 ✅
C.Forward the packet out Interface 1
D.Broadcast the packet on all interfaces
💡 Difficulty: easy | ✅ Correct: B

📖 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?

A.Both use the same number of bits for every network
B.Fixed‑length prefixes have identical mask lengths, while variable‑length prefixes allow different mask lengths per network
C.Variable‑length prefixes are only used in IPv6 ✅
D.Fixed‑length prefixes are deprecated in modern routers
💡 Difficulty: easy | ✅ Correct: C

📖 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?

A.2 ✅
B.4
C.6
D.14
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: A /30 subnet reserves 30 bits for the network prefix, leaving 2 bits for host addresses. The total host combinations are 22=42^{2}=4, but the network and broadcast addresses cannot be assigned to hosts, leaving 4−2=24-2=2 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?

A.Interface 1 because it appears first in the table
B.Interface 2 because it has the longer prefix ✅
C.Interface 1 because /8 is broader
D.Interface 2 because it is lower‑cost
💡 Difficulty: medium | ✅ Correct: B

📖 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?

A.It always increases the number of entries
B.It reduces the number of entries by aggregating networks
C.It can both increase or decrease entries depending on address allocation ✅
D.It has no impact on table size
💡 Difficulty: medium | ✅ Correct: C

📖 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?

A.Labels are examined only at the source router
B.Forwarding uses a fixed label lookup table, bypassing IP header inspection ✅
C.Labels are ignored once a packet enters the network
D.Both methods use identical lookup processes
💡 Difficulty: medium | ✅ Correct: B

📖 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?

A.L3, L2 ✅
B.L2, L3
C.L1, L3
D.L3 only
💡 Difficulty: medium | ✅ Correct: A

📖 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 L3,L2L3, L2.}

Q8. Considering address exhaustion, which statement correctly contrasts IPv4 address space with MPLS label space?

A.IPv4 has 32‑bit addresses, MPLS labels are unlimited
B.IPv4 addresses are hierarchical, MPLS labels are flat and locally significant ✅
C.Both IPv4 and MPLS use hierarchical addressing
D.MPLS labels provide more addresses than IPv4
💡 Difficulty: medium | ✅ Correct: B

📖 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?

A.Longer prefixes reduce the number of subnets
B.Longer prefixes increase the number of subnets ✅
C.Prefix length has no effect on subnet count
D.Shorter prefixes always produce more hosts per subnet
💡 Difficulty: medium | ✅ Correct: B

📖 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 24=162^{4}=16 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?

A.4
B.8
C.16 ✅
D.32
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Moving from a /8 to a /12 adds 4 bits to the network prefix (12−8=412-8=4). Each added bit doubles the number of possible subnets, so the total subnets are 24=162^{4}=16. 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?

A.Labels eliminate the need for any routing protocol
B.Label distribution requires additional state, but forwarding becomes faster ✅
C.MPLS reduces overall network state at the cost of slower forwarding
D.Label‑switching cannot support traffic engineering
💡 Difficulty: hard | ✅ Correct: B

📖 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?

A.When the network uses only IPv6 addresses
B.When the path includes many hops that would otherwise perform longest‑prefix lookups ✅
C.When packet payloads are larger than 1500 bytes
D.When routers do not support hardware acceleration
💡 Difficulty: hard | ✅ Correct: B

📖 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?

A.Drop the packet immediately
B.Encapsulate the packet in an IP header and perform conventional routing ✅
C.Broadcast the packet on all interfaces
D.Store the packet until a label is generated
💡 Difficulty: hard | ✅ Correct: B

📖 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?

A.LDP assigns labels randomly, RSVP‑TE uses static assignments
B.LDP distributes labels for best‑effort paths, while RSVP‑TE reserves resources for traffic‑engineered paths ✅
C.Both protocols use the same algorithm for label assignment
D.RSVP‑TE only works with IPv6
💡 Difficulty: hard | ✅ Correct: B

📖 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?

A.Core label = 100, Distribution label = 10, Access label = 1 ✅
B.Core label = 1, Distribution label = 10, Access label = 100
C.Core label = 0x01, Distribution label = 0x0A, Access label = 0x64
D.Core label = 0xFF, Distribution label = 0x00, Access label = 0x01
💡 Difficulty: hard | ✅ Correct: A

📖 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?

A.The network identifier of the device
B.The specific interface or host within the network ✅
C.The routing protocol used by the device
D.The subnet mask applied to the address
💡 Difficulty: easy | ✅ Correct: B

📖 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.

🔗 Related Topics (MCQs)