BIT254 · 2082 · 10 marks
Why TCP is known as reliable protocol? Explain.Divide the network 192.168.1.0/24 into 8 subnets and find its subnet ID, subnet mask, broadcast address and network ranges of each.[2+8]
Why TCP is known as reliable protocol? Explain.Divide the network 192.168.1.0/24 into 8 subnets and find its subnet ID, subnet mask, broadcast address and network ranges of each.[2+8]
TCP as a Reliable Protocol & Subnetting
Given
- Network: 192.168.1.0/24
- Original subnet mask: 255.255.255.0
- Required number of subnets: 8
Solution
(a) Why TCP is a Reliable Protocol?
TCP (Transmission Control Protocol) is called reliable because it guarantees accurate, ordered, and complete delivery of data through the following mechanisms:
- Connection-Oriented: Establishes a connection via a 3-way handshake (SYN, SYN-ACK, ACK) before data transfer.
- Acknowledgement (ACK): Receiver acknowledges received segments; unacknowledged segments are retransmitted after timeout.
- Error Detection (Checksum): Corrupted segments are detected and discarded, then retransmitted.
- Sequencing: Sequence numbers allow reordering of out-of-order segments and detection of lost data.
- Flow Control: A sliding window prevents overwhelming the receiver.
- Congestion Control: Adjusts transmission rate to avoid network congestion and packet loss.
Hence, TCP ensures no data is lost, duplicated, or delivered out of order.
(b) Subnetting 192.168.1.0/24 into 8 Subnets
Step 1 - Subnet bits needed: $$2^n \geq 8 \implies 2^3 = 8 \implies n = 3 \text{ bits}$$
Step 2 - New prefix and mask: $$/24 + 3 = /27$$
4th octet: $11100000_2 = 224$
$$\text{Subnet Mask} = 255.255.255.224$$
Step 3 - Block size: $$256 - 224 = 32 \text{ addresses per subnet (30 usable hosts)}$$
Step 4 - Subnet Table:
| Subnet | Subnet ID | Subnet Mask | First Host | Last Host | Broadcast |
|---|---|---|---|---|---|
| 1 | 192.168.1.0 | 255.255.255.224 | 192.168.1.1 | 192.168.1.30 | 192.168.1.31 |
| 2 | 192.168.1.32 | 255.255.255.224 | 192.168.1.33 | 192.168.1.62 | 192.168.1.63 |
| 3 | 192.168.1.64 | 255.255.255.224 | 192.168.1.65 | 192.168.1.94 | 192.168.1.95 |
| 4 | 192.168.1.96 | 255.255.255.224 | 192.168.1.97 | 192.168.1.126 | 192.168.1.127 |
| 5 | 192.168.1.128 | 255.255.255.224 | 192.168.1.129 | 192.168.1.158 | 192.168.1.159 |
| 6 | 192.168.1.160 | 255.255.255.224 | 192.168.1.161 | 192.168.1.190 | 192.168.1.191 |
| 7 | 192.168.1.192 | 255.255.255.224 | 192.168.1.193 | 192.168.1.222 | 192.168.1.223 |
| 8 | 192.168.1.224 | 255.255.255.224 | 192.168.1.225 | 192.168.1.254 | 192.168.1.255 |
Summary:
| Parameter | Value |
|---|---|
| Original Network | 192.168.1.0/24 |
| Subnets | 8 |
| Bits Borrowed | 3 |
| New Prefix | /27 |
| Subnet Mask | 255.255.255.224 |
| Block Size | 32 addresses |
| Usable Hosts | 30 per subnet |
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.