08-07-2012 07:55 PM - edited 03-07-2019 08:12 AM
Dear friends,
while analizing a packet capture, i was wondering on what fields the FCS uses to get CRC. some places tells that it gets the whole frame, even preamble, others just say that it just calculates using only the data.
regards,
Solved! Go to Solution.
08-08-2012 01:08 PM
Hello Leandro,
The IEEE 802.3 standard that defines the basic Ethernet framing defines the FCS field in Section 3.2.9 as follows:
A cyclic redundancy check (CRC) is used by the transmit and receive algorithms to generate a CRC value for the FCS field. The FCS field contains a 4-octet (32-bit) CRC value. This value is computed as a function of the contents of the protected fields of the MAC frame: the Destination Address, Source Address, Length/ Type field, MAC Client Data, and Pad (that is, all fields except FCS).
So specifically the Preamble and Start-of-Frame Delimiter are not covered by the FCS field. This is logical, considering the fact that these fields were used in 10Mbps Ethernet versions to provide synchronization function between the sender and receiver, and thus a (varying) couple of starting bits from the Preamble could have been lost or incorrectly recovered. That did not invalidate the whole frame, however.
Best regards,
Peter
08-08-2012 01:08 PM
Hello Leandro,
The IEEE 802.3 standard that defines the basic Ethernet framing defines the FCS field in Section 3.2.9 as follows:
A cyclic redundancy check (CRC) is used by the transmit and receive algorithms to generate a CRC value for the FCS field. The FCS field contains a 4-octet (32-bit) CRC value. This value is computed as a function of the contents of the protected fields of the MAC frame: the Destination Address, Source Address, Length/ Type field, MAC Client Data, and Pad (that is, all fields except FCS).
So specifically the Preamble and Start-of-Frame Delimiter are not covered by the FCS field. This is logical, considering the fact that these fields were used in 10Mbps Ethernet versions to provide synchronization function between the sender and receiver, and thus a (varying) couple of starting bits from the Preamble could have been lost or incorrectly recovered. That did not invalidate the whole frame, however.
Best regards,
Peter
08-10-2012 06:25 PM
Dear Peter,
Could you please provide me the link you found this information?
08-12-2012 11:06 PM
Hello Leandro,
Sorry for replying somewhat lately.
Check this URL:
http://standards.ieee.org/getieee802/download/802.3-2008_section1.pdf
It will first require you to choose the type of user you are (student, manufacturer, etc.) and then it will provide you with the first part of the entire IEEE 802.3 Ethernet MAC standard. Then, in the downloaded PDF, proceed to page 53 and check the Section 3.2.9. I have directly quoted from there.
Best regards,
Peter
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: