1836412 Members
2756 Online
110100 Solutions
New Discussion

NFS: Which Protocol?

 
SOLVED
Go to solution
Richard Munn
Frequent Advisor

NFS: Which Protocol?

On 11.11, NFS by default uses TCP but will fall back to UDP if TCP is not available (at least that's what the man page says). So for any given NFS connection how can you tell which protocol it is actually using?
7 REPLIES 7
K.Vijayaragavan.
Respected Contributor

Re: NFS: Which Protocol?

you can determine the same with the help of command like.
# netstat -a ,
# rpcinfo
"Let us fine tune our knowledge together"
Con O'Kelly
Honored Contributor
Solution

Re: NFS: Which Protocol?

I think nfsstat command will help.
Try nfsstat -m which shows you stats for each NFS mounted filesystem.

Cheers
Con
V.Tamilvanan
Honored Contributor

Re: NFS: Which Protocol?

Hi,

You can get the info from
#rpcinfo -m
#nfsstat -n

HTH
Lior Mishkovsky
Advisor

Re: NFS: Which Protocol?

Hi,

Use $ nfsstat .

Lior./
Elena Leontieva
Esteemed Contributor

Re: NFS: Which Protocol?

I found this info in DocId: UNFSKBRC00009340

On 11.11 both TCP and UDP are enabled on the server side. When an 11.11 client
mounts without any mount options specified, it will mount using the TCP
protocol. This is the default. The only way to have an 11.11 client mount
using the UDP protocol is to use the -o proto=udp mount option on the
mount command. Also, if TCP is simply not available on the server side, then
the mount will automatically fallback to UDP.

Note: The NFS_TCP variable in the /etc/rc.config.d/nfsconf file does not exist
any more on 11.11 since both protocols are built into the ONC product.
Mark Landin
Valued Contributor

Re: NFS: Which Protocol?

I should point out that if you are running NFS on a LAN (which you consider "reliable") then TCP probably won't be of benefit to you, and it will impose a slight performance penalty due to TCP processing overhead. In this case, it's probably best to use the UDP protocol.

The thing that TCP gets you that UDP does not only comes into play if you are losing NFS packets due to network instability. This is usually only a problem over WANs.
Caesar_3
Esteemed Contributor

Re: NFS: Which Protocol?

Hello!

Check this commands:
nfsstat (will show nfs status)
netstat (will show info about connections)

Caesar