Hacker News new | past | comments | ask | show | jobs | submit login

Ethernet deals with frames, not packets.

Packets are an IP concept :)




RFC 791 which defines IP talks about both packets and datagrams. IP sends datagrams. Each IP datagram is fragmented into one or more packets depending on the underlying L2 network.

But RFC 791 dates from when the underlying L2 network was most likely ARPAnet, which had 128 byte packets. Today the distinction is (or should be) moot - if you're relying on IP fragmentation to send your large IP datagram over multiple L2 packets, you're doing something wrong. IPv6 doesn't even support in-network fragmentation.

In practice, the distinction has largely disappeared over time. Everyone I know talks about packets and very rarely bothers to distinguish between frames, datagrams and packets, because in practice one Ethernet frame generally carries one IP datagram, and everyone calls it a packet.


Only on HN could someone implement networking from scratch, only to be dismissed by someone in the comments implying they've no idea what they're doing.


I think the comment was implying that they got word wrong, not that they had "no idea what they were doing". Bit overly dramatic


The comment stated they got the word wrong, the implication is that it was out of ignorance.

Yet the article uses frame throughout where technically correct, and what was important to the author wasn't that any frame was transmitted, but that they got their packet to show up correctly.


I certainly disagree that the implication you read into it was there. I read the statement as a friendly bit of banter, not an implied accusation of ignorance.


Only on HN could someone implement networking from scratch, only to be dismissed by friendly banter in the comments implying they've no idea what they're doing, only for that to be misinterpreted as actual criticism, only for an analysis to be done on this comment thread :-) only for dang to appear and ask us to stop being so meta. Also, in TFA the font is 3 pixels too far to the left and it made it literally unreadable for me


talking to a chip over spi is not what id call scratch, lol


For Ethernet, packets are a physical layer concept. They encapsulate frames which are a data link layer concept.

https://en.wikipedia.org/wiki/Ethernet_frame


Packets are a TCP concept. IP sends datagrams :)


The TCP unit is called segment


No it's called a slice.


I thought UDP sent datagrams?


Both IP and UDP call their packets "datagrams".


Smartass. Did you understand the title anyways?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: