3 I5 NZR VTNZ
3 I5 NZR VTNZ
1.
Introduction to TCP
2.
TCP Header Overview
3.
Key Functionalities of TCP
4.
TCP Header Fields (Detailed Explanation)
5.
Three-Way Handshake
6.
TCP Flags (Detailed Explanation)
7.
Flow Control and Window Size
8.
Error Control and Checksum
9.
Maximum Segment Size (MSS)
10.
Urgent Pointer
11.
Options and Padding
12.
Points to Remember
13.
Additional Notes and Concepts
14.
Summary
1. Introduction to TCP
Full Form: Transmission Control Protocol.
Purpose: Ensures reliable, ordered, and error-checked delivery of data between applications running on hosts communicating via an IP
network.
Key Features:
Header Size:
Minimum: 20 bytes.
Maximum: 60 bytes.
Purpose:
Header Fields:
Source Port, Destination Port, Sequence Number, Acknowledgement Number, Header Length, Flags, Window Size, Checksum, Urgent
Pointer, Options, and Padding.
3. Key Functionalities of TCP
1.
Byte Streaming:
TCP converts continuous data from the application layer into segments (collections of bytes).
Example: If data comes as a stream of bits, TCP groups them into bytes and then into segments.
2.
Connection-Oriented:
3.
Full Duplex:
Allows simultaneous two-way communication.
Example: Both sender and receiver can send and receive data at the same time.
4.
Piggybacking:
5.
Error Control:
6.
Flow Control:
7.
Congestion Control:
2.
Destination Port (16 bits):
3.
Sequence Number (32 bits):
Tracks byte order for sequencing.
Example: If the first byte is numbered 1000, the next will be 1001.
4.
Acknowledgement Number (32 bits):
Example: If data up to byte 1050 is received, the ACK number will be 1051.
5.
Header Length (4 bits):
6.
Flags (6 bits):
ACK: Acknowledgement.
7.
Window Size (16 bits):
Example: Window size = 10,000 bytes means the receiver can accept up to 10,000 bytes.
8.
Checksum (16 bits):
9.
Urgent Pointer (16 bits):
Example: If urgent data is from byte 1000 to 1020, the pointer will indicate this range.
10.
Options and Padding:
5. Three-Way Handshake
Step 1: Sender sends a SYN (synchronize) request.
Example:
Flow Control:
Window Size:
Example: Window size = 10,000 bytes means the sender can send up to 10,000 bytes.
8. Error Control and Checksum
Error Control:
Checksum:
Definition:
Example:
Purpose:
Usage:
If urgent data is from byte 1000 to 1020, the pointer will indicate this range.
Purpose:
Common Option:
Key functionalities include segmentation, error control, flow control, and congestion control.
The TCP header contains essential fields for sequencing, acknowledgements, and error detection.
Concepts like piggybacking, MSS, and window size are crucial for understanding TCP.
Sliding Window Protocol: Uses Go-Back-N and Selective Repeat for efficient data transmission.
Key functionalities include segmentation, error control, flow control, and congestion control.
The TCP header contains essential fields for sequencing, acknowledgements, and error detection.
Concepts like piggybacking, MSS, and window size are crucial for understanding TCP.