cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vanthe771996
Visitor
Visitor
507 Views
Registered: ‎05-28-2020

UDP checksum

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!

 

0 Kudos
3 Replies
simreetb
Moderator
Moderator
458 Views
Registered: ‎02-10-2020

Hi @vanthe771996,

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 

 

Kind Regards,
Simreet Behera

--------------------------------------------------------------------------------------------

Don't forget to reply, give kudos and accept as solution

If starting with Versal, take a look at our Versal Design Process Hub and our
Versal Blogs

-------------------------------------------------------------------------------------------
0 Kudos
richardhead
Scholar
Scholar
436 Views
Registered: ‎08-01-2012

FYI - in IPv4, UDP checksum is optional and can be left at 0

0 Kudos
vanthe771996
Visitor
Visitor
290 Views
Registered: ‎05-28-2020

Hi Simreetb, thank you very much, but i don't understand, how to calculate Ethernet checksum

0 Kudos