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 PYQ2026Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
With respect to a TCP connection between a client and a server, which one of the following statements is true?
Official PYQ2026Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailMSQ · 1 mark
Which of the following statements is/are true with respect to the interaction of a web browser with a web server using HTTP 1.11.1?
Official PYQ2026Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 2 marks
A TCP sender successfully establishes a connection with a TCP receiver and starts the transmission of segments. The TCP congestion control mechanism's slow-start threshold is set to 1000010000 segments. Assume that the round-trip time is fixed at 11 millisecond. Assume that the sender always has data to send, the segments are numbered from 11, and no …
Official PYQ2026Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 2 marks
Consider the implementation of sliding window protocol over a lossless link, with a window size of WW frames, where each frame is of size 10001000 bits (including header). The bandwidth of the link is 100kbps(1k=103)100 \mathrm{kbps}\left(1 \mathrm{k}=10^{3}\right) and the one-way propagation delay is 100100 milliseconds. Assume that processing times at the sender …
Official PYQ2026Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMSQ · 2 marks
An ISP having an address block 202.16.0.0/15202.16.0.0/15 assigns a block of 60006000 IP addresses to a client, using the classless internet domain routing (CIDR) super-netting approach. Which of the following address blocks can be assigned by the ISP?
Official PYQ2026Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMCQ · 1 mark
Consider a file of size 44 million bytes being transferred between two hosts connected via a path consisting of three consecutive links of bandwidth 22 Mbps , 500500 kbps , and 11 Mbps , respectively. All processing delays and propagation delays are negligible. Assume that there is no other background traffic over the path and no other additional …
Official PYQ2026Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailMCQ · 1 mark
Which one of the following protocols may need to broadcast some of its messages?
Official PYQ2026Computer NetworksFragmentation and IP Addressing, IPv4, CIDRNAT · 1 mark
If an IP network uses a subnet mask of 255.255.240.0255.255.240.0, the maximum number of IP addresses that can be assigned to network interfaces is ____\_\_\_\_. (answer in integer)
Official PYQ2026Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 2 marks
Consider the transmission of data bits 110001011110001011 over a link that uses Cyclic Redundancy Check (CRC) code for error detection. If the generator bit pattern is given to be 10011001, which one of the following options shows the remainder bit pattern appended to the data bits before transmission?
Official PYQ2026Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 2 marks
Consider a new TCP connection between a sender and a receiver. The receiver advertised window is constant at 4848 KB, the maximum segment size (MSS) is 22 KB, and the slow start threshold for TCP congestion control is 1616 KB. Assume that there are no timeouts or duplicate acknowledgements. The number of rounds of transmission required for the …
Official PYQ2026Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingNAT · 2 marks
It is necessary to design a link-layer protocol between two hosts that are directly connected over a lossless link of length 30003000 kilometers. Assume that the link bandwidth is 10810^{8} bits per second and that the propagation delay in the link is 55 nanoseconds per meter. Every transmitted data byte is assigned a unique sequence number. Let NN be …
Official PYQ2025Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 1 mark
Identify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown. …
Official PYQ2025Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMSQ · 1 mark
Consider the 33-way handshaking protocol for TCP connection establishment. Let the three packets exchanged during the connection establishment be denoted as P1, P2\text{P1, P2}, and P3\text{P3}, in order. Which of the following option(s) is/are TRUE with respect to TCP header flags that are set in the packets?
Official PYQ2025Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 2 marks
A packet with the destination IP\text{IP} address 145.36.109.70145.36 .109 .70 arrives at a router whose routing table is shown. Which interface will the packet be forwarded to? …
Official PYQ2025Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingNAT · 2 marks
Suppose a 55-bit message is transmitted from a source to a destination through a noisy channel. The probability that a bit of the message gets flipped during transmission is 0.010.01. Flipping of each bit is independent of one another. The probability that the message is delivered error-free to the destination is ___________ (rounded off to three decimal …
Official PYQ2025Computer NetworksFragmentation and IP Addressing, IPv4, CIDRNAT · 2 marks
Suppose a message of size 1500015000 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 transmission unit (MTU) as shown in the figure, including IP header. The number of fragments that will be delivered to the destination is _________. (Answer in integer)
Official PYQ2025Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
​​​​​Consider the following statements: Address Resolution Protocol (ARP) provides a mapping from an IP address to the corresponding hardware (link-layer) address. A single TCP segment from a sender SS to a receiver RR cannot carry both data from SS to RR and acknowledgement for a segment from RR to SS Which one of the following is CORRECT?
Official PYQ2025Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMCQ · 1 mark
Consider the routing protocols given in List I and the names given in List II: …
Official PYQ2025Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 1 mark
​​​A machine receives an IPv4IPv4 datagram. The protocol field of the IPv4IPv4 header has the protocol number of a protocol XX. Which ONE of the following is NOT a possible candidate for XX?
Official PYQ2025Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 1 mark
​​​​​Consider a network that uses Ethernet and IPv4IPv4. Assume that IPv4IPv4 headers do not use any options field. Each Ethernet frame can carry a maximum of 15001500 bytes in its data field. A UDP segment is transmitted. The payload (data) in the UDPO segment is 74887488 bytes. Which ONE of the following choices has the CORRECT total number of fragments …