From owner-freebsd-hackers Tue Apr 23 10:46:47 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 5DD0F37B405 for ; Tue, 23 Apr 2002 10:46:41 -0700 (PDT) Received: from caddis.yogotech.com (caddis.yogotech.com [206.127.123.130]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id LAA08675; Tue, 23 Apr 2002 11:46:36 -0600 (MDT) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by caddis.yogotech.com (8.11.6/8.11.6) id g3NHkZB65613; Tue, 23 Apr 2002 11:46:35 -0600 (MDT) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15557.40442.852602.681416@caddis.yogotech.com> Date: Tue, 23 Apr 2002 11:46:34 -0600 To: Terry Lambert Cc: Attila Nagy , Tomas Svensson , hackers@FreeBSD.ORG Subject: Re: sendfile() in tftpd? In-Reply-To: <3CC59C44.13013A1E@mindspring.com> References: <3CC59C44.13013A1E@mindspring.com> X-Mailer: VM 6.96 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > > No, sendfile() is only for TCP connections, TFTP is using UDP. If you > > > want performance, use something else. > > It's even in the manpage: > > Sendfile() sends a regular file specified by descriptor fd out a stream > > socket specified by descriptor s. > > > > Silly me. BTW, I can't use anything else. Are there any alternatives to > > TFTP for booting machines off the network? (using standard, PC components) > > USE TFTP to get a tiny image up, and then go TCP. > > There are also lightweight TCP stacks that fit in 8K or 16K; you > could come up with your own protocol, or decide to use FTP instead > of TFTP for the download. > > In general, the faster you get to something TCP based, the happier > you will be, so if you *must* use TFTP, then make the boot image > really, really small. Going to TCP soon assumes that you have a lossless medium in order to transmit packets over. If you're using a lossy medium, TFTP (and other UDP based protocols) can kick their butt because of TCP's assumption that packet loss is a function of congestion, which is often not the case in lossy mediums such as wirless. :( Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message