IDRASAcademic OS
Unit 2: Transport Layer Protocols & Reliability 45 mins study timeINTERMEDIATE

TCP 3-Way Handshake, Sequence Synchronization & Flow Control

Examine SYN, SYN-ACK, and ACK packet state transitions, Initial Sequence Number (ISN) negotiation, and sliding windows.

Verified: IDRAS Academic Review Board

Learning Objectives

  • •Analyze OSI 7-layer and TCP/IP protocol architectures
  • •Trace socket state machines and flow/congestion control loops
  • •Solve subnetting and routing algorithm equations

Essential Prerequisites

  • •Foundations of computer systems and communication
Layer 1: Intuition & Why It Matters

The Core Mental Model

“Making a phone call: 1. You say 'Hello, can you hear me?' (SYN). 2. They say 'Yes, I hear you, can you hear me?' (SYN-ACK). 3. You say 'Yes, loud and clear!' (ACK). Only then does real conversation begin.”

Why This Exists

Network protocols power all internet routing, distributed microservices, and client-server clouds.

Beginner Foundation

Making a phone call: 1. You say 'Hello, can you hear me?' (SYN). 2. They say 'Yes, I hear you, can you hear me?' (SYN-ACK). 3. You say 'Yes, loud and clear!' (ACK). Only then does real conversation begin.

Micro Concepts Decomposition

Layer 3 & 4: Formal Specification & Mechanism

Hardware State Machine Architecture

TCP establishes full-duplex sockets. Client generates random ISN_c; Server generates ISN_s. Acknowledgment numbers confirm receipt of bytes by requesting next expected byte (Seq + 1).
Client (SYN, Seq=1000) -> Server (SYN_RCVD) Server (SYN+ACK, Seq=5000, Ack=1001) -> Client (ESTABLISHED) Client (ACK, Seq=1001, Ack=5001) -> Server (ESTABLISHED)
Layer 7: Interactive Laboratory

Interactive Simulator

NETWORKS • SIMULATIONTCP 3-Way Handshake & Socket State Machine Laboratory
Launch Fullscreen Lab
NETWORKS • TRANSPORT LAYERTransmission Control Protocol (TCP)

TCP 3-Way Handshake (SYN → SYN-ACK → ACK) Laboratory

State: SYN_SENT
Handshake Packet:1/ 3
Client Host (Initiator)
192.168.1.10:52410
Socket State: SYN_SENT
Packet in Transit (CLIENT TO SERVER)
[SYN]
Seq = 1000 | Ack = 0
═════════▶
Server Host (Listener)
10.0.0.1:443 (HTTPS)
Socket State: LISTEN -> SYN_RCVD
Protocol Step #1:

Client initiates connection: Sends SYN packet with Initial Sequence Number (ISN_c = 1000).

Layer 5: Step-by-Step Worked Numerical Example

End-to-End Execution Trace

Detailed packet encapsulation and handshake trace demonstration.
Layer 6: Active Runtime CodeLab

Step-by-Step Code Execution (PYTHON)

Font
main.pyGlacier Light
Ln 1 • Python 3.12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
525 chars • 17 lines • Ln 1UTF-8 • 4 Spaces
Interactive Terminal Shell

Sandbox Terminal Ready

Click Run Code or press Ctrl+Enter to compile and execute.

⚡ AURXON Bitstream Runtime v4.8IDRAS Academic Virtual Node
Common Student Pitfalls & Mistakes

Where Students Lose Marks

❌ Mistake:
✓ Correct Understanding:
❌ Mistake:
✓ Correct Understanding:
Layer 8: Practice & Knowledge Verification

Active Assessment Quiz

No Practice Questions Configured

Questions for this topic are currently undergoing faculty review.

Academic Evaluation Preparation

Viva Examination & University Scoring Strategy

Standard Viva Examination Questions

Q1:
Answer:
Q2:
Answer:

How to Write High-Scoring University Exam Answers

Step-by-step protocol header decomposition and state machine transitions.