04-01-2021 07:18 PM
Hi everyone, I want to calculate UDP checksum, But I don't know how to calculate it. In fpga4fun there are results (https://www.fpga4fun.com/10BASE-T2.html).
Can anyone explain how to help me calculate the UDP checksum. Thanks!
04-02-2021 08:31 AM
Basically the UDP checksum is the complement of a 16-bit one's complement sum calculated over an IP "pseudo-header" and the actual UDP data. The pseudo-header consists of the source address, destination address, protocol which is padded with a zero byte, and UDP length. You can take a look at this link, it explains the calculation of the checksum- http://www.cs.newpaltz.edu/~easwaran/CCN/Week5/Checksum.pdf