RFC 8267
Network File System (NFS) Upper-Layer Binding to RPC-over-RDMA Version 1
Okay so bestie, this is RFC 8267 π, and it's the NFS Upper-Layer Binding to RPC-over-RDMA Version 1 π¦. It's from the IETF, it's a Standards Track doc (main character energy β¨), and it was published in October 2017 π. Its author is C. Lever from Oracle π . It obsoletes RFC 5667 π, so that one is retired, and it doesn't update anything else.
The whole point of this doc is to enable Direct Data Placement (DDP) π₯ for NFS over RPC-over-RDMA, and the core idea is that both sides have to agree on which data items are DDP-eligible π«Ά.
Part 1 of 4 coming right up, so stay tuned π
Status of This Memo πΈ
Lowkey the boring legal bit, but it matters π . This is an Internet Standards Track document, and it's a product of the IETF π§. It represents IETF community consensus, got public review, and was approved by the IESG. If you want more on Internet Standards, check Section 2 of RFC 7841 π.
For the current status, any errata, or to give feedback, head to https://www.rfc-editor.org/info/rfc8267 β¨.
Copyright Notice π
Copyright (c) 2017 IETF Trust and the persons identified as the document authors. All rights reserved π.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) as in effect on the publication date. Read those carefully, bestie, because they describe your rights and restrictions π. Code Components pulled out of this doc must include Simplified BSD License text (Section 4.e of the Trust Legal Provisions) and come without warranty π.
This document may contain material from IETF Documents or IETF Contributions published before November 10, 2008 π. The people controlling the copyright in some of that material might not have granted the IETF Trust the right to allow modifications outside the IETF Standards Process. So without an adequate license from them, this document may not be modified outside the IETF Standards Process, and derivative works may not be created outside it. The exceptions are formatting it for RFC publication or translating it into languages other than English π«Ά.
Table of Contents π§
Here's the map of the whole doc πΊοΈ:
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 4
2. Requirements Language . . . . . . . . . . . . . . . . . . . . 4
3. Reply Size Estimation . . . . . . . . . . . . . . . . . . . . 5
3.1. Short Reply Chunk Retry . . . . . . . . . . . . . . . . . 5
4. Upper-Layer Binding for NFS Versions 2 and 3 . . . . . . . . 6
4.1. Reply Size Estimation . . . . . . . . . . . . . . . . . . 7
4.2. RPC Binding Considerations . . . . . . . . . . . . . . . 7
5. Upper-Layer Bindings for NFS Versions 2 and 3 Auxiliary
Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5.1. MOUNT, NLM, and NSM Protocols . . . . . . . . . . . . . . 8
5.2. NFSACL Protocol . . . . . . . . . . . . . . . . . . . . . 8
6. Upper-Layer Binding for NFS Version 4 . . . . . . . . . . . . 8
6.1. DDP-Eligibility . . . . . . . . . . . . . . . . . . . . . 8
6.2. Reply Size Estimation . . . . . . . . . . . . . . . . . . 9
6.3. RPC Binding Considerations . . . . . . . . . . . . . . . 10
6.4. NFS COMPOUND Requests . . . . . . . . . . . . . . . . . . 10
6.5. NFS Callback Requests . . . . . . . . . . . . . . . . . . 13
6.6. Session-Related Considerations . . . . . . . . . . . . . 14
6.7. Transport Considerations . . . . . . . . . . . . . . . . 15
7. Extending NFS Upper-Layer Bindings . . . . . . . . . . . . . 16
8. Security Considerations . . . . . . . . . . . . . . . . . . . 16
9. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 17
10. References . . . . . . . . . . . . . . . . . . . . . . . . . 17
10.1. Normative References . . . . . . . . . . . . . . . . . . 17
10.2. Informative References . . . . . . . . . . . . . . . . . 18
Appendix A. Changes Since RFC 5667 . . . . . . . . . . . . . . . 20
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 21
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 21
1. Introduction β¨
Okay so, the RPC-over-RDMA version 1 transport can use Direct Data Placement (DDP) to carry data payloads for RPC transactions [RFC8166] π¦. For interop to work, RPC client and server implementations on RPC-over-RDMA version 1 must agree on which External Data Representation (XDR) data items and RPC procedures are DDP-eligible π. Yes, I said "must" in caps because it's a real requirement, bestie π .
An Upper-Layer Binding is the thing that writes down that agreement for one or more versions of one RPC program π. It also covers the other operational details: RPC binding assignments, pairing Write chunks with result data items, and reply size estimation π§.
This document has the material that Upper-Layer Bindings need (per [RFC8166]) for these NFS protocol versions π:
- NFS version 2 [RFC1094] π
- NFS version 3 [RFC1813] π
- NFS version 4.0 [RFC7530] π
- NFS version 4.1 [RFC5661] π
- NFS version 4.2 [RFC7862] π
Bindings for auxiliary protocols used with NFS versions 2 and 3 are also in here (see Section 5) π.
Assumption check: this doc assumes you already know the concepts and terminology from [RFC8166] and the docs it references π. So read those first, bestie.
2. Requirements Language π
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here π₯.
3. Reply Size Estimation π¦
When a requester builds each RPC Call message, it is responsible for allocating appropriate resources to receive the matching Reply message π«Ά. If the requester expects the RPC Reply message to be bigger than its inline threshold, it provides Write and/or Reply chunks where the responder can put results and the Reply's Payload stream π.
A reply resource overrun happens if the RPC Reply Payload stream doesn't fit in the provided Reply chunk, or if no Reply chunk was provided and the Payload stream doesn't fit inline π. That blocks the responder from returning the Upper-Layer reply, so reliable reply size estimation is necessary for successful interop π.
Usually, the NFS protocol's XDR definition has enough info for an NFS client to predict the max size of the expected Reply message β¨. When the result has variable-size data items, the client can estimate the max RPC Reply size like this π§:
- The client only asks for a specific portion of an object (for example, with the "count" and "offset" fields in an NFS READ) πΈ.
- The client limits how many results it gets (for example, with the "count" field of an NFS READDIR request) πΈ.
- The client already cached the size of the whole object it's about to request (for example, from an earlier NFS GETATTR request) πΈ.
- The client and server negotiated a max size for all calls and responses (for example, with a CREATE_SESSION operation) πΈ.
3.1. Short Reply Chunk Retry π
Sometimes the size of one or more returned data items, or how many there are, can't be known before the RPC Call is formed π.
If an NFS server sees that the NFS client gave it inadequate receive resources to return the whole Reply, it sends back an RPC-level error or a transport error, like ERR_CHUNK π.
When that happens, an NFS client can choose to:
- terminate the RPC transaction right away with an error, or
- allocate a bigger Reply chunk and send the same request as a new RPC transaction. A new Transaction ID (XID) should be assigned to the retransmitted request, so it doesn't match a cached RPC Reply that holds the original error π«Ά. The NFS client should avoid retrying forever, because a responder may return ERR_CHUNK for a bunch of different reasons π.
Later sections of this doc spell out exactly which operations might have trouble with reply size estimation. Those operations are eligible for "short Reply chunk retry" π¦. Unless it's explicitly said to apply, short Reply chunk retry should not be used, since accurate reply size estimation is only a problem in a few cases π . In every other case, reply size underestimation counts as a correctable implementation bug π₯.
NFS server implementations can dodge connection loss by first confirming that the target RDMA segments are big enough to receive results before they start explicit RDMA operations β¨.
4. Upper-Layer Binding for NFS Versions 2 and 3 πΈ
This Upper-Layer Binding section applies to NFS versions 2 [RFC1094] and 3 [RFC1813] π. For brevity, a "Legacy NFS client" means an NFS client using version 2 or 3 of the NFS RPC program (100003) to talk to an NFS server π§. Likewise, a "Legacy NFS server" is an NFS server talking to clients on NFS version 2 or 3 π.
These XDR data items in NFS versions 2 and 3 are DDP-eligible π¦:
- the opaque file data argument in the NFS WRITE procedure
- the pathname argument in the NFS SYMLINK procedure
- the opaque file data result in the NFS READ procedure
- the pathname result in the NFS READLINK procedure
All other argument or result data items in NFS versions 2 and 3 are not DDP-eligible π.
A transport error doesn't tell you whether the server processed the arguments of the RPC Call, or whether it accessed or modified client memory tied to that RPC π.
4.1. Reply Size Estimation β¨
A Legacy NFS client figures out the max reply size for each operation using the criteria in Section 3 π . No operations in NFS versions 2 or 3 benefit from short Reply chunk retry π.
4.2. RPC Binding Considerations π§
Legacy NFS servers traditionally listen for clients on UDP and TCP port 2049 π. They also register these ports with a local portmapper [RFC1833] service π«Ά.
A Legacy NFS server that supports RPC-over-RDMA version 1 on this kind of network and registers itself with the RPC portmapper MAY choose an arbitrary port, or MAY use the alternative well-known port number for its RPC-over-RDMA service (see Section 9) π¦. The chosen port MAY be registered with the RPC portmapper under the netids assigned in [RFC8166] π.
To be continued in Part 2 of 4 π
5. Upper-Layer Bindings for NFS Versions 2 and 3 Auxiliary Protocols β¨
Okay so NFS versions 2 and 3 usually come bundled with a bunch of other protocols, which people call the "NFS auxiliary protocols" π . They're their own separate RPC programs, with procedures that aren't part of the NFS RPC program (100003). The Upper-Layer Bindings in this section apply to:
- versions 2 and 3 of the MOUNT RPC program (100005) [RFC1813];
- versions 1, 3, and 4 of the NLM (Network Lock Manager) RPC program (100021) [RFC1813];
- version 1 of the NSM (Network Status Monitor) RPC program (100024), which is described in Chapter 11 of [XNFS]; and
- version 1 of the NFSACL RPC program (100227), which does not have a public definition. NFSACL is treated in this document as a de facto standard, as there are several interoperating implementations.
5.1. MOUNT, NLM, and NSM Protocols
Back in the day, NFS/RDMA implementations kept choosing to send MOUNT, NLM, and NSM over TCP π. So for these to play nicely together when NFS/RDMA is in use, a Legacy NFS server MUST provide support for these protocols via TCP π«Ά.
5.2. NFSACL Protocol
Legacy clients and servers that support the NFSACL RPC program usually send NFSACL procedures on the same connection as the NFS RPC program (100003). That means no separate rpcbind queries just to find out whether the server supports this RPC program. Lowkey genius β¨.
ACLs are usually tiny, but even big ones still have to get encoded and decoded to some degree, so no data item in this upper-layer protocol is DDP-eligible. π
For NFSACL procedures whose Replies don't include an ACL object, the size of a Reply is determined directly from the NFSACL RPC program's XDR definition.
There is no protocol-specified size limit for NFS version 3 ACLs, and neither the NFSACL nor the NFS RPC program gives a Legacy client any way to figure out the largest ACL a Legacy server can return π. So Legacy client implementations should choose a maximum size for ACLs based on their own internal limits.
Because an NFSACL client can't know in advance how large a returned ACL will be, it can use short Reply chunk retry when an NFSACL GETACL operation runs into a transport error.
6. Upper-Layer Binding for NFS Version 4 π
The Upper-Layer Binding specification in this section applies to versions of the NFS RPC program defined in NFS versions 4.0 [RFC7530], 4.1 [RFC5661], and 4.2 [RFC7862].
6.1. DDP-Eligibility
Only the following XDR data items in the COMPOUND procedure of all NFS version 4 minor versions are DDP-eligible π:
- The opaque data field in the WRITE4args structure
- The linkdata field of the NF4LNK arm in the createtype4 union
- The opaque data field in the READ4resok structure
- The linkdata field in the READLINK4resok structure
6.2. Reply Size Estimation
Within NFS version 4, there are some variable-length result data items whose maximum size clients can't estimate reliably, because there's no protocol-specified size limit on these arrays. They include:
- the attrlist4 field;
- fields containing ACLs such as
fattr4_acl,fattr4_dacl, andfattr4_sacl; - fields in the
fs_locations4andfs_locations_info4data structures; and - fields opaque to the NFS version 4 protocol that pertain to pNFS (parallel NFS) layout metadata, such as
loc_body,loh_body,da_addr_body,lou_body,lrf_body,fattr_layout_types, andfs_layout_types.
6.2.1. Reply Size Estimation for Minor Version 0
The NFS version 4.0 protocol itself doesn't impose any bound on the size of NFS calls or responses π.
Some of the data items listed in Section 6.2 (especially the ACL and fs_locations ones) make it hard to predict the maximum size of NFS version 4.0 Replies that interrogate variable-length fattr4 attributes. Client implementations might rely on their own internal architectural limits to constrain the reply size, but those limits aren't always guaranteed to be reliable.
When an especially large fattr4 result is expected, a Reply chunk might be required. An NFS version 4.0 client can use short Reply chunk retry when an NFS COMPOUND containing a GETATTR operation encounters a transport error.
The use of NFS COMPOUND operations raises the possibility of requests that combine a non-idempotent operation (e.g., RENAME) with a GETATTR operation that requests one or more variable-length results.
This combination should be avoided by ensuring that any GETATTR operation that requests a result of unpredictable length is sent in an NFS COMPOUND by itself. π¨
6.2.2. Reply Size Estimation for Minor Version 1 and Newer Minor Versions
In NFS version 4.1 and newer minor versions, the csa_fore_chan_attrs argument of the CREATE_SESSION operation contains a ca_maxresponsesize field. The value in this field can be taken as the absolute maximum size of replies generated by an NFS version 4.1 server π¦.
This value can be used in cases where it's not possible to precisely estimate a reply size upper bound. In practice, objects such as ACLs, named attributes, layout bodies, and security labels are much smaller than this maximum.
6.3. RPC Binding Considerations
NFS version 4 servers are required to listen on TCP port 2049, and they are not required to register with an rpcbind service [RFC7530].
Therefore, an NFS version 4 server supporting RPC-over-RDMA version 1 MUST use the alternative well-known port number for its RPC-over-RDMA service (see Section 9). Clients SHOULD connect to this well-known port without consulting the RPC portmapper (as for NFS version 4 on TCP transports) π§.
6.4. NFS COMPOUND Requests
6.4.1. Multiple DDP-Eligible Data Items
An NFS version 4 COMPOUND procedure can contain more than one operation that carries a DDP-eligible data item. An NFS version 4 client provides XDR Position values in each Read chunk to disambiguate which chunk is associated with which argument data item. However, NFS version 4 server and client implementations must agree in advance on how to pair Write chunks with returned result data items π€.
In the following list, a "READ operation" refers to any NFS version 4 operation that has a DDP-eligible result data item. The mechanism specified in Section 4.3.2 of [RFC8166] is applied to this class of operations:
- If an NFS version 4 client wishes all DDP-eligible items in an NFS Reply to be conveyed inline, it leaves the Write list empty.
- The first chunk in the Write list MUST be used by the first READ operation in an NFS version 4 COMPOUND procedure. The next Write chunk is used by the next READ operation, and so on.
- If an NFS version 4 client has provided a matching non-empty Write chunk, then the corresponding READ operation MUST return its DDP-eligible data item using that chunk.
- If an NFS version 4 client has provided an empty matching Write chunk, then the corresponding READ operation MUST return all of its result data items inline.
- If a READ operation returns a union arm that does not contain a DDP-eligible result, and the NFS version 4 client has provided a matching non-empty Write chunk, an NFS version 4 server MUST return an empty Write chunk in that Write list position.
- If there are more READ operations than Write chunks, then remaining NFS READ operations in an NFS version 4 COMPOUND that have no matching Write chunk MUST return their results inline.
6.4.2. Chunk List Complexity
The RPC-over-RDMA version 1 protocol doesn't place any limit on the number of chunks or segments that may appear in Read or Write lists. However, for various reasons, NFS version 4 server implementations often have practical limits on the number of chunks or segments they are prepared to process in a single RPC transaction conveyed via RPC-over-RDMA version 1 π.
These implementation limits are especially important when Kerberos integrity or privacy is in use [RFC7861]. Generic Security Service (GSS) services increase the size of credential material in RPC headers, potentially requiring more frequent use of Long messages. This can increase the complexity of chunk lists independent of the NFS version 4 COMPOUND being conveyed.
In the absence of explicit knowledge of the server's limits, NFS version 4 clients SHOULD follow the prescriptions listed below when constructing RPC-over-RDMA version 1 messages. NFS version 4 servers MUST accept and process such requests.
- The Read list can contain either a Position Zero Read chunk, one Read chunk with a non-zero Position, or both.
- The Write list can contain no more than one Write chunk.
- Any chunk can contain up to sixteen RDMA segments.
NFS version 4 clients wishing to send more complex chunk lists can provide configuration interfaces to bound the complexity of NFS version 4 COMPOUNDs, limit the number of elements in scatter-gather operations, and avoid other sources of chunk overruns at the receiving peer π.
An NFS version 4 server SHOULD return one of the following responses to a client that has sent an RPC transaction via RPC-over-RDMA version 1, which cannot be processed due to chunk list complexity limits on the server:
- A problem is detected by the transport layer while parsing the transport header in an RPC Call message. The server responds with an RDMA_ERROR message with the
errfield set to ERR_CHUNK. - A problem is detected during XDR decoding of the RPC Call message while the RPC layer reassembles the call's XDR stream. The server responds with an RPC Reply with its "reply_stat" field set to MSG_ACCEPTED and its "accept_stat" field set to GARBAGE_ARGS.
After receiving one of these errors, an NFS version 4 client SHOULD NOT retransmit the failing request, as the result would be the same error π. It SHOULD immediately terminate the RPC transaction associated with the XID in the RPC Reply.
6.4.3. NFS Version 4 COMPOUND Example
The following example shows a Write list with three Write chunks: A, B, and C. The NFS version 4 server consumes the provided Write chunks by writing the results of the designated operations in the COMPOUND request (READ and READLINK) back to each chunk π.
Write list:
A --> B --> C
NFS version 4 COMPOUND request:
PUTFH LOOKUP READ PUTFH LOOKUP READLINK PUTFH LOOKUP READ
| | |
v v v
A B C
If the NFS version 4 client does not want to have the READLINK result returned via RDMA, it provides an empty Write chunk for buffer B to indicate that the READLINK result must be returned inline π.
6.5. NFS Callback Requests
The NFS version 4 family of protocols supports server-initiated callbacks to notify NFS version 4 clients of events such as recalled delegations π₯.
6.5.1. NFS Version 4.0 Callback π
okay bestie, NFS version 4.0 implementations usually set up a separate TCP connection just for callback operations π¦, even when the forward channel is running on an RPC-over-RDMA version 1 transport π .
No operation in the NFS version 4.0 callback RPC program carries a significant data payload, so no XDR data items in this RPC program are DDP-eligible β¨.
A CB_RECALL Reply is small and fixed in size π. The CB_GETATTR Reply has a variable-length fattr4 data item πΈ. See Section 6.2.1 for a discussion of reply size prediction for this data item π.
An NFS version 4.0 client advertises netids and ad hoc port addresses for contacting its NFS version 4.0 callback service using the SETCLIENTID operation π§.
6.5.2. NFS Version 4.1 Callback π
in NFS version 4.1 and newer minor versions, callback operations can show up on the same connection used for NFS version 4 forward channel client requests π«Ά. NFS version 4 clients and servers MUST use the approach described in [RFC8167] when backchannel operations are conveyed on RPC-over-RDMA version 1 transports π₯.
the csa_back_chan_attrs argument of the CREATE_SESSION operation contains a ca_maxresponsesize field π. The value in this field can be taken as the absolute maximum size of backchannel replies generated by a replying NFS version 4 client β.
there are no DDP-eligible data items in callback procedures defined in NFS versions 4.1 or 4.2 π. However, some callback operations (such as messages that convey device ID information) can be large, in which case a Long Call or Reply might be required π.
when an NFS version 4.1 client can support Long Calls in its backchannel, it reports a backchannel ca_maxrequestsize that is larger than the connection's inline thresholds π¦. Otherwise, an NFS version 4 server MUST use only Short messages to convey backchannel operations π.
6.6. Session-Related Considerations π§
the presence of an NFS session (defined in [RFC5661]) has no effect on the operation of RPC-over-RDMA version 1 πΈ. None of the operations introduced to support NFS sessions (e.g., the SEQUENCE operation) contain DDP-eligible data items π
. There is no need to match the number of session slots with the number of available RPC-over-RDMA credits π«Ά.
however, there are a few new cases where an RPC transaction can fail π. For example, in response to an RPC request, a requester might receive an RDMA_ERROR message with an rdma_err value of ERR_CHUNK π. These situations are not different from existing RPC errors, which an NFS session implementation is already prepared to handle for other transports β¨. And as with other transports during such a failure, there might be no SEQUENCE result available to the requester to distinguish whether failure occurred before or after the requested operations were executed on the responder π.
when a transport error occurs (e.g., RDMA_ERROR), the requester proceeds as usual to match the incoming XID value to a waiting RPC Call π. The RPC transaction is terminated, and the result status is reported to the upper-layer protocol π. The requester's session implementation then determines the session ID and slot for the failed request and performs slot recovery to make that slot usable again π₯. If this were not done, that slot could be rendered permanently unavailable π.
when an NFS session is not present (for example, when NFS version 4.0 is in use), a transport error does not provide an indication of whether the server has processed the arguments of the RPC Call, or whether the server has accessed or modified client memory associated with that RPC π.
6.7. Transport Considerations π
6.7.1. Congestion Avoidance π
Section 3.1 of [RFC7530] states:
Where an NFSv4 implementation supports operation over the IP network protocol, the supported transport layer between NFS and IP MUST be an IETF standardized transport protocol that is specified to avoid network congestion; such transports include TCP and the Stream Control Transmission Protocol (SCTP).
Section 2.9.1 of [RFC5661] also states:
Even if NFSv4.1 is used over a non-IP network protocol, it is RECOMMENDED that the transport support congestion control. It is permissible for a connectionless transport to be used under NFSv4.1; however, reliable and in-order delivery of data combined with congestion control by the connectionless transport is REQUIRED. As a consequence, UDP by itself MUST NOT be used as an NFSv4.1 transport.
RPC-over-RDMA version 1 is constructed on a platform of RDMA Reliable Connections [RFC8166] [RFC5041] π§ . RDMA Reliable Connections are reliable, connection-oriented transports that guarantee in-order delivery, thus meeting all above requirements for NFS version 4 transports π.
6.7.2. Retransmission and Keep-Alive π
NFS version 4 client implementations often rely on a transport-layer keep-alive mechanism to detect when an NFS version 4 server has become unresponsive π. When an NFS server is no longer responsive, client-side keep-alive terminates the connection, which in turn triggers reconnection and RPC retransmission π.
some RDMA transports (such as Reliable Connections on InfiniBand) have no keep-alive mechanism π¬. Without a disconnect or new RPC traffic, such connections can remain alive long after an NFS server has become unresponsive π« . Once an NFS client has consumed all available RPC-over-RDMA credits on that transport connection, it will forever await a Reply before sending another RPC request π.
NFS version 4 clients SHOULD reserve one RPC-over-RDMA credit to use for a periodic server or connection health assessment π. This credit can be used to drive an RPC request on an otherwise idle connection, triggering either a quick affirmative server response or immediate connection termination β‘.
in addition to network partition and request loss scenarios, RPC-over-RDMA transport connections can be terminated when a Transport header is malformed, Reply messages are larger than receive resources, or when too many RPC-over-RDMA messages are sent at once π¨. In such cases:
- If there is a transport error indicated (i.e.,
RDMA_ERROR) before the disconnect or instead of a disconnect, the requester MUST respond to that error as prescribed by the specification of the RPC transport. Then, the NFS version 4 rules for handling retransmission apply. - If there is a transport disconnect and the responder has provided no other response for a request, then only the NFS version 4 rules for handling retransmission apply.
7. Extending NFS Upper-Layer Bindings π
RPC programs such as NFS are required to have an Upper-Layer Binding specification to interoperate on RPC-over-RDMA version 1 transports [RFC8166] π. Via IETF standards action, the Upper-Layer Binding specified in this document can be extended to cover (a) versions of the NFS version 4 protocol specified after NFS version 4 minor version 2 or (b) separately published extensions to an existing NFS version 4 minor version, as described in [RFC8178] π¦.
8. Security Considerations π¨π
This section is serious business, bestie. Read it all. π
RPC-over-RDMA version 1 supports all RPC security models, including RPCSEC_GSS security and transport-level security [RFC7861] π‘οΈ. The choice of what Direct Data Placement mechanism to convey RPC argument and results does not affect this, since it changes only the method of data transfer π. Because this document defines only the binding of the NFS protocols atop [RFC8166], all relevant security considerations are, therefore, to be described at that layer π.
9. IANA Considerations ποΈ
the use of Direct Data Placement in NFS introduces a need for an additional port number assignment for networks that share traditional UDP and TCP port spaces with RDMA services π. The iWARP protocol is such an example [RFC5041] [RFC5040] β¨.
for this purpose, a set of transport protocol port number assignments is specified by this document π. IANA has assigned the following ports for NFS/RDMA in the IANA port registry, according to the guidelines described in [RFC6335] π.
nfsrdma 20049 tcp Network File System (NFS) over RDMA
nfsrdma 20049 udp Network File System (NFS) over RDMA
nfsrdma 20049 sctp Network File System (NFS) over RDMA
This document is listed as the reference for the nfsrdma port assignments π.
10. References ππ
10.1. Normative References
[RFC1833] Srinivasan, R., "Binding Protocols for ONC RPC Version 2",
RFC 1833, DOI 10.17487/RFC1833, August 1995,
<https://www.rfc-editor.org/info/rfc1833>.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/info/rfc2119>.
[RFC5661] Shepler, S., Ed., Eisler, M., Ed., and D. Noveck, Ed.,
"Network File System (NFS) Version 4 Minor Version 1
Protocol", RFC 5661, DOI 10.17487/RFC5661, January 2010,
<https://www.rfc-editor.org/info/rfc5661>.
[RFC6335] Cotton, M., Eggert, L., Touch, J., Westerlund, M., and S.
Cheshire, "Internet Assigned Numbers Authority (IANA)
Procedures for the Management of the Service Name and
Transport Protocol Port Number Registry", BCP 165,
RFC 6335, DOI 10.17487/RFC6335, August 2011,
<https://www.rfc-editor.org/info/rfc6335>.
[RFC7530] Haynes, T., Ed. and D. Noveck, Ed., "Network File System
(NFS) Version 4 Protocol", RFC 7530, DOI 10.17487/RFC7530,
March 2015, <https://www.rfc-editor.org/info/rfc7530>.
[RFC7861] Adamson, A. and N. Williams, "Remote Procedure Call (RPC)
Security Version 3", RFC 7861, DOI 10.17487/RFC7861,
November 2016, <https://www.rfc-editor.org/info/rfc7861>.
[RFC7862] Haynes, T., "Network File System (NFS) Version 4 Minor
Version 2 Protocol", RFC 7862, DOI 10.17487/RFC7862,
November 2016, <https://www.rfc-editor.org/info/rfc7862>.
[RFC8166] Lever, C., Ed., Simpson, W., and T. Talpey, "Remote Direct
Memory Access Transport for Remote Procedure Call Version
1", RFC 8166, DOI 10.17487/RFC8166, June 2017,
<https://www.rfc-editor.org/info/rfc8166>.
[RFC8167] Lever, C., "Bidirectional Remote Procedure Call on RPC-
over-RDMA Transports", RFC 8167, DOI 10.17487/RFC8167,
June 2017, <https://www.rfc-editor.org/info/rfc8167>.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
May 2017, <https://www.rfc-editor.org/info/rfc8174>.
10.2. Informative References π
Okay, bestie, these are the "extra reading" references, the ones that aren't strictly required but give you the full picture. π€
- [RFC1094] Nowicki, B., "NFS: Network File System Protocol specification", RFC 1094, DOI 10.17487/RFC1094, March 1989,
https://www.rfc-editor.org/info/rfc1094. - [RFC1813] Callaghan, B., Pawlowski, B., and P. Staubach, "NFS Version 3 Protocol Specification", RFC 1813, DOI 10.17487/RFC1813, June 1995,
https://www.rfc-editor.org/info/rfc1813. - [RFC5040] Recio, R., Metzler, B., Culley, P., Hilland, J., and D. Garcia, "A Remote Direct Memory Access Protocol Specification", RFC 5040, DOI 10.17487/RFC5040, October 2007,
https://www.rfc-editor.org/info/rfc5040. - [RFC5041] Shah, H., Pinkerton, J., Recio, R., and P. Culley, "Direct Data Placement over Reliable Transports", RFC 5041, DOI 10.17487/RFC5041, October 2007,
https://www.rfc-editor.org/info/rfc5041. - [RFC5666] Talpey, T. and B. Callaghan, "Remote Direct Memory Access Transport for Remote Procedure Call", RFC 5666, DOI 10.17487/RFC5666, January 2010,
https://www.rfc-editor.org/info/rfc5666. - [RFC5667] Talpey, T. and B. Callaghan, "Network File System (NFS) Direct Data Placement", RFC 5667, DOI 10.17487/RFC5667, January 2010,
https://www.rfc-editor.org/info/rfc5667. - [RFC8178] Noveck, D., "Rules for NFSv4 Extensions and Minor Versions", RFC 8178, DOI 10.17487/RFC8178, July 2017,
https://www.rfc-editor.org/info/rfc8178. - [XNFS] The Open Group, "Protocols for Interworking: XNFS, Version 3W", Document Number C702, ISBN 1-85912-184-5, February 1998.
Appendix A. Changes Since RFC 5667 π§
Okay, so this appendix is the glow-up diary: everything that changed since RFC 5667 and why. Spill! π
Corrections and updates made necessary by new language in [RFC8166] have been introduced. For example, references to deprecated features of RPC-over-RDMA version 1 (such as RDMA_MSGP) and the use of the Read list for handling RPC Replies have been removed. The term "mapping" has been replaced with the term "binding" or "Upper-Layer Binding" throughout the document. Material that duplicates what is in [RFC8166] has been deleted. π§Ή
Material required by [RFC8166] for Upper-Layer Bindings that was not present in [RFC5667] has been added. A complete discussion of reply size estimation has been introduced for all protocols covered by the Upper-Layer Bindings in this document. π
Technical corrections have been made. For example, the mention of 12KB and 36KB inline thresholds has been removed. The reference to a nonexistent NFS version 4 SYMLINK operation has been replaced. π§
The discussion of NFS version 4 COMPOUND handling has been completed. Some changes were made to the algorithm for matching DDP-eligible results to Write chunks. π§©
Requirements to ignore extra Read or Write chunks have been removed from the NFS versions 2 and 3 Upper-Layer Binding, as they conflict with [RFC8166]. Not them making things conflict! π
A section discussing NFS version 4 retransmission and connection loss has been added. π
The following additional improvements have been made, relative to [RFC5667]: β¨
- An explicit discussion of NFS versions 4.0 and 4.1 backchannel operation have replaced the previous treatment of callback operations. π
- A section describing considerations when an NFS session is in use has been added. π
- An Upper-Layer Binding for NFS version 4.2 has been added. π
- A section suggesting a mechanism for periodically assessing connection health has been introduced. π
- Ambiguous or erroneous uses of key words from RFC 2119 have been corrected. π§Ό
- References to obsolete RFCs have been updated. π
- An IANA Considerations section has been added, which specifies the port assignments for NFS/RDMA. This replaces the example assignment that appeared in [RFC5666]. π
- Code excerpts have been removed, and figures have been modernized. πΌοΈ
Acknowledgments π«Ά
The author gratefully acknowledges the work of Brent Callaghan and Tom Talpey on the original NFS Direct Data Placement specification [RFC5667]. Tom contributed the text of Section 6.4.2. π
Dave Noveck provided an excellent review, constructive suggestions, and consistent navigational guidance throughout the process of drafting this document. Dave contributed the text of Sections 6.6 and 7 and insisted on precise discussion of reply size estimation. Main character energy from Dave, honestly. π
Thanks to Karen Deitke for her sharp observations about idempotency, NFS COMPOUNDs, and NFS sessions. π§
Special thanks go to Transport Area Director Spencer Dawkins, NFSV4 Working Group Chair and Document Shepherd Spencer Shepler, and NFSV4 Working Group Secretary Thomas Haynes for their support. The author also wishes to thank Bill Baker and Greg Marsden for their support of this work. π
Author's Address π¬
Charles Lever
Oracle Corporation
1015 Granger Avenue
Ann Arbor, MI 48104
United States of America
Phone: +1 248 816 6463
Email: chuck.lever@oracle.com
And that's a wrap on RFC 8267! ππ¦β¨
π¦ where this page comes from
- ietf: rfc8267 2017-10
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms