Network and Data Communications · Unit 10
IP Addressing and Subnetting
Exam-focused notes for IP Addressing and Subnetting (Network and Data Communications, BIT254): what the TU syllabus asks and how it has actually been tested, with 3 solved past questions from this unit.
IP Addressing and Subnetting in short
Every host on the Internet needs an IP address. This chapter covers IPv4, IPv6, subnetting with worked calculations, and how hubs, switches and routers differ.
What this unit covers
- IPv4 protocol
- IPv6 protocol
- IPv4 vs IPv6 differences
- Subnetting concept
- Subnet ID calculation
- Subnet mask determination
- Broadcast address calculation
- Network range identification
- Subnetting advantages
- Switch router and hub differentiation
IPv4 vs IPv6 differences
2082 · 5 marks
Write down the major difference between IPv4 and IPv6 protocol. [5]
Subnetting concept
2081 · 10 marks
Divide the network 192.168.2.0/24 into subnets having 48 hosts each.Find the subnet ID, subnet mask, broadcast address and network ranges. What are the advantages of subnetting?[7+3]
Show solved answerHide answer
Subnetting 192.168.2.0/24 into Subnets of 48 Hosts Each
Given Data
- Network: $192.168.2.0/24$
- Required hosts per subnet: $48$
Step 1: Host Bits Required
Need $2^n - 2 \geq 48$:
| $n$ | $2^n - 2$ | Sufficient? |
|---|---|---|
| 5 | 30 | No |
| 6 | 62 | Yes ✓ |
So host bits = 6.
Step 2: Subnet Mask / New Prefix
- Total bits = 32, original network bits = 24
- Borrowed subnet bits = $32 - 24 - 6 = 2$
- New prefix = $/24 + 2 = /26$
Fourth octet: $11000000_2 = 192$
Subnet Mask = 255.255.255.192 (/26)
Step 3: Number of Subnets and Block Size
- Subnets = $2^2 = 4$
- Block size (increment) = $2^6 = 64$
- Usable hosts per subnet = $2^6 - 2 = 62$ (≥ 48 ✓)
Step 4: Subnet Table
| Subnet | Subnet ID | Subnet Mask | First Host | Last Host | Broadcast |
|---|---|---|---|---|---|
| 1 | 192.168.2.0 | 255.255.255.192 | 192.168.2.1 | 192.168.2.62 | 192.168.2.63 |
| 2 | 192.168.2.64 | 255.255.255.192 | 192.168.2.65 | 192.168.2.126 | 192.168.2.127 |
| 3 | 192.168.2.128 | 255.255.255.192 | 192.168.2.129 | 192.168.2.190 | 192.168.2.191 |
| 4 | 192.168.2.192 | 255.255.255.192 | 192.168.2.193 | 192.168.2.254 | 192.168.2.255 |
Step 5: Network Ranges
| Subnet | Range |
|---|---|
| 1 | 192.168.2.0 - 192.168.2.63 |
| 2 | 192.168.2.64 - 192.168.2.127 |
| 3 | 192.168.2.128 - 192.168.2.191 |
| 4 | 192.168.2.192 - 192.168.2.255 |
Advantages of Subnetting
- Efficient IP address utilization - reduces address wastage by sizing blocks appropriately.
- Reduced broadcast traffic / smaller broadcast domains - improves performance.
- Improved network performance - less congestion within segments.
- Enhanced security - inter-subnet traffic passes through routers where access control can be applied.
- Easier management and troubleshooting - logical, smaller segments.
- Scalability - new subnets added without full redesign.
Switch router and hub differentiation
Make Unit 10 stick
Practice BIT254 with flashcards & quizzes