home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!eden.eecs.nwu.edu!patters
- From: patters@eecs.nwu.edu (Sean K. Patterson)
- Subject: TCP, UDP protocols vs. Unix domain protocols
- Message-ID: <1992Nov6.150756.10830@eecs.nwu.edu>
- Originator: patters@eden.eecs.nwu.edu
- Sender: usenet@eecs.nwu.edu (Mr. Usenet)
- Organization: EECS Department, Northwestern University
- Date: Fri, 6 Nov 1992 15:07:56 GMT
- Lines: 38
-
-
- I am writing some distributed software using Sun RPC 4.0. The software
- consists of one client and several servers. Besides accessing servers
- on remote hosts, the client will also have to be able to access servers
- running on the same host as the client.
-
- My question is about accessing these local servers. I know that it is no
- problem for a client to access a local server using Sun RPC, but I am worried
- about the performance. I have gathered from the RPC documentation that TCP
- (or UDP) is used for all remote procedure calls even if the server is running
- on the same host as the client.
-
- Is this slower than creating some sockets and using the Unix domain protocols?
- It is important to me that the performance of remote procedure calls to
- a server on the same host be as good as possible.
-
- I guess this question boils down to:
-
- When a process communicates with another process on the same host using TCP
- (or UDP), are packets actually put on the network, which then come right back
- to the host? Or is the communication handled by the kernel (as with the Unix
- domain protocols)?
-
- I am trying to determine whether I should commit the time and effort into
- writing my own RPC package (using Unix domain sockets) for communication
- between a client and server on the same host and using Sun RPC for
- communication between clients and servers on different hosts, or just using
- Sun RPC for everything.
-
- Thank you.
-
- Sean
-
- --
-
- Sean Patterson
- Northwestern University
- s-patterson@nwu.edu
-