IPv4 questions — page 1 of 2

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

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

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

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

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

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

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

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

Q45

GATE CS 2021 CS-1IPv4MSQ2 marks
Consider two hosts PP and QQ connected through a router RR. The maximum transfer unit (MTU) value of the link between PP and RR is 1500 bytes, and between RR and QQ is 820 bytes.
A TCP segment of size 1400 bytes was transferred from PP to QQ through RR, with IP identification value as 0x1234. Assume that the IP header size is 20 bytes. Further, the packet is allowed to be fragmented, i.e., Don't Fragment (DF) flag in the IP header is not set by PP.
Which of the following statements is/are correct?
More than one option can be correct.
Show answer without attempting

Answer: A, C

Q15

GATE CS 2020 CSIPv4MCQ1 mark−1/3 if wrong
Consider the following statements about the functionality of an IP based router.

I. A router does not modify the IP packets during forwarding.
II. It is not necessary for a router to implement any routing protocol.
III. A router should reassemble IP fragments if the MTU of the outgoing link is larger than the size of the incoming IP packet.

Which of the above statements is/are TRUE?
Show answer without attempting

Answer: D

Q38

GATE CS 2020 CSIPv4MCQ2 marks−2/3 if wrong
An organization requires a range of IP addresses to assign one to each of its 1500 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/17. The ISP wants to assign an address space to the organization which will minimize the number of routing entries in the ISP’s router using route aggregation. Which of the following address spaces are potential candidates from which the ISP can allot any one to the organization?

I. 202.61.84.0/21
II. 202.61.104.0/21
III. 202.61.64.0/21
IV. 202.61.144.0/21
Show answer without attempting

Answer: B

Q28

GATE CS 2019 CSIPv4MCQ2 marks−2/3 if wrong
Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and 100.10.5.6 respectively. The subnet mask is set to 255.255.255.252 for all the three machines. Which one of the following is true?
Show answer without attempting

Answer: C

Q29

GATE CS 2019 CSIPv4MCQ2 marks−2/3 if wrong
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?
Show answer without attempting

Answer: C

Q54

GATE CS 2018 CSIPv4NAT2 marks
Consider an IP packet with a length of 4,500 bytes that includes a 20-byte IPv4 header and a 40-byte TCP header. The packet is forwarded to an IPv4 router that supports a Maximum Transmission Unit (MTU) of 600 bytes. Assume that the length of the IP header in all the outgoing fragments of this packet is 20 bytes. Assume that the fragmentation offset value stored in the first fragment is 0.

The fragmentation offset value stored in the third fragment is _______.
Show answer without attempting

Answer: 144

Q20

GATE CS 2017 CS-2IPv4NAT1 mark
The maximum number of IPv4 router addresses that can be listed in the record route (RR) option field of an IPv4 header is ____________.
Show answer without attempting

Answer: 9.0

0/200 correct0 marks

Related topics in Computer Networks