TCP - Header =============== .. panels:: :container: container-fluid p-4 bg-light :column: col-lg-12 p-2 .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **What is a TCP Header?** A TCP header is the portion of a TCP segment that contains control information such as source and destination ports, sequence numbers, flags, and more — essential for reliable communication. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Why is the TCP Header useful?** It enables key TCP features like reliable delivery, ordered data transfer, flow control, and congestion management by carrying the necessary metadata for managing the connection. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **How does the TCP Header work?** The TCP header is added to each TCP segment and includes fields such as sequence number, acknowledgment number, flags (like SYN, ACK, FIN), and window size. These fields coordinate communication between sender and receiver. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Where is the TCP Header used?** The TCP header is used in every TCP segment exchanged between two hosts. It plays a critical role in all TCP-based applications like HTTP, FTP, SSH, and SMTP. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which OSI layer does the TCP Header belong to?** The TCP header is part of the **Transport Layer (Layer 4)** in the OSI model. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Is the TCP Header Windows specific?** No, the TCP header structure is defined by networking standards and is the same across all platforms, including Windows, Linux, and macOS. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Is the TCP Header Linux specific?** No, it is universally implemented in all systems that support the TCP/IP protocol suite. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which Transport Protocol uses the TCP Header?** Only **TCP (Transmission Control Protocol)** uses the TCP header. Other protocols like UDP use their own separate header formats. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Is the TCP Header used in the client-server model?** Yes, in every TCP-based client-server interaction, the TCP header ensures reliable and structured communication between the two endpoints. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Learnings in this section ` * :ref:`Terminology ` * :ref:`Version Info ` * :ref:`TCP Header Basic Setup on Ubuntu using IPv4 ` * :ref:`Reference links ` .. _Header_step1: .. tab-set:: .. tab-item:: Learnings in this section * In this section, you are going to learn .. _Header_step2: .. tab-set:: .. tab-item:: Terminology * Terminology .. _Header_step3: .. tab-set:: .. tab-item:: Version Info * Version Info .. _Header_step18: .. tab-set:: .. tab-item:: TCP Header Basic Setup on Ubuntu using IPv4 * setup .. _Header_step17: .. tab-set:: .. tab-item:: Reference links * Reference links