Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [checksum]

For questions about checksum in relation to networking. For instance, you want to verify an image on a router and for that you need to initialize a checksum sequence.

4
votes
1answer
851 views

Does it make sense to generally “Disable TCP Checksum Offload”?

In a work sheet for PCs that we deliver to customers, I found instructions to always "Disable TCP Checksum Offload" on the NICs. Via those NICs, the PCs are connected to the customer's LAN, and it is ...
3
votes
2answers
345 views

How does the Transport Layer construct the Pseudo-Header for TCP checksum?

THE TCP Psuedo Header needs sender and destination IP Address and protocol type. All of this informations is present in the network layer/IP header. Since the transport layer cannot access the data ...
0
votes
1answer
115 views

Wireshark udp checksum errorI

I sniffing udp communication with 2 instance of wireshark , 1: 2.0.0 2: 2.2.1 . In version 2.0.0 I get valid udp.checksum , but with 2.2.1 I always get udp checksum = 0000 . Why is that? those ...
1
vote
3answers
2k views

difference between ip checksum and tcp checksum

If an error on a packet occurs on a router, who does detect the error, IP checksum or TCP checksum? I have understood that the ipv4 checksum detects errors only inside the ip header and the tcp ...
3
votes
2answers
342 views

If TCP is a reliable data transfer method, then how come its checksum is not 100% reliable?

So in the networking book by Kurose, we define UDP as a unreliable method because it might not detect errors and therefore transfer a corrupted packet or transfer the data without the order so its ...
4
votes
1answer
443 views

What is the difference between “Message Digest” and Checksum?

As far as I understand Message Digest is a certain Hash function that is derived from the original payload, so that even if a single bit changes the Message Digest proves to be different, thus ...
0
votes
1answer
91 views

Is TCP checksum verification also offloaded to NICs? [closed]

I understand that checksum calculation at the sender side is often offloaded to the NIC. Does this also happen for verification at the receiving end?
1
vote
1answer
437 views

How does the UDP Checksum tell me if my data has changed?

currently I am having a Computer Networking cours and I am reading "Computer Networking a Top-Down Approach" At this point I am reading the Transport Layer part. And I have read about the checksum ...
1
vote
1answer
443 views

UDP checksum calculation on improperly padded packets

Suppose I'm receiving IPv4 UDP packets whose payload is less than 18 octets, so when they are transmitted over Ethernet they have some trailing padding. Between the packets' source and my receiver ...
3
votes
1answer
1k views

Why is the FCS not included in most ethernet frames?

I turned on the calculatin of the FCS Checksum in wireshark. There wasn't a single correct checksum in the whole 500MB packet dump. I asume the reason for this is that the field is simply not used for ...
3
votes
1answer
5k views

Calculate the FCS number from a frame ethernet

I've the following frame ethernet: 08 00 20 0A 70 66 08 00 20 0A AC 96 08 00 45 00 00 28 A6 F5 00 00 1A 06 75 94 C0 5D 02 01 84 E3 3D 05 00 15 0F 87 9C CB 7E 01 27 E3 EA 01 50 12 10 00 DF 3D 00 00 20 ...
2
votes
3answers
1k views

Can the checksum bits be corrupted?

If the data that are being encapsulated have the possibility of corruption while crossing over the wire, what is stopping the TCP checksum itself from being corrupted, and if it also can be corrupted, ...
0
votes
2answers
84 views

Can I find port number with the TCP checksum?

So I got a frame where the port information is missing but I have everything else, how can I retrieve the port that where used in the frame ? I was thinking about the tcp checksum, but is it ...
2
votes
2answers
192 views

Why are checksums used if they're flawed?

Consider an overly simple example: Say we want to calculate the checksum of "hi". Since h is the 8th letter of the alphabet, we'll say h=8, and similarly, i=9. So the checksum of hi is 8+9=17. 1) ...
1
vote
1answer
1k views

Is there any way a UDP checksum could be inconclusive of error detection?

If I am receiving data through UDP, with a checksum that checks out to show no data loss, is there a possibility that the checksum missed some errors. My data transmitted is split into 24-bits chunks ...
1
vote
2answers
921 views

How does the TCP/IP stack handle UDP checksum errors?

RFC 2460, Internet Protocol, Version 6 (IPv6) Specification, Section 8.1 Upper-Layer Checksums, states the UDP checksum is mandatory and any IPv6 receivers must discard UDP packets containing a zero ...
5
votes
1answer
914 views

Must the checksum field of the IPv4 header always be updated?

When an IPv4 datagram comes to a router for forwarding, does it always update the value of the header checksum field?
5
votes
1answer
658 views

In Cyclic Redundancy Check, how does the receiver knows what the generator polynomial is?

Must the receiver know the generator polynomial in order to detect the errors in the received data? So how does it know what generator polynomial the sender has used?
3
votes
1answer
208 views

IP Header value

We are given an IPv4 datagram with the following characteristics. The source IP address is 132.71.4.333 and destination is 132.71.4.54 Its data content is an unfragmented TCP message of 64 bytes (TCP ...
5
votes
2answers
3k views

Calculating checksum for ICMPv6

Referring http://www.faqs.org/rfcs/rfc1071.html, I try to deduce the c code for calculating the checksum for ICMPv6. But check with the checksum parse by wireshark, I find that the answer got from my ...
2
votes
2answers
619 views

statistics on usage of jumbo ethernet frames and size of juboframes

I am currently researching jumbo ethernet frames. There are a lot of articles, etc. out there that explain what jumboframes are and how to enable them, but there seem to be no statistics on how ...
1
vote
1answer
337 views

Why do not we have checksum validation in the application Level (BGP , RIP)?

In BGP, TCP handles the checksum and BGP does not perform any checksum validation in the application level. How can we believe TCP must forward the data without errors? Similarly in RIP with UDP ...
4
votes
1answer
5k views

Why are there checksums for different OSI layers?

Can anyone clarify the question "why we need checksum in both layer-2 and layer-3 of OSI layer", Layer-2 would encapsulate the rest of OSI layers into a single unit. If Layer-2 has a checksum, ...