Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

checksum calculation in ip

Status
Not open for further replies.

Nandini Ganig

Newbie level 3
Joined
Aug 20, 2014
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
29
I am implementing IPv6, communicating from pc to fpga
I know how to calculated checksum but the problem lies where i am seeing the capture protocol in Wireshark , there the checksum is zero but when i am seeing in logic analyzer the checksum is correct ( some number other than zero)

can anyone please tell me what to do while receiving and while transmitting about the checksum....

whether i must check the checksum while receiving also.

thanks in advance
Ganig
 

While transmitting u need to calculate the checksum and while receiving u need to verify the checksum.
I don't have an answer to ur wireshark vs LA query...
 
Many times running checksum calculations result in a "magic number" (i.e. a value of 0) when they compute the received checksum over the received data plus the checksum sent by the transmitter. Perhaps what Wieshark is displaying is the magic number of 0 which is the result of a good checksum computation.
 

I suspect that zero checksum is due to checksum offloading. The OS fills in zero, and trusts the NIC to do the checksum. Wireshark captures the packet just before it goes to the NIC and sees a checksum of zero. The NIC calculates the checksum and that goes on the wire. So any point after that sees the correct checksum. For some more info see: https://wiki.wireshark.org/CaptureSetup/Offloading
 
  • Like
Reactions: ads-ee

    ads-ee

    Points: 2
    Helpful Answer Positive Rating
I suspect that zero checksum is due to checksum offloading. The OS fills in zero, and trusts the NIC to do the checksum. Wireshark captures the packet just before it goes to the NIC and sees a checksum of zero. The NIC calculates the checksum and that goes on the wire. So any point after that sees the correct checksum. For some more info see: https://wiki.wireshark.org/CaptureSetup/Offloading
That is useful to know, the testing I've done in the past involved network test equipment that generated IP packets and not a PC. Things like wireshark monitored the traffic between the test equipment and the DUT using a hub.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top