Computer Networks questions

Q16

GATE CS 2024 CS-1Application LayerMCQ1 mark−1/3 if wrong
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 in some order.
(i) HTTP GET request for the index page
(ii) DNS request to resolve the web server's name to its IP address
(iii) HTTP GET request for an image object
(iv) TCP SYN to open a connection to the web server
Which one of the following is the CORRECT chronological order (earliest in time to latest) of the packets leaving the computer?
Show answer without attempting

Answer: C

Q29

GATE CS 2024 CS-1Transport LayerMSQ1 mark
TCP client P successfully establishes a connection to TCP server Q. Let NPN_P denote the sequence number in the SYN sent from P to Q. Let NQN_Q denote the acknowledgement number in the SYN ACK from Q to P. Which of the following statements is/are CORRECT?
More than one option can be correct.
Show answer without attempting

Answer: A, D

Q31

GATE CS 2024 CS-1IPv4MSQ1 mark
Which of the following fields is/are modified in the IP header of a packet going out of a network address translation (NAT) device from an internal network to an external network?
More than one option can be correct.
Show answer without attempting

Answer: A, C

Q36

GATE CS 2024 CS-1Transport LayerMCQ2 marks−2/3 if wrong
Consider a network path P—Q—R between nodes P and R via router Q. Node P sends a file of size 10610^6 bytes to R via this path by splitting the file into chunks of 10310^3 bytes each. Node P sends these chunks one after the other without any wait time between the successive chunk transmissions. Assume that the size of extra headers added to these chunks is negligible, and that the chunk size is less than the MTU.
Each of the links P—Q and Q—R has a bandwidth of 10610^6 bits/sec, and negligible propagation latency. Router Q immediately transmits every packet it receives from P to R, with negligible processing and queueing delays. Router Q can simultaneously receive on link P—Q and transmit on link Q—R.
Assume P starts transmitting the chunks at time t=0t = 0.
Which one of the following options gives the time (in seconds, rounded off to 3 decimal places) at which R receives all the chunks of the file?
Show answer without attempting

Answer: B

Q58

GATE CS 2024 CS-1RoutingNAT2 marks
Consider the entries shown below in the forwarding table of an IP router. Each entry consists of an IP prefix and the corresponding next hop router for packets whose destination IP address matches the prefix. The notation "/N" in a prefix indicates a subnet mask with the most significant N bits set to 1.

This router forwards 20 packets each to 5 hosts. The IP addresses of the hosts are 10.1.1.16, 10.1.1.72, 10.1.1.132, 10.1.1.191, and 10.1.1.205 . The number of packets forwarded via the next hop router R2 is _______
Question figure
Show answer without attempting

Answer: 40

Q65

GATE CS 2024 CS-1IPv4NAT2 marks
Consider sending an IP datagram of size 1420 bytes (including 20 bytes of 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 (Maximum Transmission Unit) size of 542 bytes, while the second link (router to receiver) has an MTU size of 360 bytes. The number of fragments that would be delivered at the receiver is ________
Show answer without attempting

Answer: 6

Q23

GATE CS 2024 CS-2IPv4MSQ1 mark
Node X has a TCP connection open to node Y. The packets from X to Y go through an intermediate IP router R. Ethernet switch S is the first switch on the network path between X and R. Consider a packet sent from X to Y over this connection.

Which of the following statements is/are TRUE about the destination IP and MAC addresses on this packet at the time it leaves X?
More than one option can be correct.
Show answer without attempting

Answer: B

Q28

GATE CS 2024 CS-2IPv4MSQ1 mark
Which of the following statements about IPv4 fragmentation is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: B, C

Q32

GATE CS 2024 CS-2IPv4MSQ1 mark
Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?
More than one option can be correct.
Show answer without attempting

Answer: C, D

Q38

GATE CS 2024 CS-2IPv4MCQ2 marks−2/3 if wrong
Which one of the following CIDR prefixes exactly represents the range of IP addresses 10.12.2.0 to 10.12.3.255?
Show answer without attempting

Answer: A

Q54

GATE CS 2024 CS-2Transport LayerNAT2 marks
Consider a TCP connection operating at a point of time with the congestion window of size 12 MSS (Maximum Segment Size), when a timeout occurs due to packet loss. Assuming that all the segments transmitted in the next two RTTs (Round Trip Time) are acknowledged correctly, the congestion window size (in MSS) during the third RTT will be _________
Show answer without attempting

Answer: 4

Q55

GATE CS 2024 CS-2Data Link LayerNAT2 marks
Consider an Ethernet segment with a transmission speed of 10810^8 bits/sec and a maximum segment length of 500 meters. If the speed of propagation of the signal in the medium is 2×1082 \times 10^8 meters/sec, then the minimum frame size (in bits) required for collision detection is _________
Show answer without attempting

Answer: 500

0/120 correct0 marks

Related topics in GATE CS