---
# System prepended metadata

title: TCP 3-way Handshake
tags: [Networking]

---

###### tags: `Networking`
# TCP 3-way Handshake
```mermaid
sequenceDiagram
Note left of Client: Send `SYN` (seq=m)
Client->>Server: SYN
Note right of Server: Receives `SYN` (seq=m)<br>Send `SYN` (seq=n) <br> Send `ACK` (ack=m+1)
Server-->>Client: SYN+ACK
Note left of Client: Receives `SYN` (seq=n) <br>Receives `ACK` (ack=m+1) <br> Send `ACK` (ack=n+1)
Client->>Server: ACK
Note right of Server: Receives `ACK` (ack=n+1)
```

:::success
:bulb: **[leonuz](https://leonuz.github.io)**
:::