News for hackers. Stuff that matters.
Re:Why TCP needs 3 handshakes by AStonesThrow on Wednesday October 02, 2024 @03:13AM (#41718009)
To be really specific, they are not "packets" but at the TCP protocol level, they are "segments"

TFA appears to use both terms sort of interchangeably, which is uncool when describing a formalized protocol standard!

Segments are encapsulated in IP datagrams, or packets, which are, in turn, encapsulated in other PDU types, such as Ethernet frames.

Re:Why TCP needs 3 handshakes by Ekaros on Wednesday October 02, 2024 @03:49AM (#41718212)
And one could ask are segments without well data segment a segments? As mostly 2 first PDUs in exchange do not contain data...
Re:Why TCP needs 3 handshakes by AStonesThrow on Wednesday October 02, 2024 @05:03AM (#41718610)
Yes they are. I don't know what "well data segment" is, but perhaps you mean a payload. TCP streams consist of segments, and the fragmentation or collection of those logical segments into packets is a function of the lower-layer protocols which are not TCP.

https://www.rfc-editor.org/rfc/rfc9293.html

Re:Why TCP needs 3 handshakes by tsimionescu on Wednesday October 02, 2024 @06:20PM (#41725488)
I think one important mention here is that fragmentation happens at two levels: most commonly, an upper layer protocol message (such as an HTTP request) is fragmented into several TCP segments, each with one TCP header. Those TCP segments themselves can sometimes be fragmented into multiple IP packets if the TCP MSS (maximum segment size) is larger than the Ethernet MTU (maximum transmission unit).

IP fragmentation is typically avoided, and in IPv6 it is only allowed at the originator of a packet - if a router is trying to route an IPv6 packet larger than the MTU of the outgoing link's MTU, it must drop the packet and send a signal about the MTU back. An IPv4 router may fragment the packet, but this rarely works well in practice.

Re:Why TCP needs 3 handshakes by AStonesThrow on Friday October 04, 2024 @03:38PM (#41744877)
I suppose, if you want to squeeze it into the definition given in RFC 9293, but that same RFC only uses "fragmentation" to denote "internet fragments" or IP-level fragmentation.

You're referring to "segmentation" which is also defined in that RFC. https://www.rfc-editor.org/rfc/rfc9293.html#name-segmentatio...

Re:Why TCP needs 3 handshakes by iwontberude on Wednesday October 02, 2024 @01:22PM (#41722921)
Appreciate pedantry when it’s absolutely warranted. Well said!