Overview

Why TCP/IP

IP is a connectionless protocol, which means that each unit of data is individually addressed and routed from the source device to the target device, and the target does not send an acknowledgement back to the source.
That’s where protocols such as TCP come in. TCP is used in conjunction with IP in order to maintain a connection between the sender and the target and to ensure packet order.

TCP Header

image.png

  • SEQ: reordering
  • ACK: packet loss
  • Window (Advertised Window / Sliding Window): Flow control
  • Flag: Manipulate TCP State Machine

TCP FSM

image

image