Docsity

Subnetting in Computer Networks, Exams of Data Communication Systems and Computer Networks

Partial preview of the text

Download Subnetting in Computer Networks and more Exams Data Communication Systems and Computer Networks in PDF only on Docsity!

Subnetting in Computer Networks: Classful

Addressing, CIDR & Practical Applications

Complete Study Guide (2026/2027) — 200

Questions with Answers and Rationales

Table of Contents

Section Topics Questions 1 Classful Addressing Fundamentals 30 2 CIDR Notation & Concepts 25 3 Subnet Mask Calculations 35 4 VLSM & FLSM 25 5 Practical Applications & Security 25 6 AWS/Cloud Networking 15 7 Advanced Scenarios & Troubleshooting 25 8 IPv6 & Future-Proofing 10 9 Comprehensive Exam Simulation 10

. Section 1: Classful Addressing Fundamentals

(Questions 1–30)

Question 1 What is the primary characteristic that defines classful IP addressing? Answer: The first octet of the IP address determines the class and, consequently, the default network/host boundary.

Rationale: Class A addresses use only the first octet for the network portion, so the first 8 bits are network bits. The default mask has 1s in the first octet and 0s in the remaining three octets: 11111111.00000000.00000000.. Question 5 In classful addressing, what distinguishes Class D addresses from Classes A, B, and C? Answer: Class D addresses are reserved for multicast and begin with the first four bits set to 1110. Rationale: Classes A, B, and C are for unicast addressing (one-to-one communication). Class D (224.0.0.0 to 239.255.255.255) is designed for multicast groups, where a single packet is delivered to multiple hosts that have joined a specific multicast group. Question 6 Why is the 127.x.x.x range excluded from Class A address assignments? Answer: It is reserved for loopback testing. Rationale: The entire 127.0.0.0/8 block is reserved for loopback. The most commonly used address is 127.0.0.1 (localhost), which allows a device to send packets to itself for testing TCP/IP stack functionality. Assigning this range to real networks would cause routing conflicts and security issues. Question 7 What are the three private IP address ranges defined in RFC 1918, and what classful blocks do they derive from? Answer:  10.0.0.0/8 (from Class A)

 172.16.0.0/12 (from Class B)  192.168.0.0/16 (from Class C) Rationale: RFC 1918 defined these ranges for internal use, allowing organizations to reuse the same IP space without conflicting with public internet addresses. These are not routable on the public internet and require NAT for external communication. Question 8 What happens if a Class B network is assigned to an organization with only 100 devices? Answer: Approximately 65,434 addresses are wasted. Rationale: A Class B network provides 65,534 usable addresses. If only 100 are needed, 65,434 addresses remain unused. This represents over 99.8% waste, illustrating the severe inefficiency of classful addressing for organizations whose needs fall between Class C (254 hosts) and Class B (65,534 hosts). Question 9 How many usable host addresses are available in a full Class C network? Answer: 254. Rationale: A Class C network has 8 host bits, providing 2⁸ = 256 total addresses. Two addresses are reserved: the network address (all host bits 0) and the broadcast address (all host bits 1). Therefore, 256 − 2 = 254 usable addresses. Question 10 What was the original purpose of Class E addresses, and are they used in practice?

Rationale: Class A addresses have 7 usable network bits (the first bit is fixed at 0). This yields 2⁷ = 128 combinations. However, the 0.x.x.x network (0.0.0.0) is reserved for default routing, and 127.x.x.x is reserved for loopback. Therefore, 128 − 2 = 126 usable Class A networks. Question 14 What is the binary representation of the first octet of a Class C address? Answer: 110xxxxx. Rationale: Class C addresses are identified by the leading three bits 110. This prefix, when converted to decimal, produces first octet values from 192 (11000000) to 223 (11011111). The remaining 5 bits of the first octet plus the next two octets constitute the network portion. Question 15 Which classful address class was most commonly assigned to medium-sized organizations before CIDR? Answer: Class B. Rationale: Class B provided a middle ground: 16,384 possible networks with 65,534 hosts each. This suited medium-to-large organizations that needed more than 254 addresses but couldn't justify the massive Class A space. However, this still led to significant waste for organizations needing only a few thousand addresses. Question 16 What is the network address of the IP 172.16.45.89 if no subnetting is applied? Answer: 172.16.0.0.

