TCP Connection Setup
TCP Connections are bi-directional, so need each end to understand its peer’s starting sequence number (not zero). Uses a three-way handshake:
- A -----------> Seq k, SYN ------------> B
- A <--- Seq j, ACK k+1, SYN+ACK <-- B
- A ----> Seq k+1, ACK j+1, ACK ----> B