Skip to content

GATE CS Computer Networks questions

Practise Computer Networks questions for GATE CS. Explore official PYQs and original subject-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2025Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 2 marks
​​​​Suppose we are transmitting frames between two nodes using Stop-and-Wait protocol. The frame size is 30003000 bits. The transmission rate of the channel is 20002000 bps (bits/second) and the propagation delay between the two nodes is 100100 milliseconds. Assume that the processing times at the source and destination are negligible. Also, assume that the …
Official PYQ2024Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 1 mark
A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP connection to fetch the entire webpage from the server. The webpage consists of a top-level index page with multiple embedded image objects. Assume that all caches (e.g., DNS cache, browser cache) are all initially empty. The following packets leave the user's computer …
Official PYQ2024Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMSQ · 1 mark
​TCP\mathrm{TCP} client P\mathrm{P} successfully establishes a connection to TCP\text{TCP} server Q\mathrm{Q}. Let NP\text{N}_{P} denote the sequence number in the SYN\text{SYN} sent from P\mathrm{P} to Q\mathrm{Q}. Let NQ\text{N}_{Q} denote the acknowledgement number in the SYN ACK from Q\text{Q} to P\text{P}. Which of the following …
Official PYQ2024Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMSQ · 1 mark
Which of the following fields is/are modified in the IP\text{IP} header of a packet going out of a network address translation (NAT)\text{(NAT)} device from an internal network to an external network?
Official PYQ2024Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMCQ · 2 marks
Consider a network path P−Q−R\mathrm{P}-\mathrm{Q}-\mathrm{R} between nodes P\mathrm{P} and R\mathrm{R} via router Q\mathrm{Q}. Node P\mathrm{P} sends a file of size 10610^6 bytes to R\text{R} via this path by splitting the file into chunks of 10310^3 bytes each. Node P\text{P} sends these chunks one after the other without any wait time …
Official PYQ2024Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateNAT · 2 marks
Consider the entries shown below in the forwarding table of an IP\text{IP} router. Each entry consists of an IP\text{IP} prefix and the corresponding next hop router for packets whose destination IP\text{IP} address matches the prefix. The notation " /N\mathrm{N} " in a prefix indicates a subnet mask with the most significant N\mathrm{N} bits set …
Official PYQ2024Computer NetworksFragmentation and IP Addressing, IPv4, CIDRNAT · 2 marks
Consider sending an IP\text{IP} datagram of size 14201420 bytes (including 2020 bytes of IP\text{IP} header) from a sender to a receiver over a path of two links with a router between them. The first link (sender to router) has an MTU\text{MTU} (Maximum Transmission Unit) size of 542542 bytes, while the second link (router to receiver) has an …
Official PYQ2024Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
​Node X\text{X} has a TCP\text{TCP} connection open to node Y\text{Y}. The packets from X\text{X} to Y\text{Y} go through an intermediate IP\text{IP} router R\mathrm{R}. Ethernet switch S\mathrm{S} is the first switch on the network path between X\mathrm{X} and R\mathrm{R}. Consider a packet sent from X\mathrm{X} to …
Official PYQ2024Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMSQ · 1 mark
​​​​​Which of the following statements about IPv4\text{IPv4} fragmentation is/are TRUE?
Official PYQ2024Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMSQ · 1 mark
​​​​Which of the following fields of an IP\text{IP} header is/are always modified by any router before it forwards the IP\text{IP} packet?
Official PYQ2024Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 2 marks
​​​​​Which one of the following CIDR\text{CIDR} prefixes exactly represents the range of IP\text{IP} addresses 10.12.2.010.12 .2 .0 to 10.12.3.25510.12 .3 .255?
Official PYQ2024Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 2 marks
Consider a TCP\text{TCP} connection operating at a point of time with the congestion window of size 1212 MSS\text{MSS} (Maximum Segment Size), when a timeout occurs due to packet loss. Assuming that all the segments transmitted in the next two RTTs\text{RTTs} (Round Trip Time) are acknowledged correctly, the congestion window size (in MSSMSS) during the …
Official PYQ2024Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingNAT · 2 marks
Consider an Ethernet segment with a transmission speed of 108bits/sec10^{8} \mathrm{bits} / \mathrm{sec} and a maximum segment length of 500500 meters. If the speed of propagation of the signal in the medium is 2×108 meters/sec2 \times 10^{8} \mathrm{~meters} / \mathrm{sec}, then the minimum frame size (in bits) required for collision detection is ___________.
Official PYQ2023Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Suppose two hosts are connected by a point-to-point link and they are configured to use Stop-and-Wait\textsf{Stop-and-Wait} protocol for reliable data transfer. Identify in which one of the following scenarios, the utilization of the link is the lowest.
Official PYQ2023Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMSQ · 1 mark
Which of the following statements is/are INCORRECT\text{INCORRECT} about the OSPF (Open Shortest Path First)\textsf{OSPF (Open Shortest Path First)} routing protocol used in the Internet?
Official PYQ2023Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMSQ · 2 marks
Suppose you are asked to design a new reliable byte-stream transport protocol like TCP.\text{TCP}. This protocol, named myTCP\textsf{myTCP}, runs over a 100 Mbps100 \mathrm{~Mbps} network with Round Trip Time of 150150 milliseconds and the maximum segment lifetime of 22 minutes. Which of the following is/are valid lengths of the Sequence Number field in the …
Official PYQ2023Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMSQ · 2 marks
Suppose in a web browser, you click on the www. gate-2023.in  URL\textsf{www. gate-2023.in}\; \text{URL}. The browser cache is empty. The IP address\text{IP address} for this URL\text{URL} is not cached in your local host, so a DNS\text{DNS} lookup is triggered (by the local DNS\text{DNS} server deployed on your local host) over the 33-tier DNS\text{DNS} hierarchy in an …
Official PYQ2023Computer NetworksFragmentation and IP Addressing, IPv4, CIDRNAT · 2 marks
The forwarding table of a router is shown below. …
Official PYQ2022Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
Consider an enterprise network with two Ethernet segments, a web server and a firewall, connected via three routers as shown below. What is the number of subnets inside the enterprise network?
Official PYQ2022Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailNAT · 1 mark
Consider the resolution of the domain name www.gate.org.in\textsf{www.gate.org.in} by a DNS\text{DNS} resolver. Assume that no resource records are cached anywhere across the DNS\text{DNS} servers and that iterative query mechanism is used in the resolution. The number of DNS\text{DNS} query-response pairs involved in completely resolving the domain name is …