From owner-freebsd-net Tue Mar 20 19:59:15 2001 Delivered-To: freebsd-net@freebsd.org Received: from homer.softweyr.com (bsdconspiracy.net [208.187.122.220]) by hub.freebsd.org (Postfix) with ESMTP id 9861D37B724 for ; Tue, 20 Mar 2001 19:59:12 -0800 (PST) (envelope-from wes@softweyr.com) Received: from [127.0.0.1] (helo=softweyr.com ident=4d67f0708740badf9128d705103fa9db) by homer.softweyr.com with esmtp (Exim 3.16 #1) id 14fRr4-0000AM-00; Tue, 20 Mar 2001 12:31:42 -0700 Message-ID: <3AB7B01E.B601D8F5@softweyr.com> Date: Tue, 20 Mar 2001 12:31:42 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Vishwanath P Cc: freebsd-net@freebsd.org Subject: Re: TCP/IP stack References: <20010320055052.20711.qmail@venus.postmark.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Vishwanath P wrote: > > Hi , > > can any one help me with this. > how is the tcp/ip stack running.is it a single process? or is it > running as multiple processes. > pls tell me if i do ps -aef which is the process concerned with the > tcp/ip stack implementation. > > As far as i know inetd daemon has daemons for applications like > telnet, ftp etc... But how abt the actual stack where is it ie which > is the process? The answer is "all over the place." Some parts of TCP/IP run in interrupt context, some run in the general kernel context, and some run in kernel context serving on behalf of a process. There is no central network task or process, like in VxWorks. A more detailed discussion of the exact contexts at each point can be found in "TCP/IP Illustrated, Volume 2: Implementation" by W. Richard Stevens, or in "The Design and Implementation of the 4.4BSD Operating System" by McKusick et al. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message