topic Marcel, in Switching
https://community.cisco.com/t5/switching/ethernet-ii-fcs-calculation/m-p/2820045#M343600
<P>Marcel,</P>
<P>In Ethernet, FCS is based on a Cyclical Redundancy Check, or CRC computation. Without going too deep into maths, CRC is the remainder after dividing two polynomials - the first polynomial is the data to be protected, the second polynomial is the specific parameter of the CRC mechanism in use, and after dividing them, the remainder is the CRC value. As with dividing two ordinary integers, this remainder is what was "missing" in the first polynomial to make it an "integer" multiple of the second polynomial. If this remainder is "added" to the first polynomial, then the next time CRC is computed over the first polynomial (now with the remainder added), the new computed remainder will be zero, as the first polynomial now becomes an "integer" multiple of the second polynomial.</P>
<P>This is used to verify FCS efficiently. A switch does not need to wait for an entire frame to come in, then compute the CRC over all the contents except the FCS field, and compare the result with the FCS field. Instead, the switch can simply compute the CRC value as the frame comes in, and at the end, when an entire frame is received and the CRC was computed over the entire frame data including its FCS field, the CRC result must be zero. If it is different, an error has occurred.</P>
<P>Best regards,<BR />Peter</P>
<P></P>Thu, 21 Jan 2016 16:24:53 GMTPeter Paluch2016-01-21T16:24:53ZEthernet-II FCS calculation
https://community.cisco.com/t5/switching/ethernet-ii-fcs-calculation/m-p/2820044#M343599
<P>Hi</P>
<P>The frame length of an Ethernet-II frame isn't specified in the frame itself, but determined by the IFG (Inter Frame Gap) in 10Base-T. Does a store and forward switch now have to go through the whole frame again to check the FCS? Or can it calculate the FCS while receiving the frame and somehow know not to include the FCS field itself for the calculation?</P>
<P>Regards Marcel</P>
<P></P>Fri, 08 Mar 2019 11:29:27 GMThttps://community.cisco.com/t5/switching/ethernet-ii-fcs-calculation/m-p/2820044#M343599Marcel Maeder2019-03-08T11:29:27ZMarcel,
https://community.cisco.com/t5/switching/ethernet-ii-fcs-calculation/m-p/2820045#M343600
<P>Marcel,</P>
<P>In Ethernet, FCS is based on a Cyclical Redundancy Check, or CRC computation. Without going too deep into maths, CRC is the remainder after dividing two polynomials - the first polynomial is the data to be protected, the second polynomial is the specific parameter of the CRC mechanism in use, and after dividing them, the remainder is the CRC value. As with dividing two ordinary integers, this remainder is what was "missing" in the first polynomial to make it an "integer" multiple of the second polynomial. If this remainder is "added" to the first polynomial, then the next time CRC is computed over the first polynomial (now with the remainder added), the new computed remainder will be zero, as the first polynomial now becomes an "integer" multiple of the second polynomial.</P>
<P>This is used to verify FCS efficiently. A switch does not need to wait for an entire frame to come in, then compute the CRC over all the contents except the FCS field, and compare the result with the FCS field. Instead, the switch can simply compute the CRC value as the frame comes in, and at the end, when an entire frame is received and the CRC was computed over the entire frame data including its FCS field, the CRC result must be zero. If it is different, an error has occurred.</P>
<P>Best regards,<BR />Peter</P>
<P></P>Thu, 21 Jan 2016 16:24:53 GMThttps://community.cisco.com/t5/switching/ethernet-ii-fcs-calculation/m-p/2820045#M343600Peter Paluch2016-01-21T16:24:53ZHi Peter
https://community.cisco.com/t5/switching/ethernet-ii-fcs-calculation/m-p/2820046#M343601
<P>Hi Peter</P>
<P>Thank you for the explanation. It now makes sense to me.</P>
<P>Regards Marcel</P>
<P></P>Fri, 22 Jan 2016 10:11:16 GMThttps://community.cisco.com/t5/switching/ethernet-ii-fcs-calculation/m-p/2820046#M343601Marcel Maeder2016-01-22T10:11:16Z