loopback interface - why checksum on header?
Subsystems (2)
Hello everybody
I am wondering why the checksum of packets sent through the loopback interface is computed on the header only.
If I understand correctly, it is assumed that a message cannot be corrupted in RAM, thus there is no need to verify the integrity of the whole message. However, in that case, there is also no need to compute it on the header.
Consequently, why is it not the case?
Thank you in advance
Pierre Louis Aublin
Quoted 10 lines · On Sat, 23 Jul 2011 18:30:18 +0200 Pierre Louis Aublin…
Hello everybody
I am wondering why the checksum of packets sent through the loopback interface is computed on the header only.
If I understand correctly, it is assumed that a message cannot be corrupted in RAM, thus there is no need to verify the integrity of the whole message.
However, in that case, there is also no need to compute it on the header. Consequently, why is it not the case?
Quoted 2 lines
Thank you in advance
Pierre Louis Aublin
Linux doesn't bother worrying about the cost of IPv4 header checksum. The expense of checksumming is the overhead of taking the cache miss to read the data. Since the header is going to be read anyway, doing the checksum is equivalent to prefetching the header.