14 Qs · since 2012 · 21 marks · 0.8 marks/paperStandard yield
IPv4 testing in GATE CS focuses heavily on numerical datagram mechanics (fragmentation offset, payload size, header scaling factors), CIDR subnetting (subnet allocation, host range… Guide
Topic guide
IPv4 testing in GATE CS focuses heavily on numerical datagram mechanics (fragmentation offset, payload size, header scaling factors), CIDR subnetting (subnet allocation, host ranges, bitwise masking, and longest prefix match forwarding), and IP header architecture (field modifications during transit, option field capacity, and encapsulated protocol numbers). Questions are evenly split between 1-mark conceptual/header checks and 2-mark multi-step arithmetic or routing table lookups.
Datagram Fragmentation and Offset Calculation
common · MCQ · 2 marks · 2014, 2013
Given datagram size, header length, and link MTU, compute the number of fragments, payload bytes per fragment (strictly rounded to multiples of 8), fragment offset values, Total Length, and the More Fragments (MF) flag for a designated fragment.
CIDR Block Splitting and Subnet Allocation
common · MCQ · 2 marks · 2019, 2012
Divide a given CIDR block into smaller variable-length subnets (e.g., half as , quarter as ) and identify non-overlapping, valid subnet allocations, or determine whether given host IPs belong to the same subnet.
CIDR Longest Prefix Match Routing
occasional · NAT · 2 marks · 2014
Given a destination IPv4 address in dotted-decimal format and a CIDR routing table with prefix entries of varying lengths, find the output interface or next-hop by determining the longest matching binary prefix.
Subnet Boundary and Assignable Host IP Computation
occasional · NAT · 2 marks · 2015
Given an IP address with a CIDR prefix (e.g., ), perform bitwise masking to find the subnet ID, broadcast address, and the decimal value of a specific octet of the first or last usable host address.
IPv4 Header Fields and Router Transit Behavior
common · mixed · 1 marks · 2025, 2024, 2015, 2014
Identify which IPv4 header fields must change, may change, or remain unchanged during intermediate router forwarding (e.g., TTL decrement, Checksum recomputation, Fragment Offset) or identify encapsulated protocols directly in the Protocol field.
Header Options and Protocol Capacity Sizing
occasional · NAT · 1.5 marks · 2017, 2014
Calculate capacity constraints based on IPv4 header bounds (e.g., 60-byte max header size, 40-byte options space minus overhead) or allocate bit fields for composite identifiers combining IP addresses, timestamps, and sequence counters.
Network Topology Subnet Counting
occasional · MCQ · 1 marks · 2022
Given a network diagram with routers, Ethernet segments, firewalls, and servers, determine the total number of broadcast domains / subnets separated by router interfaces.
IPv4 Header Length in Bytes
Converting the 4-bit HLEN / IHL field value into physical byte length (min 20 bytes, max 60 bytes).
Fragment Offset Byte Position
Determining the relative starting payload byte index of an IPv4 fragment.
Maximum Fragment Data Payload
Partitioning an oversized IP datagram into fragments conforming to link MTU constraints.
Last Byte Index of Fragment Payload
Computing the sequence range of data bytes carried by a specific datagram fragment.
Subnet Block Size and Usable Host Count
Finding address ranges and host capacities for a prefix length .
Record Route Option Capacity
Calculating maximum IP address slots in the IPv4 Record Route option field.
Header field behavior questions transitioned from standard 1-mark MCQs to multi-correct MSQs requiring distinction between mandatory router changes (TTL, Checksum) versus conditional changes (Offset, Length, NAT-based Source IP).
2024, 2015, 2014
Addressing questions shifted from legacy classful network counting to CIDR-centric arithmetic (subnet splitting, usable host bounds, longest prefix matches).
2019, 2015, 2014, 2012
Recent 1-mark conceptual items assess precise protocol stack layering relationships through the IPv4 Protocol field (identifying direct IP encapsulation vs transport-layer encapsulation).
2025
Easy items (1 mark) test direct definitions: scaling factors of HLEN/Offset, recognizing fields always changed by routers (TTL, Checksum), identifying direct vs indirect IP encapsulation, or counting networks in simple subnets. Medium items (2 marks) require multi-stage arithmetic: fragmenting large datagrams with MTU overhead, determining the n-th fragment fields, Longest Prefix Match binary conversions of ambiguous octets, allocating non-overlapping subnets from a CIDR pool, or calculating counter wrap-around periods.