7 Qs · since 2022 · 13 marks · 0.5 marks/paperStandard yield
In GATE CS, CIDR notation is tested as a core network-layer mechanism combining binary arithmetic, bitwise masking, and address boundary alignment. Questions predominantly evaluate… Guide
Topic guide
In GATE CS, CIDR notation is tested as a core network-layer mechanism combining binary arithmetic, bitwise masking, and address boundary alignment. Questions predominantly evaluate Longest Prefix Match (LPM) packet forwarding across routing tables, route aggregation/supernetting validity, and host capacity calculations. Recent years emphasize Multi-Select Questions (MSQs) and numerical calculations (NATs) requiring rigorous validation of power-of-two block alignments.
Longest Prefix Match (LPM) Routing Table Lookup
common · NAT · 2 marks · 2024, 2023
Given a router forwarding table with multiple CIDR prefixes and interfaces/next-hop routers, determine which interface or router handles a specific destination IP (or compute aggregate packet counts across multiple host destination IPs).
CIDR Block Aggregation and Supernetting
common · MSQ · 2 marks · 2026, 2022
Given a collection of subnet routes or an ISP address pool with client capacity requirements, determine the valid CIDR prefix(es) that aggregate subnets or represent valid assignable sub-blocks conforming to boundary alignment rules.
Exact Prefix Representation of IP Range
occasional · MCQ · 2 marks · 2024
Given a contiguous range of IP addresses (start and end addresses), compute the required host bits and prefix length to find the single matching CIDR prefix.
Assignable Interface/Host Address Calculation
occasional · NAT · 1 marks · 2026
Given a subnet mask in dotted-decimal notation, compute the number of host bits and find the maximum usable host addresses after subtracting network and directed broadcast addresses.
Router Forwarding via Longest Prefix Match (LPM)
common · MCQ · 2 marks · 2025
Given a destination IPv4 address and a routing table with multiple network prefixes in CIDR slash notation (e.g., /16, /17, /18, /24) and associated interface names, determine the correct egress interface by finding all matching subnets and selecting the one with the maximum prefix length.
Prefix Length Calculation
Used to find CIDR mask /n when given a required address block size or number of host bits .
Assignable Host Addresses
Used when calculating valid assignable network interface IP addresses for a subnet with host bits.
CIDR Block Boundary Alignment Rule
Used to check whether a given network base IP address is a valid power-of-two CIDR boundary for block size .
Bitwise Subnet Matching
Used for each entry in a routing table during LPM evaluation before picking the longest matching prefix.
Bitwise Subnet Masking
Used to check whether a destination IP address falls within a given CIDR network prefix.
Longest Prefix Match Rule
Used to choose the winning routing table entry when more than one prefix matches the destination IP address.
Shift from basic 1-mark single-rule lookups to multi-packet counting and multi-option verification (MSQ) testing boundary alignment.
2026, 2024, 2022
Increased use of NAT and MSQ formats over standard MCQs to test precise bitwise evaluation without reliance on option elimination.
2026, 2024, 2023
Recent examinations continue to emphasize binary-level prefix matching where multiple routing table entries match the destination IP, testing whether candidates properly apply the Longest Prefix Match rule rather than picking the first matching route.
2025
Easy items involve direct 1-step calculations such as counting assignable hosts from a mask (2^h - 2) or converting a simple contiguous 2-block range to /23. Medium items require evaluating multiple destination IPs across 4+ routing entries (LPM) or checking multiple MSQ options against both boundary divisibility constraints and allocation boundaries within an ISP pool.