* loopback interface - why checksum on header?
@ 2011-07-23 16:30 Pierre Louis Aublin
2011-07-23 16:40 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Pierre Louis Aublin @ 2011-07-23 16:30 UTC (permalink / raw)
To: netdev
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: loopback interface - why checksum on header?
2011-07-23 16:30 loopback interface - why checksum on header? Pierre Louis Aublin
@ 2011-07-23 16:40 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2011-07-23 16:40 UTC (permalink / raw)
To: Pierre Louis Aublin; +Cc: netdev
On Sat, 23 Jul 2011 18:30:18 +0200
Pierre Louis Aublin <pierre-louis.aublin@inria.fr> wrote:
> 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
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-23 16:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-23 16:30 loopback interface - why checksum on header? Pierre Louis Aublin
2011-07-23 16:40 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).