2082 3

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]

Network and Data CommunicationsChapter 8: Transport and Application Layer ProtocolsTCP reliability mechanismsNumerical: TCP reliability and subnetting

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:

  1. Connection-Oriented: Establishes a connection via a 3-way handshake (SYN, SYN-ACK, ACK) before data transfer.
  2. Acknowledgement (ACK): Receiver acknowledges received segments; unacknowledged segments are retransmitted after timeout.
  3. Error Detection (Checksum): Corrupted segments are detected and discarded, then retransmitted.
  4. Sequencing: Sequence numbers allow reordering of out-of-order segments and detection of lost data.
  5. Flow Control: A sliding window prevents overwhelming the receiver.
  6. 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:

SubnetSubnet IDSubnet MaskFirst HostLast HostBroadcast
1192.168.1.0255.255.255.224192.168.1.1192.168.1.30192.168.1.31
2192.168.1.32255.255.255.224192.168.1.33192.168.1.62192.168.1.63
3192.168.1.64255.255.255.224192.168.1.65192.168.1.94192.168.1.95
4192.168.1.96255.255.255.224192.168.1.97192.168.1.126192.168.1.127
5192.168.1.128255.255.255.224192.168.1.129192.168.1.158192.168.1.159
6192.168.1.160255.255.255.224192.168.1.161192.168.1.190192.168.1.191
7192.168.1.192255.255.255.224192.168.1.193192.168.1.222192.168.1.223
8192.168.1.224255.255.255.224192.168.1.225192.168.1.254192.168.1.255

Summary:

ParameterValue
Original Network192.168.1.0/24
Subnets8
Bits Borrowed3
New Prefix/27
Subnet Mask255.255.255.224
Block Size32 addresses
Usable Hosts30 per subnet

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.