Skip to content

An example of a three-way-handshake or tcp-handcheck written in Python.

Notifications You must be signed in to change notification settings

dawnl3ss/Three-Way-Handshake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Three Way Handshake

💻 An example of a TCP-Handshake (Three-Way-Handshake) written in Python.

🌐 TCP uses a three-way handshake to establish a reliable connection. The connection is full duplex, and both sides synchronize (SYN) and acknowledge (ACK) each other. The exchange of these four flags is performed in three steps—SYN, SYN-ACK, and ACK.

📌 Scheme :

📌 Example :

📌 How to start it ?

Open two differents shells and run the files in each shell.
Run the server.py file before the client.py file.

python3 server.py
python3 client.py