Skip to content

Latest commit

 

History

History

tcp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

TCP

The Transmission Control Protocol (TCP) is one of the main protocols of the Internet protocol suite. It originated in the initial network implementation in which it complemented the Internet Protocol (IP). Therefore, the entire suite is commonly referred to as TCP/IP.

Basic Concept

TCP protocol operations may be divided into three phases. Connection establishment is a multi-step handshake process that establishes a connection before entering the data transfer phase. After data transfer is completed, the connection termination closes the connection and releases all allocated resources.

Sequence Diagram

Basic Flow


Detailed Process

A TCP connection is managed by an operating system through a resource that represents the local end-point for communications, the Internet socket. During the lifetime of a TCP connection, the local end-point undergoes a series of state changes.

Sequence Diagram

Detailed Flow

Reset Flag (RST)

TCP segment structure > Flags (9 bits): RST (1 bit): Reset the connection

TCP reset attack - Wikipedia


References

Wikipedia - Transmission Control Protocol

Wikipedia - Transmission Control Protocol - Protocol operation