Looking at the Ethernet entry on Wikipedia, I can't figure out how it's indicated how long the Ethernet frame is. The EtherType/Length header field apparently can indicate either a frame type or an explicit length, and I'm guessing that in the case of a frame type, it has to do some other logic to figure out how long the packet is. For example, if the EtherType field is 0x0800, that indicates an IPv4 payload, and so the receiving NIC would have to examine the first 32 bits of the payload to find the length of the IP packet, and therefore to figure out the total length of the Ethernet frame, and know when to look for the end-of-frame checksum and interframe gap.
Does this sound correct? I also looked at the IEEE 802.3 spec for Ethernet (part 1, anyway) which seems to corroborate this, but it's pretty opaque.
-
Logically, there are only three options:
- Using a static frame size like in .
- Specifying the frame size in its header, or elsewhere, or even bounding it with some flags.
- No sending of frames at all
One of these works in Ethernet because there are no other options currently available for modern networking ;) 1st and 3rd are wrong for Ethernet, so you're correct!
From o_O Tync -
That sounds correct, yes.
From Dean J -
The article you really want to answer your question is http://en.wikipedia.org/wiki/Ethernet%5FII%5Fframing; which says:
As this industry-developed standard went through a formal IEEE standardization process, the EtherType field was changed to a (data) length field in the new 802.3 standard. (Original Ethernet packets define their length with the framing that surrounds it, rather than with an explicit length count.) Since the packet recipient still needs to know how to interpret the packet, the standard required an IEEE 802.2 header to follow the length and specify the packet type.
dirtside : I guess I'm unclear on what "Original Ethernet packets define their length with the framing that surrounds it" means. The preamble/begin-frame bits are pretty clear, but how does the client know the end of the frame has been reached? How does it distinguish between the CRC and the interframe gap? Is the IFG random electrical noise, easily distinguishable from real signal?Vatine : The end of frame in "classic Ethernet" is signalled by an illegal encoding.From womble -
Took a while to work this out once before, and again now. Not much info on it available, which is surprising as it's such an obvious question. I finally settled on the solution that the length fields in the packet headers are used. See the following link
http://www3.rad.com/networks/infrastructure/lans/etherform.htm#_ieee
From rob
0 comments:
Post a Comment