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 PYQ2022Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMSQ · 2 marks
Consider routing table of an organization’s router shown below: …
Official PYQ2022Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateNAT · 2 marks
Consider a network with three routers P, Q, R\text{P, Q, R} shown in the figure below. All the links have cost of unity. The routers exchange distance vector routing information and have converged on the routing tables, after which the link Q-R\text{Q-R} fails. Assume that P\text{P} and Q\text{Q} send out routing updates at random times, each at the same …
Official PYQ2022Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 2 marks
Consider a 100  Mbps100 \; \text{Mbps} link between an earth station (sender) and a satellite (receiver) at an altitude of 2100  km.2100 \; \text{km}. The signal propagates at a speed of 3×108  m/s.3 \times 10^{8} \; \text{m/s.} The time taken (in milliseconds,  rounded off to two decimal places)\text{(in milliseconds,} \; \textit{rounded off to two decimal places}) for the receiver to completely receive a packet of …
Official PYQ2022Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 2 marks
Consider the data transfer using TCP\text{TCP} over a 1  Gbps1 \; \text{Gbps} link. Assuming that the maximum segment lifetime (MSL)\text{(MSL)} is set to 60  seconds,60 \; \text{seconds}, the minimum number of bits required for the sequence number field of the TCP\text{TCP} header, to prevent the sequence number space from wrapping around during the MSL\text{MSL} is …
Official PYQ2021Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 1 mark
Consider the following two statements. S1S_1: Destination MAC\text{MAC} address of an ARP\text{ARP} reply is a broadcast address. S2S_2: Destination MAC\text{MAC} address of an ARP\text{ARP} request is a broadcast address. Which one of the following choices is correct?
Official PYQ2021Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 2 marks
Assume that a 1212-bit Hamming codeword consisting of 88-bit data and 44 check bits is d8d7d6d5c8d4d4d3d2c4d1c2c1d_8d_7d_6d_5c_8d_4d_ 4d_3d_2c_4d_1c_2c_1, where the data bits and the check bits are given in the following tables: …
Official PYQ2021Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMSQ · 2 marks
A TCP\text{TCP} server application is programmed to listen on port number PP on host SS. A TCP\text{TCP} client is connected to the TCP\text{TCP} server over the network. Consider that while the TCP\text{TCP} connection was active, the server machine SS crashed and rebooted. Assume that the client does not use the TCP\text{TCP} keepalive timer. …
Official PYQ2021Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMSQ · 2 marks
Consider two hosts PP and QQ connected through a router RR. The maximum transfer unit (MTU)\text{(MTU)} value of the link between PP and RR is 15001500 bytes, and between RR and QQ is 820820 bytes. A TCP\text{TCP} segment of size 14001400 bytes was transferred from PP to QQ through RR, with IP\text{IP} identification value as …
Official PYQ2021Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 2 marks
Consider the sliding window flow-control protocol operating between a sender and a receiver over a full-duplex error-free link. Assume the following: The time taken for processing the data frame by the receiver is negligible. The time taken for processing the acknowledgement frame by the sender is negligible. The sender has infinite number of frames …
Official PYQ2021Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Consider the three-way handshake mechanism followed during TCP\text{TCP} connection establishment between hosts PP and QQ. Let XX and YY be two random 3232-bit starting sequence numbers chosen by PP and QQ respectively. Suppose PP sends a TCP\text{TCP} connection request message to QQ with a TCP\text{TCP} segment having …
Official PYQ2021Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 2 marks
Consider the cyclic redundancy check (CRC)\text{(CRC)} based error detecting scheme having the generator polynomial X3+X+1X^3+X+1. Suppose the message m4m3m2m1m0=11000m_4m_3m_2m_1m_0=11000 is to be transmitted. Check bits c2c1c0c_2c_1c_0 are appended at the end of the message by the transmitter using the above CRC\text{CRC} scheme. The transmitted bit string is denoted by …
Official PYQ2021Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMSQ · 2 marks
Consider a computer network using the distance vector routing algorithm in its network layer. The partial topology of the network is shown below. The objective is to find the shortest-cost path from the router RR to routers PP and QQ. Assume that RR does not initially know the shortest routes to PP and QQ. Assume that RR has three …
Official PYQ2021Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingNAT · 2 marks
Consider a network using the pure ALOHA\text{ALOHA} medium access control protocol, where each frame is of length 1,0001,000 bits. The channel transmission rate is 11 Mbps (=106=10^6 bits per second). The aggregate number of transmissions across all the nodes (including new frame transmissions and retransmitted frames due to collisions) is modelled as a …
Official PYQ2020Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMCQ · 1 mark
Consider the following statements about the functionality of an IP\textsf{IP} based router. A router does not modify the IP\textsf{IP} packets during forwarding. It is not necessary for a router to implement any routing protocol. A router should reassemble IP\textsf{IP} fragments if the MTU\textsf{MTU} of the outgoing link is larger than the size of …
Official PYQ2020Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailNAT · 1 mark
Assume that you have made a request for a web page through your web browser to a web server. Initially the browser cache is empty. Further, the browser is configured to send HTTP\textsf{HTTP} requests in non-persistent mode. The web page contains text and five very small images.The minimum number of TCP\textsf{TCP} connections required to display the web …
Official PYQ2020Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 2 marks
An organization requires a range of IP address to assign one to each of its 15001500 computers. The organization has approached an Internet Service Provider (ISP) for this task. The ISP uses CIDR and serves the requests from the available IP address space 202.61.0.0/17202.61.0.0/17. The ISP wants to assign an address space to the organization which will minimize the …
Official PYQ2020Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 2 marks
Consider a TCP\textsf{TCP} connection between a client and a server with the following specifications; the round trip time is 66 ms, the size of the receiver advertised window is 5050 KB, slow-start threshold at the client is 3232 KB, and the maximum segment size is 22 KB. The connection is established at time t=0t=0. Assume that there are no …
Official PYQ2019Computer NetworksApplication Layer Protocols: DNS, SMTP, HTTP, FTP, EmailMCQ · 1 mark
Which of the following protocol pairs can be used to send and retrieve e-mails (in that order)?
Official PYQ2019Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 2 marks
Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5100.10.5.2, \: 100.10.5.5, and 100.10.5.6100.10.5.6 respectively. The subnet mask is set to 255.255.255.252255.255.255.252 for all the three machines. Which one of the following is true?
Official PYQ2019Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 2 marks
Suppose that in an IP-over-Ethernet network, a machine X wishes to find the MAC address of another machine Y in its subnet. Which one of the following techniques can be used for this?