1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501
|
<pre>Network Working Group S. Hollenbeck
Request for Comments: 3734 VeriSign, Inc.
Category: Standards Track March 2004
<span class="h1">Extensible Provisioning Protocol (EPP) Transport Over TCP</span>
Status of this Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2004). All Rights Reserved.
Abstract
This document describes how an Extensible Provisioning Protocol (EPP)
session is mapped onto a single Transmission Control Protocol (TCP)
connection. This mapping requires use of the Transport Layer
Security (TLS) protocol to protect information exchanged between an
EPP client and an EPP server.
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-1.1">1.1</a>. Conventions Used In This Document. . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2">2</a>. Session Management . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-3">3</a>. Message Exchange . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-4">4</a>. Data Unit Format . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-5">5</a>. Transport Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-6">6</a>. Internationalization Considerations. . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-7">7</a>. IANA Considerations. . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-8">8</a>. Security Considerations. . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-9">9</a>. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-10">10</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-10.1">10.1</a>. Normative References. . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-10.2">10.2</a>. Informative References. . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-11">11</a>. Author's Address . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-12">12</a>. Full Copyright Statement . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<span class="grey">Hollenbeck Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc3734">RFC 3734</a> EPP TCP Transport March 2004</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This document describes how the Extensible Provisioning Protocol
(EPP) is mapped onto a single client-server TCP connection. Security
services beyond those defined in EPP are provided by the Transport
Layer Security (TLS) Protocol [<a href="./rfc2246" title=""The TLS Protocol Version 1.0"">RFC2246</a>]. EPP is described in
[<a href="./rfc3730" title=""Extensible Provisioning Protocol (EPP)"">RFC3730</a>]. TCP is described in [<a href="./rfc793" title=""Transmission Control Protocol"">RFC793</a>].
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Conventions Used In This Document</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key Words for Use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Session Management</span>
Mapping EPP session management facilities onto the TCP service is
straight forward. An EPP session first requires creation of a TCP
connection between two peers, one that initiates the connection
request and one that responds to the connection request. The
initiating peer is called the "client", and the responding peer is
called the "server". An EPP server MUST listen for TCP connection
requests on a standard TCP port assigned by IANA.
The client MUST issue an active OPEN call, specifying the TCP port
number on which the server is listening for EPP connection attempts.
The server MUST respond with a passive OPEN call, which the client
MUST acknowledge to establish the connection. The EPP server MUST
return an EPP <greeting> to the client after the TCP session has been
established.
An EPP session is normally ended by the client issuing an EPP
<logout> command. A server receiving an EPP <logout> command MUST
end the EPP session and close the TCP connection through an active
CLOSE call. The client MUST respond with a passive CLOSE call.
A client MAY end an EPP session by issuing an active CLOSE call. A
server SHOULD respond with a passive CLOSE call.
A server MAY limit the life span of an established TCP connection.
EPP sessions that are inactive for more than a server-defined period
MAY be ended by a server issuing an active CLOSE call. A server MAY
also close TCP connections that have been open and active for longer
than a server-defined period.
Peers SHOULD respond to an active CLOSE call with a passive CLOSE
call. The closing peer MAY issue an ABORT call if the responding
peer does not respond to the active CLOSE call.
<span class="grey">Hollenbeck Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc3734">RFC 3734</a> EPP TCP Transport March 2004</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Message Exchange</span>
With the exception of the EPP server greeting, EPP messages are
initiated by the EPP client in the form of EPP commands. An EPP
server MUST return an EPP response to an EPP command on the same TCP
connection that carried the command. If the TCP connection is closed
after a server receives and successfully processes a command but
before the response can be returned to the client, the server MAY
attempt to undo the effects of the command to ensure a consistent
state between the client and the server. EPP commands are
idempotent, so processing a command more than once produces the same
net effect on the repository as successfully processing the command
once.
An EPP client streams EPP commands to an EPP server on an established
TCP connection. A client MAY but SHOULD NOT establish multiple TCP
connections to create multiple command exchange channels. A server
SHOULD limit a client to a maximum number of TCP connections based on
server capabilities and operational load.
EPP describes client-server interaction as a command-response
exchange where the client sends one command to the server and the
server returns one response to the client. A client might be able to
realize a slight performance gain by pipelining (sending more than
one command before a response for the first command is received)
commands with TCP transport, but this feature does not change the
basic single command, single response operating mode of the core
protocol. The amount of data that can be outstanding is limited to
the current TCP window size.
Each EPP data unit MUST contain a single EPP message. Commands MUST
be processed independently and in the same order as sent from the
client.
A server SHOULD impose a limit on the amount of time required for a
client to issue a well-formed EPP command. A server SHOULD end an
EPP session and close an open TCP connection if a well-formed command
is not received within the time limit.
A general state machine for an EPP server is described in <a href="./rfc3730#section-2">section 2
of [RFC3730]</a>. General client-server message exchange using TCP
transport is illustrated in Figure 1.
<span class="grey">Hollenbeck Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc3734">RFC 3734</a> EPP TCP Transport March 2004</span>
Client Server
| |
| Connect |
| >>------------------------------->> |
| |
| Send Greeting |
| <<-------------------------------<< |
| |
| Send <login> |
| >>------------------------------->> |
| |
| Send Response |
| <<-------------------------------<< |
| |
| Send Command |
| >>------------------------------->> |
| |
| Send Response |
| <<-------------------------------<< |
| |
| Send Command X |
| >>------------------------------->> |
| |
| Send Command Y |
| >>---------------+ |
| | |
| | |
| Send Response X |
| <<---------------(---------------<< |
| | |
| | |
| +--------------->> |
| |
| Send Response Y |
| <<-------------------------------<< |
| |
| Send <logout> |
| >>------------------------------->> |
| |
| Send Response & Disconnect |
| <<-------------------------------<< |
| |
Figure 1: TCP Client-Server Message Exchange
<span class="grey">Hollenbeck Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc3734">RFC 3734</a> EPP TCP Transport March 2004</span>
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Data Unit Format</span>
The data field of the TCP header MUST contain an EPP data unit. The
EPP data unit contains two fields: a 32-bit header that describes the
total length of the data unit, and the EPP XML instance.
EPP Data Unit Format (one tick mark represents one bit position):
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Total Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| EPP XML Instance |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Total Length (32 bits): The total length of the EPP data unit
measured in octets in network (big endian) byte order. The octets
contained in this field MUST be included in the total length
calculation.
EPP XML Instance (variable length): The EPP XML instance carried in
the data unit.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Transport Considerations</span>
<a href="#section-2.1">Section 2.1</a> of the EPP core protocol specification [<a href="./rfc3730" title=""Extensible Provisioning Protocol (EPP)"">RFC3730</a>]
describes considerations to be addressed by protocol transport
mappings. This mapping addresses each of the considerations using a
combination of features described in this document and features
provided by TCP as follows:
- TCP includes features to provide reliability, flow control,
ordered delivery, and congestion control. <a href="./rfc793#section-1.5">Section 1.5 of RFC 793</a>
[<a href="./rfc793" title=""Transmission Control Protocol"">RFC793</a>] describes these features in detail; congestion control
principles are described further in <a href="./rfc2581">RFC 2581</a> [<a href="./rfc2581" title=""TCP Congestion Control"">RFC2581</a>] and <a href="./rfc2914">RFC</a>
<a href="./rfc2914">2914</a> [<a href="./rfc2914" title=""Congestion Control Principles"">RFC2914</a>]. TCP is a connection-oriented protocol, and
<a href="#section-2">Section 2</a> of this mapping describes how EPP sessions are mapped to
TCP connections.
- Sections <a href="#section-2">2</a> and <a href="#section-3">3</a> of this mapping describe how the stateful nature
of EPP is preserved through managed sessions and controlled
message exchanges.
- <a href="#section-3">Section 3</a> of this mapping notes that command pipelining is
possible with TCP, though batch-oriented processing (combining
multiple EPP commands in a single data unit) is not permitted.
<span class="grey">Hollenbeck Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc3734">RFC 3734</a> EPP TCP Transport March 2004</span>
- <a href="#section-4">Section 4</a> of this mapping describes features to frame data units
by explicitly specifying the number of octets used to represent a
data unit.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Internationalization Considerations</span>
This mapping does not introduce or present any internationalization
or localization issues.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. IANA Considerations</span>
System port number 700 has been assigned by the IANA for mapping EPP
onto TCP.
User port number 3121 (which was used for development and test
purposes) has been reclaimed by the IANA.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Security Considerations</span>
EPP as-is provides only simple client authentication services using
identifiers and plain text passwords. A passive attack is sufficient
to recover client identifiers and passwords, allowing trivial command
forgery. Protection against most other common attacks MUST be
provided by other layered protocols.
EPP provides protection against replay attacks through command
idempotency. A replayed or repeated command will not change the
state of any object in any way, though denial of service through
consumption of connection resources is a possibility.
When layered over TCP, the Transport Layer Security (TLS) Protocol
described in [<a href="./rfc2246" title=""The TLS Protocol Version 1.0"">RFC2246</a>] MUST be used to prevent eavesdropping,
tampering, and command forgery attacks. Implementations of TLS often
contain a US-exportable cryptographic mode that SHOULD NOT be used to
protect EPP. Clients and servers desiring high security SHOULD
instead use TLS with cryptographic algorithms that are less
susceptible to compromise.
Mutual client and server authentication using the TLS Handshake
Protocol is REQUIRED. Signatures on the complete certificate chain
for both client machine and server machine MUST be validated as part
of the TLS handshake. Information included in the client and server
certificates, such as validity periods and machine names, MUST also
be validated. EPP service MUST NOT be granted until successful
<span class="grey">Hollenbeck Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc3734">RFC 3734</a> EPP TCP Transport March 2004</span>
completion of a TLS handshake and certificate validation, ensuring
that both the client machine and the server machine have been
authenticated and cryptographic protections are in place.
Authentication using the TLS Handshake Protocol confirms the identity
of the client and server machines. EPP uses an additional client
identifier and password to identify and authenticate the client's
user identity to the server, supplementing the machine authentication
provided by TLS. The identity described in the client certificate
and the identity described in the EPP client identifier can differ,
as a server can assign multiple user identities for use from any
particular client machine.
EPP TCP servers are vulnerable to common TCP denial of service
attacks including TCP SYN flooding. Servers SHOULD take steps to
minimize the impact of a denial of service attack using combinations
of easily implemented solutions, such as deployment of firewall
technology and border router filters to restrict inbound server
access to known, trusted clients.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Acknowledgements</span>
This document was originally written as an individual submission
Internet-Draft. The provreg working group later adopted it as a
working group document and provided many invaluable comments and
suggested improvements. The author wishes to acknowledge the efforts
of WG chairs Edward Lewis and Jaap Akkerhuis for their process and
editorial contributions.
Specific suggestions that have been incorporated into this document
were provided by Chris Bason, Randy Bush, Patrik Faltstrom, Ned
Freed, James Gould, Dan Manley, and John Immordino.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. References</span>
<span class="h3"><a class="selflink" id="section-10.1" href="#section-10.1">10.1</a>. Normative References</span>
[<a id="ref-RFC793">RFC793</a>] Postel, J., "Transmission Control Protocol", STD 7, <a href="./rfc793">RFC</a>
<a href="./rfc793">793</a>, September 1981.
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key Words for Use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC2246">RFC2246</a>] Dierks, T. and C. Allen, "The TLS Protocol Version 1.0",
<a href="./rfc2246">RFC 2246</a>, January 1999.
[<a id="ref-RFC2581">RFC2581</a>] Allman, M., Paxson, V. and W. Stevens, "TCP Congestion
Control", <a href="./rfc2581">RFC 2581</a>, April 1999.
<span class="grey">Hollenbeck Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc3734">RFC 3734</a> EPP TCP Transport March 2004</span>
[<a id="ref-RFC2914">RFC2914</a>] Floyd, S., "Congestion Control Principles", <a href="https://www.rfc-editor.org/bcp/bcp41">BCP 41</a>, <a href="./rfc2914">RFC</a>
<a href="./rfc2914">2914</a>, September 2000.
[<a id="ref-RFC3730">RFC3730</a>] Hollenbeck, S., "Extensible Provisioning Protocol (EPP)",
<a href="./rfc3730">RFC 3730</a>, March 2004.
<span class="h3"><a class="selflink" id="section-10.2" href="#section-10.2">10.2</a>. Informative References</span>
None
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. Author's Address</span>
Scott Hollenbeck
VeriSign Global Registry Services
21345 Ridgetop Circle
Dulles, VA 20166-6503
USA
EMail: shollenbeck@verisign.com
<span class="grey">Hollenbeck Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc3734">RFC 3734</a> EPP TCP Transport March 2004</span>
<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. Full Copyright Statement</span>
Copyright (C) The Internet Society (2004). This document is subject
to the rights, licenses and restrictions contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and
except as set forth therein, the authors retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at ietf-
ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Hollenbeck Standards Track [Page 9]
</pre>
|