Unsolved

This post is more than 5 years old

1 Rookie

 • 

22 Posts

833

May 25th, 2009 11:00

NFS server UPD or TCP

Hello our company has 2 ns20 one in r/w they other in r only with replication enable from one ns20 to the other ns20
we are currently migrating our linux nfs server to the ns20.
Currently the clients use udp to access nfs servers.
What is the best practice for accesing the ns20 ? tcp or udp ? what are the avantage of both methods
In production we have to revert back to udp because our linux server was no so happy with +- 2000 nfs connection in tcp.

11 Legend

 • 

20.4K Posts

 • 

87.4K Points

May 25th, 2009 11:00

typically you want to use tcp instead of udp. Here is a note from RedHat admin guide:

The advantages of using TCP include the following:


Improved connection durability, thus less NFS stale file handles messages.

Performance gain on heavily loaded networks because TCP acknowledges every packet, unlike UDP which only acknowledges completion.

TCP has better congestion control than UDP (which has none). On a very congested network, UDP packets are the first packets that are dropped. This means that if NFS is writing data (in 8K chunks) all of that 8K must be retransmitted over UDP. Because of TCP's reliability, only parts of that 8K data are transmitted at a time.

Error detection. When a TCP connection breaks (due to the server being unavailable) the client stops sending data and restarts the connection process once the server becomes available. With UDP, since it's connection-less, the client continues to pound the network with data until the server reestablishes a connection.

The main disadvantage is that there is a very small performance hit due to the overhead associated with the TCP protocol.

1 Rookie

 • 

22 Posts

May 25th, 2009 13:00

thx for the reply tomorow i try a tcp connection for machines present in our wan, just to see the difference
because indeed i have some issue with computers that are remote since i migrate there homedirectory
from our unix server to the ns20. I've got a lot of retry when i look at the syslog

6 Operator

 • 

8.6K Posts

May 26th, 2009 02:00

do use TCP - espeically with WAN clients

these old recommendations for UDP were from a time with slow servers clients

2 Intern

 • 

1.3K Posts

May 26th, 2009 18:00

NFS over TCP is new to me; Can u sent me the doc u r refeering to ?

11 Legend

 • 

20.4K Posts

 • 

87.4K Points

May 26th, 2009 20:00

1 Rookie

 • 

22 Posts

June 22nd, 2009 00:00

many thx for the help
No Events found!

Top