IP_Addressing_and_Routing_Protocols (1)
IP_Addressing_and_Routing_Protocols (1)
---
### Question 1: Fixed Length and Variable Length Subnet Masking (10 Marks)
Definition:
FLSM is a subnetting technique where all subnets are of equal size. Each subnet has the same number o
Key Features:
- Simple and uniform
- Easy to implement and manage
- May lead to wastage of IP addresses
Example:
Class C Network: 192.168.1.0/24
Requirement: 4 equal subnets
Diagram:
192.168.1.0/24
■■■ Subnet 1: 192.168.1.0/26
■■■ Subnet 2: 192.168.1.64/26
■■■ Subnet 3: 192.168.1.128/26
■■■ Subnet 4: 192.168.1.192/26
Definition:
VLSM allows subnetting a network into subnets of different sizes based on host requirements.
Key Features:
- Efficient IP address utilization
- Complex to design and manage
Example:
Network: 192.168.1.0/24
Requirements:
- Subnet A: 100 hosts
- Subnet B: 50 hosts
- Subnet C: 25 hosts
- Subnet D: 10 hosts
| Subnet | Network Address | Host Range | Broadcast Address |
|--------|---------------------|------------------------|-------------------|
|A | 192.168.1.0/25 | 192.168.1.1 - 126 | 192.168.1.127 |
|B | 192.168.1.128/26 | 192.168.1.129 - 190 | 192.168.1.191 |
|C | 192.168.1.192/27 | 192.168.1.193 - 222 | 192.168.1.223 |
|D | 192.168.1.224/28 | 192.168.1.225 - 238 | 192.168.1.239 |
Diagram:
192.168.1.0/24
■■■ Subnet A: 192.168.1.0/25 (100 hosts)
■■■ Subnet B: 192.168.1.128/26 (50 hosts)
■■■ Subnet C: 192.168.1.192/27 (25 hosts)
■■■ Subnet D: 192.168.1.224/28 (10 hosts)
---
Key Features:
- 32-bit address
- ~4.3 billion unique addresses
- Dotted decimal notation (e.g., 192.168.1.1)
- Uses ARP and broadcasting
- Header size: 20–60 bytes
Key Features:
- 128-bit address
- ~3.4 x 10^38 addresses
- Hexadecimal format (e.g., 2001:db8::1)
- No broadcasting; uses multicast
- Header size: Fixed 40 bytes
- IPSec support mandatory
IPv6 Header Diagram:
+----------------------------------------+
| Version | Traffic Class | Flow Label |
+----------------------------------------+
| Payload Length | Next Header | Hop Limit|
+----------------------------------------+
| Source IP Address (128 bits) |
+----------------------------------------+
| Destination IP Address (128 bits) |
+----------------------------------------+
IPv4: 192.168.1.1
#### 6. Summary
IPv6 was introduced to overcome IPv4 limitations. It enables scalability, better routing efficiency, and inte
---
| Category | Protocols |
|-----------------------|-----------------------------|
| Distance Vector | RIP, IGRP |
| Link State | OSPF, IS-IS |
| Hybrid | EIGRP |
| Exterior Gateway | BGP |
#### 4. Distance Vector Protocols
- Share routing tables with neighbors
- Use hop count as a metric
- Example: RIP (max hop count = 15)
Diagram:
R1 ----- R2 ----- R3
| | |
A B C
Diagram:
R2
/ \
R1 R3
\ /
R4
BGP Diagram:
[AS1] ---- BGP ---- [AS2]
| |
[Router A] [Router B]
#### 8. Conclusion
Routing protocols ensure reliable and efficient path selection. Proper protocol choice depends on network
---
End of Document