GateAI
IPv4, CIDR and NAT

GATE CSE 2022 · Q22

MCQ1 markEasy

Time

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?

GATE CSE 2022 Q22 diagram

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: C) 6

IPv4, CIDR and NAT

A subnet (or broadcast domain/network segment) is an isolated network partition separated by router interfaces or firewalls. Each network interface on a router connects to a distinct subnet.

Inside the enterprise network shown in the diagram, we can count each distinct network segment:

  1. Left Ethernet segment: connects the left hosts to the left router (1 subnet).

  2. Right Ethernet segment: connects the right hosts to the right router (1 subnet).

  3. Web server segment: connects the web server to the top router (1 subnet).

  4. Link between Left Router and Top Router: a point-to-point link forming a subnet (1 subnet).

  5. Link between Top Router and Right Router: a point-to-point link forming a subnet (1 subnet).

  6. Link between Firewall and Left Router: the internal connection inside the enterprise boundary (1 subnet).

Adding these up gives:

1+1+1+1+1+1=61 + 1 + 1 + 1 + 1 + 1 = 6

Thus, there are 6 subnets inside the enterprise network, corresponding to option (C).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This IPv4, CIDR and NAT previous year question is Q22 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on IPv4, CIDR and NAT in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related IPv4, CIDR and NAT PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

IPv4, CIDR and NAT in GATE CSE

IPv4, CIDR and NAT has 14 GATE CSE PYQs across 10 papers from 2012 to 2025. 5 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2022.

How GATE tests IPv4, CIDR and NAT

More from GATE CSE 2022

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2022 · Q22 · MCQ

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?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.