DEV Community

Discussion on: Explain TCP like I'm five

Collapse
 
ben profile image
Ben Halpern

So how much sugar do I get to ask for in the first trip to the counter and each subsequent trip, and why is this so?

Collapse
 
tbd profile image
TBD

you ask for sugar and the server starts a session where he sends a numbered sugar sachets (TCP frames) and you confirm the delivery of each sachet (based on checksums) and as @gldraphael said the sugar arrives after the handshake

Thread Thread
 
ben profile image
Ben Halpern

And if I understand correctly, the barista will give give me one packet on the first trip, then two, then four, etc. and in data terms, each packet is about 14k in size.