Rationale: Without subnetting, the default Class B mask (/16) applies. The first 16 bits (172.16) are the network portion, and the remaining 16 bits are the host portion. Setting the host bits to zero yields the network address 172.16.0.. Question 17 Why did classful addressing become unsustainable for the growing internet? Answer: Classful addressing wasted enormous blocks of IP addresses and could not scale to accommodate varied organizational needs. Rationale: The rigid class structure offered only three sizes: 254 hosts (Class C), 65,534 hosts (Class B), or 16.7 million hosts (Class A). Organizations needing 1,000 addresses would be forced to take a Class B, wasting over 64,000 addresses. By the early 1990s, this inefficiency threatened to exhaust the IPv4 address space. Question 18 What organization historically managed the allocation of classful IP address blocks? Answer: IANA (Internet Assigned Numbers Authority) and its regional internet registries (RIRs). Rationale: IANA manages the global IP address pool and delegates large blocks to RIRs (ARIN, RIPE, APNIC, LACNIC, AFRINIC). These RIRs then allocate addresses to ISPs and large organizations. In the classful era, allocations were made in whole class blocks, which contributed to the waste problem. Question 19 A device has an IP address of 192.168.10.50 and a default Class C mask. What is the broadcast address for this network?

Rationale: When an application sends traffic to 127.0.0.1 (or any 127.x.x.x address), the packet never leaves the device. This is useful for testing network applications, verifying protocol stack installation, and troubleshooting. It also provides a consistent localhost reference regardless of the device's actual IP configuration. Question 23 True or False: Class D addresses can be assigned to individual hosts for unicast communication. Answer: False. Rationale: Class D addresses (224.0.0.0–239.255.255.255) are exclusively for multicast. They cannot be assigned as unicast addresses to individual host interfaces. Multicast allows one-to-many communication, where a sender transmits to a group address and all subscribed receivers process the packet. Question 24 What is the default subnet mask for Class B, and how many host bits does it leave? Answer: 255.255.0.0 (/16), leaving 16 host bits. Rationale: Class B uses the first two octets for the network portion, so the default mask has 16 ones followed by 16 zeros. This yields 2¹⁶ = 65,536 total addresses, or 65,534 usable host addresses. Question 25 If a company is assigned the Class A network 23.0.0.0, what is the range of usable host addresses? Answer: 23.0.0.1 through 23.255.255.254.

Rationale: The network address is 23.0.0.0 (all host bits 0) and the broadcast address is 23.255.255.255 (all host bits 1). The usable range excludes these two, starting at 23.0.0.1 and ending at 23.255.255.. Question 26 What was the "classful boundary" and why did it limit internet growth? Answer: The classful boundary was the fixed network/host division determined by the address class. It limited growth because it prevented flexible allocation. Rationale: Under classful rules, an organization couldn't be assigned, say, 1,000 addresses. It had to receive an entire Class C (254, too few) or Class B (65,534, too many). This inflexibility accelerated IPv4 exhaustion and made routing tables larger due to the inability to aggregate arbitrary-sized blocks. Question 27 How does a router determine the class of an IP address without a subnet mask in a classful environment? Answer: By examining the first few bits of the first octet. Rationale: The leading bits encode the class: 0 for Class A, 10 for Class B, 110 for Class C, 1110 for Class D, and 1111 for Class E. This allowed classful routers to infer the network portion without explicit mask information, which was the standard before CIDR. Question 28 Which RFC defined the private IP address ranges still used today? Answer: RFC 1918. Rationale: RFC 1918 ("Address Allocation for Private Internets") designated 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 for private use. These

Question 31 What does CIDR stand for, and what problem does it solve? Answer: Classless Inter-Domain Routing. It solves the inefficiency of classful addressing by allowing networks of any size. Rationale: Introduced in 1993 (RFC 1519), CIDR removed the fixed Class A/B/C boundaries. Networks can now be allocated with any prefix length (e.g., /22, /26, /30), matching actual address requirements. This dramatically slowed IPv4 exhaustion and enabled route aggregation. Question 32 In CIDR notation 192.168.10.0/26, what does the "26" represent? Answer: The number of network bits in the subnet mask. Rationale: The /26 means 26 bits are used for the network portion, leaving 6 bits for hosts. This yields 2⁶ = 64 total addresses per subnet. The subnet mask equivalent is 255.255.255.. Question 33 Convert the subnet mask 255.255.240.0 to CIDR notation. Answer: /20. Rationale: 255.255.240.0 in binary is 11111111.11111111.11110000.00000000. Counting the consecutive 1s gives 8 + 8 + 4 = 20. Therefore, CIDR notation is /. Question 34 How many usable host addresses are available in a /28 subnet? Answer: 14.

Rationale: A /28 leaves 32 − 28 = 4 host bits. Total addresses = 2⁴ = 16. Subtract 2 for network and broadcast addresses: 16 − 2 = 14 usable hosts. Question 35 What is the primary advantage of CIDR over classful addressing for ISPs? Answer: Route aggregation (summarization). Rationale: CIDR allows multiple contiguous networks to be advertised as a single route. For example, four /24 networks (192.168.0.0/24 through 192.168.3.0/24) can be summarized as 192.168.0.0/22. This reduces routing table sizes and improves router performance. Question 36 What is the CIDR notation for a single host address? Answer: /32. Rationale: A /32 mask (255.255.255.255) uses all 32 bits for the network portion, leaving zero host bits. This represents exactly one IP address. It's commonly used in firewall rules, ACLs, and loopback interfaces to identify specific hosts. Question 37 How many subnets can be created from a /16 network using /24 subnets? Answer: 256. Rationale: Moving from /16 to /24 borrows 8 bits. Each borrowed bit doubles the number of subnets: 2⁸ = 256. Each /24 subnet contains 256 addresses (254 usable).

