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
GATE CSE 2022 · Q22
Time

Select one answerSingle correct
Solution
Official answer: C) 6
IPv4, CIDR and NATA 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:
Left Ethernet segment: connects the left hosts to the left router (1 subnet).
Right Ethernet segment: connects the right hosts to the right router (1 subnet).
Web server segment: connects the web server to the top router (1 subnet).
Link between Left Router and Top Router: a point-to-point link forming a subnet (1 subnet).
Link between Top Router and Right Router: a point-to-point link forming a subnet (1 subnet).
Link between Firewall and Left Router: the internal connection inside the enterprise boundary (1 subnet).
Adding these up gives:
Thus, there are 6 subnets inside the enterprise network, corresponding to option (C).
Try the question first, then check your work.
Examiner trap
Count every distinct broadcast domain (network segment): each LAN, each point-to-point link between routers, and the links to the server and firewall.
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
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.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
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 NATIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.