Computer Networks · Previous year questions
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
34 questions from GATE CS 2012 to 2026, newest first.
Questions
GATE CS 2026 Set 1, Q.56
An ISP having an address block
202.16.0.0/15assigns a block of IP addresses to a client, using the classless internet domain routing (CIDR) super-netting approach. Whi...IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2026 Set 2, Q.33
If an IP network uses a subnet mask of
255.255.240.0, the maximum number of IP addresses that can be assigned to network interfaces is __________. (answer in integer)IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2025 Set 1, Q.40
A packet with the destination IP address
145.36.109.70arrives at a router whose routing table is shown. Which interface will the packet be forwarded to? Subnet Address Subnet...IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2025 Set 1, Q.57
Suppose a message of size 15000 bytes is transmitted from a source to a destination using IPv4 protocol via two routers as shown in the figure. Each router has a defined maximum...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2025 Set 2, Q.16
Consider the following statements: (i) Address Resolution Protocol (ARP) provides a mapping from an IP address to the corresponding hardware (link-layer) address. (ii) A single...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT · Transport Layer: UDP, TCP Flow and Congestion Control, Sockets
GATE CS 2025 Set 2, Q.18
A machine receives an IPv4 datagram. The protocol field of the IPv4 header has the protocol number of a protocol X. Which ONE of the following is NOT a possible candidate for X?
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT · Routing Algorithms (Distance Vector, Link State) and BGP/OSPF
GATE CS 2025 Set 2, Q.23
Consider a network that uses Ethernet and IPv4. Assume that IPv4 headers do not use any options field. Each Ethernet frame can carry a maximum of 1500 bytes in its data field. A...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2024 Set 1, Q.31
Which of the following fields is/are modified in the IP header of a packet going out of a network address translation (NAT) device from an internal network to an external network?
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2024 Set 1, Q.58
Consider the entries shown below in the forwarding table of an IP router. Each entry consists of an IP prefix and the corresponding next hop router for packets whose destination...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2024 Set 1, Q.65
Consider sending an IP datagram of size 1420 bytes (including 20 bytes of IP header) from a sender to a receiver over a path of two links with a router between them. The first l...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2024 Set 2, Q.23
Node X has a TCP connection open to node Y. The packets from X to Y go through an intermediate IP router R. Ethernet switch S is the first switch on the network path between X a...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT · OSI/TCP-IP Layering, Physical Layer and Switching
GATE CS 2024 Set 2, Q.28
Which of the following statements about IPv4 fragmentation is/are TRUE?
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2024 Set 2, Q.32
Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2024 Set 2, Q.38
Which one of the following CIDR prefixes exactly represents the range of IP addresses
10.12.2.0to10.12.3.255?IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2023, Q.65
The forwarding table of a router is shown below. Subnet Number Subnet Mask Interface ID 200.150.0.0 255.255.0.0 1 200.150.64.0 255.255.224.0 2 200.150.68.0 255.255.255.0 3 200.1...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT · Routing Algorithms (Distance Vector, Link State) and BGP/OSPF
GATE CS 2022, Q.22
Consider an enterprise network with two Ethernet segments, a web server and a firewall, connected via three routers as shown below. Enterprise network with Firewall connected to...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2022, Q.55
Consider routing table of an organization’s router shown below: | Subnet Number | Subnet Mask | Next Hop | | :--- | :--- | :--- | | 12.20.164.0 | 255.255.252.0 | R1 | | 12.20.17...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2021 Set 1, Q.55 (CS Q.45)
Consider two hosts and connected through a router . The maximum transfer unit (MTU) value of the link between and is 1500 bytes, and between and is 82...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2020, Q.25 (CS Q.15)
Consider the following statements about the functionality of an IP based router. I. A router does not modify the IP packets during forwarding. II. It is not necessary for a rout...
Routing Algorithms (Distance Vector, Link State) and BGP/OSPF · IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2020, Q.48 (CS Q.38)
An organization requires a range of IP addresses to assign one to each of its 1500 computers. The organization has approached an Internet Service Provider (ISP) for this task. T...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2019, Q.38 (CS Q.28)
Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and 100.10.5.6 respectively. The subnet mask is set to 255.255.255.252 for all the three machines....
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2018, Q.64 (CS Q.54)
Consider an IP packet with a length of 4,500 bytes that includes a 20-byte IPv4 header and a 40-byte TCP header. The packet is forwarded to an IPv4 router that supports a Maximu...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2017 Set 2, Q.20 (CS Q.20)
The maximum number of IPv4 router addresses that can be listed in the record route (RR) option field of an IPv4 header is
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2016 Set 1, Q.63 (CS Q.53)
An IP datagram of size 1000 bytes arrives at a router. The router has to forward this packet on a link whose MTU (maximum transmission unit) is 100 bytes. Assume that the size o...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2015 Set 1, Q.32 (CS Q.22)
Which one of the following fields of an IP header is NOT modified by a typical IP router?
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2015 Set 2, Q.62 (CS Q.52)
Host A sends a UDP datagram containing 8880 bytes of user data to host B over an Ethernet LAN. Ethernet frames may carry data up to 1500 bytes (i.e. MTU = 1500 bytes). Size of U...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2015 Set 3, Q.48 (CS Q.38)
In the network 200.10.11.144/27, the fourth octet (in decimal) of the last IP address of the network which can be assigned to a host is _____.
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2014 Set 2, Q.35 (CS Q.25)
In the diagram shown below, L1 is an Ethernet LAN and L2 is a Token-Ring LAN. An IP packet originates from sender S and traverses to R, as shown. The links within each ISP and a...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2014 Set 3, Q.35 (CS Q.25)
Host A (on TCP/IP v4 network A) sends an IP datagram D to host B (also on TCP/IP v4 network B). Assume that no error occurred during the transmission of D. When D reaches B, whi...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2014 Set 3, Q.37 (CS Q.27)
Every host in an IPv4 network has a 1-second resolution real-time clock with battery backup. Each host needs to generate up to 1000 unique identifiers per second. Assume that ea...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2014 Set 3, Q.38 (CS Q.28)
An IP router with a Maximum Transmission Unit (MTU) of 1500 bytes has received an IP packet of size 4404 bytes with an IP header of length 20 bytes. The values of the relevant f...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2013, Q.37 (CS Q.37)
In an IPv4 datagram, the M bit is 0, the value of HLEN is 10, the value of total length is 400 and the fragment offset value is 300. The position of the datagram, the sequence n...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2012, Q.23 (CS Q.23)
In the IPv4 addressing format, the number of networks allowed under Class C addresses is
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
GATE CS 2012, Q.34 (CS Q.34)
An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 245.248.128.0/20. The ISP wants to give half of this chunk of addresses...
IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT · IPv4/IPv6 Addressing, Subnetting, CIDR, ARP, ICMP and NAT
Other topics of Computer Networks
- OSI/TCP-IP Layering, Physical Layer and Switching
- Data Link Layer: Framing, Error Detection and Sliding Window
- Medium Access Control (ALOHA, CSMA/CD) and Ethernet/Switching
- Routing Algorithms (Distance Vector, Link State) and BGP/OSPF
- Transport Layer: UDP, TCP Flow and Congestion Control, Sockets
- Application Layer: DNS, HTTP, SMTP, FTP