How does SUNRPC/UDP work?
Chet Murthy
murthy at thir.cs.cornell.edu
Tue Oct 3 01:20:53 AEST 1989
Well, I got some answers back. It seems that SUN has a limit of 8kBytes
on the size of a UDP packet. The SUNRPC implementation encapsulates an
RPC message into a single UDP packet, so if your implementation doesn't
support large enough packets (the PC-NFS implementation apparently only
supports 1KByte UDP packets) then your RPC implementation won't do
reassembly, etc, to allow you to do large size RPC's.
Also, from the paper that someone posted to the net about recently (about
comparing different RPC implementations), I infer that at some point above
8kbytes (I think it was 12Kbytes) using TCP becomes cheaper than UDP (in
terms of time).
So the thing to do, I suppose, is to add a minimal functionality to SUNRPC
to do packet fragmentation/reassembly for meduim-length (8-16Kbytes)
messages, and for longer messages, use TCP.
Does that sound right?
murthy at cs.cornell.edu
More information about the Comp.sys.sun
mailing list