Answer: /26. Rationale: A /27 provides 2⁵ − 2 = 30 usable hosts (too few). A /26 provides 2⁶ − 2 = 62 usable hosts (exactly sufficient). The /26 mask is 255.255.255.. Question 42 What is the CIDR notation for the default Class B mask? Answer: /16. Rationale: The default Class B mask is 255.255.0.0, which has 16 consecutive 1s. In CIDR notation, this is written as /16. Even though CIDR eliminates classes, the /16 prefix is still commonly associated with Class B- sized networks. Question 43 How many host bits are available in a /18 subnet? Answer: 14. Rationale: Host bits = 32 − prefix length = 32 − 18 = 14. This provides 2¹⁴ = 16,384 total addresses, or 16,382 usable hosts. The /18 mask is 255.255.192.. Question 44 What is the network address for 192.168.15.130/25? Answer: 192.168.15.128. Rationale: A /25 mask (255.255.255.128) divides the last octet into two blocks: 0–127 and 128–255. The IP 130 falls in the second block. The network address is the first address in that block: 192.168.15..

Question 45 True or False: CIDR notation can represent networks of any size from /0 to /32. Answer: True. Rationale: CIDR allows prefix lengths from /0 (the entire internet, 0.0.0.0/0) to /32 (a single host). This flexibility is its primary advantage over classful addressing, which only offered /8, /16, and /24 boundaries. Question 46 What is the subnet mask for /30, and what is this subnet typically used for? Answer: 255.255.255.252. It's typically used for point-to-point WAN links. Rationale: A /30 provides 2² − 2 = 2 usable host addresses, which is exactly what's needed for a point-to-point connection between two routers. This minimizes address waste on WAN links. Question 47 How does CIDR notation simplify network design compared to classful addressing? Answer: It allows subnet sizes to match actual requirements, eliminating forced over-allocation. Rationale: Under classful addressing, a network needing 500 addresses had to take a Class B (65,534 addresses), wasting over 99%. With CIDR, the same network could receive a /23 (510 usable addresses), wasting only 10 addresses. This precision dramatically improves address efficiency.

Rationale: /21 means 21 network bits. In binary: 11111111.11111111.11111000.00000000. The third octet has 5 ones (128+64+32+16+8 = 248). Therefore, the mask is 255.255.248.. Question 52 What is the range of usable hosts in 192.168.1.0/27? Answer: 192.168.1.1 through 192.168.1.30. Rationale: A /27 provides 2⁵ = 32 addresses. Network address = 192.168.1.0. Broadcast address = 192.168.1.31. Usable range = network + 1 through broadcast − 1 = 192.168.1.1 to 192.168.1.. Question 53 Why is CIDR essential for modern internet routing? Answer: It enables route aggregation, which keeps global routing tables from becoming unmanageably large. Rationale: Without CIDR, the internet would need individual routes for every classful network. With CIDR, an ISP can advertise a single aggregate route (e.g., 192.168.0.0/16) instead of hundreds of /24 routes. This reduces memory and CPU requirements on core routers. Question 54 What is the total number of addresses in a /12 subnet? Answer: 1,048,576 (2²⁰). Rationale: A /12 leaves 20 host bits (32 − 12 = 20). 2²⁰ = 1,048,576 total addresses. The private range 172.16.0.0/12 is a well-known example, covering 172.16.0.0 through 172.31.255..

Question 55 A subnet has the address 10.10.10.64/26. What is its broadcast address? Answer: 10.10.10.127. Rationale: A /26 mask divides the last octet into blocks of 64: 0, 64, 128,

  1. The subnet 10.10.10.64/26 includes addresses 64–127. The broadcast address is the last address in the block: 10.10.10..

Section 3: Subnet Mask Calculations (Questions

Question 56 What is the binary representation of the subnet mask 255.255.255.192? Answer: 11111111.11111111.11111111.11000000. Rationale: 255 in each of the first three octets is all 1s. The last octet 192 is 11000000 in binary. This corresponds to /26 (26 consecutive 1s). This mask divides the last octet into four blocks of 64. Question 57 Given IP 192.168.1.100 and mask 255.255.255.192, what is the network address? Answer: 192.168.1.64. Rationale: The /26 mask creates blocks of 64: 0, 64, 128, 192. The IP 100 falls in the 64–127 block. The network address is the first address of that block: 192.168.1..