Date: Sat, 17 Jan 2004 00:50:04 +0100 From: =?iso-8859-1?Q?Sten_Daniel_S=F8rsdal?= <sten.daniel.sorsdal@wan.no> To: <freebsd-hackers@freebsd.org>, <freebsd-net@freebsd.org> Subject: ip_input - chksum - why is it done so early in ip_input? Message-ID: <0AF1BBDF1218F14E9B4CCE414744E70F5D97FF@exchange.wanglobal.net>
next in thread | raw e-mail | index | archive | help
Apologies for the cross-post, i wasnt sure if this was hackers or net = material. I've often wondered why ip checksumming is done on every incoming=20 packet and not only on the packets that need to be delivered locally. It looks like a very expensive way of doing it, especially on high PPS. Basically all hosts do checksumming so why not just pass the bad packet on, making the forward process alot cheaper (cpu wise)? I ran some tests (unable to disclose results) by removing it completely and it seems to make a noticable impact on the performance. Especially on for example gaming services where there is a high PPS = versus actual data. Besides that i'd like to add that FreeBSD has the fastest forwarding = engine i've seen on any free OS. It's in my opinion a very suitable OS for=20 routing/forwarding. _// Sten
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0AF1BBDF1218F14E9B4CCE414744E70F5D97FF>