Skip to contentSkip to conversation

user space checksum

DISCUSSION raz ben jehuda 2 participants 2 messages May 22, 2005 – May 26, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I do not know if this was ever suggested.so i'll try any way. Why not give the user the chance to supply the kernel/card with the checksums instead of having the kernel/network card do the work ? This is because a user is aware to the data he sends and he can optimize the data checksum calculations more than anyone else. for instance a web server sends its html pages, which are static data. it can pre-calculate the checksums.

Anyone ?

Signature · 2 lines
Raz
Long Live The Penguin
#1 lore raw
Quoted 3 lines · On Sun, 22 May 2005 09:51:48 +0300 raz ben jehuda <[email protected]> wrote:

I do not know if this was ever suggested.so i'll try any way. Why not give the user the chance to supply the kernel/card with the checksums instead of having the kernel/network card do the work ?

A bad idea for two reasons:
* application data units (APDU) do not match transport data units for a stream oriented protocol.
* computing checksum is done for almost nothing as part of the copy from user to kernel space. Modern CPU cache's make computation cost << memory access cost.

Quoted 4 lines

This is because a user is aware to the data he sends and he can optimize the data checksum calculations more than anyone else. for instance a web server sends its html pages, which are static data. it can pre-calculate the checksums.

Tcp will compute different transfer size's based on the congestion window of the connection, and header part will be different.