2 ms·
> 6. There is no such thing as a TCP packet Because the software abstraction is a stream of bytes; and it's up to the application to decide where the "packets"
by gwbas1c 2y ago
> 6. There is no such thing as a TCP packet
Because the software abstraction is a stream of bytes; and it's up to the application to decide where the "packets" begin and end.
For example, I might write to a TCP socket: 100 bytes, 50 bytes, and then 125 bytes.
BUT, the receiver could get: A single event with 275 bytes. Or it could get an event with 75 bytes and then an event with 200 bytes. Or it could get 11 events of 25 bytes.
> 5. There is a such thing as a TCP packet
This one I struggle with. I think the author is talking about connection set up, acking, and connection teardown.
- sixfiveotwo 2y agoIf you have a look at the underlying network traffic, you'll see IP packets carrying TCP data, ie. The protocol field in the IP packet header will be set to TCP; this could be assimilated to a TCP packet.
- sixfiveotwo 2y agoWell, maybe...