
Kyle B. answered 10/15/24
Student-led Tutor: Javascript/Typescript, Rust, SQL, and Music(?!)
I believe you're asking about the TCP handshake. This is a three step process.
Computer A sends a SYN (Synchronize) packet to computer B with a sequence number. TCP, unlike UDP, can receive packets out of order and make sense out of everything because of this sequence number.
Computer B then responds with a SYN+ACK (Synchronize and Acknowledge) packet that tells computer A what sequence number it will start with and that it received the first SYN packet.
Lastly, Computer A sends an ACK packet back to computer B acknowledging the beginning sequence number.