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 PYQ2019Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingNAT · 2 marks
Consider that 1515 machines need to be connected in a LAN using 88-port Ethernet switches. Assume that these switches do not have any separate uplink ports. The minimum number of switches needed is ______
Official PYQ2019Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksNAT · 2 marks
In an RSA cryptosystem, the value of the public modulus parameter nn is 30073007. If it is also known as that ϕ(n)=2880\phi(n)=2880 where ϕ()\phi() denotes Euler’s Totient Function, then the prime factor of nn which is greater than 5050 is _________
Official PYQ2018Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingNAT · 2 marks
Consider a simple communication system where multiple nodes are connected by a shared broadcast medium (like Ethernet or wireless). The nodes in the system use the following carrier-sense based medium access protocol. A node that receives a packet to transmit will carrier-sense the medium for 55 units of time. If the node does not detect any other …
Official PYQ2018Computer NetworksFragmentation and IP Addressing, IPv4, CIDRNAT · 2 marks
Consider an IP packet with a length of 4,500  bytes4,500\;\text{bytes} that includes a 20-byte  IPv420\text{-byte}\;\textsf{IPv4} header and a 40-byte40\text{-byte} TCP header. The packet is forwarded to an IPv4\textsf{IPv4} router that supports a Maximum Transmission Unit (MTU) of 600  bytes600\;\text{bytes}. Assume that the length of the IP header in all the outgoing fragments of …
Official PYQ2018Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 1 mark
Consider a long-lived TCP\text{TCP} session with an end-to-end bandwidth of 1  Gbps  (=1091\; \text{Gbps}\; (=10^9 bits-per-second).). The session starts with a sequence number of 12341234. The minimum time (in seconds, rounded to the closet integer) before this sequence number can be used again is _________.
Official PYQ2018Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Consider the following statements regarding the slow start phase of the TCP congestion control algorithm. Note that cwnd stands for the TCP congestion window and MSS window denotes the Maximum Segments Size: The cwnd increases by 22 MSS on every successful acknowledgment The cwnd approximately doubles on every successful acknowledgment The cwnd increases …
Official PYQ2018Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 1 mark
Match the following: FieldLength in bitsP. UDP Header’s Port NumberI. 48Q. Ethernet MAC AddressII. 8R. IPv6 Next HeaderIII. 32S. TCP Header’s Sequence NumberIV. 16\begin{array}{|l|l|}\hline \textbf{Field} & \textbf{Length in bits} \\ \hline \text{P. UDP Header's Port Number} & \text{I. 48} \\ \text{Q. Ethernet MAC Address} & \text{II. 8} \\ \text{R. IPv6 Next Header} & \text{III. 32} \\ \text{S. TCP Header's Sequence Number} & \text{IV. 16} \\ \hline \end{array}
Official PYQ2017Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 1 mark
The values of parameters for the Stop-and-Wait ARQ protocol are as given below: Bit rate of the transmission channel =1= 1 Mbps. Propagation delay from sender to receiver =0.75= 0.75 ms. Time to process a frame =0.25= 0.25 ms. Number of bytes in the information frame =1980= 1980. Number of bytes in the acknowledge frame =20= 20. Number of overhead bytes in …
Official PYQ2017Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksNAT · 1 mark
In a RSA cryptosystem, a participant AA uses two prime numbers p=13p = 13 and q=17q = 17 to generate her public and private keys. If the public key of AA is 3535, then the private key of AA is __________ .
Official PYQ2017Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
A computer network uses polynomials over GF(2)GF(2) for error checking with 88 bits as information bits and uses x3+x+1x^{3}+x+1 as the generator polynomial to generate the check bits. In this network, the message 0101101101011011 is transmitted as:
Official PYQ2017Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
A sender SS sends a message mm to receiver RR, which is digitally signed by SS with its private key. In this scenario, one or more of the following security violations can take place. SS can launch a birthday attack to replace mm with a fraudulent message AA third party attacker can launch a birthday attack to replace mm with a …
Official PYQ2017Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Consider a TCP client and a TCP server running on two different machines. After completing data transfer, the TCP client calls close to terminate the connection and a FIN segment is sent to the TCP server. Server-side TCP responds by sending an ACK, which is received by the client-side TCP. As per the TCP connection state diagram (RFC 793)\text{(RFC 793)}, in …
Official PYQ2017Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Consider two hosts XX and YY, connected by a single direct link of rate 106  bits/sec10^6\; \text{bits/sec}. The distance between the two hosts is 10,000  km10,000\;\text{km} and the propagation speed along the link is 2×108  m/sec2 \times 10^8 \;\text{m/sec}. Host XX sends a file of 50,000  bytes50,000\;\text{bytes} as one large message to host YY continuously. Let the …
Official PYQ2017Computer NetworksFragmentation and IP Addressing, IPv4, CIDRNAT · 1 mark
The maximum number of IPv4\textsf{IPv4} router addresses that can be listed in the record route (RR) option field of an IPv4\textsf{IPv4} header is______.
Official PYQ2017Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
Consider the binary code that consists of only four valid codewords as given below: 00000,01011,10101,1111000000, 01011, 10101, 11110 Let the minimum Hamming distance of the code pp and the maximum number of erroneous bits that can be corrected by the code be qq. Then the values of pp and qq are
Official PYQ2017Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMCQ · 1 mark
Consider the following statements about the routing protocols. Routing Information Protocol (RIP) and Open Shortest Path First (OSPF) in an IPv4\textsf{IPv4} network. RIP uses distance vector routing RIP packets are sent using UDP OSPF packets are sent using TCP OSPF operation is based on link-state routing Which of the above statements are CORRECT?
Official PYQ2017Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Consider socket API on a Linux machine that supports connected UDP sockets. A connected UDP socket is a UDP socket on which connect function has already been called. Which of the following statements is/are CORRECT? A connected UDP socket can be used to communicate with multiple peers simultaneously. A process can successfully call connect function again for …
Official PYQ2016Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 1 mark
For a host machine that uses the token bucket algorithm for congestion control, the token bucket has a capacity of 11 megabyte\text{megabyte} and the maximum output rate is 2020 megabytes\text{megabytes} per second\text{second}. Tokens arrive at a rate to sustain output at a rate of 1010 megabytes\text{megabytes} per second\text{second}. The token bucket is currently …
Official PYQ2016Computer NetworksFragmentation and IP Addressing, IPv4, CIDRNAT · 1 mark
An IP datagram of size 10001000 bytes \text{bytes }arrives at a router. The router has to forward this packet on a link whose MTU (maximum transmission unit) is 100100 bytes \text{bytes }. Assume that the size of the IP header is 2020 bytes .\text{bytes }. The number of fragments that the IP datagram will be divided into for transmission is________.
Official PYQ2016Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsNAT · 1 mark
A sender uses the Stop-and-Wait ARQ\text{ARQ} protocol for reliable transmission of frames. Frames are of size 10001000 bytes and the transmission rate at the sender is 80  Kbps(1Kbps=1000   bits/second).80\;\textsf{Kbps} (1\textsf{Kbps} = 1000\;\text{ bits/second}). Size of an acknowledgment is 100100 bytes and the transmission rate at the receiver is 8  Kbps.8\;\textsf{Kbps.} The one-way …