mention ethernet frame padding
This commit is contained in:
2 files changed
+11
-2
No files matched your search
@@ -452,6 +452,8 @@ If AnnNet is allocated a dedicated IANA-registered Protocol/Next Header, it will
|
||||
|
||||
.. Likewise for checksumming; while most NICs will automatically handle the standard CRC32 https://en.wikipedia.org/wiki/Frame_check_sequence[Frame Check Sequence^] at the end of the entire frame (AnnNet Link is still Ethernet II), if you require checksumming within your application for *payloads* it must be accounted for by your application. If you are using hardware that doesn't automatically append/strip the FCS, your application must also account for that as well.
|
||||
|
||||
... Per https://standards.ieee.org/ieee/802.3/10422/[IEEE 802.3-2022^] (and previous revisions) and e.g. https://datatracker.ietf.org/doc/html/rfc894[RFC 894^], the *ethernet frame* (layer 2 packet) needs to be padded to 46 bytes if less than 46 bytes, but just like the FCS, *this is almost always handed directly in the NIC*. If you are using hardware that doesn't automatically append/strip the ethernet frame padding, your application must account for that also.
|
||||
|
||||
.. For AnnNet Broadcast over IPv4, ensure that you are including the 16-bit https://en.wikipedia.org/wiki/Internet_checksum["Internet checksum"^] of the header (see RFCs https://datatracker.ietf.org/doc/html/rfc1071[1071^], https://datatracker.ietf.org/doc/html/rfc1141[1141^], and https://datatracker.ietf.org/doc/html/rfc1624[1624^]). +
|
||||
Most kernels can/will automatically insert this (e.g. on Linux, with `IPPROTO_RAW`/raw sockets with the `IP_HDRINCL` option, see https://man7.org/linux/man-pages/man7/raw.7.html[`raw(7)`^]), but if your implementation doesn't/can't use such a mechanism then you must do so yourself. +
|
||||
IPv6 does not require a header checksum.
|
||||
|
||||
Reference in new issue
Block a user