home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / programm / 5184 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.9 KB  |  50 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!eden.eecs.nwu.edu!patters
  3. From: patters@eecs.nwu.edu (Sean K. Patterson)
  4. Subject: TCP, UDP protocols vs. Unix domain protocols
  5. Message-ID: <1992Nov6.150756.10830@eecs.nwu.edu>
  6. Originator: patters@eden.eecs.nwu.edu
  7. Sender: usenet@eecs.nwu.edu (Mr. Usenet)
  8. Organization: EECS Department, Northwestern University
  9. Date: Fri, 6 Nov 1992 15:07:56 GMT
  10. Lines: 38
  11.  
  12.  
  13. I am writing some distributed software using Sun RPC 4.0.  The software
  14. consists of one client and several servers.  Besides accessing servers
  15. on remote hosts, the client will also have to be able to access servers
  16. running on the same host as the client.
  17.  
  18. My question is about accessing these local servers.  I know that it is no
  19. problem for a client to access a local server using Sun RPC, but I am worried
  20. about the performance.  I have gathered from the RPC documentation that TCP
  21. (or UDP) is used for all remote procedure calls even if the server is running
  22. on the same host as the client.
  23.  
  24. Is this slower than creating some sockets and using the Unix domain protocols?
  25. It is important to me that the performance of remote procedure calls to
  26. a server on the same host be as good as possible.
  27.  
  28. I guess this question boils down to:
  29.  
  30. When a process communicates with another process on the same host using TCP
  31. (or UDP), are packets actually put on the network, which then come right back
  32. to the host?  Or is the communication handled by the kernel (as with the Unix
  33. domain protocols)?
  34.  
  35. I am trying to determine whether I should commit the time and effort into
  36. writing my own RPC package (using Unix domain sockets) for communication
  37. between a client and server on the same host and using Sun RPC for
  38. communication between clients and servers on different hosts, or just using
  39. Sun RPC for everything.
  40.  
  41. Thank you.
  42.  
  43. Sean
  44.  
  45. -- 
  46.  
  47. Sean Patterson
  48. Northwestern University
  49. s-patterson@nwu.edu
  50.