DATA PACKET LAYOUT  
Transmission Control Protocol (TCP) is a standard that defines how to establish and maintain a network conversation via which application programs can exchange data. TCP works with the Internet Protocol (IP), which defines how computers send packets of data to each other.

The absolute limitation on TCP packet size is 64K (65535 bytes), but in practicality this is far larger than the size of any packet you will see, because the lower layers (e.g. Ethernet) have lower packet sizes. The Maximum Transmission Unit (MTU) for Ethernet, for instance, is 1500 bytes.


data-packet_500x500
  The IPv4 portion of the TCP/IP packet explained  

A 20-byte header contains almost 13 multipurpose fields, which hold specific related object information such as application, data type and source/destination addresses. The following are detailed header field descriptions.


  • Version: This contains the Internet header format and uses only four packet header bits.
  • Internet header length (IHL): This 4-bit field stores IP header length information.
  • Type of service (ToS): This 8-bit field provides network service parameters.
  • Datagram size: (16-bit) This contains combined data and header length.
  • Identification: This 16-bit field contains a specific number for primary data identification.
  • Flags: This router fragment activity is controlled by three flags.
  • Fragmentation offset: This is a fragment identification via offset value.
  • Time to Live (TTL): This contains the total number of routers allowing packet pass-through.
  • Protocol: This 8-bit field contains header transport packet information.
  • Header checksum: It checks and monitors communication errors.
  • Source address: It stores source IP address.
  • Destination address: It stores destination IP address.
  • Options: This is the last packet header field and is used for additional information. When it is used, the header length is greater than 32 bits.
  • Data field (variable length) contains upper-layer information.