Computer Networks questions — page 2 of 7

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

Q17

GATE CS 2023 CSLayering and SwitchingMCQ1 mark−1/3 if wrong
Suppose two hosts are connected by a point-to-point link and they are configured to use Stop-and-Wait protocol for reliable data transfer. Identify in which one of the following scenarios, the utilization of the link is the lowest.
Show answer without attempting

Answer: B

Q25

GATE CS 2023 CSRoutingMSQ1 mark
Which of the following statements is/are INCORRECT about the OSPF (Open Shortest Path First) routing protocol used in the Internet?
More than one option can be correct.
Show answer without attempting

Answer: A, C

Q50

GATE CS 2023 CSTransport LayerMSQ2 marks
Suppose you are asked to design a new reliable byte-stream transport protocol like TCP. This protocol, named myTCP, runs over a 100 Mbps network with Round Trip Time of 150 milliseconds and the maximum segment lifetime of 2 minutes.

Which of the following is/are valid lengths of the Sequence Number field in the myTCP header?
More than one option can be correct.
Show answer without attempting

Answer: B, C, D

Q52

GATE CS 2023 CSApplication LayerMSQ2 marks
Suppose in a web browser, you click on the www.gate-2023.in URL. The browser cache is empty. The IP address for this URL is not cached in your local host, so a DNS lookup is triggered (by the local DNS server deployed on your local host) over the 3-tier DNS hierarchy in an iterative mode. No resource records are cached anywhere across all DNS servers.

Let RTT denote the round trip time between your local host and DNS servers in the DNS hierarchy. The round trip time between the local host and the web server hosting www.gate-2023.in is also equal to RTT. The HTML file associated with the URL is small enough to have negligible transmission time and negligible rendering time by your web browser, which references 10 equally small objects on the same web server.

Which of the following statements is/are CORRECT about the minimum elapsed time between clicking on the URL and your browser fully rendering it?
More than one option can be correct.
Show answer without attempting

Answer: C, D

Q65

GATE CS 2023 CSIPv4NAT2 marks
The forwarding table of a router is shown below.
Subnet NumberSubnet MaskInterface ID
200.150.0.0255.255.0.01
200.150.64.0255.255.224.02
200.150.68.0255.255.255.03
200.150.68.64255.255.255.2244
Default0
A packet addressed to a destination address 200.150.68.118 arrives at the router. It will be forwarded to the interface with ID ____________.
Show answer without attempting

Answer: 3

Q22

GATE CS 2022 CSLayering and SwitchingMCQ1 mark−1/3 if wrong
Consider an enterprise network with two Ethernet segments, a web server and a firewall, connected via three routers as shown below.

What is the number of subnets inside the enterprise network?
Question figure
Show answer without attempting

Answer: C

Q35

GATE CS 2022 CSApplication LayerNAT1 mark
Consider the resolution of the domain name www.gate.org.in by a DNS resolver. Assume that no resource records are cached anywhere across the DNS servers and that iterative query mechanism is used in the resolution. The number of DNS query-response pairs involved in completely resolving the domain name is_____________.
Show answer without attempting

Answer: 4

Q55

GATE CS 2022 CSIPv4MSQ2 marks
Consider routing table of an organization's router shown below:
Subnet NumberSubnet MaskNext Hop
12.20.164.0255.255.252.0R1
12.20.170.0255.255.254.0R2
12.20.168.0255.255.254.0Interface 0
12.20.166.0255.255.254.0Interface 1
defaultR3
Which of the following prefixes in CIDR notation can be collectively used to correctly aggregate all of the subnets in the routing table?
More than one option can be correct.
Show answer without attempting

Answer: B, D

0/200 correct0 marks

Related topics in GATE CS