Computer Networks questions — page 1 of 7

Q18

GATE CS 2026 CS-1Transport LayerMCQ1 mark−1/3 if wrong
With respect to a TCP connection between a client and a server, which one of the following statements is true?
Show answer without attempting

Answer: D

Q19

GATE CS 2026 CS-1Application LayerMSQ1 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.1?
More than one option can be correct.
Show answer without attempting

Answer: A, C, D

Q44

GATE CS 2026 CS-1Transport LayerMCQ2 marks−2/3 if wrong
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 10000 segments. Assume that the round-trip time is fixed at 1 millisecond. Assume that the sender always has data to send, the segments are numbered from 1, and no segment is lost. Let tt denote the time (in milliseconds) at which the transmission of segment number 2000 starts.

Which one of the following options is correct?
Show answer without attempting

Answer: B

Q45

GATE CS 2026 CS-1Transport LayerMCQ2 marks−2/3 if wrong
Consider the implementation of sliding window protocol over a lossless link, with a window size of WW frames, where each frame is of size 1000 bits (including header). The bandwidth of the link is 100 kbps (1k=1031\text{k} = 10^3) and the one-way propagation delay is 100 milliseconds. Assume that processing times at the sender and receiver are zero and the transmission time of acknowledgements is also zero. Which one of the following options gives the minimum size of WW (in number of frames) required to achieve 100% link utilization?
Show answer without attempting

Answer: B

Q56

GATE CS 2026 CS-1IPv4MSQ2 marks
An ISP having an address block 202.16.0.0/15 assigns a block of 6000 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?
More than one option can be correct.
Show answer without attempting

Answer: A, B, C

Q21

GATE CS 2026 CS-2Layering and SwitchingMCQ1 mark−1/3 if wrong
Consider a file of size 4 million bytes being transferred between two hosts connected via a path consisting of three consecutive links of bandwidth 2 Mbps, 500 kbps, and 1 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 overhead to transfer the file.

Which one of the following is the total time (in seconds) to transfer the file?

Note: 1M=1061\text{M}=10^6, 1k=1031\text{k}=10^3
Show answer without attempting

Answer: B

Q22

GATE CS 2026 CS-2Application LayerMCQ1 mark−1/3 if wrong
Which one of the following protocols may need to broadcast some of its messages?
Show answer without attempting

Answer: C

Q33

GATE CS 2026 CS-2IPv4NAT1 mark
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)
Show answer without attempting

Answer: 4094

Q43

GATE CS 2026 CS-2Data Link LayerMCQ2 marks−2/3 if wrong
Consider the transmission of data bits 110001011 over a link that uses Cyclic Redundancy Check (CRC) code for error detection. If the generator bit pattern is given to be 1001, which one of the following options shows the remainder bit pattern appended to the data bits before transmission?
Show answer without attempting

Answer: D

Q58

GATE CS 2026 CS-2Transport LayerNAT2 marks
Consider a new TCP connection between a sender and a receiver. The receiver advertised window is constant at 48 KB, the maximum segment size (MSS) is 2 KB, and the slow start threshold for TCP congestion control is 16 KB. Assume that there are no timeouts or duplicate acknowledgements. The number of rounds of transmission required for the congestion control algorithm of the TCP connection to reach the congestion avoidance phase is ___________. (answer in integer)

Note: 1K=2101\text{K}=2^{10}
Show answer without attempting

Answer: 4

Q65

GATE CS 2026 CS-2Data Link LayerNAT2 marks
It is necessary to design a link-layer protocol between two hosts that are directly connected over a lossless link of length 3000 kilometers. Assume that the link bandwidth is 10810^8 bits per second and that the propagation delay in the link is 5 nanoseconds per meter. Every transmitted data byte is assigned a unique sequence number.

Let NN be the minimum number of bits needed for the sequence number field in the protocol header such that

i. the sequence numbers do not wrap around before 60 seconds, and
ii. the maximum utilization of the link is achieved.

The value of NN is ______. (answer in integer)
Show answer without attempting

Answer: 30

Q16

GATE CS 2025 CS-1Layering and SwitchingMCQ1 mark−1/3 if wrong
Identify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown.

OSI Layers Functionalities
(a) Network layer (I) Packet routing
(b) Transport layer (II) Framing and error handling
(c) Datalink layer (III) Host to host communication
Show answer without attempting

Answer: B

Q22

GATE CS 2025 CS-1Transport LayerMSQ1 mark
Consider the 3-way handshaking protocol for TCP connection establishment. Let the three packets exchanged during the connection establishment be denoted as P1, P2, and P3, in order. Which of the following option(s) is/are TRUE with respect to TCP header flags that are set in the packets?
More than one option can be correct.
Show answer without attempting

Answer: B, D

Q40

GATE CS 2025 CS-1RoutingMCQ2 marks−2/3 if wrong
A packet with the destination IP address 145.36.109.70 arrives at a router whose routing table is shown. Which interface will the packet be forwarded to?
Question figure
Show answer without attempting

Answer: A

Q57

GATE CS 2025 CS-1IPv4NAT2 marks
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 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)
Question figure
Show answer without attempting

Answer: 7

Q16

GATE CS 2025 CS-2Transport LayerMCQ1 mark−1/3 if wrong
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 TCP segment from a sender S to a receiver R cannot carry both data from S to R and acknowledgement for a segment from R to S.

Which ONE of the following is CORRECT?
Show answer without attempting

Answer: B

Q17

GATE CS 2025 CS-2RoutingMCQ1 mark−1/3 if wrong
Consider the routing protocols given in List I and the names given in List II:
List IList II
(i) Distance vector routing(a) Bellman-Ford
(ii) Link state routing(b) Dijkstra
For matching of items in List I with those in List II, which ONE of the following options is CORRECT?
Show answer without attempting

Answer: A

Q18

GATE CS 2025 CS-2IPv4MCQ1 mark−1/3 if wrong
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?
Show answer without attempting

Answer: D

Q23

GATE CS 2025 CS-2IPv4MCQ1 mark−1/3 if wrong
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 UDP segment is transmitted. The payload (data) in the UDP segment is 7488 bytes.

Which ONE of the following choices has the CORRECT total number of fragments transmitted and the size of the last fragment including IPv4 header?
Show answer without attempting

Answer: D

Q36

GATE CS 2025 CS-2Transport LayerMCQ2 marks−2/3 if wrong
Suppose we are transmitting frames between two nodes using Stop-and-Wait protocol. The frame size is 3000 bits. The transmission rate of the channel is 2000 bps (bits/second) and the propagation delay between the two nodes is 100 milliseconds. Assume that the processing times at the source and destination are negligible. Also, assume that the size of the acknowledgement packet is negligible.

Which ONE of the following most accurately gives the channel utilization for the above scenario in percentage?
Show answer without attempting

Answer: A

0/200 correct0 marks

Related topics in GATE CS