LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-29-2004, 07:04 PM   #1
andersonas
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Question nfs client should it use tcp or udp to nfs serve rportmapper


If I specify the udp protocol on a nfs mount the intiial communications to the nfs server portmapper (port 111 ) is done useing tcp not udp. All the the rest is done via udp (mountd nfsd etc).

question should the initial portmapper exchange also occur useing udp to port 111 of the nfs server?

mount -t nfs -o udp server:/export /mountpoint

I also tried to force nfsvers2 and it also did the inital portmapper exchange via tcp.

I see this on a redhat as 2.1 and a Mandrake 10.0

Placeing a 32768 in the /proc/sys/sunrpc/rpc_debug did not provide any clues.
I used tcpdump to capture the traffic between the nfs client and server.


Thanks
 
Old 06-30-2004, 10:14 AM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
afaik the client will always use tcp for the handshake(identification) with the rpc (portmapper). the option to use udp or tcp only applies to the later nfs-traffic.

sl mritch.
 
Old 06-30-2004, 12:05 PM   #3
andersonas
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Original Poster
Rep: Reputation: 0
thanks

Yep looks like linux nfs clients do an initail rpc dump port request to get all the rpc ports on the nfs server. I can see that approach has an advantage.

Other unixes nfs clients only do a getport mountd for the one port for mountd, but will need other get port request for other services.

I didnt even know this was happening till a linux nfs client banged it head against a firewall.

Two approaches to the same question (what port to use)

Now I have to convince the firewall folk to make adjustments.

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM
Switching nfs from udp to tcp 850NA Linux - Networking 0 09-01-2003 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration